@m3e/web 2.5.11 → 2.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/all.js +92 -42
  2. package/dist/all.js.map +1 -1
  3. package/dist/all.min.js +56 -56
  4. package/dist/all.min.js.map +1 -1
  5. package/dist/autocomplete.js +23 -5
  6. package/dist/autocomplete.js.map +1 -1
  7. package/dist/autocomplete.min.js +1 -1
  8. package/dist/autocomplete.min.js.map +1 -1
  9. package/dist/breadcrumb.js +1 -1
  10. package/dist/breadcrumb.js.map +1 -1
  11. package/dist/breadcrumb.min.js +1 -1
  12. package/dist/breadcrumb.min.js.map +1 -1
  13. package/dist/core.js +27 -23
  14. package/dist/core.js.map +1 -1
  15. package/dist/core.min.js +1 -1
  16. package/dist/core.min.js.map +1 -1
  17. package/dist/custom-elements.json +74 -42
  18. package/dist/fab.js +1 -1
  19. package/dist/fab.js.map +1 -1
  20. package/dist/fab.min.js +1 -1
  21. package/dist/fab.min.js.map +1 -1
  22. package/dist/form-field.js +1 -1
  23. package/dist/form-field.js.map +1 -1
  24. package/dist/form-field.min.js +2 -2
  25. package/dist/form-field.min.js.map +1 -1
  26. package/dist/option.js +12 -2
  27. package/dist/option.js.map +1 -1
  28. package/dist/option.min.js +1 -1
  29. package/dist/option.min.js.map +1 -1
  30. package/dist/select.js +18 -2
  31. package/dist/select.js.map +1 -1
  32. package/dist/select.min.js +1 -1
  33. package/dist/select.min.js.map +1 -1
  34. package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
  35. package/dist/src/core/shared/mixins/LinkButton.d.ts.map +1 -1
  36. package/dist/src/core/shared/tokens/DesignToken.d.ts +3 -0
  37. package/dist/src/core/shared/tokens/DesignToken.d.ts.map +1 -1
  38. package/dist/src/core/shared/tokens/MeasurementToken.d.ts +13 -7
  39. package/dist/src/core/shared/tokens/MeasurementToken.d.ts.map +1 -1
  40. package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
  41. package/dist/src/option/OptionElement.d.ts.map +1 -1
  42. package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
  43. package/dist/src/select/SelectElement.d.ts.map +1 -1
  44. package/dist/src/theme/ThemeElement.d.ts.map +1 -1
  45. package/dist/theme.js +10 -7
  46. package/dist/theme.js.map +1 -1
  47. package/dist/theme.min.js +6 -6
  48. package/dist/theme.min.js.map +1 -1
  49. package/package.json +1 -1
package/dist/theme.min.js CHANGED
@@ -36,7 +36,7 @@ function m(e){return e<0?-1:0===e?0:1}function d(e,t,r){return(1-r)*e+r*t}functi
36
36
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37
37
  * See the License for the specific language governing permissions and
38
38
  * limitations under the License.
39
- */const P=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],v=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],S=[95.047,100,108.883];function b(e,t,r){return(255<<24|(255&e)<<16|(255&t)<<8|255&r)>>>0}function k(e){return b(F(e[0]),F(e[1]),F(e[2]))}function w(e){return e>>24&255}function T(e){return e>>16&255}function A(e){return e>>8&255}function D(e){return 255&e}function x(e,t,r){const a=v,n=a[0][0]*e+a[0][1]*t+a[0][2]*r,o=a[1][0]*e+a[1][1]*t+a[1][2]*r,i=a[2][0]*e+a[2][1]*t+a[2][2]*r;return b(F(n),F(o),F(i))}function M(e){const t=B(T(e)),r=B(A(e)),a=B(D(e)),n=P,o=n[0][0]*t+n[0][1]*r+n[0][2]*a,i=n[1][0]*t+n[1][1]*r+n[1][2]*a,s=n[2][0]*t+n[2][1]*r+n[2][2]*a,c=i/S[1],u=s/S[2],h=H(o/S[0]),l=H(c);return[116*l-16,500*(h-l),200*(l-H(u))]}function E(e){const t=function(e){return C([B(T(e)),B(A(e)),B(D(e))],P)}(e)[1];return 116*H(t/100)-16}function I(e){return 100*R((e+16)/116)}function _(e){return 116*H(e/100)-16}function B(e){const t=e/255;return t<=.040449936?t/12.92*100:100*Math.pow((t+.055)/1.055,2.4)}function F(e){const t=e/100;let r=0;return r=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,a=0,n=255,(o=Math.round(255*r))<a?a:o>n?n:o;var a,n,o}function H(e){const t=24389/27;return e>216/24389?Math.pow(e,1/3):(t*e+16)/116}function R(e){const t=e*e*e;return t>216/24389?t:(116*e-16)/(24389/27)}
39
+ */const P=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],v=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],S=[95.047,100,108.883];function b(e,t,r){return(255<<24|(255&e)<<16|(255&t)<<8|255&r)>>>0}function k(e){return b(F(e[0]),F(e[1]),F(e[2]))}function w(e){return e>>24&255}function T(e){return e>>16&255}function A(e){return e>>8&255}function x(e){return 255&e}function D(e,t,r){const a=v,n=a[0][0]*e+a[0][1]*t+a[0][2]*r,o=a[1][0]*e+a[1][1]*t+a[1][2]*r,i=a[2][0]*e+a[2][1]*t+a[2][2]*r;return b(F(n),F(o),F(i))}function M(e){const t=B(T(e)),r=B(A(e)),a=B(x(e)),n=P,o=n[0][0]*t+n[0][1]*r+n[0][2]*a,i=n[1][0]*t+n[1][1]*r+n[1][2]*a,s=n[2][0]*t+n[2][1]*r+n[2][2]*a,c=i/S[1],u=s/S[2],h=H(o/S[0]),l=H(c);return[116*l-16,500*(h-l),200*(l-H(u))]}function E(e){const t=function(e){return C([B(T(e)),B(A(e)),B(x(e))],P)}(e)[1];return 116*H(t/100)-16}function I(e){return 100*R((e+16)/116)}function _(e){return 116*H(e/100)-16}function B(e){const t=e/255;return t<=.040449936?t/12.92*100:100*Math.pow((t+.055)/1.055,2.4)}function F(e){const t=e/100;let r=0;return r=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,a=0,n=255,(o=Math.round(255*r))<a?a:o>n?n:o;var a,n,o}function H(e){const t=24389/27;return e>216/24389?Math.pow(e,1/3):(t*e+16)/116}function R(e){const t=e*e*e;return t>216/24389?t:(116*e-16)/(24389/27)}
40
40
  /**
41
41
  * @license
42
42
  * Copyright 2021 Google LLC
@@ -69,7 +69,7 @@ function m(e){return e<0?-1:0===e?0:1}function d(e,t,r){return(1-r)*e+r*t}functi
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
71
  */
