2023-10-26 09:57:34 +08:00

2 lines
35 KiB
JavaScript

import{a5 as oe}from"./index-72686045.js";import{k as le,g as L}from"./event-a537c4cb.js";class he{constructor(){}set(r){try{window.localStorage.setItem(r.key,JSON.stringify(r.data)),typeof r.success=="function"&&r.success()}catch(n){typeof r.fail=="function"&&r.fail(n)}}get(r){try{const n=window.localStorage.getItem(r);return JSON.parse(n)}catch{return null}}remove(r){typeof r=="string"?window.localStorage.removeItem(r):r.forEach(n=>{window.localStorage.removeItem(n)})}clear(){window.localStorage.clear()}}const D=new he;var B={},W=function(e,r,n){for(var t=0,a={},s=0;s<n.length;s++)if(e==n.substr(s,e.length))"start"in a||(a.start=s),t++;else if(r==n.substr(s,r.length)&&"start"in a&&(t--,!t))return a.end=s,a.pre=n.substr(0,a.start),a.body=a.end-a.start>1?n.substring(a.start+e.length,a.end):"",a.post=n.slice(a.end+r.length),a},T={},fe={get exports(){return T},set exports(e){T=e}};(function(e){var r=function(){function n(h,o,u,f){typeof o=="object"&&(u=o.depth,f=o.prototype,o.filter,o=o.circular);var v=[],g=[],p=typeof Buffer<"u";typeof o>"u"&&(o=!0),typeof u>"u"&&(u=1/0);function m(d,_){if(d===null)return null;if(_==0)return d;var b,M;if(typeof d!="object")return d;if(n.__isArray(d))b=[];else if(n.__isRegExp(d))b=new RegExp(d.source,l(d)),d.lastIndex&&(b.lastIndex=d.lastIndex);else if(n.__isDate(d))b=new Date(d.getTime());else{if(p&&Buffer.isBuffer(d))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(d.length):b=new Buffer(d.length),d.copy(b),b;typeof f>"u"?(M=Object.getPrototypeOf(d),b=Object.create(M)):(b=Object.create(f),M=f)}if(o){var S=v.indexOf(d);if(S!=-1)return g[S];v.push(d),g.push(b)}for(var O in d){var A;M&&(A=Object.getOwnPropertyDescriptor(M,O)),!(A&&A.set==null)&&(b[O]=m(d[O],_-1))}return b}return m(h,u)}n.clonePrototype=function(o){if(o===null)return null;var u=function(){};return u.prototype=o,new u};function t(h){return Object.prototype.toString.call(h)}n.__objToStr=t;function a(h){return typeof h=="object"&&t(h)==="[object Date]"}n.__isDate=a;function s(h){return typeof h=="object"&&t(h)==="[object Array]"}n.__isArray=s;function i(h){return typeof h=="object"&&t(h)==="[object RegExp]"}n.__isRegExp=i;function l(h){var o="";return h.global&&(o+="g"),h.ignoreCase&&(o+="i"),h.multiline&&(o+="m"),o}return n.__getRegExpFlags=l,n}();e.exports&&(e.exports=r)})(fe);var I={},ce={get exports(){return I},set exports(e){I=e}},Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},x=Z,Q={};for(var $ in x)x.hasOwnProperty($)&&(Q[x[$]]=$);var c=ce.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var y in c)if(c.hasOwnProperty(y)){if(!("channels"in c[y]))throw new Error("missing channels property: "+y);if(!("labels"in c[y]))throw new Error("missing channel labels property: "+y);if(c[y].labels.length!==c[y].channels)throw new Error("channel and label counts mismatch: "+y);var ve=c[y].channels,ge=c[y].labels;delete c[y].channels,delete c[y].labels,Object.defineProperty(c[y],"channels",{value:ve}),Object.defineProperty(c[y],"labels",{value:ge})}c.rgb.hsl=function(e){var r=e[0]/255,n=e[1]/255,t=e[2]/255,a=Math.min(r,n,t),s=Math.max(r,n,t),i=s-a,l,h,o;return s===a?l=0:r===s?l=(n-t)/i:n===s?l=2+(t-r)/i:t===s&&(l=4+(r-n)/i),l=Math.min(l*60,360),l<0&&(l+=360),o=(a+s)/2,s===a?h=0:o<=.5?h=i/(s+a):h=i/(2-s-a),[l,h*100,o*100]};c.rgb.hsv=function(e){var r,n,t,a,s,i=e[0]/255,l=e[1]/255,h=e[2]/255,o=Math.max(i,l,h),u=o-Math.min(i,l,h),f=function(v){return(o-v)/6/u+1/2};return u===0?a=s=0:(s=u/o,r=f(i),n=f(l),t=f(h),i===o?a=t-n:l===o?a=1/3+r-t:h===o&&(a=2/3+n-r),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,o*100]};c.rgb.hwb=function(e){var r=e[0],n=e[1],t=e[2],a=c.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(n,t));return t=1-1/255*Math.max(r,Math.max(n,t)),[a,s*100,t*100]};c.rgb.cmyk=function(e){var r=e[0]/255,n=e[1]/255,t=e[2]/255,a,s,i,l;return l=Math.min(1-r,1-n,1-t),a=(1-r-l)/(1-l)||0,s=(1-n-l)/(1-l)||0,i=(1-t-l)/(1-l)||0,[a*100,s*100,i*100,l*100]};function de(e,r){return Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2)+Math.pow(e[2]-r[2],2)}c.rgb.keyword=function(e){var r=Q[e];if(r)return r;var n=1/0,t;for(var a in x)if(x.hasOwnProperty(a)){var s=x[a],i=de(e,s);i<n&&(n=i,t=a)}return t};c.keyword.rgb=function(e){return x[e]};c.rgb.xyz=function(e){var r=e[0]/255,n=e[1]/255,t=e[2]/255;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;var a=r*.4124+n*.3576+t*.1805,s=r*.2126+n*.7152+t*.0722,i=r*.0193+n*.1192+t*.9505;return[a*100,s*100,i*100]};c.rgb.lab=function(e){var r=c.rgb.xyz(e),n=r[0],t=r[1],a=r[2],s,i,l;return n/=95.047,t/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*t-16,i=500*(n-t),l=200*(t-a),[s,i,l]};c.hsl.rgb=function(e){var r=e[0]/360,n=e[1]/100,t=e[2]/100,a,s,i,l,h;if(n===0)return h=t*255,[h,h,h];t<.5?s=t*(1+n):s=t+n-t*n,a=2*t-s,l=[0,0,0];for(var o=0;o<3;o++)i=r+1/3*-(o-1),i<0&&i++,i>1&&i--,6*i<1?h=a+(s-a)*6*i:2*i<1?h=s:3*i<2?h=a+(s-a)*(2/3-i)*6:h=a,l[o]=h*255;return l};c.hsl.hsv=function(e){var r=e[0],n=e[1]/100,t=e[2]/100,a=n,s=Math.max(t,.01),i,l;return t*=2,n*=t<=1?t:2-t,a*=s<=1?s:2-s,l=(t+n)/2,i=t===0?2*a/(s+a):2*n/(t+n),[r,i*100,l*100]};c.hsv.rgb=function(e){var r=e[0]/60,n=e[1]/100,t=e[2]/100,a=Math.floor(r)%6,s=r-Math.floor(r),i=255*t*(1-n),l=255*t*(1-n*s),h=255*t*(1-n*(1-s));switch(t*=255,a){case 0:return[t,h,i];case 1:return[l,t,i];case 2:return[i,t,h];case 3:return[i,l,t];case 4:return[h,i,t];case 5:return[t,i,l]}};c.hsv.hsl=function(e){var r=e[0],n=e[1]/100,t=e[2]/100,a=Math.max(t,.01),s,i,l;return l=(2-n)*t,s=(2-n)*a,i=n*a,i/=s<=1?s:2-s,i=i||0,l/=2,[r,i*100,l*100]};c.hwb.rgb=function(e){var r=e[0]/360,n=e[1]/100,t=e[2]/100,a=n+t,s,i,l,h;a>1&&(n/=a,t/=a),s=Math.floor(6*r),i=1-t,l=6*r-s,s&1&&(l=1-l),h=n+l*(i-n);var o,u,f;switch(s){default:case 6:case 0:o=i,u=h,f=n;break;case 1:o=h,u=i,f=n;break;case 2:o=n,u=i,f=h;break;case 3:o=n,u=h,f=i;break;case 4:o=h,u=n,f=i;break;case 5:o=i,u=n,f=h;break}return[o*255,u*255,f*255]};c.cmyk.rgb=function(e){var r=e[0]/100,n=e[1]/100,t=e[2]/100,a=e[3]/100,s,i,l;return s=1-Math.min(1,r*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),l=1-Math.min(1,t*(1-a)+a),[s*255,i*255,l*255]};c.xyz.rgb=function(e){var r=e[0]/100,n=e[1]/100,t=e[2]/100,a,s,i;return a=r*3.2406+n*-1.5372+t*-.4986,s=r*-.9689+n*1.8758+t*.0415,i=r*.0557+n*-.204+t*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[a*255,s*255,i*255]};c.xyz.lab=function(e){var r=e[0],n=e[1],t=e[2],a,s,i;return r/=95.047,n/=100,t/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,a=116*n-16,s=500*(r-n),i=200*(n-t),[a,s,i]};c.lab.xyz=function(e){var r=e[0],n=e[1],t=e[2],a,s,i;s=(r+16)/116,a=n/500+s,i=s-t/200;var l=Math.pow(s,3),h=Math.pow(a,3),o=Math.pow(i,3);return s=l>.008856?l:(s-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,a*=95.047,s*=100,i*=108.883,[a,s,i]};c.lab.lch=function(e){var r=e[0],n=e[1],t=e[2],a,s,i;return a=Math.atan2(t,n),s=a*360/2/Math.PI,s<0&&(s+=360),i=Math.sqrt(n*n+t*t),[r,i,s]};c.lch.lab=function(e){var r=e[0],n=e[1],t=e[2],a,s,i;return i=t/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i),[r,a,s]};c.rgb.ansi16=function(e){var r=e[0],n=e[1],t=e[2],a=1 in arguments?arguments[1]:c.rgb.hsv(e)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(t/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(s+=60),s};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){var r=e[0],n=e[1],t=e[2];if(r===n&&n===t)return r<8?16:r>248?231:Math.round((r-8)/247*24)+232;var a=16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(t/255*5);return a};c.ansi16.rgb=function(e){var r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];var n=(~~(e>50)+1)*.5,t=(r&1)*n*255,a=(r>>1&1)*n*255,s=(r>>2&1)*n*255;return[t,a,s]};c.ansi256.rgb=function(e){if(e>=232){var r=(e-232)*10+8;return[r,r,r]}e-=16;var n,t=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,s=n%6/5*255;return[t,a,s]};c.rgb.hex=function(e){var r=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};c.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var n=r[0];r[0].length===3&&(n=n.split("").map(function(l){return l+l}).join(""));var t=parseInt(n,16),a=t>>16&255,s=t>>8&255,i=t&255;return[a,s,i]};c.rgb.hcg=function(e){var r=e[0]/255,n=e[1]/255,t=e[2]/255,a=Math.max(Math.max(r,n),t),s=Math.min(Math.min(r,n),t),i=a-s,l,h;return i<1?l=s/(1-i):l=0,i<=0?h=0:a===r?h=(n-t)/i%6:a===n?h=2+(t-r)/i:h=4+(r-n)/i+4,h/=6,h%=1,[h*360,i*100,l*100]};c.hsl.hcg=function(e){var r=e[1]/100,n=e[2]/100,t=1,a=0;return n<.5?t=2*r*n:t=2*r*(1-n),t<1&&(a=(n-.5*t)/(1-t)),[e[0],t*100,a*100]};c.hsv.hcg=function(e){var r=e[1]/100,n=e[2]/100,t=r*n,a=0;return t<1&&(a=(n-t)/(1-t)),[e[0],t*100,a*100]};c.hcg.rgb=function(e){var r=e[0]/360,n=e[1]/100,t=e[2]/100;if(n===0)return[t*255,t*255,t*255];var a=[0,0,0],s=r%1*6,i=s%1,l=1-i,h=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return h=(1-n)*t,[(n*a[0]+h)*255,(n*a[1]+h)*255,(n*a[2]+h)*255]};c.hcg.hsv=function(e){var r=e[1]/100,n=e[2]/100,t=r+n*(1-r),a=0;return t>0&&(a=r/t),[e[0],a*100,t*100]};c.hcg.hsl=function(e){var r=e[1]/100,n=e[2]/100,t=n*(1-r)+.5*r,a=0;return t>0&&t<.5?a=r/(2*t):t>=.5&&t<1&&(a=r/(2*(1-t))),[e[0],a*100,t*100]};c.hcg.hwb=function(e){var r=e[1]/100,n=e[2]/100,t=r+n*(1-r);return[e[0],(t-r)*100,(1-t)*100]};c.hwb.hcg=function(e){var r=e[1]/100,n=e[2]/100,t=1-n,a=t-r,s=0;return a<1&&(s=(t-a)/(1-a)),[e[0],a*100,s*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=c.gray.hsv=function(e){return[0,0,e[0]]};c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){var r=Math.round(e[0]/100*255)&255,n=(r<<16)+(r<<8)+r,t=n.toString(16).toUpperCase();return"000000".substring(t.length)+t};c.rgb.gray=function(e){var r=(e[0]+e[1]+e[2])/3;return[r/255*100]};var V=I;function be(){for(var e={},r=Object.keys(V),n=r.length,t=0;t<n;t++)e[r[t]]={distance:-1,parent:null};return e}function pe(e){var r=be(),n=[e];for(r[e].distance=0;n.length;)for(var t=n.pop(),a=Object.keys(V[t]),s=a.length,i=0;i<s;i++){var l=a[i],h=r[l];h.distance===-1&&(h.distance=r[t].distance+1,h.parent=t,n.unshift(l))}return r}function me(e,r){return function(n){return r(e(n))}}function ye(e,r){for(var n=[r[e].parent,e],t=V[r[e].parent][e],a=r[e].parent;r[a].parent;)n.unshift(r[a].parent),t=me(V[r[a].parent][a],t),a=r[a].parent;return t.conversion=n,t}var we=function(e){for(var r=pe(e),n={},t=Object.keys(r),a=t.length,s=0;s<a;s++){var i=t[s],l=r[i];l.parent!==null&&(n[i]=ye(i,r))}return n},P=I,Ce=we,E={},ke=Object.keys(P);function Fe(e){var r=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function Me(e){var r=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var t=e(n);if(typeof t=="object")for(var a=t.length,s=0;s<a;s++)t[s]=Math.round(t[s]);return t};return"conversion"in e&&(r.conversion=e.conversion),r}ke.forEach(function(e){E[e]={},Object.defineProperty(E[e],"channels",{value:P[e].channels}),Object.defineProperty(E[e],"labels",{value:P[e].labels});var r=Ce(e),n=Object.keys(r);n.forEach(function(t){var a=r[t];E[e][t]=Me(a),E[e][t].raw=Fe(a)})});var Se=E,q=Z,xe={getRgba:U,getHsla:H,getRgb:Ae,getHsl:Ee,getHwb:X,getAlpha:Oe,hexString:_e,rgbString:Ie,rgbaString:Y,percentString:Ve,percentaString:ee,hslString:je,hslaString:re,hwbString:$e,keyword:Re};function U(e){if(e){var r=/^#([a-fA-F0-9]{3})$/,n=/^#([a-fA-F0-9]{6})$/,t=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/(\D+)/,i=[0,0,0],l=1,h=e.match(r);if(h){h=h[1];for(var o=0;o<i.length;o++)i[o]=parseInt(h[o]+h[o],16)}else if(h=e.match(n)){h=h[1];for(var o=0;o<i.length;o++)i[o]=parseInt(h.slice(o*2,o*2+2),16)}else if(h=e.match(t)){for(var o=0;o<i.length;o++)i[o]=parseInt(h[o+1]);l=parseFloat(h[4])}else if(h=e.match(a)){for(var o=0;o<i.length;o++)i[o]=Math.round(parseFloat(h[o+1])*2.55);l=parseFloat(h[4])}else if(h=e.match(s)){if(h[1]=="transparent")return[0,0,0,0];if(i=q[h[1]],!i)return}for(var o=0;o<i.length;o++)i[o]=C(i[o],0,255);return!l&&l!=0?l=1:l=C(l,0,1),i[3]=l,i}}function H(e){if(e){var r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(r);if(n){var t=parseFloat(n[4]),a=C(parseInt(n[1]),0,360),s=C(parseFloat(n[2]),0,100),i=C(parseFloat(n[3]),0,100),l=C(isNaN(t)?1:t,0,1);return[a,s,i,l]}}}function X(e){if(e){var r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(r);if(n){var t=parseFloat(n[4]),a=C(parseInt(n[1]),0,360),s=C(parseFloat(n[2]),0,100),i=C(parseFloat(n[3]),0,100),l=C(isNaN(t)?1:t,0,1);return[a,s,i,l]}}}function Ae(e){var r=U(e);return r&&r.slice(0,3)}function Ee(e){var r=H(e);return r&&r.slice(0,3)}function Oe(e){var r=U(e);if(r)return r[3];if(r=H(e))return r[3];if(r=X(e))return r[3]}function _e(e){return"#"+R(e[0])+R(e[1])+R(e[2])}function Ie(e,r){return r<1||e[3]&&e[3]<1?Y(e,r):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function Y(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+r+")"}function Ve(e,r){if(r<1||e[3]&&e[3]<1)return ee(e,r);var n=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+t+"%, "+a+"%)"}function ee(e,r){var n=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgba("+n+"%, "+t+"%, "+a+"%, "+(r||e[3]||1)+")"}function je(e,r){return r<1||e[3]&&e[3]<1?re(e,r):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function re(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+r+")"}function $e(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(r!==void 0&&r!==1?", "+r:"")+")"}function Re(e){return ne[e.slice(0,3)]}function C(e,r,n){return Math.min(Math.max(r,e),n)}function R(e){var r=e.toString(16).toUpperCase();return r.length<2?"0"+r:r}var ne={};for(var J in q)ne[q[J]]=J;var Ne=T,Te=Se,w=xe,k=function(e){if(e instanceof k)return e;if(!(this instanceof k))return new k(e);this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var r;if(typeof e=="string")if(r=w.getRgba(e),r)this.setValues("rgb",r);else if(r=w.getHsla(e))this.setValues("hsl",r);else if(r=w.getHwb(e))this.setValues("hwb",r);else throw new Error('Unable to parse color from string "'+e+'"');else if(typeof e=="object")if(r=e,r.r!==void 0||r.red!==void 0)this.setValues("rgb",r);else if(r.l!==void 0||r.lightness!==void 0)this.setValues("hsl",r);else if(r.v!==void 0||r.value!==void 0)this.setValues("hsv",r);else if(r.w!==void 0||r.whiteness!==void 0)this.setValues("hwb",r);else if(r.c!==void 0||r.cyan!==void 0)this.setValues("cmyk",r);else throw new Error("Unable to parse color from object "+JSON.stringify(e))};k.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return this.values.alpha!==1?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values.rgb;return e.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,r=[],n=0;n<3;n++)r[n]=e[n]/255;return r.push(this.values.alpha),r},hslaArray:function(){var e=this.values.hsl;return e.concat([this.values.alpha])},alpha:function(e){return e===void 0?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return w.hexString(this.values.rgb)},rgbString:function(){return w.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return w.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return w.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return w.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return w.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return w.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return w.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,r=[],n=0;n<e.length;n++){var t=e[n]/255;r[n]=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast:function(e){var r=this.luminosity(),n=e.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level:function(e){var r=this.contrast(e);return r>=7.1?"AAA":r>=4.5?"AA":""},dark:function(){var e=this.values.rgb,r=(e[0]*299+e[1]*587+e[2]*114)/1e3;return r<128},light:function(){return!this.dark()},negate:function(){for(var e=[],r=0;r<3;r++)e[r]=255-this.values.rgb[r];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,r=e[0]*.3+e[1]*.59+e[2]*.11;return this.setValues("rgb",[r,r,r]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var r=this.values.hsl[0];return r=(r+e)%360,r=r<0?360+r:r,this.values.hsl[0]=r,this.setValues("hsl",this.values.hsl),this},mix:function(e,r){var n=this,t=e,a=r===void 0?.5:r,s=2*a-1,i=n.alpha()-t.alpha(),l=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,h=1-l;return this.rgb(l*n.red()+h*t.red(),l*n.green()+h*t.green(),l*n.blue()+h*t.blue()).alpha(n.alpha()*a+t.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e=new k;return e.values=Ne(this.values),e}};k.prototype.getValues=function(e){for(var r={},n=0;n<e.length;n++)r[e.charAt(n)]=this.values[e][n];return this.values.alpha!==1&&(r.a=this.values.alpha),r};k.prototype.setValues=function(e,r){var n={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},t={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a,s=1;if(e==="alpha")s=r;else if(r.length)this.values[e]=r.slice(0,e.length),s=r[e.length];else if(r[e.charAt(0)]!==void 0){for(a=0;a<e.length;a++)this.values[e][a]=r[e.charAt(a)];s=r.a}else if(r[n[e][0]]!==void 0){var i=n[e];for(a=0;a<e.length;a++)this.values[e][a]=r[i[a]];s=r.alpha}if(this.values.alpha=Math.max(0,Math.min(1,s===void 0?this.values.alpha:s)),e==="alpha")return!1;var l;for(a=0;a<e.length;a++)l=Math.max(0,Math.min(t[e][a],this.values[e][a])),this.values[e][a]=Math.round(l);for(var h in n)for(h!==e&&(this.values[h]=Te[e][h](this.values[e])),a=0;a<h.length;a++)l=Math.max(0,Math.min(t[h][a],this.values[h][a])),this.values[h][a]=Math.round(l);return!0};k.prototype.setSpace=function(e,r){var n=r[0];return n===void 0?this.getValues(e):(typeof n=="number"&&(n=Array.prototype.slice.call(r)),this.setValues(e,n),this)};k.prototype.setChannel=function(e,r,n){return n===void 0?this.values[e][r]:n===this.values[e][r]?this:(this.values[e][r]=n,this.setValues(e,this.values[e]),this)};var te=k,j={},Pe={get exports(){return j},set exports(e){j=e}},N,G;function qe(){if(G)return N;G=1;var e=1e3,r=e*60,n=r*60,t=n*24,a=t*7,s=t*365.25;N=function(u,f){f=f||{};var v=typeof u;if(v==="string"&&u.length>0)return i(u);if(v==="number"&&isFinite(u))return f.long?h(u):l(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(f){var v=parseFloat(f[1]),g=(f[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return v*s;case"weeks":case"week":case"w":return v*a;case"days":case"day":case"d":return v*t;case"hours":case"hour":case"hrs":case"hr":case"h":return v*n;case"minutes":case"minute":case"mins":case"min":case"m":return v*r;case"seconds":case"second":case"secs":case"sec":case"s":return v*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}function l(u){var f=Math.abs(u);return f>=t?Math.round(u/t)+"d":f>=n?Math.round(u/n)+"h":f>=r?Math.round(u/r)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function h(u){var f=Math.abs(u);return f>=t?o(u,f,t,"day"):f>=n?o(u,f,n,"hour"):f>=r?o(u,f,r,"minute"):f>=e?o(u,f,e,"second"):u+" ms"}function o(u,f,v,g){var p=f>=v*1.5;return Math.round(u/v)+" "+g+(p?"s":"")}return N}function ze(e){n.debug=n,n.default=n,n.coerce=h,n.disable=i,n.enable=s,n.enabled=l,n.humanize=qe(),Object.keys(e).forEach(function(o){n[o]=e[o]}),n.instances=[],n.names=[],n.skips=[],n.formatters={};function r(o){for(var u=0,f=0;f<o.length;f++)u=(u<<5)-u+o.charCodeAt(f),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=r;function n(o){var u;function f(){if(f.enabled){for(var v=arguments.length,g=new Array(v),p=0;p<v;p++)g[p]=arguments[p];var m=f,d=Number(new Date),_=d-(u||d);m.diff=_,m.prev=u,m.curr=d,u=d,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var b=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(S,O){if(S==="%%")return S;b++;var A=n.formatters[O];if(typeof A=="function"){var ue=g[b];S=A.call(m,ue),g.splice(b,1),b--}return S}),n.formatArgs.call(m,g);var M=m.log||n.log;M.apply(m,g)}}return f.namespace=o,f.enabled=n.enabled(o),f.useColors=n.useColors(),f.color=r(o),f.destroy=t,f.extend=a,typeof n.init=="function"&&n.init(f),n.instances.push(f),f}function t(){var o=n.instances.indexOf(this);return o!==-1?(n.instances.splice(o,1),!0):!1}function a(o,u){return n(this.namespace+(typeof u>"u"?":":u)+o)}function s(o){n.save(o),n.names=[],n.skips=[];var u,f=(typeof o=="string"?o:"").split(/[\s,]+/),v=f.length;for(u=0;u<v;u++)f[u]&&(o=f[u].replace(/\*/g,".*?"),o[0]==="-"?n.skips.push(new RegExp("^"+o.substr(1)+"$")):n.names.push(new RegExp("^"+o+"$")));for(u=0;u<n.instances.length;u++){var g=n.instances[u];g.enabled=n.enabled(g.namespace)}}function i(){n.enable("")}function l(o){if(o[o.length-1]==="*")return!0;var u,f;for(u=0,f=n.skips.length;u<f;u++)if(n.skips[u].test(o))return!1;for(u=0,f=n.names.length;u<f;u++)if(n.names[u].test(o))return!0;return!1}function h(o){return o instanceof Error?o.stack||o.message:o}return n.enable(n.load()),n}var De=ze;(function(e,r){function n(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(v){return typeof v}:n=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},n(u)}r.log=s,r.formatArgs=a,r.save=i,r.load=l,r.useColors=t,r.storage=h(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!!this.useColors){var f="color: "+this.color;u.splice(1,0,f,"color: inherit");var v=0,g=0;u[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(g=v))}),u.splice(g,0,f)}}function s(){var u;return(typeof console>"u"?"undefined":n(console))==="object"&&console.log&&(u=console).log.apply(u,arguments)}function i(u){try{u?r.storage.setItem("debug",u):r.storage.removeItem("debug")}catch{}}function l(){var u;try{u=r.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u={}.DEBUG),u}function h(){try{return localStorage}catch{}}e.exports=De(r);var o=e.exports.formatters;o.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}})(Pe,j);var Be=W,F=j("css-color-function:parse"),ae=Ue;function Ue(e){typeof e!="string"&&(e=e.toString()),F("string %s",e);function r(u){var f=u.exec(e);if(f)return e=e.slice(f[0].length),f.slice(1)}function n(){r(/^\s+/)}function t(){var u=r(/^\)/);if(u)return F("rparen"),u}function a(){var u=r(/^([\+\-\*])/);if(u){var f={};return f.type="modifier",f.value=u[0],F("modifier %o",f),f}}function s(){var u=r(/^([^\)\s]+)/);if(u){var f={};return f.type="number",f.value=u[0],F("number %o",f),f}}function i(){for(var u=[],f;f=a()||o()||s();)u.push(f),n();return F("args %o",u),u}function l(){var u=r(/^(\w+)\(/);if(u){n();var f={};return f.type="function",f.name=u[0],f.arguments=i(),t(),F("adjuster %o",f),f}}function h(){var u={};u.type="color";var f=r(/([^\)\s]+)/)[0];if(f.indexOf("(")!=-1){var v=r(/([^\)]*?\))/)[0];f=f+v}return u.value=f,n(),u}function o(){if(e.match(/^color\(/)){var u=Be("(",")",e);if(!u)throw new SyntaxError("Missing closing parenthese for '"+e+"'");if(u.body==="")throw new SyntaxError("color() function cannot be empty");e=u.body,n();var f={};f.type="function",f.name="color",f.arguments=[o()||h()],F("function arguments %o",f.arguments);for(var v;v=l();)f.arguments.push(v),n();return e=u.post,n(),F("function %o",f),f}}return o()}var ie={};(function(e){var r=te;e.red=n("red"),e.blue=n("blue"),e.green=n("green"),e.alpha=e.a=n("alpha"),e.rgb=function(){},e.hue=e.h=t("hue"),e.saturation=e.s=t("saturation"),e.lightness=e.l=t("lightness"),e.whiteness=e.w=t("whiteness"),e.blackness=e.b=t("blackness"),e.blend=function(i,l){var h=i.alpha();i.alpha(1);var o=new r(l[0].value),u=1-parseInt(l[1].value,10)/100;i.mix(o,u).alpha(h)},e.tint=function(i,l){l.unshift({type:"argument",value:"white"}),e.blend(i,l)},e.shade=function(i,l){l.unshift({type:"argument",value:"black"}),e.blend(i,l)},e.contrast=function(i,l){l.length==0&&l.push({type:"argument",value:"100%"});var h=1-parseInt(l[0].value,10)/100,o=i.luminosity()<.5?new r({h:i.hue(),w:100,b:0}):new r({h:i.hue(),w:0,b:100}),u=o,f=4.5;if(i.contrast(o)>f){var u=s(f,i,o),v=u.alpha();u.alpha(1),u.mix(o,h).alpha(v)}i.hwb(u.hwb())};function n(i){return function(l,h){var o;h[0].type=="modifier"&&(o=h.shift().value);var u=h[0].value;u.indexOf("%")!=-1?(u=parseInt(u,10)/100,o?o!="*"&&(u=l[i]()*u):u=u*(i=="alpha"?1:255)):u=Number(u),l[i](a(l[i](),u,o))}}function t(i){return function(l,h){var o;h[0].type=="modifier"&&(o=h.shift().value);var u=parseFloat(h[0].value,10);l[i](a(l[i](),u,o))}}function a(i,l,h){switch(h){case"+":return i+l;case"-":return i-l;case"*":return i*l;default:return l}}function s(i,l,h){l.hue();for(var o=l.clone(),u=l.whiteness(),f=l.blackness(),v=h.whiteness(),g=h.blackness();Math.abs(u-v)>1||Math.abs(f-g)>1;){var p=Math.round((v+u)/2),m=Math.round((g+f)/2);o.whiteness(p),o.blackness(m),o.contrast(l)>i?(v=p,g=m):(u=p,f=m)}return o}})(ie);var He=W,Le=te,Je=ae,K=ie,Ge=se;function se(e){var r=e.indexOf("color(");if(r==-1)return e;if(e=e.slice(r),e=He("(",")",e),!e)throw new SyntaxError("Missing closing parenthese for '"+e+"'");var n=Je("color("+e.body+")");return z(n)+se(e.post)}function z(e){var r=new Le(e.arguments[0].type=="function"?z(e.arguments[0]):e.arguments[0].value),n=e.arguments.slice(1);return n.forEach(function(t){var a=t.name;if(!K[a])throw new Error("Unknown <color-adjuster> '"+a+"'");t.arguments.forEach(function(s){s.type=="function"&&s.name=="color"&&(s.value=z(s),s.type="color",delete s.name)}),K[a](r,t.arguments)}),r.rgbString()}var Ke=Ge,We=ae;B.convert=Ke;B.parse=We;function Ye(e){for(const[r,n]of Object.entries(oe))e.component(r,n)}function er(e,r="light"){L("--el-color-primary",null).value=e;const n={dark:{"light-3":"shade(20%)","light-5":"shade(30%)","light-7":"shade(50%)","light-8":"shade(60%)","light-9":"shade(70%)","dark-2":"tint(20%)"},light:{"dark-2":"shade(20%)","light-3":"tint(30%)","light-5":"tint(50%)","light-7":"tint(70%)","light-8":"tint(80%)","light-9":"tint(90%)"}};Object.keys(n[r]).forEach(t=>{L("--el-color-primary-"+t,null).value=B.convert(`color(${e} ${n[r][t]})`)})}function rr(){const e=location.pathname.split("/").filter(r=>r);return e.length?e[0]:"admin"}function nr(e=""){const r=le();r.value=e||{}.VITE_DETAULT_TITLE}function tr(){return D.get("token")}function ar(e){D.set({key:"token",data:e})}function ir(){D.remove("token")}function sr(e,r=300){let n=null;return function(...t){n!=null&&(clearTimeout(n),n=null),n=setTimeout(()=>{e.call(this,...t)},r)}}function Ze(e){return e.indexOf("http://")!=-1||e.indexOf("https://")!=-1}function ur(e){return Ze(e)?e:`${location.origin}/${e}`}function or(e=""){let r=0;for(let n=0;n<e.length;n++)e.charCodeAt(n)>127||e.charCodeAt(n)==94?r+=2:r++;return r}export{D as a,ar as b,ur as c,nr as d,sr as e,or as f,tr as g,rr as h,Ze as i,ir as r,er as s,Ye as u};