72
- class L{constructor(e,t,r,a,n,o,i,s,c){this.hue=e,this.chroma=t,this.j=r,this.q=a,this.m=n,this.s=o,this.jstar=i,this.astar=s,this.bstar=c}distance(e){const t=this.jstar-e.jstar,r=this.astar-e.astar,a=this.bstar-e.bstar,n=Math.sqrt(t*t+r*r+a*a);return 1.41*Math.pow(n,.63)}static fromInt(e){return L.fromIntInViewingConditions(e,V.DEFAULT)}static fromIntInViewingConditions(e,t){const r=(65280&e)>>8,a=255&e,n=B((16711680&e)>>16),o=B(r),i=B(a),s=.41233895*n+.35762064*o+.18051042*i,c=.2126*n+.7152*o+.0722*i,u=.01932141*n+.11916382*o+.95034478*i,h=.401288*s+.650173*c-.051461*u,l=-.250268*s+1.204414*c+.045854*u,d=-.002079*s+.048952*c+.953127*u,f=t.rgbD[0]*h,p=t.rgbD[1]*l,y=t.rgbD[2]*d,C=Math.pow(t.fl*Math.abs(f)/100,.42),P=Math.pow(t.fl*Math.abs(p)/100,.42),v=Math.pow(t.fl*Math.abs(y)/100,.42),S=400*m(f)*C/(C+27.13),b=400*m(p)*P/(P+27.13),k=400*m(y)*v/(v+27.13),w=(11*S+-12*b+k)/11,T=(S+b-2*k)/9,A=(20*S+20*b+21*k)/20,D=(40*S+20*b+k)/20,x=g(180*Math.atan2(T,w)/Math.PI),M=x*Math.PI/180,E=D*t.nbb,I=100*Math.pow(E/t.aw,t.c*t.z),_=4/t.c*Math.sqrt(I/100)*(t.aw+4)*t.fLRoot,F=x<20.14?x+360:x,H=5e4/13*(.25*(Math.cos(F*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+T*T)/(A+.305),R=Math.pow(H,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),V=R*Math.sqrt(I/100),O=V*t.fLRoot,N=50*Math.sqrt(R*t.c/(t.aw+4)),U=(1+100*.007)*I/(1+.007*I),z=1/.0228*Math.log(1+.0228*O),$=z*Math.cos(M),K=z*Math.sin(M);return new L(x,V,I,_,O,N,U,$,K)}static fromJch(e,t,r){return L.fromJchInViewingConditions(e,t,r,V.DEFAULT)}static fromJchInViewingConditions(e,t,r,a){const n=4/a.c*Math.sqrt(e/100)*(a.aw+4)*a.fLRoot,o=t*a.fLRoot,i=t/Math.sqrt(e/100),s=50*Math.sqrt(i*a.c/(a.aw+4)),c=r*Math.PI/180,u=(1+100*.007)*e/(1+.007*e),h=1/.0228*Math.log(1+.0228*o),l=h*Math.cos(c),m=h*Math.sin(c);return new L(r,t,e,n,o,s,u,l,m)}static fromUcs(e,t,r){return L.fromUcsInViewingConditions(e,t,r,V.DEFAULT)}static fromUcsInViewingConditions(e,t,r,a){const n=t,o=r,i=Math.sqrt(n*n+o*o),s=(Math.exp(.0228*i)-1)/.0228/a.fLRoot;let c=Math.atan2(o,n)*(180/Math.PI);c<0&&(c+=360);const u=e/(1-.007*(e-100));return L.fromJchInViewingConditions(u,s,c,a)}toInt(){return this.viewed(V.DEFAULT)}viewed(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=e.aw*Math.pow(this.j/100,1/e.c/e.z),i=n*(5e4/13)*e.nc*e.ncb,s=o/e.nbb,c=Math.sin(a),u=Math.cos(a),h=23*(s+.305)*r/(23*i+11*r*u+108*r*c),l=h*u,d=h*c,f=(460*s+451*l+288*d)/1403,p=(460*s-891*l-261*d)/1403,g=(460*s-220*l-6300*d)/1403,y=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=m(f)*(100/e.fl)*Math.pow(y,1/.42),P=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),v=m(p)*(100/e.fl)*Math.pow(P,1/.42),S=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=m(g)*(100/e.fl)*Math.pow(S,1/.42),k=C/e.rgbD[0],w=v/e.rgbD[1],T=b/e.rgbD[2];return x(1.86206786*k-1.01125463*w+.14918677*T,.38752654*k+.62144744*w-.00897398*T,-.0158415*k-.03412294*w+1.04996444*T)}static fromXyzInViewingConditions(e,t,r,a){const n=.401288*e+.650173*t-.051461*r,o=-.250268*e+1.204414*t+.045854*r,i=-.002079*e+.048952*t+.953127*r,s=a.rgbD[0]*n,c=a.rgbD[1]*o,u=a.rgbD[2]*i,h=Math.pow(a.fl*Math.abs(s)/100,.42),l=Math.pow(a.fl*Math.abs(c)/100,.42),d=Math.pow(a.fl*Math.abs(u)/100,.42),f=400*m(s)*h/(h+27.13),p=400*m(c)*l/(l+27.13),g=400*m(u)*d/(d+27.13),y=(11*f+-12*p+g)/11,C=(f+p-2*g)/9,P=(20*f+20*p+21*g)/20,v=(40*f+20*p+g)/20,S=180*Math.atan2(C,y)/Math.PI,b=S<0?S+360:S>=360?S-360:S,k=b*Math.PI/180,w=v*a.nbb,T=100*Math.pow(w/a.aw,a.c*a.z),A=4/a.c*Math.sqrt(T/100)*(a.aw+4)*a.fLRoot,D=b<20.14?b+360:b,x=5e4/13*(1/4*(Math.cos(D*Math.PI/180+2)+3.8))*a.nc*a.ncb*Math.sqrt(y*y+C*C)/(P+.305),M=Math.pow(x,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),E=M*Math.sqrt(T/100),I=E*a.fLRoot,_=50*Math.sqrt(M*a.c/(a.aw+4)),B=(1+100*.007)*T/(1+.007*T),F=Math.log(1+.0228*I)/.0228,H=F*Math.cos(k),R=F*Math.sin(k);return new L(b,E,T,A,I,_,B,H,R)}xyzInViewingConditions(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=e.aw*Math.pow(this.j/100,1/e.c/e.z),i=n*(5e4/13)*e.nc*e.ncb,s=o/e.nbb,c=Math.sin(a),u=Math.cos(a),h=23*(s+.305)*r/(23*i+11*r*u+108*r*c),l=h*u,d=h*c,f=(460*s+451*l+288*d)/1403,p=(460*s-891*l-261*d)/1403,g=(460*s-220*l-6300*d)/1403,y=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=m(f)*(100/e.fl)*Math.pow(y,1/.42),P=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),v=m(p)*(100/e.fl)*Math.pow(P,1/.42),S=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=m(g)*(100/e.fl)*Math.pow(S,1/.42),k=C/e.rgbD[0],w=v/e.rgbD[1],T=b/e.rgbD[2];return[1.86206786*k-1.01125463*w+.14918677*T,.38752654*k+.62144744*w-.00897398*T,-.0158415*k-.03412294*w+1.04996444*T]}}
72
+ class L{constructor(e,t,r,a,n,o,i,s,c){this.hue=e,this.chroma=t,this.j=r,this.q=a,this.m=n,this.s=o,this.jstar=i,this.astar=s,this.bstar=c}distance(e){const t=this.jstar-e.jstar,r=this.astar-e.astar,a=this.bstar-e.bstar,n=Math.sqrt(t*t+r*r+a*a);return 1.41*Math.pow(n,.63)}static fromInt(e){return L.fromIntInViewingConditions(e,V.DEFAULT)}static fromIntInViewingConditions(e,t){const r=(65280&e)>>8,a=255&e,n=B((16711680&e)>>16),o=B(r),i=B(a),s=.41233895*n+.35762064*o+.18051042*i,c=.2126*n+.7152*o+.0722*i,u=.01932141*n+.11916382*o+.95034478*i,h=.401288*s+.650173*c-.051461*u,l=-.250268*s+1.204414*c+.045854*u,d=-.002079*s+.048952*c+.953127*u,f=t.rgbD[0]*h,p=t.rgbD[1]*l,y=t.rgbD[2]*d,C=Math.pow(t.fl*Math.abs(f)/100,.42),P=Math.pow(t.fl*Math.abs(p)/100,.42),v=Math.pow(t.fl*Math.abs(y)/100,.42),S=400*m(f)*C/(C+27.13),b=400*m(p)*P/(P+27.13),k=400*m(y)*v/(v+27.13),w=(11*S+-12*b+k)/11,T=(S+b-2*k)/9,A=(20*S+20*b+21*k)/20,x=(40*S+20*b+k)/20,D=g(180*Math.atan2(T,w)/Math.PI),M=D*Math.PI/180,E=x*t.nbb,I=100*Math.pow(E/t.aw,t.c*t.z),_=4/t.c*Math.sqrt(I/100)*(t.aw+4)*t.fLRoot,F=D<20.14?D+360:D,H=5e4/13*(.25*(Math.cos(F*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+T*T)/(A+.305),R=Math.pow(H,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),V=R*Math.sqrt(I/100),O=V*t.fLRoot,N=50*Math.sqrt(R*t.c/(t.aw+4)),U=(1+100*.007)*I/(1+.007*I),z=1/.0228*Math.log(1+.0228*O),$=z*Math.cos(M),K=z*Math.sin(M);return new L(D,V,I,_,O,N,U,$,K)}static fromJch(e,t,r){return L.fromJchInViewingConditions(e,t,r,V.DEFAULT)}static fromJchInViewingConditions(e,t,r,a){const n=4/a.c*Math.sqrt(e/100)*(a.aw+4)*a.fLRoot,o=t*a.fLRoot,i=t/Math.sqrt(e/100),s=50*Math.sqrt(i*a.c/(a.aw+4)),c=r*Math.PI/180,u=(1+100*.007)*e/(1+.007*e),h=1/.0228*Math.log(1+.0228*o),l=h*Math.cos(c),m=h*Math.sin(c);return new L(r,t,e,n,o,s,u,l,m)}static fromUcs(e,t,r){return L.fromUcsInViewingConditions(e,t,r,V.DEFAULT)}static fromUcsInViewingConditions(e,t,r,a){const n=t,o=r,i=Math.sqrt(n*n+o*o),s=(Math.exp(.0228*i)-1)/.0228/a.fLRoot;let c=Math.atan2(o,n)*(180/Math.PI);c<0&&(c+=360);const u=e/(1-.007*(e-100));return L.fromJchInViewingConditions(u,s,c,a)}toInt(){return this.viewed(V.DEFAULT)}viewed(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=e.aw*Math.pow(this.j/100,1/e.c/e.z),i=n*(5e4/13)*e.nc*e.ncb,s=o/e.nbb,c=Math.sin(a),u=Math.cos(a),h=23*(s+.305)*r/(23*i+11*r*u+108*r*c),l=h*u,d=h*c,f=(460*s+451*l+288*d)/1403,p=(460*s-891*l-261*d)/1403,g=(460*s-220*l-6300*d)/1403,y=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=m(f)*(100/e.fl)*Math.pow(y,1/.42),P=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),v=m(p)*(100/e.fl)*Math.pow(P,1/.42),S=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=m(g)*(100/e.fl)*Math.pow(S,1/.42),k=C/e.rgbD[0],w=v/e.rgbD[1],T=b/e.rgbD[2];return D(1.86206786*k-1.01125463*w+.14918677*T,.38752654*k+.62144744*w-.00897398*T,-.0158415*k-.03412294*w+1.04996444*T)}static fromXyzInViewingConditions(e,t,r,a){const n=.401288*e+.650173*t-.051461*r,o=-.250268*e+1.204414*t+.045854*r,i=-.002079*e+.048952*t+.953127*r,s=a.rgbD[0]*n,c=a.rgbD[1]*o,u=a.rgbD[2]*i,h=Math.pow(a.fl*Math.abs(s)/100,.42),l=Math.pow(a.fl*Math.abs(c)/100,.42),d=Math.pow(a.fl*Math.abs(u)/100,.42),f=400*m(s)*h/(h+27.13),p=400*m(c)*l/(l+27.13),g=400*m(u)*d/(d+27.13),y=(11*f+-12*p+g)/11,C=(f+p-2*g)/9,P=(20*f+20*p+21*g)/20,v=(40*f+20*p+g)/20,S=180*Math.atan2(C,y)/Math.PI,b=S<0?S+360:S>=360?S-360:S,k=b*Math.PI/180,w=v*a.nbb,T=100*Math.pow(w/a.aw,a.c*a.z),A=4/a.c*Math.sqrt(T/100)*(a.aw+4)*a.fLRoot,x=b<20.14?b+360:b,D=5e4/13*(1/4*(Math.cos(x*Math.PI/180+2)+3.8))*a.nc*a.ncb*Math.sqrt(y*y+C*C)/(P+.305),M=Math.pow(D,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),E=M*Math.sqrt(T/100),I=E*a.fLRoot,_=50*Math.sqrt(M*a.c/(a.aw+4)),B=(1+100*.007)*T/(1+.007*T),F=Math.log(1+.0228*I)/.0228,H=F*Math.cos(k),R=F*Math.sin(k);return new L(b,E,T,A,I,_,B,H,R)}xyzInViewingConditions(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),a=this.hue*Math.PI/180,n=.25*(Math.cos(a+2)+3.8),o=e.aw*Math.pow(this.j/100,1/e.c/e.z),i=n*(5e4/13)*e.nc*e.ncb,s=o/e.nbb,c=Math.sin(a),u=Math.cos(a),h=23*(s+.305)*r/(23*i+11*r*u+108*r*c),l=h*u,d=h*c,f=(460*s+451*l+288*d)/1403,p=(460*s-891*l-261*d)/1403,g=(460*s-220*l-6300*d)/1403,y=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),C=m(f)*(100/e.fl)*Math.pow(y,1/.42),P=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),v=m(p)*(100/e.fl)*Math.pow(P,1/.42),S=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=m(g)*(100/e.fl)*Math.pow(S,1/.42),k=C/e.rgbD[0],w=v/e.rgbD[1],T=b/e.rgbD[2];return[1.86206786*k-1.01125463*w+.14918677*T,.38752654*k+.62144744*w-.00897398*T,-.0158415*k-.03412294*w+1.04996444*T]}}
73
73
  /**
74
74
  * @license
75
75
  * Copyright 2021 Google LLC
@@ -345,7 +345,7 @@ class ue{static maybeFallbackSpecVersion(e,t){switch(t){case ee.EXPRESSIVE:case
345
345
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
346
346
  * See the License for the specific language governing permissions and
347
347
  * limitations under the License.
348
- */class ge{fromInt(e){return M(e)}toInt(e){return function(e,t,r){const a=S,n=(e+16)/116,o=n-r/200,i=R(t/500+n),s=R(n),c=R(o);return x(i*a[0],s*a[1],c*a[2])}(e[0],e[1],e[2])}distance(e,t){const r=e[0]-t[0],a=e[1]-t[1],n=e[2]-t[2];return r*r+a*a+n*n}}
348
+ */class ge{fromInt(e){return M(e)}toInt(e){return function(e,t,r){const a=S,n=(e+16)/116,o=n-r/200,i=R(t/500+n),s=R(n),c=R(o);return D(i*a[0],s*a[1],c*a[2])}(e[0],e[1],e[2])}distance(e,t){const r=e[0]-t[0],a=e[1]-t[1],n=e[2]-t[2];return r*r+a*a+n*n}}
349
349
  /**
350
350
  * @license
351
351
  * Copyright 2021 Google LLC
@@ -393,7 +393,7 @@ class ue{static maybeFallbackSpecVersion(e,t){switch(t){case ee.EXPRESSIVE:case
393
393
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
394
394
  * See the License for the specific language governing permissions and
395
395
  * limitations under the License.
396
- */const ve=33,Se=35937,be="red",ke="green",we="blue";class Te{constructor(e=[],t=[],r=[],a=[],n=[],o=[]){this.weights=e,this.momentsR=t,this.momentsG=r,this.momentsB=a,this.moments=n,this.cubes=o}quantize(e,t){this.constructHistogram(e),this.computeMoments();const r=this.createBoxes(t);return this.createResult(r.resultCount)}constructHistogram(e){this.weights=Array.from({length:Se}).fill(0),this.momentsR=Array.from({length:Se}).fill(0),this.momentsG=Array.from({length:Se}).fill(0),this.momentsB=Array.from({length:Se}).fill(0),this.moments=Array.from({length:Se}).fill(0);const t=Pe.quantize(e);for(const[e,r]of t.entries()){const t=T(e),a=A(e),n=D(e),o=3,i=1+(t>>o),s=1+(a>>o),c=1+(n>>o),u=this.getIndex(i,s,c);this.weights[u]=(this.weights[u]??0)+r,this.momentsR[u]+=r*t,this.momentsG[u]+=r*a,this.momentsB[u]+=r*n,this.moments[u]+=r*(t*t+a*a+n*n)}}computeMoments(){for(let e=1;e<ve;e++){const t=Array.from({length:ve}).fill(0),r=Array.from({length:ve}).fill(0),a=Array.from({length:ve}).fill(0),n=Array.from({length:ve}).fill(0),o=Array.from({length:ve}).fill(0);for(let i=1;i<ve;i++){let s=0,c=0,u=0,h=0,l=0;for(let m=1;m<ve;m++){const d=this.getIndex(e,i,m);s+=this.weights[d],c+=this.momentsR[d],u+=this.momentsG[d],h+=this.momentsB[d],l+=this.moments[d],t[m]+=s,r[m]+=c,a[m]+=u,n[m]+=h,o[m]+=l;const f=this.getIndex(e-1,i,m);this.weights[d]=this.weights[f]+t[m],this.momentsR[d]=this.momentsR[f]+r[m],this.momentsG[d]=this.momentsG[f]+a[m],this.momentsB[d]=this.momentsB[f]+n[m],this.moments[d]=this.moments[f]+o[m]}}}}createBoxes(e){this.cubes=Array.from({length:e}).fill(0).map(()=>new Ae);const t=Array.from({length:e}).fill(0);this.cubes[0].r0=0,this.cubes[0].g0=0,this.cubes[0].b0=0,this.cubes[0].r1=32,this.cubes[0].g1=32,this.cubes[0].b1=32;let r=e,a=0;for(let n=1;n<e;n++){this.cut(this.cubes[a],this.cubes[n])?(t[a]=this.cubes[a].vol>1?this.variance(this.cubes[a]):0,t[n]=this.cubes[n].vol>1?this.variance(this.cubes[n]):0):(t[a]=0,n--),a=0;let e=t[0];for(let r=1;r<=n;r++)t[r]>e&&(e=t[r],a=r);if(e<=0){r=n+1;break}}return new De(e,r)}createResult(e){const t=[];for(let r=0;r<e;++r){const e=this.cubes[r],a=this.volume(e,this.weights);if(a>0){const r=255<<24|(255&Math.round(this.volume(e,this.momentsR)/a))<<16|(255&Math.round(this.volume(e,this.momentsG)/a))<<8|255&Math.round(this.volume(e,this.momentsB)/a);t.push(r)}}return t}variance(e){const t=this.volume(e,this.momentsR),r=this.volume(e,this.momentsG),a=this.volume(e,this.momentsB);return this.moments[this.getIndex(e.r1,e.g1,e.b1)]-this.moments[this.getIndex(e.r1,e.g1,e.b0)]-this.moments[this.getIndex(e.r1,e.g0,e.b1)]+this.moments[this.getIndex(e.r1,e.g0,e.b0)]-this.moments[this.getIndex(e.r0,e.g1,e.b1)]+this.moments[this.getIndex(e.r0,e.g1,e.b0)]+this.moments[this.getIndex(e.r0,e.g0,e.b1)]-this.moments[this.getIndex(e.r0,e.g0,e.b0)]-(t*t+r*r+a*a)/this.volume(e,this.weights)}cut(e,t){const r=this.volume(e,this.momentsR),a=this.volume(e,this.momentsG),n=this.volume(e,this.momentsB),o=this.volume(e,this.weights),i=this.maximize(e,be,e.r0+1,e.r1,r,a,n,o),s=this.maximize(e,ke,e.g0+1,e.g1,r,a,n,o),c=this.maximize(e,we,e.b0+1,e.b1,r,a,n,o);let u;const h=i.maximum,l=s.maximum,m=c.maximum;if(h>=l&&h>=m){if(i.cutLocation<0)return!1;u=be}else u=l>=h&&l>=m?ke:we;switch(t.r1=e.r1,t.g1=e.g1,t.b1=e.b1,u){case be:e.r1=i.cutLocation,t.r0=e.r1,t.g0=e.g0,t.b0=e.b0;break;case ke:e.g1=s.cutLocation,t.r0=e.r0,t.g0=e.g1,t.b0=e.b0;break;case we:e.b1=c.cutLocation,t.r0=e.r0,t.g0=e.g0,t.b0=e.b1;break;default:throw new Error("unexpected direction "+u)}return e.vol=(e.r1-e.r0)*(e.g1-e.g0)*(e.b1-e.b0),t.vol=(t.r1-t.r0)*(t.g1-t.g0)*(t.b1-t.b0),!0}maximize(e,t,r,a,n,o,i,s){const c=this.bottom(e,t,this.momentsR),u=this.bottom(e,t,this.momentsG),h=this.bottom(e,t,this.momentsB),l=this.bottom(e,t,this.weights);let m=0,d=-1,f=0,p=0,g=0,y=0;for(let C=r;C<a;C++){if(f=c+this.top(e,t,C,this.momentsR),p=u+this.top(e,t,C,this.momentsG),g=h+this.top(e,t,C,this.momentsB),y=l+this.top(e,t,C,this.weights),0===y)continue;let r=1*(f*f+p*p+g*g),a=1*y,P=r/a;f=n-f,p=o-p,g=i-g,y=s-y,0!==y&&(r=1*(f*f+p*p+g*g),a=1*y,P+=r/a,P>m&&(m=P,d=C))}return new xe(d,m)}volume(e,t){return t[this.getIndex(e.r1,e.g1,e.b1)]-t[this.getIndex(e.r1,e.g1,e.b0)]-t[this.getIndex(e.r1,e.g0,e.b1)]+t[this.getIndex(e.r1,e.g0,e.b0)]-t[this.getIndex(e.r0,e.g1,e.b1)]+t[this.getIndex(e.r0,e.g1,e.b0)]+t[this.getIndex(e.r0,e.g0,e.b1)]-t[this.getIndex(e.r0,e.g0,e.b0)]}bottom(e,t,r){switch(t){case be:return-r[this.getIndex(e.r0,e.g1,e.b1)]+r[this.getIndex(e.r0,e.g1,e.b0)]+r[this.getIndex(e.r0,e.g0,e.b1)]-r[this.getIndex(e.r0,e.g0,e.b0)];case ke:return-r[this.getIndex(e.r1,e.g0,e.b1)]+r[this.getIndex(e.r1,e.g0,e.b0)]+r[this.getIndex(e.r0,e.g0,e.b1)]-r[this.getIndex(e.r0,e.g0,e.b0)];case we:return-r[this.getIndex(e.r1,e.g1,e.b0)]+r[this.getIndex(e.r1,e.g0,e.b0)]+r[this.getIndex(e.r0,e.g1,e.b0)]-r[this.getIndex(e.r0,e.g0,e.b0)];default:throw new Error("unexpected direction $direction")}}top(e,t,r,a){switch(t){case be:return a[this.getIndex(r,e.g1,e.b1)]-a[this.getIndex(r,e.g1,e.b0)]-a[this.getIndex(r,e.g0,e.b1)]+a[this.getIndex(r,e.g0,e.b0)];case ke:return a[this.getIndex(e.r1,r,e.b1)]-a[this.getIndex(e.r1,r,e.b0)]-a[this.getIndex(e.r0,r,e.b1)]+a[this.getIndex(e.r0,r,e.b0)];case we:return a[this.getIndex(e.r1,e.g1,r)]-a[this.getIndex(e.r1,e.g0,r)]-a[this.getIndex(e.r0,e.g1,r)]+a[this.getIndex(e.r0,e.g0,r)];default:throw new Error("unexpected direction $direction")}}getIndex(e,t,r){return(e<<10)+(e<<6)+e+(t<<5)+t+r}}class Ae{constructor(e=0,t=0,r=0,a=0,n=0,o=0,i=0){this.r0=e,this.r1=t,this.g0=r,this.g1=a,this.b0=n,this.b1=o,this.vol=i}}class De{constructor(e,t){this.requestedCount=e,this.resultCount=t}}class xe{constructor(e,t){this.cutLocation=e,this.maximum=t}}
396
+ */const ve=33,Se=35937,be="red",ke="green",we="blue";class Te{constructor(e=[],t=[],r=[],a=[],n=[],o=[]){this.weights=e,this.momentsR=t,this.momentsG=r,this.momentsB=a,this.moments=n,this.cubes=o}quantize(e,t){this.constructHistogram(e),this.computeMoments();const r=this.createBoxes(t);return this.createResult(r.resultCount)}constructHistogram(e){this.weights=Array.from({length:Se}).fill(0),this.momentsR=Array.from({length:Se}).fill(0),this.momentsG=Array.from({length:Se}).fill(0),this.momentsB=Array.from({length:Se}).fill(0),this.moments=Array.from({length:Se}).fill(0);const t=Pe.quantize(e);for(const[e,r]of t.entries()){const t=T(e),a=A(e),n=x(e),o=3,i=1+(t>>o),s=1+(a>>o),c=1+(n>>o),u=this.getIndex(i,s,c);this.weights[u]=(this.weights[u]??0)+r,this.momentsR[u]+=r*t,this.momentsG[u]+=r*a,this.momentsB[u]+=r*n,this.moments[u]+=r*(t*t+a*a+n*n)}}computeMoments(){for(let e=1;e<ve;e++){const t=Array.from({length:ve}).fill(0),r=Array.from({length:ve}).fill(0),a=Array.from({length:ve}).fill(0),n=Array.from({length:ve}).fill(0),o=Array.from({length:ve}).fill(0);for(let i=1;i<ve;i++){let s=0,c=0,u=0,h=0,l=0;for(let m=1;m<ve;m++){const d=this.getIndex(e,i,m);s+=this.weights[d],c+=this.momentsR[d],u+=this.momentsG[d],h+=this.momentsB[d],l+=this.moments[d],t[m]+=s,r[m]+=c,a[m]+=u,n[m]+=h,o[m]+=l;const f=this.getIndex(e-1,i,m);this.weights[d]=this.weights[f]+t[m],this.momentsR[d]=this.momentsR[f]+r[m],this.momentsG[d]=this.momentsG[f]+a[m],this.momentsB[d]=this.momentsB[f]+n[m],this.moments[d]=this.moments[f]+o[m]}}}}createBoxes(e){this.cubes=Array.from({length:e}).fill(0).map(()=>new Ae);const t=Array.from({length:e}).fill(0);this.cubes[0].r0=0,this.cubes[0].g0=0,this.cubes[0].b0=0,this.cubes[0].r1=32,this.cubes[0].g1=32,this.cubes[0].b1=32;let r=e,a=0;for(let n=1;n<e;n++){this.cut(this.cubes[a],this.cubes[n])?(t[a]=this.cubes[a].vol>1?this.variance(this.cubes[a]):0,t[n]=this.cubes[n].vol>1?this.variance(this.cubes[n]):0):(t[a]=0,n--),a=0;let e=t[0];for(let r=1;r<=n;r++)t[r]>e&&(e=t[r],a=r);if(e<=0){r=n+1;break}}return new xe(e,r)}createResult(e){const t=[];for(let r=0;r<e;++r){const e=this.cubes[r],a=this.volume(e,this.weights);if(a>0){const r=255<<24|(255&Math.round(this.volume(e,this.momentsR)/a))<<16|(255&Math.round(this.volume(e,this.momentsG)/a))<<8|255&Math.round(this.volume(e,this.momentsB)/a);t.push(r)}}return t}variance(e){const t=this.volume(e,this.momentsR),r=this.volume(e,this.momentsG),a=this.volume(e,this.momentsB);return this.moments[this.getIndex(e.r1,e.g1,e.b1)]-this.moments[this.getIndex(e.r1,e.g1,e.b0)]-this.moments[this.getIndex(e.r1,e.g0,e.b1)]+this.moments[this.getIndex(e.r1,e.g0,e.b0)]-this.moments[this.getIndex(e.r0,e.g1,e.b1)]+this.moments[this.getIndex(e.r0,e.g1,e.b0)]+this.moments[this.getIndex(e.r0,e.g0,e.b1)]-this.moments[this.getIndex(e.r0,e.g0,e.b0)]-(t*t+r*r+a*a)/this.volume(e,this.weights)}cut(e,t){const r=this.volume(e,this.momentsR),a=this.volume(e,this.momentsG),n=this.volume(e,this.momentsB),o=this.volume(e,this.weights),i=this.maximize(e,be,e.r0+1,e.r1,r,a,n,o),s=this.maximize(e,ke,e.g0+1,e.g1,r,a,n,o),c=this.maximize(e,we,e.b0+1,e.b1,r,a,n,o);let u;const h=i.maximum,l=s.maximum,m=c.maximum;if(h>=l&&h>=m){if(i.cutLocation<0)return!1;u=be}else u=l>=h&&l>=m?ke:we;switch(t.r1=e.r1,t.g1=e.g1,t.b1=e.b1,u){case be:e.r1=i.cutLocation,t.r0=e.r1,t.g0=e.g0,t.b0=e.b0;break;case ke:e.g1=s.cutLocation,t.r0=e.r0,t.g0=e.g1,t.b0=e.b0;break;case we:e.b1=c.cutLocation,t.r0=e.r0,t.g0=e.g0,t.b0=e.b1;break;default:throw new Error("unexpected direction "+u)}return e.vol=(e.r1-e.r0)*(e.g1-e.g0)*(e.b1-e.b0),t.vol=(t.r1-t.r0)*(t.g1-t.g0)*(t.b1-t.b0),!0}maximize(e,t,r,a,n,o,i,s){const c=this.bottom(e,t,this.momentsR),u=this.bottom(e,t,this.momentsG),h=this.bottom(e,t,this.momentsB),l=this.bottom(e,t,this.weights);let m=0,d=-1,f=0,p=0,g=0,y=0;for(let C=r;C<a;C++){if(f=c+this.top(e,t,C,this.momentsR),p=u+this.top(e,t,C,this.momentsG),g=h+this.top(e,t,C,this.momentsB),y=l+this.top(e,t,C,this.weights),0===y)continue;let r=1*(f*f+p*p+g*g),a=1*y,P=r/a;f=n-f,p=o-p,g=i-g,y=s-y,0!==y&&(r=1*(f*f+p*p+g*g),a=1*y,P+=r/a,P>m&&(m=P,d=C))}return new De(d,m)}volume(e,t){return t[this.getIndex(e.r1,e.g1,e.b1)]-t[this.getIndex(e.r1,e.g1,e.b0)]-t[this.getIndex(e.r1,e.g0,e.b1)]+t[this.getIndex(e.r1,e.g0,e.b0)]-t[this.getIndex(e.r0,e.g1,e.b1)]+t[this.getIndex(e.r0,e.g1,e.b0)]+t[this.getIndex(e.r0,e.g0,e.b1)]-t[this.getIndex(e.r0,e.g0,e.b0)]}bottom(e,t,r){switch(t){case be:return-r[this.getIndex(e.r0,e.g1,e.b1)]+r[this.getIndex(e.r0,e.g1,e.b0)]+r[this.getIndex(e.r0,e.g0,e.b1)]-r[this.getIndex(e.r0,e.g0,e.b0)];case ke:return-r[this.getIndex(e.r1,e.g0,e.b1)]+r[this.getIndex(e.r1,e.g0,e.b0)]+r[this.getIndex(e.r0,e.g0,e.b1)]-r[this.getIndex(e.r0,e.g0,e.b0)];case we:return-r[this.getIndex(e.r1,e.g1,e.b0)]+r[this.getIndex(e.r1,e.g0,e.b0)]+r[this.getIndex(e.r0,e.g1,e.b0)]-r[this.getIndex(e.r0,e.g0,e.b0)];default:throw new Error("unexpected direction $direction")}}top(e,t,r,a){switch(t){case be:return a[this.getIndex(r,e.g1,e.b1)]-a[this.getIndex(r,e.g1,e.b0)]-a[this.getIndex(r,e.g0,e.b1)]+a[this.getIndex(r,e.g0,e.b0)];case ke:return a[this.getIndex(e.r1,r,e.b1)]-a[this.getIndex(e.r1,r,e.b0)]-a[this.getIndex(e.r0,r,e.b1)]+a[this.getIndex(e.r0,r,e.b0)];case we:return a[this.getIndex(e.r1,e.g1,r)]-a[this.getIndex(e.r1,e.g0,r)]-a[this.getIndex(e.r0,e.g1,r)]+a[this.getIndex(e.r0,e.g0,r)];default:throw new Error("unexpected direction $direction")}}getIndex(e,t,r){return(e<<10)+(e<<6)+e+(t<<5)+t+r}}class Ae{constructor(e=0,t=0,r=0,a=0,n=0,o=0,i=0){this.r0=e,this.r1=t,this.g0=r,this.g1=a,this.b0=n,this.b1=o,this.vol=i}}class xe{constructor(e,t){this.requestedCount=e,this.resultCount=t}}class De{constructor(e,t){this.cutLocation=e,this.maximum=t}}
397
397
  /**
398
398
  * @license
399
399
  * Copyright 2021 Google LLC
@@ -458,7 +458,7 @@ class ue{static maybeFallbackSpecVersion(e,t){switch(t){case ee.EXPRESSIVE:case
458
458
  * See the License for the specific language governing permissions and
459
459
  * limitations under the License.
460
460
  */
461
- function Fe(e){const t=T(e),r=A(e),a=D(e),n=[t.toString(16),r.toString(16),a.toString(16)];for(const[e,t]of n.entries())1===t.length&&(n[e]="0"+t);return"#"+n.join("")}function He(e){const t=3===(e=e.replace("#","")).length,r=6===e.length,a=8===e.length;if(!t&&!r&&!a)throw new Error("unexpected hex "+e);let n=0,o=0,i=0;return t?(n=Re(e.slice(0,1).repeat(2)),o=Re(e.slice(1,2).repeat(2)),i=Re(e.slice(2,3).repeat(2))):r?(n=Re(e.slice(0,2)),o=Re(e.slice(2,4)),i=Re(e.slice(4,6))):a&&(n=Re(e.slice(2,4)),o=Re(e.slice(4,6)),i=Re(e.slice(6,8))),(255<<24|(255&n)<<16|(255&o)<<8|255&i)>>>0}function Re(e){return parseInt(e,16)}
461
+ function Fe(e){const t=T(e),r=A(e),a=x(e),n=[t.toString(16),r.toString(16),a.toString(16)];for(const[e,t]of n.entries())1===t.length&&(n[e]="0"+t);return"#"+n.join("")}function He(e){const t=3===(e=e.replace("#","")).length,r=6===e.length,a=8===e.length;if(!t&&!r&&!a)throw new Error("unexpected hex "+e);let n=0,o=0,i=0;return t?(n=Re(e.slice(0,1).repeat(2)),o=Re(e.slice(1,2).repeat(2)),i=Re(e.slice(2,3).repeat(2))):r?(n=Re(e.slice(0,2)),o=Re(e.slice(2,4)),i=Re(e.slice(4,6))):a&&(n=Re(e.slice(2,4)),o=Re(e.slice(4,6)),i=Re(e.slice(6,8))),(255<<24|(255&n)<<16|(255&o)<<8|255&i)>>>0}function Re(e){return parseInt(e,16)}
462
462
  /**
463
463
  * @license
464
464
  * Copyright 2021 Google LLC
@@ -490,5 +490,5 @@ function Fe(e){const t=T(e),r=A(e),a=D(e),n=[t.toString(16),r.toString(16),a.toS
490
490
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
491
491
  * See the License for the specific language governing permissions and
492
492
  * limitations under the License.
493
- */(await new Promise((t,r)=>{const a=document.createElement("canvas"),n=a.getContext("2d");if(!n)return void r(new Error("Could not get canvas context"));const o=()=>{a.width=e.width,a.height=e.height,n.drawImage(e,0,0);let r=[0,0,e.width,e.height];const o=e.dataset.area;o&&/^\d+(\s*,\s*\d+){3}$/.test(o)&&(r=o.split(/\s*,\s*/).map(e=>parseInt(e,10)));const[i,s,c,u]=r;t(n.getImageData(i,s,c,u).data)},i=()=>{r(new Error("Image load failed"))};e.complete?o():(e.onload=o,e.onerror=i)}))}function Le(e,t=[]){const r=pe.of(e);return{source:e,schemes:{light:Ee.light(e),dark:Ee.dark(e)},palettes:{primary:r.a1,secondary:r.a2,tertiary:r.a3,neutral:r.n1,neutralVariant:r.n2,error:r.error},customColors:t.map(t=>function(e,t){let r=t.value;const a=r,n=e;t.blend&&(r=U.harmonize(a,n));const o=pe.of(r),i=o.a1;return{color:t,value:r,light:{color:i.tone(40),onColor:i.tone(100),colorContainer:i.tone(90),onColorContainer:i.tone(10)},dark:{color:i.tone(80),onColor:i.tone(20),colorContainer:i.tone(30),onColorContainer:i.tone(90)}}}(e,t))}}async function Oe(e){return Fe(await Ve(e))}var Ne,Ue,ze,$e,Ke,Ye,qe,Ge,Xe,We;Be.TARGET_CHROMA=48,Be.WEIGHT_PROPORTION=.7,Be.WEIGHT_CHROMA_ABOVE=.3,Be.WEIGHT_CHROMA_BELOW=.1,Be.CUTOFF_CHROMA=5,Be.CUTOFF_EXCITED_PROPORTION=.01;let je=class extends o{constructor(){super(...arguments),Ne.add(this),Ue.set(this,new CSSStyleSheet),ze.set(this,!1),$e.set(this,void 0),Ke.set(this,void 0),Ye.set(this,void 0),qe.set(this,()=>t(this,Ne,"m",Ge).call(this,!0)),this.color="#6750A4",this.variant="neutral",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return t(this,Ke,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.parentElement instanceof HTMLBodyElement?(this.shadowRoot?.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f"))),document.adoptedStyleSheets.includes(t(this,Ue,"f"))||(document.adoptedStyleSheets=[t(this,Ue,"f"),...document.adoptedStyleSheets])):(document.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f"))),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(this.shadowRoot.adoptedStyleSheets=[t(this,Ue,"f"),...this.shadowRoot.adoptedStyleSheets])),r(this,$e,matchMedia("(prefers-color-scheme: light)"),"f"),r(this,Ke,matchMedia("(prefers-color-scheme: dark)"),"f"),r(this,Ye,matchMedia("(forced-colors: active)"),"f"),[t(this,$e,"f"),t(this,Ke,"f"),t(this,Ye,"f")].forEach(e=>e.addEventListener("change",t(this,qe,"f")))}disconnectedCallback(){super.disconnectedCallback(),[t(this,$e,"f"),t(this,Ke,"f"),t(this,Ye,"f")].forEach(e=>e?.removeEventListener("change",t(this,qe,"f"))),r(this,$e,r(this,Ke,r(this,Ye,void 0,"f"),"f"),"f"),document.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f")))}updated(e){super.updated(e),t(this,Ne,"m",Ge).call(this,t(this,ze,"f")&&["color","scheme","contrast"].some(t=>e.has(t)))}firstUpdated(e){super.firstUpdated(e),r(this,ze,!0,"f")}render(){return i`<slot></slot>`}};var Je,Qe,Ze,et,tt;Ue=new WeakMap,ze=new WeakMap,$e=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,qe=new WeakMap,Ne=new WeakSet,Ge=function(e){const r=He(this.color),a=Le(r),n=new ue({sourceColorHct:N.fromInt(r),variant:t(this,Ne,"m",Xe).call(this),contrastLevel:t(this,Ne,"m",We).call(this),isDark:this.isDark,primaryPalette:a.palettes.primary,secondaryPalette:a.palettes.secondary,tertiaryPalette:a.palettes.tertiary,neutralPalette:a.palettes.neutral,neutralVariantPalette:a.palettes.neutralVariant,errorPalette:a.palettes.error});let o="";const i=new ce,s=[...i.allColors,i.surfaceVariant(),i.shadow(),i.scrim(),i.surfaceTint()];for(const e of s){o+=`${`--md-sys-color-${e.name.replace(/_/g,"-").toLowerCase()}`}: ${Fe(e.getArgb(n))};`}if("expressive"===this.motion&&(o+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",o+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",o+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",o+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",o+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",o+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),o+=`--md-sys-density-scale: ${this.density};`,o+=`--m3e-scrollbar-thumb-color: ${Fe(n.neutralPalette.tone(60))};`,o+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,o+=`font-size: ${c.typescale.standard.body.large.fontSize};`,o+=`font-weight: ${c.typescale.standard.body.large.fontWeight};`,o+=`line-height: ${c.typescale.standard.body.large.lineHeight};`,o+=`letter-spacing: ${c.typescale.standard.body.large.tracking};`,this.parentElement instanceof HTMLBodyElement)switch(t(this,Ue,"f").replaceSync(`\n html { ${o} }\n @media not (forced-colors: active) {\n body { \n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n scrollbar-color: ${c.scrollbar.color};\n }\n }`),this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}else t(this,Ue,"f").replaceSync(`:host { ${o} }`);t(this,ze,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),e&&document.body.offsetHeight},Xe=function(){switch(this.variant){case"neutral":return 1;case"tonal-spot":return 2;case"vibrant":return 3;case"expressive":return 4;case"fidelity":return 5;case"content":return 6;case"rainbow":return 7;case"fruit-salad":return 8;default:return 0}},We=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},(()=>{if("undefined"!=typeof window){const e=e=>{let t="";for(const r in e){const a=e[r].toString();if(!a.startsWith("var("))continue;const n=a.trim().slice(4,-1),[o,i]=n.split(/,(.+)/).map(e=>e.trim());o.startsWith("--")&&i&&(t+=`${o}:${i};`)}return t},t=(e,t)=>{const{[t]:r,...a}=e;return a};let r="";r+=e(c.typescale.standard.display.large),r+=e(c.typescale.standard.display.medium),r+=e(c.typescale.standard.display.small),r+=e(c.typescale.standard.headline.large),r+=e(c.typescale.standard.headline.medium),r+=e(c.typescale.standard.headline.small),r+=e(c.typescale.standard.title.large),r+=e(c.typescale.standard.title.medium),r+=e(c.typescale.standard.title.small),r+=e(c.typescale.standard.label.large),r+=e(c.typescale.standard.label.medium),r+=e(c.typescale.standard.label.small),r+=e(c.typescale.standard.body.large),r+=e(c.typescale.standard.body.medium),r+=e(c.typescale.standard.body.small),r+=e(c.elevation),r+=e(c.shape.corner.value),r+=e(t(c.shape.corner,"value")),r+=e(c.motion.duration),r+=e(c.motion.easing),r+=e(c.motion.spring),r+=e(t(c.density,"calc")),r+=e(c.measurement),r+=e(c.state),u(a(`html{${r}}`))}})(),je.styles=n`:host { display: contents; }`,e([s()],je.prototype,"color",void 0),e([s()],je.prototype,"variant",void 0),e([s()],je.prototype,"scheme",void 0),e([s()],je.prototype,"contrast",void 0),e([s({attribute:"strong-focus",type:Boolean})],je.prototype,"strongFocus",void 0),e([s({type:Number})],je.prototype,"density",void 0),e([s()],je.prototype,"motion",void 0),je=e([h("m3e-theme")],je);let rt=class extends(l(o,"img")){constructor(){super(...arguments),Je.add(this),Qe.set(this,void 0),Ze.set(this,void 0),et.set(this,()=>this.requestUpdate()),this.color="#6750A4",this.variant="neutral",this.scheme="auto"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return t(this,Ze,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),r(this,Qe,matchMedia("(prefers-color-scheme: light)"),"f"),r(this,Ze,matchMedia("(prefers-color-scheme: dark)"),"f"),[t(this,Qe,"f"),t(this,Ze,"f")].forEach(e=>e.addEventListener("change",t(this,et,"f")))}disconnectedCallback(){super.disconnectedCallback(),[t(this,Qe,"f"),t(this,Ze,"f")].forEach(e=>e?.removeEventListener("change",t(this,et,"f"))),r(this,Qe,r(this,Ze,void 0,"f"),"f")}updated(e){super.updated(e);const r=this.shadowRoot?.querySelector(".base"),a=He(this.color),n=Le(a),o=new ue({sourceColorHct:N.fromInt(a),variant:t(this,Je,"m",tt).call(this),contrastLevel:0,isDark:this.isDark,primaryPalette:n.palettes.primary,neutralPalette:n.palettes.neutral}),i=new ce;r?.style.setProperty("--_theme-icon-container-color",Fe(i.surface().getArgb(o))),r?.style.setProperty("--_theme-icon-color",Fe(i.primary().getArgb(o)))}render(){return i`<div class="base"><svg viewBox="0 0 80 80" class="icon"><path class="container" d="M77.87 0C79.05 0 80 .95 80 2.13v75.74c0 1.17-.95 2.13-2.13 2.13H2.13C.96 80 0 79.04 0 77.87V2.13C0 .95.96 0 2.13 0h75.74z"/><path class="color" d="M54 40c3.32 0 6 2.69 6 6 0 1.2 0-1.2 0 0 0 3.31-2.68 6-6 6H26c-3.31 0-6-2.69-6-6 0-1.2 0 1.2 0 0 0-3.31 2.69-6 6-6h28z"/><path class="color" d="M0 0h80v17.24H0V0z"/></svg></div>`}};Qe=new WeakMap,Ze=new WeakMap,et=new WeakMap,Je=new WeakSet,tt=function(){switch(this.variant){case"neutral":return 1;case"tonal-spot":return 2;case"vibrant":return 3;case"expressive":return 4;case"fidelity":return 5;case"content":return 6;case"rainbow":return 7;case"fruit-salad":return 8;default:return 0}},rt.styles=n`:host { display: inline-block; width: var(--m3e-theme-icon-size, 1.5rem); height: var(--m3e-theme-icon-size, 1.5rem); } .base { width: 100%; height: 100%; border-radius: var(--m3e-theme-icon-shape, ${c.shape.corner.extraSmall}); outline: solid 1px color-mix( in srgb, var(--m3e-theme-icon-outline-color, ${c.color.outlineVariant}) var(--m3e-theme-icon-outline-opacity, 50%), transparent ); } .icon { width: 100%; height: 100%; } .container { fill: var(--m3e-theme-icon-container-color, var(--_theme-icon-container-color)); } .color { fill: var(--m3e-theme-icon-color, var(--_theme-icon-color)); }`,e([s()],rt.prototype,"color",void 0),e([s()],rt.prototype,"variant",void 0),e([s()],rt.prototype,"scheme",void 0),rt=e([h("m3e-theme-icon")],rt);export{je as M3eThemeElement,rt as M3eThemeIconElement,Oe as getColorFromImage};
493
+ */(await new Promise((t,r)=>{const a=document.createElement("canvas"),n=a.getContext("2d");if(!n)return void r(new Error("Could not get canvas context"));const o=()=>{a.width=e.width,a.height=e.height,n.drawImage(e,0,0);let r=[0,0,e.width,e.height];const o=e.dataset.area;o&&/^\d+(\s*,\s*\d+){3}$/.test(o)&&(r=o.split(/\s*,\s*/).map(e=>parseInt(e,10)));const[i,s,c,u]=r;t(n.getImageData(i,s,c,u).data)},i=()=>{r(new Error("Image load failed"))};e.complete?o():(e.onload=o,e.onerror=i)}))}function Le(e,t=[]){const r=pe.of(e);return{source:e,schemes:{light:Ee.light(e),dark:Ee.dark(e)},palettes:{primary:r.a1,secondary:r.a2,tertiary:r.a3,neutral:r.n1,neutralVariant:r.n2,error:r.error},customColors:t.map(t=>function(e,t){let r=t.value;const a=r,n=e;t.blend&&(r=U.harmonize(a,n));const o=pe.of(r),i=o.a1;return{color:t,value:r,light:{color:i.tone(40),onColor:i.tone(100),colorContainer:i.tone(90),onColorContainer:i.tone(10)},dark:{color:i.tone(80),onColor:i.tone(20),colorContainer:i.tone(30),onColorContainer:i.tone(90)}}}(e,t))}}async function Oe(e){return Fe(await Ve(e))}var Ne,Ue,ze,$e,Ke,Ye,qe,Ge,Xe,We;Be.TARGET_CHROMA=48,Be.WEIGHT_PROPORTION=.7,Be.WEIGHT_CHROMA_ABOVE=.3,Be.WEIGHT_CHROMA_BELOW=.1,Be.CUTOFF_CHROMA=5,Be.CUTOFF_EXCITED_PROPORTION=.01;let je=class extends o{constructor(){super(...arguments),Ne.add(this),Ue.set(this,new CSSStyleSheet),ze.set(this,!1),$e.set(this,void 0),Ke.set(this,void 0),Ye.set(this,void 0),qe.set(this,()=>t(this,Ne,"m",Ge).call(this,!0)),this.color="#6750A4",this.variant="neutral",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return t(this,Ke,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.parentElement instanceof HTMLBodyElement?(this.shadowRoot?.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f"))),document.adoptedStyleSheets.includes(t(this,Ue,"f"))||(document.adoptedStyleSheets=[t(this,Ue,"f"),...document.adoptedStyleSheets])):(document.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f"))),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(this.shadowRoot.adoptedStyleSheets=[t(this,Ue,"f"),...this.shadowRoot.adoptedStyleSheets])),r(this,$e,matchMedia("(prefers-color-scheme: light)"),"f"),r(this,Ke,matchMedia("(prefers-color-scheme: dark)"),"f"),r(this,Ye,matchMedia("(forced-colors: active)"),"f"),[t(this,$e,"f"),t(this,Ke,"f"),t(this,Ye,"f")].forEach(e=>e.addEventListener("change",t(this,qe,"f")))}disconnectedCallback(){super.disconnectedCallback(),[t(this,$e,"f"),t(this,Ke,"f"),t(this,Ye,"f")].forEach(e=>e?.removeEventListener("change",t(this,qe,"f"))),r(this,$e,r(this,Ke,r(this,Ye,void 0,"f"),"f"),"f"),document.adoptedStyleSheets.includes(t(this,Ue,"f"))&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==t(this,Ue,"f")))}updated(e){super.updated(e),t(this,Ne,"m",Ge).call(this,t(this,ze,"f")&&["color","scheme","contrast"].some(t=>e.has(t)))}firstUpdated(e){super.firstUpdated(e),r(this,ze,!0,"f")}render(){return i`<slot></slot>`}};var Je,Qe,Ze,et,tt;Ue=new WeakMap,ze=new WeakMap,$e=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,qe=new WeakMap,Ne=new WeakSet,Ge=function(e){const r=He(this.color),a=Le(r),n=new ue({sourceColorHct:N.fromInt(r),variant:t(this,Ne,"m",Xe).call(this),contrastLevel:t(this,Ne,"m",We).call(this),isDark:this.isDark,primaryPalette:a.palettes.primary,secondaryPalette:a.palettes.secondary,tertiaryPalette:a.palettes.tertiary,neutralPalette:a.palettes.neutral,neutralVariantPalette:a.palettes.neutralVariant,errorPalette:a.palettes.error});let o="";const i=new ce,s=[...i.allColors,i.surfaceVariant(),i.shadow(),i.scrim(),i.surfaceTint()];for(const e of s){o+=`${`--md-sys-color-${e.name.replace(/_/g,"-").toLowerCase()}`}: ${Fe(e.getArgb(n))};`}if("expressive"===this.motion&&(o+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",o+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",o+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",o+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",o+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",o+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),o+=`--md-sys-density-scale: ${this.density};`,o+=`--m3e-scrollbar-thumb-color: ${Fe(n.neutralPalette.tone(60))};`,o+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,o+=`font-size: ${c.typescale.standard.body.large.fontSize};`,o+=`font-weight: ${c.typescale.standard.body.large.fontWeight};`,o+=`line-height: ${c.typescale.standard.body.large.lineHeight};`,o+=`letter-spacing: ${c.typescale.standard.body.large.tracking};`,this.parentElement instanceof HTMLBodyElement)switch(t(this,Ue,"f").replaceSync(`\n html { ${o} }\n @media not (forced-colors: active) {\n body { \n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n scrollbar-color: ${c.scrollbar.color};\n }\n }`),this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}else t(this,Ue,"f").replaceSync(`:host { ${o} }`);t(this,ze,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),e&&document.body.offsetHeight},Xe=function(){switch(this.variant){case"neutral":return 1;case"tonal-spot":return 2;case"vibrant":return 3;case"expressive":return 4;case"fidelity":return 5;case"content":return 6;case"rainbow":return 7;case"fruit-salad":return 8;default:return 0}},We=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},(()=>{if("undefined"!=typeof window){const e=e=>{let t="";for(const r in e){const a=e[r].toString();if(!a.startsWith("var("))continue;const n=a.trim().slice(4,-1),[o,i]=n.split(/,(.+)/).map(e=>e.trim());o.startsWith("--")&&i&&(t+=`${o}:${i};`)}return t},t=(e,...t)=>{const r={...e};for(const e of t)delete r[e];return r};let r="";r+=e(c.typescale.standard.display.large),r+=e(c.typescale.standard.display.medium),r+=e(c.typescale.standard.display.small),r+=e(c.typescale.standard.headline.large),r+=e(c.typescale.standard.headline.medium),r+=e(c.typescale.standard.headline.small),r+=e(c.typescale.standard.title.large),r+=e(c.typescale.standard.title.medium),r+=e(c.typescale.standard.title.small),r+=e(c.typescale.standard.label.large),r+=e(c.typescale.standard.label.medium),r+=e(c.typescale.standard.label.small),r+=e(c.typescale.standard.body.large),r+=e(c.typescale.standard.body.medium),r+=e(c.typescale.standard.body.small),r+=e(c.elevation),r+=e(c.shape.corner.value),r+=e(t(c.shape.corner,"value","extraLargeEnd","extraLargeStart","mediumTop","mediumEnd","mediumStart","smallTop","smallEnd","smallStart","extraSmallEnd","extraSmallStart","extraSmallBottom")),r+=e(c.motion.duration),r+=e(c.motion.easing),r+=e(c.motion.spring),r+=e(t(c.density,"calc")),r+=e(c.measurement),r+=e(c.state),u(a(`html{${r}}`))}})(),je.styles=n`:host { display: contents; }`,e([s()],je.prototype,"color",void 0),e([s()],je.prototype,"variant",void 0),e([s()],je.prototype,"scheme",void 0),e([s()],je.prototype,"contrast",void 0),e([s({attribute:"strong-focus",type:Boolean})],je.prototype,"strongFocus",void 0),e([s({type:Number})],je.prototype,"density",void 0),e([s()],je.prototype,"motion",void 0),je=e([h("m3e-theme")],je);let rt=class extends(l(o,"img")){constructor(){super(...arguments),Je.add(this),Qe.set(this,void 0),Ze.set(this,void 0),et.set(this,()=>this.requestUpdate()),this.color="#6750A4",this.variant="neutral",this.scheme="auto"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return t(this,Ze,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),r(this,Qe,matchMedia("(prefers-color-scheme: light)"),"f"),r(this,Ze,matchMedia("(prefers-color-scheme: dark)"),"f"),[t(this,Qe,"f"),t(this,Ze,"f")].forEach(e=>e.addEventListener("change",t(this,et,"f")))}disconnectedCallback(){super.disconnectedCallback(),[t(this,Qe,"f"),t(this,Ze,"f")].forEach(e=>e?.removeEventListener("change",t(this,et,"f"))),r(this,Qe,r(this,Ze,void 0,"f"),"f")}updated(e){super.updated(e);const r=this.shadowRoot?.querySelector(".base"),a=He(this.color),n=Le(a),o=new ue({sourceColorHct:N.fromInt(a),variant:t(this,Je,"m",tt).call(this),contrastLevel:0,isDark:this.isDark,primaryPalette:n.palettes.primary,neutralPalette:n.palettes.neutral}),i=new ce;r?.style.setProperty("--_theme-icon-container-color",Fe(i.surface().getArgb(o))),r?.style.setProperty("--_theme-icon-color",Fe(i.primary().getArgb(o)))}render(){return i`<div class="base"><svg viewBox="0 0 80 80" class="icon"><path class="container" d="M77.87 0C79.05 0 80 .95 80 2.13v75.74c0 1.17-.95 2.13-2.13 2.13H2.13C.96 80 0 79.04 0 77.87V2.13C0 .95.96 0 2.13 0h75.74z"/><path class="color" d="M54 40c3.32 0 6 2.69 6 6 0 1.2 0-1.2 0 0 0 3.31-2.68 6-6 6H26c-3.31 0-6-2.69-6-6 0-1.2 0 1.2 0 0 0-3.31 2.69-6 6-6h28z"/><path class="color" d="M0 0h80v17.24H0V0z"/></svg></div>`}};Qe=new WeakMap,Ze=new WeakMap,et=new WeakMap,Je=new WeakSet,tt=function(){switch(this.variant){case"neutral":return 1;case"tonal-spot":return 2;case"vibrant":return 3;case"expressive":return 4;case"fidelity":return 5;case"content":return 6;case"rainbow":return 7;case"fruit-salad":return 8;default:return 0}},rt.styles=n`:host { display: inline-block; width: var(--m3e-theme-icon-size, 1.5rem); height: var(--m3e-theme-icon-size, 1.5rem); } .base { width: 100%; height: 100%; border-radius: var(--m3e-theme-icon-shape, ${c.shape.corner.extraSmall}); outline: solid 1px color-mix( in srgb, var(--m3e-theme-icon-outline-color, ${c.color.outlineVariant}) var(--m3e-theme-icon-outline-opacity, 50%), transparent ); } .icon { width: 100%; height: 100%; } .container { fill: var(--m3e-theme-icon-container-color, var(--_theme-icon-container-color)); } .color { fill: var(--m3e-theme-icon-color, var(--_theme-icon-color)); }`,e([s()],rt.prototype,"color",void 0),e([s()],rt.prototype,"variant",void 0),e([s()],rt.prototype,"scheme",void 0),rt=e([h("m3e-theme-icon")],rt);export{je as M3eThemeElement,rt as M3eThemeIconElement,Oe as getColorFromImage};
494
494
  //# sourceMappingURL=theme.min.js.map