@genesislcap/design-system-configurator 14.217.2 → 14.217.4
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.
- package/dist/{279.279.bb7636bab94bbc523a90.js → 279.279.1c13b476762a5af10186.js} +2 -2
- package/dist/{531.531.26a163b1e930d7a3a419.js → 531.531.66cb63371b8df7ff49a3.js} +2 -2
- package/dist/{548.548.ea0eed8e92c3f4e3d23b.js → 548.548.35d836302832c1839c72.js} +2 -2
- package/dist/{548.42944742c389cc52f1bf052531b9eb00.js.map → 548.8623a84df5cd190726f064b35f4fd9ca.js.map} +1 -1
- package/dist/653.653.6b9b8faf849431a7152e.js +2 -0
- package/dist/{653.cd79d6d50e9f0dfe8ed96f08357afbae.js.map → 653.cda2755851515fbf4ce54a3f75f7351b.js.map} +1 -1
- package/dist/{674.674.aa4e9e7f70dfe5545c89.js → 674.674.def3cab1d7156fec9e26.js} +3 -3
- package/dist/{698.698.c28156c9e30b85238029.js → 698.698.69bb476ba0070a6e9a35.js} +1 -1
- package/dist/designSystemConfigurator.5fb4d13535482a4cd7ef12634e8c4c36.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.7f000a60dacd8750f551f6a9c1c7a6d8.js.map +1 -0
- package/dist/main.90165a9c064ca405fd91.js +2 -0
- package/dist/npm.microsoft.0672c016cd36c90579da822a2bcf4065.js.map +1 -0
- package/dist/{npm.microsoft.544.8997a16970346217b3f0.js → npm.microsoft.544.8af00df358843c4e2040.js} +6 -6
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/653.653.3c35696c12ae4a3130ba.js +0 -2
- package/dist/designSystemConfigurator.c1227405830b14eb5ee47580c83e71be.js.map +0 -1
- package/dist/main.a33dda372793d7dddc213dd4689b6d56.js.map +0 -1
- package/dist/main.d9cdd9cecb5f02d94020.js +0 -2
- package/dist/npm.microsoft.e004527697fcc39d4c39b4250a2ccad6.js.map +0 -1
package/dist/{npm.microsoft.544.8997a16970346217b3f0.js → npm.microsoft.544.8af00df358843c4e2040.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[544],{75799:(e,t,i)=>{function o(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function s(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function r(e,t,i){return isNaN(e)?t:t+e*(i-t)}function n(e){return e*(Math.PI/180)}function a(e){return e*(180/Math.PI)}function l(e){const t=Math.round(o(e,0,255)).toString(16);return 1===t.length?"0"+t:t}function c(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:t+e*(i-t)}function h(e,t,i){if(e<=0)return t%360;if(e>=1)return i%360;const o=(t-i+360)%360;return o<=(i-t+360)%360?(t-o*e+360)%360:(t+o*e+360)%360}i.r(t),i.d(t,{ColorBlendMode:()=>le,ColorHSL:()=>g,ColorHSV:()=>m,ColorInterpolationSpace:()=>ce,ColorLAB:()=>b,ColorLCH:()=>f,ColorPalette:()=>Me,ColorRGBA64:()=>v,ColorScale:()=>ye,ColorXYZ:()=>y,ComponentStateColorPalette:()=>Ze,Histogram:()=>qe,ImageDataPixelBlob:()=>it,PixelBox:()=>We,blend:()=>he,blendBurn:()=>K,blendBurnChannel:()=>W,blendColor:()=>X,blendDarken:()=>Q,blendDarkenChannel:()=>Y,blendDodge:()=>J,blendDodgeChannel:()=>Z,blendLighten:()=>te,blendLightenChannel:()=>ee,blendMultiply:()=>oe,blendMultiplyChannel:()=>ie,blendOverlay:()=>re,blendOverlayChannel:()=>se,blendScreen:()=>ae,blendScreenChannel:()=>ne,calculateOverlayColor:()=>S,centeredRescale:()=>je,clamp:()=>o,computeAlphaBlend:()=>de,contrastRatio:()=>C,darkenViaLAB:()=>q,defaultCenteredRescaleConfig:()=>Ne,defaultPaletteExtractionConfig:()=>Je,defaultQuantizeConfig:()=>Xe,degreesToRadians:()=>n,denormalize:()=>r,desaturateViaLCH:()=>G,extractPalette:()=>et,generateOffCenterPalette:()=>He,generateScaledPalettes:()=>Ge,getHexStringForByte:()=>l,hslToRGB:()=>I,hsvToRGB:()=>F,insertIntoSortedList:()=>Ue,interpolateByColorSpace:()=>ve,interpolateHSL:()=>pe,interpolateHSV:()=>ge,interpolateLAB:()=>be,interpolateLCH:()=>fe,interpolateRGB:()=>ue,interpolateXYZ:()=>me,isColorNamed:()=>Fe,isColorStringHexARGB:()=>Se,isColorStringHexRGB:()=>Te,isColorStringHexRGBA:()=>_e,isColorStringWebRGB:()=>Ie,isColorStringWebRGBA:()=>Ae,labToLCH:()=>D,labToRGB:()=>M,labToXYZ:()=>R,lchToLAB:()=>O,lchToRGB:()=>H,lerp:()=>c,lerpAnglesInDegrees:()=>h,lerpAnglesInRadians:()=>u,lightenViaLAB:()=>U,loadImageData:()=>tt,matchLightnessIndex:()=>Be,normalize:()=>s,parseColor:()=>Pe,parseColorHexARGB:()=>De,parseColorHexRGB:()=>Oe,parseColorHexRGBA:()=>Re,parseColorNamed:()=>Ve,parseColorWebRGB:()=>Ee,parseColorWebRGBA:()=>Le,quantize:()=>Qe,quantizeHistogram:()=>Ye,radiansToDegrees:()=>a,rescale:()=>ze,rgbToHSL:()=>_,rgbToHSV:()=>A,rgbToLAB:()=>P,rgbToLCH:()=>B,rgbToLinearLuminance:()=>x,rgbToRelativeLuminance:()=>$,rgbToTemperature:()=>N,rgbToXYZ:()=>L,roundToPrecisionSmall:()=>p,saturateViaLCH:()=>j,temperatureToRGB:()=>z,xyzToLAB:()=>E,xyzToRGB:()=>V});const d=2*Math.PI;function u(e,t,i){if(isNaN(e)||e<=0)return t%d;if(e>=1)return i%d;const o=(t-i+d)%d;return o<=(i-t+d)%d?(t-o*e+d)%d:(t+o*e+d)%d}function p(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}class g{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new g(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new g(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class m{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new m(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new m(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class b{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new b(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new b(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}b.epsilon=216/24389,b.kappa=24389/27;class f{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new f(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new f(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class v{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new v(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))},${o(this.a,0,1)})`}roundToPrecision(e){return new v(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new v(o(this.r,0,1),o(this.g,0,1),o(this.b,0,1),o(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return l(r(e,0,255))}}class y{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new y(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new y(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function x(e){return.2126*e.r+.7152*e.g+.0722*e.b}function $(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return x(new v(t(e.r),t(e.g),t(e.b),1))}y.whitePoint=new y(.95047,1,1.08883);const w=(e,t)=>(e+.05)/(t+.05);function C(e,t){const i=$(e),o=$(t);return i>o?w(i,o):w(o,i)}function k(e,t,i){return i-t==0?0:(e-t)/(i-t)}function T(e,t,i){return(k(e.r,t.r,i.r)+k(e.g,t.g,i.g)+k(e.b,t.b,i.b))/3}function S(e,t,i=null){let o=0,s=i;return null!==s?o=T(e,t,s):(s=new v(0,0,0,1),o=T(e,t,s),o<=0&&(s=new v(1,1,1,1),o=T(e,t,s))),o=Math.round(1e3*o)/1e3,new v(s.r,s.g,s.b,o)}function _(e){const t=Math.max(e.r,e.g,e.b),i=Math.min(e.r,e.g,e.b),o=t-i;let s=0;0!==o&&(s=t===e.r?(e.g-e.b)/o%6*60:t===e.g?60*((e.b-e.r)/o+2):60*((e.r-e.g)/o+4)),s<0&&(s+=360);const r=(t+i)/2;let n=0;return 0!==o&&(n=o/(1-Math.abs(2*r-1))),new g(s,n,r)}function I(e,t=1){const i=(1-Math.abs(2*e.l-1))*e.s,o=i*(1-Math.abs(e.h/60%2-1)),s=e.l-i/2;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function A(e){const t=Math.max(e.r,e.g,e.b),i=t-Math.min(e.r,e.g,e.b);let o=0;0!==i&&(o=t===e.r?(e.g-e.b)/i%6*60:t===e.g?60*((e.b-e.r)/i+2):60*((e.r-e.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==t&&(s=i/t),new m(o,s,t)}function F(e,t=1){const i=e.s*e.v,o=i*(1-Math.abs(e.h/60%2-1)),s=e.v-i;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function O(e){let t=0,i=0;return 0!==e.h&&(t=Math.cos(n(e.h))*e.c,i=Math.sin(n(e.h))*e.c),new b(e.l,t,i)}function D(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=a(Math.atan2(e.b,e.a))),t<0&&(t+=360);const i=Math.sqrt(e.a*e.a+e.b*e.b);return new f(e.l,i,t)}function R(e){const t=(e.l+16)/116,i=t+e.a/500,o=t-e.b/200,s=Math.pow(i,3),r=Math.pow(t,3),n=Math.pow(o,3);let a=0;a=s>b.epsilon?s:(116*i-16)/b.kappa;let l=0;l=e.l>b.epsilon*b.kappa?r:e.l/b.kappa;let c=0;return c=n>b.epsilon?n:(116*o-16)/b.kappa,a=y.whitePoint.x*a,l=y.whitePoint.y*l,c=y.whitePoint.z*c,new y(a,l,c)}function E(e){function t(e){return e>b.epsilon?Math.pow(e,1/3):(b.kappa*e+16)/116}const i=t(e.x/y.whitePoint.x),o=t(e.y/y.whitePoint.y),s=t(e.z/y.whitePoint.z);return new b(116*o-16,500*(i-o),200*(o-s))}function L(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const i=t(e.r),o=t(e.g),s=t(e.b);return new y(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function V(e,t=1){function i(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const o=i(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),s=i(-.969266*e.x+1.8760108*e.y+.041556*e.z),r=i(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new v(o,s,r,t)}function P(e){return E(L(e))}function M(e,t=1){return V(R(e),t)}function B(e){return D(P(e))}function H(e,t=1){return M(O(e),t)}function z(e,t=1){let i=0,o=0,s=0;return e<=1e3?e=1e3:e>=4e4&&(e=4e4),e<6600?(i=255,o=e/100-2,o=-155.25485562709179-.44596950469579133*o+104.49216199393888*Math.log(o)):(i=e/100-55,i=351.97690566805693+.114206453784165*i-40.25366309332127*Math.log(i),o=e/100-50,o=325.4494125711974+.07943456536662342*o-28.0852963507957*Math.log(o)),e>=6600?s=255:e<2e3?s=0:(s=e/100-10,s=.8274096064007395*s-254.76935184120902+115.67994401066147*Math.log(s)),new v(i/255,o/255,s/255,t)}function N(e){let t=0,i=1e3,o=4e4;for(;o-i>.4;){t=(o+i)/2;const s=z(t);s.b/s.r>=e.b/e.r?o=t:i=t}return Math.round(t)}function j(e,t,i=18){const o=B(e);let s=o.c+t*i;return s<0&&(s=0),H(new f(o.l,s,o.h))}function G(e,t,i=18){return j(e,-1*t,i)}function q(e,t,i=18){const o=P(e),s=o.l-t*i;return M(new b(s,o.a,o.b))}function U(e,t,i=18){return q(e,-1*t,i)}function W(e,t){return 0===t?0:1-(1-e)/t}function K(e,t){return new v(W(e.r,t.r),W(e.g,t.g),W(e.b,t.b),1)}function X(e,t){const i=_(e),o=_(t);return 0===o.s?new v(i.l,i.l,i.l,1):I(new g(o.h,o.s,i.l))}function Y(e,t){return Math.min(e,t)}function Q(e,t){return new v(Y(e.r,t.r),Y(e.g,t.g),Y(e.b,t.b),1)}function Z(e,t){if(t>=1)return 1;const i=e/(1-t);return i>=1?1:i}function J(e,t){return new v(Z(e.r,t.r),Z(e.g,t.g),Z(e.b,t.b),1)}function ee(e,t){return Math.max(e,t)}function te(e,t){return new v(ee(e.r,t.r),ee(e.g,t.g),ee(e.b,t.b),1)}function ie(e,t){return e*t}function oe(e,t){return new v(ie(e.r,t.r),ie(e.g,t.g),ie(e.b,t.b),1)}function se(e,t){return o(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function re(e,t){return new v(se(e.r,t.r),se(e.g,t.g),se(e.b,t.b),1)}function ne(e,t){return 1-(1-t)*(1-e)}function ae(e,t){return new v(ne(e.r,t.r),ne(e.g,t.g),ne(e.b,t.b),1)}var le,ce;function he(e,t,i){switch(e){case le.Burn:return K(t,i);case le.Color:return X(t,i);case le.Darken:return Q(t,i);case le.Dodge:return J(t,i);case le.Lighten:return te(t,i);case le.Multiply:return oe(t,i);case le.Overlay:return re(t,i);case le.Screen:return ae(t,i);default:throw new Error("Unknown blend mode")}}function de(e,t){if(t.a>=1)return t;if(t.a<=0)return new v(e.r,e.g,e.b,1);const i=t.a*t.r+(1-t.a)*e.r,o=t.a*t.g+(1-t.a)*e.g,s=t.a*t.b+(1-t.a)*e.b;return new v(i,o,s,1)}function ue(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new v(c(e,t.r,i.r),c(e,t.g,i.g),c(e,t.b,i.b),c(e,t.a,i.a))}function pe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new g(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.l,i.l))}function ge(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new m(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.v,i.v))}function me(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new y(c(e,t.x,i.x),c(e,t.y,i.y),c(e,t.z,i.z))}function be(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new b(c(e,t.l,i.l),c(e,t.a,i.a),c(e,t.b,i.b))}function fe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new f(c(e,t.l,i.l),c(e,t.c,i.c),h(e,t.h,i.h))}function ve(e,t,i,o){if(isNaN(e)||e<=0)return i;if(e>=1)return o;switch(t){case ce.HSL:return I(pe(e,_(i),_(o)));case ce.HSV:return F(ge(e,A(i),A(o)));case ce.XYZ:return V(me(e,L(i),L(o)));case ce.LAB:return M(be(e,P(i),P(o)));case ce.LCH:return H(fe(e,B(i),B(o)));default:return ue(e,i,o)}}!function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"}(le||(le={})),function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"}(ce||(ce={}));class ye{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let i=0;i<e.length;i++)0===i?t[i]={color:e[i],position:0}:i===e.length-1?t[i]={color:e[i],position:1}:t[i]={color:e[i],position:i*(1/(e.length-1))};return new ye(t)}getColor(e,t=ce.RGB){if(1===this.stops.length)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let i=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(i=t);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return ve((e-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),t,this.stops[i].color,this.stops[o].color)}trim(e,t,i=ce.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new ye([{color:this.getColor(e,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=e&&this.stops[i].position<=t&&o.push(this.stops[i]);if(0===o.length)return new ye([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);o[0].position!==e&&o.unshift({color:this.getColor(e),position:e}),o[o.length-1].position!==t&&o.push({color:this.getColor(t),position:t});const s=t-e,r=new Array(o.length);for(let t=0;t<o.length;t++)r[t]={color:o[t].color,position:(o[t].position-e)/s};return new ye(r)}findNextColor(e,t,i=!1,o=ce.RGB,s=.005,r=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);const n=this.getColor(e,o),a=i?0:1;if(C(n,this.getColor(a,o))<=t)return a;let l=i?0:e,c=i?e:0,h=a,d=0;for(;d<=r;){h=Math.abs(c-l)/2+l;const e=C(n,this.getColor(h,o));if(Math.abs(e-t)<=s)return h;e>t?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new ye(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const i=e.position,o=t.position;return i<o?-1:i>o?1:0}))}}const xe={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},$e=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,we=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Ce=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,ke=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function Te(e){return Ce.test(e)}function Se(e){return ke.test(e)}function _e(e){return Se(e)}function Ie(e){return $e.test(e)}function Ae(e){return we.test(e)}function Fe(e){return xe.hasOwnProperty(e)}function Oe(e){const t=Ce.exec(e);if(null===t)return null;let i=t[1];if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2);i=e.concat(e,t,t,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),1)}function De(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),s((4278190080&o)>>>24,0,255))}function Re(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((4278190080&o)>>>24,0,255),s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255))}function Ee(e){const t=$e.exec(e);if(null===t)return null;const i=t[1].split(",");return new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),1)}function Le(e){const t=we.exec(e);if(null===t)return null;const i=t[1].split(",");return 4===i.length?new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),Number(i[3])):null}function Ve(e){const t=xe[e.toLowerCase()];return t?new v(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function Pe(e){const t=e.toLowerCase();return Te(t)?Oe(t):_e(t)?De(t):Ie(t)?Ee(t):Ae(t)?Le(t):Fe(t)?Ve(t):null}class Me{constructor(e){this.config=Object.assign({},Me.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const e=_(this.config.baseColor),t=new ye([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=t.getColor(0),o=t.getColor(1);if(e.s>=this.config.saturationAdjustmentCutoff&&(i=j(i,this.config.saturationLight),o=j(o,this.config.saturationDark)),0!==this.config.multiplyLight){const e=oe(this.config.baseColor,i);i=ve(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(0!==this.config.multiplyDark){const e=oe(this.config.baseColor,o);o=ve(this.config.multiplyDark,this.config.interpolationMode,o,e)}if(0!==this.config.overlayLight){const e=re(this.config.baseColor,i);i=ve(this.config.overlayLight,this.config.interpolationMode,i,e)}if(0!==this.config.overlayDark){const e=re(this.config.baseColor,o);o=ve(this.config.overlayDark,this.config.interpolationMode,o,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ye([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new ye([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new ye([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new ye([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}function Be(e,t){const i=_(e);let o=Number.MAX_VALUE,s=0;for(let e=0;e<t.length;e++){const r=_(t[e]),n=Math.abs(r.l-i.l);n<o&&(o=n,s=e)}return s}function He(e,t,i=Me.greyscalePaletteConfig,o=Me.defaultPaletteConfig){const s=Be(e,new Me(Object.assign(Object.assign({},i),{steps:t})).palette);return new Me(Object.assign(Object.assign({},o),{steps:t,baseColor:e,baseScalePosition:s/(t-1)}))}function ze(e,t,i){if(e.length<=1||t<=1)throw new Error("The input array and targetSize must both be greater than 1");if(i&&t<=e.length)throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array");const o=new Array(e.length);if(i)for(let i=0;i<e.length;i++){const s=i/(e.length-1);let r=2,n=0;for(let e=0;e<t;e++){const i=Math.abs(e/(t-1)-s);if(i<r&&(r=i,n=e),0===i)break}o[i]={color:e[i],position:n/(t-1)}}else for(let t=0;t<o.length;t++)o[t]={color:e[t],position:t/(e.length-1)};const s=new ye(o),r=new Array(t);for(let e=0;e<t;e++)r[e]=s.getColor(e/(t-1));return r}Me.defaultPaletteConfig={baseColor:Oe("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Me.greyscalePaletteConfig={baseColor:Oe("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};const Ne={targetSize:63,spacing:4,scaleColorLight:Me.defaultPaletteConfig.scaleColorLight,scaleColorDark:Me.defaultPaletteConfig.scaleColorDark};function je(e,t=Ne){if(0===e.length)return[];const i=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(i<0)throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0");const o=new Array(e.length+2);o[0]={position:0,color:t.scaleColorLight},o[o.length-1]={position:1,color:t.scaleColorDark};for(let s=0;s<e.length;s++)o[s+1]={color:e[s],position:(s*t.spacing+i)/(t.targetSize-1)};const s=new ye(o),r=new Array(t.targetSize);for(let e=0;e<t.targetSize;e++)r[e]=s.getColor(e/(t.targetSize-1));return r}function Ge(e,t=11,i=Ne){const o=He(e,t),s=je(o.palette,i);return{short:o.palette,long:s}}class qe{constructor(e,t=5,i=5,o=null){if(this.getHistogramIndex=(e,t,i)=>{const o=(e<<2*this.significantBits)+(t<<this.significantBits)+i;if(o>=this.data.length)throw new Error("RGB value is outside the bounds of the histogram");return o},this.getHistogramValue=(e,t,i)=>this.data[this.getHistogramIndex(e,t,i)],this.setHistogramValue=(e,t,i,o)=>{this.data[this.getHistogramIndex(t,i,o)]=e},t<1||t>8)throw new Error("significantBits must be in the range [1,8]");if(i<0)throw new Error("pixelSkipping must be >= 0");this.significantBits=t;const s=8-this.significantBits;this.minRed=255>>>s,this.maxRed=0,this.minGreen=255>>>s,this.maxGreen=0,this.minBlue=255>>>s,this.maxBlue=0;const r=1<<3*t;this.data=new Uint32Array(r),this.data.fill(0),this.total=0;let n=0;for(let t=0;t<e.height;t++)for(let r=0;r<e.width;r++){if(i>0&&n++%i!=0)continue;const a=e.getPixelRGBA(r,t);if(null!==o&&!o(a))continue;a[0]=a[0]>>>s,a[1]=a[1]>>>s,a[2]=a[2]>>>s,this.minRed=Math.min(a[0],this.minRed),this.maxRed=Math.max(a[0],this.maxRed),this.minGreen=Math.min(a[1],this.minGreen),this.maxGreen=Math.max(a[1],this.maxGreen),this.minBlue=Math.min(a[2],this.minBlue),this.maxBlue=Math.max(a[2],this.maxBlue);const l=this.getHistogramIndex(a[0],a[1],a[2]);this.data[l]+=1,this.total++}}}function Ue(e,t,i){if(0===e.length)return void e.push(t);const o=i(t);if(o>i(e[0]))return void e.unshift(t);if(o<=i(e[e.length-1]))return void e.push(t);let s=0;for(let t=0;t<e.length;t++)if(o>i(e[t])){s=t;break}e.splice(s,0,t)}class We{constructor(e,t,i,o,s,r,n){this.modifiedMedianCut=()=>{if(1===this.rangeRed&&1===this.rangeGreen&&1===this.rangeBlue)return[this,null];let e,t,i;!function(e){e[e.Red=0]="Red",e[e.Green=1]="Green",e[e.Blue=2]="Blue"}(e||(e={})),this.rangeRed>=this.rangeGreen&&this.rangeRed>=this.rangeBlue?(t=e.Red,i=this.rangeRed):this.rangeGreen>=this.rangeRed&&this.rangeGreen>=this.rangeBlue?(t=e.Green,i=this.rangeGreen):(t=e.Blue,i=this.rangeBlue);const o=new Array(i),s=new Array(i);let r=null,n=null,a=0;if(t===e.Red){for(let e=this.minRed;e<=this.maxRed;e++){let t=0;for(let i=this.minGreen;i<=this.maxGreen;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(e,i,o);a+=t,o[e-this.minRed]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minRed;e<=this.maxRed;e++)if(o[e-this.minRed]>=a/2){const t=e-this.minRed,i=this.maxRed-e;let a;for(a=t<=i?Math.min(this.maxRed-1,Math.floor(e+i/2)):Math.max(this.minRed,Math.floor(e-1-t/2));o[a-this.minRed]<=0&&a<this.maxRed-1;)a++;let l=s[a-this.minRed];for(;0===l&&a>this.minRed&&0!==o[a-this.minRed-1];)a--,l=s[a-this.minRed];r=new We(this.globalHistogram,this.minRed,a,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,a+1,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue);break}}else if(t===e.Green){for(let e=this.minGreen;e<=this.maxGreen;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(i,e,o);a+=t,o[e-this.minGreen]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minGreen;e<=this.maxGreen;e++)if(o[e-this.minGreen]>=a/2){const t=e-this.minGreen,i=this.maxGreen-e;let a;for(a=t<=i?Math.min(this.maxGreen-1,Math.floor(e+i/2)):Math.max(this.minGreen,Math.floor(e-1-t/2));o[a-this.minGreen]<=0&&a<this.maxGreen-1;)a++;let l=s[a-this.minGreen];for(;0===l&&a>this.minGreen&&0!==o[a-this.minGreen-1];)a--,l=s[a-this.minGreen];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,a,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,this.minRed,this.maxRed,a+1,this.maxGreen,this.minBlue,this.maxBlue);break}}else{for(let e=this.minBlue;e<=this.maxBlue;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minGreen;o<=this.maxGreen;o++)t+=this.globalHistogram.getHistogramValue(i,o,e);a+=t,o[e-this.minBlue]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minBlue;e<=this.maxBlue;e++)if(o[e-this.minBlue]>=a/2){const t=e-this.minBlue,i=this.maxBlue-e;let a;for(a=t<=i?Math.min(this.maxBlue-1,Math.floor(e+i/2)):Math.max(this.minBlue,Math.floor(e-1-t/2));o[a-this.minBlue]<=0&&a<this.maxBlue-1;)a++;let l=s[a-this.minBlue];for(;0===l&&a>this.minBlue&&0!==o[a-this.minBlue-1];)a--,l=s[a-this.minBlue];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,a),n=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,a+1,this.maxBlue);break}}return[r,n]},this.pixelCount=0,this.globalHistogram=e,this.minRed=t,this.maxRed=i,this.minGreen=o,this.maxGreen=s,this.minBlue=r,this.maxBlue=n,this.rangeRed=this.maxRed-this.minRed+1,this.rangeGreen=this.maxGreen-this.minGreen+1,this.rangeBlue=this.maxBlue-this.minBlue+1,this.colorVolume=this.rangeRed*this.rangeGreen*this.rangeBlue;let a=0,l=0,c=0;const h=1<<8-this.globalHistogram.significantBits;for(let e=t;e<=i;e++)for(let t=o;t<=s;t++)for(let i=r;i<=n;i++){const o=this.globalHistogram.getHistogramValue(e,t,i);this.pixelCount+=o,a+=o*(e+.5)*h,l+=o*(t+.5)*h,c+=o*(i+.5)*h}0===this.pixelCount?this.averageColor=new v(h*((t+i+1)/2)/255,h*((o+s+1)/2)/255,h*((r+n+1)/2)/255,1):this.averageColor=new v(a/this.pixelCount/255,l/this.pixelCount/255,c/this.pixelCount/255,1)}}function Ke(e,t){if(null===t)return e.length;let i=0;for(let o=0;o<e.length;o++)t(e[o])&&i++;return i}const Xe={significantBits:5,pixelSkipping:5,targetPaletteSize:64,fractionByPopulation:.85,isBoxValid:e=>!(e.pixelCount<5),isHistogramPixelValid:e=>!(e[3]<128),maxIterations:1e3};function Ye(e,t=Xe){const i=[new We(e,e.minRed,e.maxRed,e.minGreen,e.maxGreen,e.minBlue,e.maxBlue)];let o=Ke(i,t.isBoxValid);const s=Math.floor(t.targetPaletteSize*t.fractionByPopulation),r=e=>e.pixelCount;let n=0;for(;n<=t.maxIterations;){if(i.length>0){const e=i.shift().modifiedMedianCut();null!==e[0]&&Ue(i,e[0],r),null!==e[1]&&Ue(i,e[1],r)}if(o=Ke(i,t.isBoxValid),o>=s||i.length<=1)break;n++}if(o<t.targetPaletteSize){const e=e=>e.pixelCount*e.colorVolume;for(i.sort(((t,i)=>{const o=e(t),s=e(i);return o===s?0:o>s?-1:1})),n=0;n<=t.maxIterations;){if(i.length>0){const t=i.shift().modifiedMedianCut();null!==t[0]&&Ue(i,t[0],e),null!==t[1]&&Ue(i,t[1],e)}if(o=Ke(i,t.isBoxValid),o>=t.targetPaletteSize||i.length<=1)break;n++}}const a=new Array(o);let l=0;for(let e=0;e<i.length;e++)t.isBoxValid&&!t.isBoxValid(i[e])||(a[l]={color:i[e].averageColor,pixelCount:i[e].pixelCount,colorVolume:i[e].colorVolume},l++);return a}function Qe(e,t=Xe){return Ye(new qe(e,t.significantBits,t.pixelSkipping,t.isHistogramPixelValid),t)}class Ze{constructor(e){this.palette=[],this.config=Object.assign({},Ze.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,i=new v(t,t,t,1),o=new Me(Object.assign(Object.assign({},Me.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,s=(x(this.config.baseColor)+_(this.config.baseColor).l)/2,r=this.matchRelativeLuminanceIndex(s,o)/(e-1),n=this.matchRelativeLuminanceIndex(t,o)/(e-1),a=_(this.config.baseColor),l=I(g.fromObject({h:a.h,s:a.s,l:t})),c=I(g.fromObject({h:a.h,s:a.s,l:.06})),h=new Array(5);h[0]={position:0,color:new v(1,1,1,1)},h[1]={position:r,color:this.config.baseColor},h[2]={position:n,color:l},h[3]={position:.99,color:c},h[4]={position:1,color:new v(0,0,0,1)};const d=new ye(h);this.palette=new Array(e);for(let t=0;t<e;t++){const i=d.getColor(t/(e-1),ce.RGB);this.palette[t]=i}}matchRelativeLuminanceIndex(e,t){let i=Number.MAX_VALUE,o=0,s=0;const r=t.length;for(;s<r;s++){const r=Math.abs(x(t[s])-e);r<i&&(i=r,o=s)}return o}}Ze.defaultPaletteConfig={baseColor:Oe("#808080"),steps:94};const Je={saturationWeight:6,luminosityWeight:3,populationWeight:1,volumeWeight:.1,constraints:[{id:"Vibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45},{id:"Muted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45}]};function et(e,t=Je){if(0===t.constraints.length)return[];let i=0,o=0;for(let t=0;t<e.length;t++)i+=e[t].pixelCount,o+=e[t].colorVolume;const s=new Array(t.constraints.length),r=new Array(t.constraints.length);for(let e=0;e<s.length;e++)r[e]=0,s[e]={found:!1,constraint:t.constraints[e]};const n=t.saturationWeight+t.luminosityWeight+t.populationWeight+t.volumeWeight;for(let a=0;a<e.length;a++){const l=_(e[a].color);for(let c=0;c<t.constraints.length;c++)if(l.s>=t.constraints[c].minSaturation&&l.s<=t.constraints[c].maxSaturation&&l.l>=t.constraints[c].minLuminosity&&l.l<=t.constraints[c].maxLuminosity){const h=e[a].pixelCount/i,d=e[a].colorVolume/o,u=1-Math.abs(l.s-t.constraints[c].targetSaturation),p=1-Math.abs(l.l-t.constraints[c].targetLuminosity),g=(h*t.populationWeight+d*t.volumeWeight+u*t.saturationWeight+p*t.luminosityWeight)/n;if(g>r[c]){let t=!1;for(let i=0;i<c;i++)if(s[i].found&&s[i].color.color.equalValue(e[a].color)){t=!0;break}t||(r[c]=g,s[c].found=!0,s[c].color=e[a])}}}return s}function tt(e){return new Promise(((t,i)=>{const o=new Image;o?(o.onload=e=>{const s=document.createElement("canvas");if(!s)return void i("Unable to create canvas");s.width=o.naturalWidth,s.height=o.naturalHeight;const r=s.getContext("2d");if(!r)return void i("Unable to create context");r.drawImage(o,0,0,s.width,s.height);const n=r.getImageData(0,0,s.width,s.height);t(n)},o.onerror=e=>{i(e)},o.onabort=e=>{i(e)},o.src=e):i("Unable to create image")}))}class it{constructor(e){this.getPixel=(e,t)=>{const i=this.getPixelRGBA(e,t);return new v(i[0]/255,i[1]/255,i[2]/255,i[3]/255)},this.getPixelRGBA=(e,t)=>{if(e<0||e>=this.width||t<0||t>=this.height)throw new Error("Requested pixel is outside of the image bounds");const i=4*(t*this.width+e);return[this.image.data[i],this.image.data[i+1],this.image.data[i+2],this.image.data[i+3]]},this.image=e,this.width=e.width,this.height=e.height,this.totalPixels=this.width*this.height}}},79179:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>o.Accordion,AccordionItem:()=>o.AccordionItem,ActionsStyles:()=>vo,Anchor:()=>mi,AnchoredRegion:()=>o.AnchoredRegion,Avatar:()=>wi,Badge:()=>o.Badge,Breadcrumb:()=>o.Breadcrumb,BreadcrumbItem:()=>o.BreadcrumbItem,Button:()=>Di,Calendar:()=>o.Calendar,CalendarStyles:()=>Ei,Card:()=>Mi,Checkbox:()=>o.Checkbox,Combobox:()=>qi,DataGrid:()=>o.DataGrid,DataGridCell:()=>o.DataGridCell,DataGridRow:()=>o.DataGridRow,DesignSystemProvider:()=>io,Dialog:()=>o.Dialog,DirectionalStyleSheetBehavior:()=>yi,Disclosure:()=>co,Divider:()=>o.Divider,Flipper:()=>o.Flipper,HorizontalScroll:()=>xo,Listbox:()=>ko,ListboxOption:()=>o.ListboxOption,Menu:()=>Ao,MenuItem:()=>o.MenuItem,NumberField:()=>Do,PaletteRGB:()=>g,Picker:()=>o.Picker,PickerMenu:()=>Bo,Progress:()=>o.BaseProgress,ProgressRing:()=>o.BaseProgress,Radio:()=>o.Radio,RadioGroup:()=>o.RadioGroup,Search:()=>ts,Select:()=>ss,Skeleton:()=>o.Skeleton,Slider:()=>o.Slider,SliderLabel:()=>us,StandardLuminance:()=>$,SwatchRGB:()=>l,Switch:()=>o.Switch,Tab:()=>o.Tab,TabPanel:()=>o.TabPanel,Tabs:()=>o.Tabs,TextArea:()=>_s,TextField:()=>Fs,Toolbar:()=>Rs,Tooltip:()=>o.Tooltip,TreeItem:()=>o.TreeItem,TreeView:()=>o.TreeView,accentColor:()=>De,accentFillActive:()=>Qe,accentFillActiveDelta:()=>ie,accentFillFocus:()=>Ze,accentFillFocusDelta:()=>oe,accentFillHover:()=>Ye,accentFillHoverDelta:()=>te,accentFillRecipe:()=>Ke,accentFillRest:()=>Xe,accentFillRestDelta:()=>ee,accentForegroundActive:()=>gt,accentForegroundActiveDelta:()=>ne,accentForegroundFocus:()=>mt,accentForegroundFocusDelta:()=>ae,accentForegroundHover:()=>pt,accentForegroundHoverDelta:()=>re,accentForegroundRecipe:()=>dt,accentForegroundRest:()=>ut,accentForegroundRestDelta:()=>se,accentPalette:()=>Re,accordionItemStyles:()=>oi,accordionStyles:()=>ei,allComponents:()=>Us,anchorStyles:()=>gi,anchoredRegionStyles:()=>fi,avatarStyles:()=>$i,badgeStyles:()=>Ti,baseHeightMultiplier:()=>S,baseHorizontalSpacingMultiplier:()=>_,baseLayerLuminance:()=>I,bodyFont:()=>T,breadcrumbItemStyles:()=>_i,breadcrumbStyles:()=>Ai,buttonStyles:()=>Oi,cardStyles:()=>Pi,checkboxStyles:()=>Hi,comboboxStyles:()=>Gi,controlCornerRadius:()=>A,dataGridCellStyles:()=>Xi,dataGridRowStyles:()=>Ki,dataGridStyles:()=>Wi,density:()=>F,designSystemProviderStyles:()=>so,designSystemProviderTemplate:()=>oo,designUnit:()=>O,dialogStyles:()=>no,direction:()=>D,disabledOpacity:()=>R,disclosureStyles:()=>lo,dividerStyles:()=>uo,fastAccordion:()=>ri,fastAccordionItem:()=>si,fastAnchor:()=>bi,fastAnchoredRegion:()=>vi,fastAvatar:()=>ki,fastBadge:()=>Si,fastBreadcrumb:()=>Fi,fastBreadcrumbItem:()=>Ii,fastButton:()=>Ri,fastCalendar:()=>Li,fastCard:()=>Bi,fastCheckbox:()=>zi,fastCombobox:()=>Ui,fastDataGrid:()=>Zi,fastDataGridCell:()=>Yi,fastDataGridRow:()=>Qi,fastDesignSystemProvider:()=>ro,fastDialog:()=>ao,fastDisclosure:()=>ho,fastDivider:()=>po,fastFlipper:()=>mo,fastHorizontalScroll:()=>$o,fastListbox:()=>To,fastMenu:()=>Fo,fastMenuItem:()=>_o,fastNumberField:()=>Ro,fastOption:()=>Co,fastPicker:()=>Mo,fastPickerList:()=>No,fastPickerListItem:()=>jo,fastPickerMenu:()=>Ho,fastPickerMenuOption:()=>zo,fastProgress:()=>Wo,fastProgressRing:()=>qo,fastRadio:()=>Qo,fastRadioGroup:()=>Xo,fastSearch:()=>is,fastSelect:()=>rs,fastSkeleton:()=>as,fastSlider:()=>fs,fastSliderLabel:()=>ps,fastSwitch:()=>ys,fastTab:()=>ws,fastTabPanel:()=>ks,fastTabs:()=>Ts,fastTextArea:()=>Is,fastTextField:()=>Os,fastToolbar:()=>Es,fastTooltip:()=>Vs,fastTreeItem:()=>js,fastTreeView:()=>qs,fillColor:()=>Ue,flipperStyles:()=>go,focusStrokeInner:()=>zt,focusStrokeInnerRecipe:()=>Ht,focusStrokeOuter:()=>Bt,focusStrokeOuterRecipe:()=>Mt,focusStrokeWidth:()=>L,foregroundOnAccentActive:()=>ot,foregroundOnAccentActiveLarge:()=>lt,foregroundOnAccentFocus:()=>st,foregroundOnAccentFocusLarge:()=>ct,foregroundOnAccentHover:()=>it,foregroundOnAccentHoverLarge:()=>at,foregroundOnAccentLargeRecipe:()=>rt,foregroundOnAccentRecipe:()=>et,foregroundOnAccentRest:()=>tt,foregroundOnAccentRestLarge:()=>nt,heightNumberAsToken:()=>Jt,horizontalScrollStyles:()=>yo,horizontalSliderLabelStyles:()=>cs,imgTemplate:()=>Ci,isDark:()=>u,listboxStyles:()=>Ni,menuItemStyles:()=>So,menuStyles:()=>Io,neutralColor:()=>Fe,neutralFillActive:()=>yt,neutralFillActiveDelta:()=>he,neutralFillFocus:()=>xt,neutralFillFocusDelta:()=>de,neutralFillHover:()=>vt,neutralFillHoverDelta:()=>ce,neutralFillInputActive:()=>kt,neutralFillInputActiveDelta:()=>ge,neutralFillInputFocus:()=>Tt,neutralFillInputFocusDelta:()=>me,neutralFillInputHover:()=>Ct,neutralFillInputHoverDelta:()=>pe,neutralFillInputRecipe:()=>$t,neutralFillInputRest:()=>wt,neutralFillInputRestDelta:()=>ue,neutralFillLayerRecipe:()=>Vt,neutralFillLayerRest:()=>Pt,neutralFillLayerRestDelta:()=>ke,neutralFillRecipe:()=>bt,neutralFillRest:()=>ft,neutralFillRestDelta:()=>le,neutralFillStealthActive:()=>At,neutralFillStealthActiveDelta:()=>ve,neutralFillStealthFocus:()=>Ft,neutralFillStealthFocusDelta:()=>ye,neutralFillStealthHover:()=>It,neutralFillStealthHoverDelta:()=>fe,neutralFillStealthRecipe:()=>St,neutralFillStealthRest:()=>_t,neutralFillStealthRestDelta:()=>be,neutralFillStrongActive:()=>Et,neutralFillStrongActiveDelta:()=>we,neutralFillStrongFocus:()=>Lt,neutralFillStrongFocusDelta:()=>Ce,neutralFillStrongHover:()=>Rt,neutralFillStrongHoverDelta:()=>$e,neutralFillStrongRecipe:()=>Ot,neutralFillStrongRest:()=>Dt,neutralFillStrongRestDelta:()=>xe,neutralForegroundHint:()=>jt,neutralForegroundHintRecipe:()=>Nt,neutralForegroundRecipe:()=>Gt,neutralForegroundRest:()=>qt,neutralLayer1:()=>Be,neutralLayer1Recipe:()=>Me,neutralLayer2:()=>ze,neutralLayer2Recipe:()=>He,neutralLayer3:()=>je,neutralLayer3Recipe:()=>Ne,neutralLayer4:()=>qe,neutralLayer4Recipe:()=>Ge,neutralLayerCardContainer:()=>Le,neutralLayerCardContainerRecipe:()=>Ee,neutralLayerFloating:()=>Pe,neutralLayerFloatingRecipe:()=>Ve,neutralPalette:()=>Oe,neutralStrokeActive:()=>Xt,neutralStrokeActiveDelta:()=>_e,neutralStrokeDividerRecipe:()=>Qt,neutralStrokeDividerRest:()=>Zt,neutralStrokeDividerRestDelta:()=>Ae,neutralStrokeFocus:()=>Yt,neutralStrokeFocusDelta:()=>Ie,neutralStrokeHover:()=>Kt,neutralStrokeHoverDelta:()=>Se,neutralStrokeRecipe:()=>Ut,neutralStrokeRest:()=>Wt,neutralStrokeRestDelta:()=>Te,numberFieldStyles:()=>Oo,optionStyles:()=>wo,pickerListItemStyles:()=>Po,pickerMenuOptionStyles:()=>Vo,pickerMenuStyles:()=>Lo,pickerStyles:()=>Eo,progressRingStyles:()=>Go,progressStyles:()=>Uo,provideFASTDesignSystem:()=>Ws,radioGroupStyles:()=>Ko,radioStyles:()=>Yo,searchStyles:()=>os,selectStyles:()=>ji,skeletonStyles:()=>ns,sliderLabelStyles:()=>ds,sliderStyles:()=>bs,strokeWidth:()=>E,switchStyles:()=>vs,tabPanelStyles:()=>Cs,tabStyles:()=>$s,tabsStyles:()=>xs,textAreaStyles:()=>Ss,textFieldStyles:()=>As,toolbarStyles:()=>Ds,tooltipStyles:()=>Ls,treeItemStyles:()=>Ns,treeViewStyles:()=>Gs,typeRampBaseFontSize:()=>V,typeRampBaseLineHeight:()=>P,typeRampMinus1FontSize:()=>M,typeRampMinus1LineHeight:()=>B,typeRampMinus2FontSize:()=>H,typeRampMinus2LineHeight:()=>z,typeRampPlus1FontSize:()=>N,typeRampPlus1LineHeight:()=>j,typeRampPlus2FontSize:()=>G,typeRampPlus2LineHeight:()=>q,typeRampPlus3FontSize:()=>U,typeRampPlus3LineHeight:()=>W,typeRampPlus4FontSize:()=>K,typeRampPlus4LineHeight:()=>X,typeRampPlus5FontSize:()=>Y,typeRampPlus5LineHeight:()=>Q,typeRampPlus6FontSize:()=>Z,typeRampPlus6LineHeight:()=>J,verticalSliderLabelStyles:()=>hs});var o=i(34387),s=i(57418),r=i(85109),n=i(4273);function a(e,t){const i=e.relativeLuminance>t.relativeLuminance?e:t,o=e.relativeLuminance>t.relativeLuminance?t:e;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const l=Object.freeze({create:(e,t,i)=>new c(e,t,i),from:e=>new c(e.r,e.g,e.b)});class c extends n.ColorRGBA64{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=a.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,n.rgbToRelativeLuminance)(this)}static fromObject(e){return new c(e.r,e.g,e.b)}}function h(e,t,i=0,o=e.length-1){if(o===i)return e[i];const s=Math.floor((o-i)/2)+i;return t(e[s])?h(e,t,i,s):h(e,t,s+1,o)}const d=(-.1+Math.sqrt(.21))/2;function u(e){return e.relativeLuminance<=d}function p(e){return u(e)?-1:1}const g=Object.freeze({create:function(e,t,i){return"number"==typeof e?g.from(l.create(e,t,i)):g.from(e)},from:function(e){return function(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in t)if(typeof t[i]!=typeof e[i])return!1;return!0}(e)?m.from(e):m.from(l.create(e.r,e.g,e.b))}});class m{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,o){void 0===i&&(i=this.closestIndexOf(e));let s=this.swatches;const r=this.lastIndex;let n=i;void 0===o&&(o=p(e));return-1===o&&(s=this.reversedSwatches,n=r-n),h(s,(i=>a(e,i)>=t),n,r)}get(e){return this.swatches[e]||this.swatches[(0,n.clamp)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const i=this.swatches.reduce(((t,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?i:t));return t=this.swatches.indexOf(i),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new m(e,Object.freeze(new n.ComponentStateColorPalette({baseColor:n.ColorRGBA64.fromObject(e)}).palette.map((e=>{const t=(0,n.parseColorHexRGB)(e.toStringHexRGB());return l.create(t.r,t.g,t.b)}))))}}const b=l.create(1,1,1),f=l.create(0,0,0),v=l.from((0,n.parseColorHexRGB)("#808080")),y=l.from((0,n.parseColorHexRGB)("#DA1A5F"));function x(e){return l.create(e,e,e)}const $={LightMode:1,DarkMode:.23};function w(e,t,i,o,s,r){return Math.max(e.closestIndexOf(x(t))+i,o,s,r)}const{create:C}=o.DesignToken;function k(e){return o.DesignToken.create({name:e,cssCustomPropertyName:null})}const T=C("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),S=C("base-height-multiplier").withDefault(10),_=C("base-horizontal-spacing-multiplier").withDefault(3),I=C("base-layer-luminance").withDefault($.DarkMode),A=C("control-corner-radius").withDefault(4),F=C("density").withDefault(0),O=C("design-unit").withDefault(4),D=C("direction").withDefault(r.O.ltr),R=C("disabled-opacity").withDefault(.3),E=C("stroke-width").withDefault(1),L=C("focus-stroke-width").withDefault(2),V=C("type-ramp-base-font-size").withDefault("14px"),P=C("type-ramp-base-line-height").withDefault("20px"),M=C("type-ramp-minus-1-font-size").withDefault("12px"),B=C("type-ramp-minus-1-line-height").withDefault("16px"),H=C("type-ramp-minus-2-font-size").withDefault("10px"),z=C("type-ramp-minus-2-line-height").withDefault("16px"),N=C("type-ramp-plus-1-font-size").withDefault("16px"),j=C("type-ramp-plus-1-line-height").withDefault("24px"),G=C("type-ramp-plus-2-font-size").withDefault("20px"),q=C("type-ramp-plus-2-line-height").withDefault("28px"),U=C("type-ramp-plus-3-font-size").withDefault("28px"),W=C("type-ramp-plus-3-line-height").withDefault("36px"),K=C("type-ramp-plus-4-font-size").withDefault("34px"),X=C("type-ramp-plus-4-line-height").withDefault("44px"),Y=C("type-ramp-plus-5-font-size").withDefault("46px"),Q=C("type-ramp-plus-5-line-height").withDefault("56px"),Z=C("type-ramp-plus-6-font-size").withDefault("60px"),J=C("type-ramp-plus-6-line-height").withDefault("72px"),ee=k("accent-fill-rest-delta").withDefault(0),te=k("accent-fill-hover-delta").withDefault(4),ie=k("accent-fill-active-delta").withDefault(-5),oe=k("accent-fill-focus-delta").withDefault(0),se=k("accent-foreground-rest-delta").withDefault(0),re=k("accent-foreground-hover-delta").withDefault(6),ne=k("accent-foreground-active-delta").withDefault(-4),ae=k("accent-foreground-focus-delta").withDefault(0),le=k("neutral-fill-rest-delta").withDefault(7),ce=k("neutral-fill-hover-delta").withDefault(10),he=k("neutral-fill-active-delta").withDefault(5),de=k("neutral-fill-focus-delta").withDefault(0),ue=k("neutral-fill-input-rest-delta").withDefault(0),pe=k("neutral-fill-input-hover-delta").withDefault(0),ge=k("neutral-fill-input-active-delta").withDefault(0),me=k("neutral-fill-input-focus-delta").withDefault(0),be=k("neutral-fill-stealth-rest-delta").withDefault(0),fe=k("neutral-fill-stealth-hover-delta").withDefault(5),ve=k("neutral-fill-stealth-active-delta").withDefault(3),ye=k("neutral-fill-stealth-focus-delta").withDefault(0),xe=k("neutral-fill-strong-rest-delta").withDefault(0),$e=k("neutral-fill-strong-hover-delta").withDefault(8),we=k("neutral-fill-strong-active-delta").withDefault(-5),Ce=k("neutral-fill-strong-focus-delta").withDefault(0),ke=k("neutral-fill-layer-rest-delta").withDefault(3),Te=k("neutral-stroke-rest-delta").withDefault(25),Se=k("neutral-stroke-hover-delta").withDefault(40),_e=k("neutral-stroke-active-delta").withDefault(16),Ie=k("neutral-stroke-focus-delta").withDefault(25),Ae=k("neutral-stroke-divider-rest-delta").withDefault(8),Fe=C("neutral-color").withDefault(v),Oe=k("neutral-palette").withDefault((e=>g.from(Fe.getValueFor(e)))),De=C("accent-color").withDefault(y),Re=k("accent-palette").withDefault((e=>g.from(De.getValueFor(e)))),Ee=k("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),t.get(t.closestIndexOf(x(i))+o);var t,i,o}}),Le=C("neutral-layer-card-container").withDefault((e=>Ee.getValueFor(e).evaluate(e))),Ve=k("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(x(t))-i;return e.get(o-i)}(Oe.getValueFor(e),I.getValueFor(e),ke.getValueFor(e))}),Pe=C("neutral-layer-floating").withDefault((e=>Ve.getValueFor(e).evaluate(e))),Me=k("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(x(t)))}(Oe.getValueFor(e),I.getValueFor(e))}),Be=C("neutral-layer-1").withDefault((e=>Me.getValueFor(e).evaluate(e))),He=k("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n));var t,i,o,s,r,n}}),ze=C("neutral-layer-2").withDefault((e=>He.getValueFor(e).evaluate(e))),Ne=k("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+o);var t,i,o,s,r,n}}),je=C("neutral-layer-3").withDefault((e=>Ne.getValueFor(e).evaluate(e))),Ge=k("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+2*o);var t,i,o,s,r,n}}),qe=C("neutral-layer-4").withDefault((e=>Ge.getValueFor(e).evaluate(e))),Ue=C("fill-color").withDefault((e=>Be.getValueFor(e)));var We;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(We||(We={}));const Ke=C({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l){const c=e.source,h=t.closestIndexOf(i)>=Math.max(n,a,l)?-1:1,d=e.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*r;return{rest:e.get(u),hover:e.get(d),active:e.get(p),focus:e.get(g)}}(Re.getValueFor(e),Oe.getValueFor(e),t||Ue.getValueFor(e),te.getValueFor(e),ie.getValueFor(e),oe.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e))}),Xe=C("accent-fill-rest").withDefault((e=>Ke.getValueFor(e).evaluate(e).rest)),Ye=C("accent-fill-hover").withDefault((e=>Ke.getValueFor(e).evaluate(e).hover)),Qe=C("accent-fill-active").withDefault((e=>Ke.getValueFor(e).evaluate(e).active)),Ze=C("accent-fill-focus").withDefault((e=>Ke.getValueFor(e).evaluate(e).focus)),Je=e=>(t,i)=>function(e,t){return e.contrast(b)>=t?b:f}(i||Xe.getValueFor(t),e),et=k("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>Je(We.normal)(e,t)}),tt=C("foreground-on-accent-rest").withDefault((e=>et.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),it=C("foreground-on-accent-hover").withDefault((e=>et.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),ot=C("foreground-on-accent-active").withDefault((e=>et.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),st=C("foreground-on-accent-focus").withDefault((e=>et.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),rt=k("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>Je(We.large)(e,t)}),nt=C("foreground-on-accent-rest-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),at=C("foreground-on-accent-hover-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),lt=C("foreground-on-accent-active-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),ct=C("foreground-on-accent-focus-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),ht=e=>(t,i)=>function(e,t,i,o,s,r,n){const a=e.source,l=e.closestIndexOf(a),c=p(t),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=e.colorContrast(t,i,h,c),u=e.closestIndexOf(d),g=u+c*Math.abs(o-s);let m,b;return(1===c?o<s:c*o>c*s)?(m=u,b=g):(m=g,b=u),{rest:e.get(m),hover:e.get(b),active:e.get(m+c*r),focus:e.get(m+c*n)}}(Re.getValueFor(t),i||Ue.getValueFor(t),e,se.getValueFor(t),re.getValueFor(t),ne.getValueFor(t),ae.getValueFor(t)),dt=C({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ht(We.normal)(e,t)}),ut=C("accent-foreground-rest").withDefault((e=>dt.getValueFor(e).evaluate(e).rest)),pt=C("accent-foreground-hover").withDefault((e=>dt.getValueFor(e).evaluate(e).hover)),gt=C("accent-foreground-active").withDefault((e=>dt.getValueFor(e).evaluate(e).active)),mt=C("accent-foreground-focus").withDefault((e=>dt.getValueFor(e).evaluate(e).focus)),bt=C({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=n>=Math.max(i,o,s,r)?-1:1;return{rest:e.get(n+a*i),hover:e.get(n+a*o),active:e.get(n+a*s),focus:e.get(n+a*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),ft=C("neutral-fill-rest").withDefault((e=>bt.getValueFor(e).evaluate(e).rest)),vt=C("neutral-fill-hover").withDefault((e=>bt.getValueFor(e).evaluate(e).hover)),yt=C("neutral-fill-active").withDefault((e=>bt.getValueFor(e).evaluate(e).active)),xt=C("neutral-fill-focus").withDefault((e=>bt.getValueFor(e).evaluate(e).focus)),$t=C({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(t);return{rest:e.get(a-n*i),hover:e.get(a-n*o),active:e.get(a-n*s),focus:e.get(a-n*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),ue.getValueFor(e),pe.getValueFor(e),ge.getValueFor(e),me.getValueFor(e))}),wt=C("neutral-fill-input-rest").withDefault((e=>$t.getValueFor(e).evaluate(e).rest)),Ct=C("neutral-fill-input-hover").withDefault((e=>$t.getValueFor(e).evaluate(e).hover)),kt=C("neutral-fill-input-active").withDefault((e=>$t.getValueFor(e).evaluate(e).active)),Tt=C("neutral-fill-input-focus").withDefault((e=>$t.getValueFor(e).evaluate(e).focus)),St=C({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l,c){const h=Math.max(i,o,s,r,n,a,l,c),d=e.closestIndexOf(t),u=d>=h?-1:1;return{rest:e.get(d+u*i),hover:e.get(d+u*o),active:e.get(d+u*s),focus:e.get(d+u*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),be.getValueFor(e),fe.getValueFor(e),ve.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),_t=C("neutral-fill-stealth-rest").withDefault((e=>St.getValueFor(e).evaluate(e).rest)),It=C("neutral-fill-stealth-hover").withDefault((e=>St.getValueFor(e).evaluate(e).hover)),At=C("neutral-fill-stealth-active").withDefault((e=>St.getValueFor(e).evaluate(e).active)),Ft=C("neutral-fill-stealth-focus").withDefault((e=>St.getValueFor(e).evaluate(e).focus)),Ot=C({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(e.colorContrast(t,4.5)),l=a+n*Math.abs(i-o);let c,h;return(1===n?i<o:n*i>n*o)?(c=a,h=l):(c=l,h=a),{rest:e.get(c),hover:e.get(h),active:e.get(c+n*s),focus:e.get(c+n*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),xe.getValueFor(e),$e.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e))}),Dt=C("neutral-fill-strong-rest").withDefault((e=>Ot.getValueFor(e).evaluate(e).rest)),Rt=C("neutral-fill-strong-hover").withDefault((e=>Ot.getValueFor(e).evaluate(e).hover)),Et=C("neutral-fill-strong-active").withDefault((e=>Ot.getValueFor(e).evaluate(e).active)),Lt=C("neutral-fill-strong-focus").withDefault((e=>Ot.getValueFor(e).evaluate(e).focus)),Vt=k("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){const o=e.closestIndexOf(t);return e.get(o-(o<i?-1*i:i))}(Oe.getValueFor(e),t||Ue.getValueFor(e),ke.getValueFor(e))}),Pt=C("neutral-fill-layer-rest").withDefault((e=>Vt.getValueFor(e).evaluate(e))),Mt=k("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,3.5);var t,i}}),Bt=C("focus-stroke-outer").withDefault((e=>Mt.getValueFor(e).evaluate(e))),Ht=k("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Re.getValueFor(e),i=Ue.getValueFor(e),o=Bt.getValueFor(e),t.colorContrast(o,3.5,t.closestIndexOf(t.source),-1*p(i));var t,i,o}}),zt=C("focus-stroke-inner").withDefault((e=>Ht.getValueFor(e).evaluate(e))),Nt=k("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,4.5);var t,i}}),jt=C("neutral-foreground-hint").withDefault((e=>Nt.getValueFor(e).evaluate(e))),Gt=k("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,14);var t,i}}),qt=C("neutral-foreground-rest").withDefault((e=>Gt.getValueFor(e).evaluate(e))),Ut=C({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=p(t),l=n+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(r-i);return{rest:e.get(l),hover:e.get(c),active:e.get(h),focus:e.get(d)}}(Oe.getValueFor(e),Ue.getValueFor(e),Te.getValueFor(e),Se.getValueFor(e),_e.getValueFor(e),Ie.getValueFor(e))}),Wt=C("neutral-stroke-rest").withDefault((e=>Ut.getValueFor(e).evaluate(e).rest)),Kt=C("neutral-stroke-hover").withDefault((e=>Ut.getValueFor(e).evaluate(e).hover)),Xt=C("neutral-stroke-active").withDefault((e=>Ut.getValueFor(e).evaluate(e).active)),Yt=C("neutral-stroke-focus").withDefault((e=>Ut.getValueFor(e).evaluate(e).focus)),Qt=k("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){return e.get(e.closestIndexOf(t)+p(t)*i)}(Oe.getValueFor(e),t||Ue.getValueFor(e),Ae.getValueFor(e))}),Zt=C("neutral-stroke-divider-rest").withDefault((e=>Qt.getValueFor(e).evaluate(e))),Jt=o.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(S.getValueFor(e)+F.getValueFor(e))*O.getValueFor(e))),ei=(e,t)=>s.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[544],{75799:(e,t,i)=>{function o(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function s(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function r(e,t,i){return isNaN(e)?t:t+e*(i-t)}function n(e){return e*(Math.PI/180)}function a(e){return e*(180/Math.PI)}function l(e){const t=Math.round(o(e,0,255)).toString(16);return 1===t.length?"0"+t:t}function c(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:t+e*(i-t)}function h(e,t,i){if(e<=0)return t%360;if(e>=1)return i%360;const o=(t-i+360)%360;return o<=(i-t+360)%360?(t-o*e+360)%360:(t+o*e+360)%360}i.r(t),i.d(t,{ColorBlendMode:()=>le,ColorHSL:()=>g,ColorHSV:()=>m,ColorInterpolationSpace:()=>ce,ColorLAB:()=>b,ColorLCH:()=>f,ColorPalette:()=>Me,ColorRGBA64:()=>v,ColorScale:()=>ye,ColorXYZ:()=>y,ComponentStateColorPalette:()=>Ze,Histogram:()=>qe,ImageDataPixelBlob:()=>it,PixelBox:()=>We,blend:()=>he,blendBurn:()=>K,blendBurnChannel:()=>W,blendColor:()=>X,blendDarken:()=>Q,blendDarkenChannel:()=>Y,blendDodge:()=>J,blendDodgeChannel:()=>Z,blendLighten:()=>te,blendLightenChannel:()=>ee,blendMultiply:()=>oe,blendMultiplyChannel:()=>ie,blendOverlay:()=>re,blendOverlayChannel:()=>se,blendScreen:()=>ae,blendScreenChannel:()=>ne,calculateOverlayColor:()=>S,centeredRescale:()=>je,clamp:()=>o,computeAlphaBlend:()=>de,contrastRatio:()=>C,darkenViaLAB:()=>q,defaultCenteredRescaleConfig:()=>Ne,defaultPaletteExtractionConfig:()=>Je,defaultQuantizeConfig:()=>Xe,degreesToRadians:()=>n,denormalize:()=>r,desaturateViaLCH:()=>G,extractPalette:()=>et,generateOffCenterPalette:()=>He,generateScaledPalettes:()=>Ge,getHexStringForByte:()=>l,hslToRGB:()=>I,hsvToRGB:()=>F,insertIntoSortedList:()=>Ue,interpolateByColorSpace:()=>ve,interpolateHSL:()=>pe,interpolateHSV:()=>ge,interpolateLAB:()=>be,interpolateLCH:()=>fe,interpolateRGB:()=>ue,interpolateXYZ:()=>me,isColorNamed:()=>Fe,isColorStringHexARGB:()=>Se,isColorStringHexRGB:()=>Te,isColorStringHexRGBA:()=>_e,isColorStringWebRGB:()=>Ie,isColorStringWebRGBA:()=>Ae,labToLCH:()=>D,labToRGB:()=>M,labToXYZ:()=>R,lchToLAB:()=>O,lchToRGB:()=>H,lerp:()=>c,lerpAnglesInDegrees:()=>h,lerpAnglesInRadians:()=>u,lightenViaLAB:()=>U,loadImageData:()=>tt,matchLightnessIndex:()=>Be,normalize:()=>s,parseColor:()=>Pe,parseColorHexARGB:()=>De,parseColorHexRGB:()=>Oe,parseColorHexRGBA:()=>Re,parseColorNamed:()=>Ve,parseColorWebRGB:()=>Ee,parseColorWebRGBA:()=>Le,quantize:()=>Qe,quantizeHistogram:()=>Ye,radiansToDegrees:()=>a,rescale:()=>ze,rgbToHSL:()=>_,rgbToHSV:()=>A,rgbToLAB:()=>P,rgbToLCH:()=>B,rgbToLinearLuminance:()=>x,rgbToRelativeLuminance:()=>$,rgbToTemperature:()=>N,rgbToXYZ:()=>L,roundToPrecisionSmall:()=>p,saturateViaLCH:()=>j,temperatureToRGB:()=>z,xyzToLAB:()=>E,xyzToRGB:()=>V});const d=2*Math.PI;function u(e,t,i){if(isNaN(e)||e<=0)return t%d;if(e>=1)return i%d;const o=(t-i+d)%d;return o<=(i-t+d)%d?(t-o*e+d)%d:(t+o*e+d)%d}function p(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}class g{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new g(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new g(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class m{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new m(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new m(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class b{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new b(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new b(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}b.epsilon=216/24389,b.kappa=24389/27;class f{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new f(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new f(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class v{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new v(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))},${o(this.a,0,1)})`}roundToPrecision(e){return new v(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new v(o(this.r,0,1),o(this.g,0,1),o(this.b,0,1),o(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return l(r(e,0,255))}}class y{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new y(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new y(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function x(e){return.2126*e.r+.7152*e.g+.0722*e.b}function $(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return x(new v(t(e.r),t(e.g),t(e.b),1))}y.whitePoint=new y(.95047,1,1.08883);const w=(e,t)=>(e+.05)/(t+.05);function C(e,t){const i=$(e),o=$(t);return i>o?w(i,o):w(o,i)}function k(e,t,i){return i-t==0?0:(e-t)/(i-t)}function T(e,t,i){return(k(e.r,t.r,i.r)+k(e.g,t.g,i.g)+k(e.b,t.b,i.b))/3}function S(e,t,i=null){let o=0,s=i;return null!==s?o=T(e,t,s):(s=new v(0,0,0,1),o=T(e,t,s),o<=0&&(s=new v(1,1,1,1),o=T(e,t,s))),o=Math.round(1e3*o)/1e3,new v(s.r,s.g,s.b,o)}function _(e){const t=Math.max(e.r,e.g,e.b),i=Math.min(e.r,e.g,e.b),o=t-i;let s=0;0!==o&&(s=t===e.r?(e.g-e.b)/o%6*60:t===e.g?60*((e.b-e.r)/o+2):60*((e.r-e.g)/o+4)),s<0&&(s+=360);const r=(t+i)/2;let n=0;return 0!==o&&(n=o/(1-Math.abs(2*r-1))),new g(s,n,r)}function I(e,t=1){const i=(1-Math.abs(2*e.l-1))*e.s,o=i*(1-Math.abs(e.h/60%2-1)),s=e.l-i/2;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function A(e){const t=Math.max(e.r,e.g,e.b),i=t-Math.min(e.r,e.g,e.b);let o=0;0!==i&&(o=t===e.r?(e.g-e.b)/i%6*60:t===e.g?60*((e.b-e.r)/i+2):60*((e.r-e.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==t&&(s=i/t),new m(o,s,t)}function F(e,t=1){const i=e.s*e.v,o=i*(1-Math.abs(e.h/60%2-1)),s=e.v-i;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function O(e){let t=0,i=0;return 0!==e.h&&(t=Math.cos(n(e.h))*e.c,i=Math.sin(n(e.h))*e.c),new b(e.l,t,i)}function D(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=a(Math.atan2(e.b,e.a))),t<0&&(t+=360);const i=Math.sqrt(e.a*e.a+e.b*e.b);return new f(e.l,i,t)}function R(e){const t=(e.l+16)/116,i=t+e.a/500,o=t-e.b/200,s=Math.pow(i,3),r=Math.pow(t,3),n=Math.pow(o,3);let a=0;a=s>b.epsilon?s:(116*i-16)/b.kappa;let l=0;l=e.l>b.epsilon*b.kappa?r:e.l/b.kappa;let c=0;return c=n>b.epsilon?n:(116*o-16)/b.kappa,a=y.whitePoint.x*a,l=y.whitePoint.y*l,c=y.whitePoint.z*c,new y(a,l,c)}function E(e){function t(e){return e>b.epsilon?Math.pow(e,1/3):(b.kappa*e+16)/116}const i=t(e.x/y.whitePoint.x),o=t(e.y/y.whitePoint.y),s=t(e.z/y.whitePoint.z);return new b(116*o-16,500*(i-o),200*(o-s))}function L(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const i=t(e.r),o=t(e.g),s=t(e.b);return new y(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function V(e,t=1){function i(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const o=i(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),s=i(-.969266*e.x+1.8760108*e.y+.041556*e.z),r=i(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new v(o,s,r,t)}function P(e){return E(L(e))}function M(e,t=1){return V(R(e),t)}function B(e){return D(P(e))}function H(e,t=1){return M(O(e),t)}function z(e,t=1){let i=0,o=0,s=0;return e<=1e3?e=1e3:e>=4e4&&(e=4e4),e<6600?(i=255,o=e/100-2,o=-155.25485562709179-.44596950469579133*o+104.49216199393888*Math.log(o)):(i=e/100-55,i=351.97690566805693+.114206453784165*i-40.25366309332127*Math.log(i),o=e/100-50,o=325.4494125711974+.07943456536662342*o-28.0852963507957*Math.log(o)),e>=6600?s=255:e<2e3?s=0:(s=e/100-10,s=.8274096064007395*s-254.76935184120902+115.67994401066147*Math.log(s)),new v(i/255,o/255,s/255,t)}function N(e){let t=0,i=1e3,o=4e4;for(;o-i>.4;){t=(o+i)/2;const s=z(t);s.b/s.r>=e.b/e.r?o=t:i=t}return Math.round(t)}function j(e,t,i=18){const o=B(e);let s=o.c+t*i;return s<0&&(s=0),H(new f(o.l,s,o.h))}function G(e,t,i=18){return j(e,-1*t,i)}function q(e,t,i=18){const o=P(e),s=o.l-t*i;return M(new b(s,o.a,o.b))}function U(e,t,i=18){return q(e,-1*t,i)}function W(e,t){return 0===t?0:1-(1-e)/t}function K(e,t){return new v(W(e.r,t.r),W(e.g,t.g),W(e.b,t.b),1)}function X(e,t){const i=_(e),o=_(t);return 0===o.s?new v(i.l,i.l,i.l,1):I(new g(o.h,o.s,i.l))}function Y(e,t){return Math.min(e,t)}function Q(e,t){return new v(Y(e.r,t.r),Y(e.g,t.g),Y(e.b,t.b),1)}function Z(e,t){if(t>=1)return 1;const i=e/(1-t);return i>=1?1:i}function J(e,t){return new v(Z(e.r,t.r),Z(e.g,t.g),Z(e.b,t.b),1)}function ee(e,t){return Math.max(e,t)}function te(e,t){return new v(ee(e.r,t.r),ee(e.g,t.g),ee(e.b,t.b),1)}function ie(e,t){return e*t}function oe(e,t){return new v(ie(e.r,t.r),ie(e.g,t.g),ie(e.b,t.b),1)}function se(e,t){return o(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function re(e,t){return new v(se(e.r,t.r),se(e.g,t.g),se(e.b,t.b),1)}function ne(e,t){return 1-(1-t)*(1-e)}function ae(e,t){return new v(ne(e.r,t.r),ne(e.g,t.g),ne(e.b,t.b),1)}var le,ce;function he(e,t,i){switch(e){case le.Burn:return K(t,i);case le.Color:return X(t,i);case le.Darken:return Q(t,i);case le.Dodge:return J(t,i);case le.Lighten:return te(t,i);case le.Multiply:return oe(t,i);case le.Overlay:return re(t,i);case le.Screen:return ae(t,i);default:throw new Error("Unknown blend mode")}}function de(e,t){if(t.a>=1)return t;if(t.a<=0)return new v(e.r,e.g,e.b,1);const i=t.a*t.r+(1-t.a)*e.r,o=t.a*t.g+(1-t.a)*e.g,s=t.a*t.b+(1-t.a)*e.b;return new v(i,o,s,1)}function ue(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new v(c(e,t.r,i.r),c(e,t.g,i.g),c(e,t.b,i.b),c(e,t.a,i.a))}function pe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new g(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.l,i.l))}function ge(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new m(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.v,i.v))}function me(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new y(c(e,t.x,i.x),c(e,t.y,i.y),c(e,t.z,i.z))}function be(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new b(c(e,t.l,i.l),c(e,t.a,i.a),c(e,t.b,i.b))}function fe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new f(c(e,t.l,i.l),c(e,t.c,i.c),h(e,t.h,i.h))}function ve(e,t,i,o){if(isNaN(e)||e<=0)return i;if(e>=1)return o;switch(t){case ce.HSL:return I(pe(e,_(i),_(o)));case ce.HSV:return F(ge(e,A(i),A(o)));case ce.XYZ:return V(me(e,L(i),L(o)));case ce.LAB:return M(be(e,P(i),P(o)));case ce.LCH:return H(fe(e,B(i),B(o)));default:return ue(e,i,o)}}!function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"}(le||(le={})),function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"}(ce||(ce={}));class ye{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let i=0;i<e.length;i++)0===i?t[i]={color:e[i],position:0}:i===e.length-1?t[i]={color:e[i],position:1}:t[i]={color:e[i],position:i*(1/(e.length-1))};return new ye(t)}getColor(e,t=ce.RGB){if(1===this.stops.length)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let i=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(i=t);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return ve((e-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),t,this.stops[i].color,this.stops[o].color)}trim(e,t,i=ce.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new ye([{color:this.getColor(e,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=e&&this.stops[i].position<=t&&o.push(this.stops[i]);if(0===o.length)return new ye([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);o[0].position!==e&&o.unshift({color:this.getColor(e),position:e}),o[o.length-1].position!==t&&o.push({color:this.getColor(t),position:t});const s=t-e,r=new Array(o.length);for(let t=0;t<o.length;t++)r[t]={color:o[t].color,position:(o[t].position-e)/s};return new ye(r)}findNextColor(e,t,i=!1,o=ce.RGB,s=.005,r=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);const n=this.getColor(e,o),a=i?0:1;if(C(n,this.getColor(a,o))<=t)return a;let l=i?0:e,c=i?e:0,h=a,d=0;for(;d<=r;){h=Math.abs(c-l)/2+l;const e=C(n,this.getColor(h,o));if(Math.abs(e-t)<=s)return h;e>t?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new ye(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const i=e.position,o=t.position;return i<o?-1:i>o?1:0}))}}const xe={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},$e=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,we=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Ce=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,ke=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function Te(e){return Ce.test(e)}function Se(e){return ke.test(e)}function _e(e){return Se(e)}function Ie(e){return $e.test(e)}function Ae(e){return we.test(e)}function Fe(e){return xe.hasOwnProperty(e)}function Oe(e){const t=Ce.exec(e);if(null===t)return null;let i=t[1];if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2);i=e.concat(e,t,t,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),1)}function De(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),s((4278190080&o)>>>24,0,255))}function Re(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((4278190080&o)>>>24,0,255),s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255))}function Ee(e){const t=$e.exec(e);if(null===t)return null;const i=t[1].split(",");return new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),1)}function Le(e){const t=we.exec(e);if(null===t)return null;const i=t[1].split(",");return 4===i.length?new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),Number(i[3])):null}function Ve(e){const t=xe[e.toLowerCase()];return t?new v(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function Pe(e){const t=e.toLowerCase();return Te(t)?Oe(t):_e(t)?De(t):Ie(t)?Ee(t):Ae(t)?Le(t):Fe(t)?Ve(t):null}class Me{constructor(e){this.config=Object.assign({},Me.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const e=_(this.config.baseColor),t=new ye([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=t.getColor(0),o=t.getColor(1);if(e.s>=this.config.saturationAdjustmentCutoff&&(i=j(i,this.config.saturationLight),o=j(o,this.config.saturationDark)),0!==this.config.multiplyLight){const e=oe(this.config.baseColor,i);i=ve(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(0!==this.config.multiplyDark){const e=oe(this.config.baseColor,o);o=ve(this.config.multiplyDark,this.config.interpolationMode,o,e)}if(0!==this.config.overlayLight){const e=re(this.config.baseColor,i);i=ve(this.config.overlayLight,this.config.interpolationMode,i,e)}if(0!==this.config.overlayDark){const e=re(this.config.baseColor,o);o=ve(this.config.overlayDark,this.config.interpolationMode,o,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ye([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new ye([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new ye([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new ye([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}function Be(e,t){const i=_(e);let o=Number.MAX_VALUE,s=0;for(let e=0;e<t.length;e++){const r=_(t[e]),n=Math.abs(r.l-i.l);n<o&&(o=n,s=e)}return s}function He(e,t,i=Me.greyscalePaletteConfig,o=Me.defaultPaletteConfig){const s=Be(e,new Me(Object.assign(Object.assign({},i),{steps:t})).palette);return new Me(Object.assign(Object.assign({},o),{steps:t,baseColor:e,baseScalePosition:s/(t-1)}))}function ze(e,t,i){if(e.length<=1||t<=1)throw new Error("The input array and targetSize must both be greater than 1");if(i&&t<=e.length)throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array");const o=new Array(e.length);if(i)for(let i=0;i<e.length;i++){const s=i/(e.length-1);let r=2,n=0;for(let e=0;e<t;e++){const i=Math.abs(e/(t-1)-s);if(i<r&&(r=i,n=e),0===i)break}o[i]={color:e[i],position:n/(t-1)}}else for(let t=0;t<o.length;t++)o[t]={color:e[t],position:t/(e.length-1)};const s=new ye(o),r=new Array(t);for(let e=0;e<t;e++)r[e]=s.getColor(e/(t-1));return r}Me.defaultPaletteConfig={baseColor:Oe("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Me.greyscalePaletteConfig={baseColor:Oe("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};const Ne={targetSize:63,spacing:4,scaleColorLight:Me.defaultPaletteConfig.scaleColorLight,scaleColorDark:Me.defaultPaletteConfig.scaleColorDark};function je(e,t=Ne){if(0===e.length)return[];const i=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(i<0)throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0");const o=new Array(e.length+2);o[0]={position:0,color:t.scaleColorLight},o[o.length-1]={position:1,color:t.scaleColorDark};for(let s=0;s<e.length;s++)o[s+1]={color:e[s],position:(s*t.spacing+i)/(t.targetSize-1)};const s=new ye(o),r=new Array(t.targetSize);for(let e=0;e<t.targetSize;e++)r[e]=s.getColor(e/(t.targetSize-1));return r}function Ge(e,t=11,i=Ne){const o=He(e,t),s=je(o.palette,i);return{short:o.palette,long:s}}class qe{constructor(e,t=5,i=5,o=null){if(this.getHistogramIndex=(e,t,i)=>{const o=(e<<2*this.significantBits)+(t<<this.significantBits)+i;if(o>=this.data.length)throw new Error("RGB value is outside the bounds of the histogram");return o},this.getHistogramValue=(e,t,i)=>this.data[this.getHistogramIndex(e,t,i)],this.setHistogramValue=(e,t,i,o)=>{this.data[this.getHistogramIndex(t,i,o)]=e},t<1||t>8)throw new Error("significantBits must be in the range [1,8]");if(i<0)throw new Error("pixelSkipping must be >= 0");this.significantBits=t;const s=8-this.significantBits;this.minRed=255>>>s,this.maxRed=0,this.minGreen=255>>>s,this.maxGreen=0,this.minBlue=255>>>s,this.maxBlue=0;const r=1<<3*t;this.data=new Uint32Array(r),this.data.fill(0),this.total=0;let n=0;for(let t=0;t<e.height;t++)for(let r=0;r<e.width;r++){if(i>0&&n++%i!=0)continue;const a=e.getPixelRGBA(r,t);if(null!==o&&!o(a))continue;a[0]=a[0]>>>s,a[1]=a[1]>>>s,a[2]=a[2]>>>s,this.minRed=Math.min(a[0],this.minRed),this.maxRed=Math.max(a[0],this.maxRed),this.minGreen=Math.min(a[1],this.minGreen),this.maxGreen=Math.max(a[1],this.maxGreen),this.minBlue=Math.min(a[2],this.minBlue),this.maxBlue=Math.max(a[2],this.maxBlue);const l=this.getHistogramIndex(a[0],a[1],a[2]);this.data[l]+=1,this.total++}}}function Ue(e,t,i){if(0===e.length)return void e.push(t);const o=i(t);if(o>i(e[0]))return void e.unshift(t);if(o<=i(e[e.length-1]))return void e.push(t);let s=0;for(let t=0;t<e.length;t++)if(o>i(e[t])){s=t;break}e.splice(s,0,t)}class We{constructor(e,t,i,o,s,r,n){this.modifiedMedianCut=()=>{if(1===this.rangeRed&&1===this.rangeGreen&&1===this.rangeBlue)return[this,null];let e,t,i;!function(e){e[e.Red=0]="Red",e[e.Green=1]="Green",e[e.Blue=2]="Blue"}(e||(e={})),this.rangeRed>=this.rangeGreen&&this.rangeRed>=this.rangeBlue?(t=e.Red,i=this.rangeRed):this.rangeGreen>=this.rangeRed&&this.rangeGreen>=this.rangeBlue?(t=e.Green,i=this.rangeGreen):(t=e.Blue,i=this.rangeBlue);const o=new Array(i),s=new Array(i);let r=null,n=null,a=0;if(t===e.Red){for(let e=this.minRed;e<=this.maxRed;e++){let t=0;for(let i=this.minGreen;i<=this.maxGreen;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(e,i,o);a+=t,o[e-this.minRed]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minRed;e<=this.maxRed;e++)if(o[e-this.minRed]>=a/2){const t=e-this.minRed,i=this.maxRed-e;let a;for(a=t<=i?Math.min(this.maxRed-1,Math.floor(e+i/2)):Math.max(this.minRed,Math.floor(e-1-t/2));o[a-this.minRed]<=0&&a<this.maxRed-1;)a++;let l=s[a-this.minRed];for(;0===l&&a>this.minRed&&0!==o[a-this.minRed-1];)a--,l=s[a-this.minRed];r=new We(this.globalHistogram,this.minRed,a,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,a+1,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue);break}}else if(t===e.Green){for(let e=this.minGreen;e<=this.maxGreen;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(i,e,o);a+=t,o[e-this.minGreen]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minGreen;e<=this.maxGreen;e++)if(o[e-this.minGreen]>=a/2){const t=e-this.minGreen,i=this.maxGreen-e;let a;for(a=t<=i?Math.min(this.maxGreen-1,Math.floor(e+i/2)):Math.max(this.minGreen,Math.floor(e-1-t/2));o[a-this.minGreen]<=0&&a<this.maxGreen-1;)a++;let l=s[a-this.minGreen];for(;0===l&&a>this.minGreen&&0!==o[a-this.minGreen-1];)a--,l=s[a-this.minGreen];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,a,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,this.minRed,this.maxRed,a+1,this.maxGreen,this.minBlue,this.maxBlue);break}}else{for(let e=this.minBlue;e<=this.maxBlue;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minGreen;o<=this.maxGreen;o++)t+=this.globalHistogram.getHistogramValue(i,o,e);a+=t,o[e-this.minBlue]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minBlue;e<=this.maxBlue;e++)if(o[e-this.minBlue]>=a/2){const t=e-this.minBlue,i=this.maxBlue-e;let a;for(a=t<=i?Math.min(this.maxBlue-1,Math.floor(e+i/2)):Math.max(this.minBlue,Math.floor(e-1-t/2));o[a-this.minBlue]<=0&&a<this.maxBlue-1;)a++;let l=s[a-this.minBlue];for(;0===l&&a>this.minBlue&&0!==o[a-this.minBlue-1];)a--,l=s[a-this.minBlue];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,a),n=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,a+1,this.maxBlue);break}}return[r,n]},this.pixelCount=0,this.globalHistogram=e,this.minRed=t,this.maxRed=i,this.minGreen=o,this.maxGreen=s,this.minBlue=r,this.maxBlue=n,this.rangeRed=this.maxRed-this.minRed+1,this.rangeGreen=this.maxGreen-this.minGreen+1,this.rangeBlue=this.maxBlue-this.minBlue+1,this.colorVolume=this.rangeRed*this.rangeGreen*this.rangeBlue;let a=0,l=0,c=0;const h=1<<8-this.globalHistogram.significantBits;for(let e=t;e<=i;e++)for(let t=o;t<=s;t++)for(let i=r;i<=n;i++){const o=this.globalHistogram.getHistogramValue(e,t,i);this.pixelCount+=o,a+=o*(e+.5)*h,l+=o*(t+.5)*h,c+=o*(i+.5)*h}0===this.pixelCount?this.averageColor=new v(h*((t+i+1)/2)/255,h*((o+s+1)/2)/255,h*((r+n+1)/2)/255,1):this.averageColor=new v(a/this.pixelCount/255,l/this.pixelCount/255,c/this.pixelCount/255,1)}}function Ke(e,t){if(null===t)return e.length;let i=0;for(let o=0;o<e.length;o++)t(e[o])&&i++;return i}const Xe={significantBits:5,pixelSkipping:5,targetPaletteSize:64,fractionByPopulation:.85,isBoxValid:e=>!(e.pixelCount<5),isHistogramPixelValid:e=>!(e[3]<128),maxIterations:1e3};function Ye(e,t=Xe){const i=[new We(e,e.minRed,e.maxRed,e.minGreen,e.maxGreen,e.minBlue,e.maxBlue)];let o=Ke(i,t.isBoxValid);const s=Math.floor(t.targetPaletteSize*t.fractionByPopulation),r=e=>e.pixelCount;let n=0;for(;n<=t.maxIterations;){if(i.length>0){const e=i.shift().modifiedMedianCut();null!==e[0]&&Ue(i,e[0],r),null!==e[1]&&Ue(i,e[1],r)}if(o=Ke(i,t.isBoxValid),o>=s||i.length<=1)break;n++}if(o<t.targetPaletteSize){const e=e=>e.pixelCount*e.colorVolume;for(i.sort(((t,i)=>{const o=e(t),s=e(i);return o===s?0:o>s?-1:1})),n=0;n<=t.maxIterations;){if(i.length>0){const t=i.shift().modifiedMedianCut();null!==t[0]&&Ue(i,t[0],e),null!==t[1]&&Ue(i,t[1],e)}if(o=Ke(i,t.isBoxValid),o>=t.targetPaletteSize||i.length<=1)break;n++}}const a=new Array(o);let l=0;for(let e=0;e<i.length;e++)t.isBoxValid&&!t.isBoxValid(i[e])||(a[l]={color:i[e].averageColor,pixelCount:i[e].pixelCount,colorVolume:i[e].colorVolume},l++);return a}function Qe(e,t=Xe){return Ye(new qe(e,t.significantBits,t.pixelSkipping,t.isHistogramPixelValid),t)}class Ze{constructor(e){this.palette=[],this.config=Object.assign({},Ze.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,i=new v(t,t,t,1),o=new Me(Object.assign(Object.assign({},Me.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,s=(x(this.config.baseColor)+_(this.config.baseColor).l)/2,r=this.matchRelativeLuminanceIndex(s,o)/(e-1),n=this.matchRelativeLuminanceIndex(t,o)/(e-1),a=_(this.config.baseColor),l=I(g.fromObject({h:a.h,s:a.s,l:t})),c=I(g.fromObject({h:a.h,s:a.s,l:.06})),h=new Array(5);h[0]={position:0,color:new v(1,1,1,1)},h[1]={position:r,color:this.config.baseColor},h[2]={position:n,color:l},h[3]={position:.99,color:c},h[4]={position:1,color:new v(0,0,0,1)};const d=new ye(h);this.palette=new Array(e);for(let t=0;t<e;t++){const i=d.getColor(t/(e-1),ce.RGB);this.palette[t]=i}}matchRelativeLuminanceIndex(e,t){let i=Number.MAX_VALUE,o=0,s=0;const r=t.length;for(;s<r;s++){const r=Math.abs(x(t[s])-e);r<i&&(i=r,o=s)}return o}}Ze.defaultPaletteConfig={baseColor:Oe("#808080"),steps:94};const Je={saturationWeight:6,luminosityWeight:3,populationWeight:1,volumeWeight:.1,constraints:[{id:"Vibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45},{id:"Muted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45}]};function et(e,t=Je){if(0===t.constraints.length)return[];let i=0,o=0;for(let t=0;t<e.length;t++)i+=e[t].pixelCount,o+=e[t].colorVolume;const s=new Array(t.constraints.length),r=new Array(t.constraints.length);for(let e=0;e<s.length;e++)r[e]=0,s[e]={found:!1,constraint:t.constraints[e]};const n=t.saturationWeight+t.luminosityWeight+t.populationWeight+t.volumeWeight;for(let a=0;a<e.length;a++){const l=_(e[a].color);for(let c=0;c<t.constraints.length;c++)if(l.s>=t.constraints[c].minSaturation&&l.s<=t.constraints[c].maxSaturation&&l.l>=t.constraints[c].minLuminosity&&l.l<=t.constraints[c].maxLuminosity){const h=e[a].pixelCount/i,d=e[a].colorVolume/o,u=1-Math.abs(l.s-t.constraints[c].targetSaturation),p=1-Math.abs(l.l-t.constraints[c].targetLuminosity),g=(h*t.populationWeight+d*t.volumeWeight+u*t.saturationWeight+p*t.luminosityWeight)/n;if(g>r[c]){let t=!1;for(let i=0;i<c;i++)if(s[i].found&&s[i].color.color.equalValue(e[a].color)){t=!0;break}t||(r[c]=g,s[c].found=!0,s[c].color=e[a])}}}return s}function tt(e){return new Promise(((t,i)=>{const o=new Image;o?(o.onload=e=>{const s=document.createElement("canvas");if(!s)return void i("Unable to create canvas");s.width=o.naturalWidth,s.height=o.naturalHeight;const r=s.getContext("2d");if(!r)return void i("Unable to create context");r.drawImage(o,0,0,s.width,s.height);const n=r.getImageData(0,0,s.width,s.height);t(n)},o.onerror=e=>{i(e)},o.onabort=e=>{i(e)},o.src=e):i("Unable to create image")}))}class it{constructor(e){this.getPixel=(e,t)=>{const i=this.getPixelRGBA(e,t);return new v(i[0]/255,i[1]/255,i[2]/255,i[3]/255)},this.getPixelRGBA=(e,t)=>{if(e<0||e>=this.width||t<0||t>=this.height)throw new Error("Requested pixel is outside of the image bounds");const i=4*(t*this.width+e);return[this.image.data[i],this.image.data[i+1],this.image.data[i+2],this.image.data[i+3]]},this.image=e,this.width=e.width,this.height=e.height,this.totalPixels=this.width*this.height}}},79179:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>o.Accordion,AccordionItem:()=>o.AccordionItem,ActionsStyles:()=>vo,Anchor:()=>mi,AnchoredRegion:()=>o.AnchoredRegion,Avatar:()=>wi,Badge:()=>o.Badge,Breadcrumb:()=>o.Breadcrumb,BreadcrumbItem:()=>o.BreadcrumbItem,Button:()=>Di,Calendar:()=>o.Calendar,CalendarStyles:()=>Ei,Card:()=>Mi,Checkbox:()=>o.Checkbox,Combobox:()=>qi,DataGrid:()=>o.DataGrid,DataGridCell:()=>o.DataGridCell,DataGridRow:()=>o.DataGridRow,DesignSystemProvider:()=>io,Dialog:()=>o.Dialog,DirectionalStyleSheetBehavior:()=>yi,Disclosure:()=>co,Divider:()=>o.Divider,Flipper:()=>o.Flipper,HorizontalScroll:()=>xo,Listbox:()=>ko,ListboxOption:()=>o.ListboxOption,Menu:()=>Ao,MenuItem:()=>o.MenuItem,NumberField:()=>Do,PaletteRGB:()=>g,Picker:()=>o.Picker,PickerMenu:()=>Bo,Progress:()=>o.BaseProgress,ProgressRing:()=>o.BaseProgress,Radio:()=>o.Radio,RadioGroup:()=>o.RadioGroup,Search:()=>ts,Select:()=>ss,Skeleton:()=>o.Skeleton,Slider:()=>o.Slider,SliderLabel:()=>us,StandardLuminance:()=>$,SwatchRGB:()=>l,Switch:()=>o.Switch,Tab:()=>o.Tab,TabPanel:()=>o.TabPanel,Tabs:()=>o.Tabs,TextArea:()=>_s,TextField:()=>Fs,Toolbar:()=>Rs,Tooltip:()=>o.Tooltip,TreeItem:()=>o.TreeItem,TreeView:()=>o.TreeView,accentColor:()=>De,accentFillActive:()=>Qe,accentFillActiveDelta:()=>ie,accentFillFocus:()=>Ze,accentFillFocusDelta:()=>oe,accentFillHover:()=>Ye,accentFillHoverDelta:()=>te,accentFillRecipe:()=>Ke,accentFillRest:()=>Xe,accentFillRestDelta:()=>ee,accentForegroundActive:()=>gt,accentForegroundActiveDelta:()=>ne,accentForegroundFocus:()=>mt,accentForegroundFocusDelta:()=>ae,accentForegroundHover:()=>pt,accentForegroundHoverDelta:()=>re,accentForegroundRecipe:()=>dt,accentForegroundRest:()=>ut,accentForegroundRestDelta:()=>se,accentPalette:()=>Re,accordionItemStyles:()=>oi,accordionStyles:()=>ei,allComponents:()=>Us,anchorStyles:()=>gi,anchoredRegionStyles:()=>fi,avatarStyles:()=>$i,badgeStyles:()=>Ti,baseHeightMultiplier:()=>S,baseHorizontalSpacingMultiplier:()=>_,baseLayerLuminance:()=>I,bodyFont:()=>T,breadcrumbItemStyles:()=>_i,breadcrumbStyles:()=>Ai,buttonStyles:()=>Oi,cardStyles:()=>Pi,checkboxStyles:()=>Hi,comboboxStyles:()=>Gi,controlCornerRadius:()=>A,dataGridCellStyles:()=>Xi,dataGridRowStyles:()=>Ki,dataGridStyles:()=>Wi,density:()=>F,designSystemProviderStyles:()=>so,designSystemProviderTemplate:()=>oo,designUnit:()=>O,dialogStyles:()=>no,direction:()=>D,disabledOpacity:()=>R,disclosureStyles:()=>lo,dividerStyles:()=>uo,fastAccordion:()=>ri,fastAccordionItem:()=>si,fastAnchor:()=>bi,fastAnchoredRegion:()=>vi,fastAvatar:()=>ki,fastBadge:()=>Si,fastBreadcrumb:()=>Fi,fastBreadcrumbItem:()=>Ii,fastButton:()=>Ri,fastCalendar:()=>Li,fastCard:()=>Bi,fastCheckbox:()=>zi,fastCombobox:()=>Ui,fastDataGrid:()=>Zi,fastDataGridCell:()=>Yi,fastDataGridRow:()=>Qi,fastDesignSystemProvider:()=>ro,fastDialog:()=>ao,fastDisclosure:()=>ho,fastDivider:()=>po,fastFlipper:()=>mo,fastHorizontalScroll:()=>$o,fastListbox:()=>To,fastMenu:()=>Fo,fastMenuItem:()=>_o,fastNumberField:()=>Ro,fastOption:()=>Co,fastPicker:()=>Mo,fastPickerList:()=>No,fastPickerListItem:()=>jo,fastPickerMenu:()=>Ho,fastPickerMenuOption:()=>zo,fastProgress:()=>Wo,fastProgressRing:()=>qo,fastRadio:()=>Qo,fastRadioGroup:()=>Xo,fastSearch:()=>is,fastSelect:()=>rs,fastSkeleton:()=>as,fastSlider:()=>fs,fastSliderLabel:()=>ps,fastSwitch:()=>ys,fastTab:()=>ws,fastTabPanel:()=>ks,fastTabs:()=>Ts,fastTextArea:()=>Is,fastTextField:()=>Os,fastToolbar:()=>Es,fastTooltip:()=>Vs,fastTreeItem:()=>js,fastTreeView:()=>qs,fillColor:()=>Ue,flipperStyles:()=>go,focusStrokeInner:()=>zt,focusStrokeInnerRecipe:()=>Ht,focusStrokeOuter:()=>Bt,focusStrokeOuterRecipe:()=>Mt,focusStrokeWidth:()=>L,foregroundOnAccentActive:()=>ot,foregroundOnAccentActiveLarge:()=>lt,foregroundOnAccentFocus:()=>st,foregroundOnAccentFocusLarge:()=>ct,foregroundOnAccentHover:()=>it,foregroundOnAccentHoverLarge:()=>at,foregroundOnAccentLargeRecipe:()=>rt,foregroundOnAccentRecipe:()=>et,foregroundOnAccentRest:()=>tt,foregroundOnAccentRestLarge:()=>nt,heightNumberAsToken:()=>Jt,horizontalScrollStyles:()=>yo,horizontalSliderLabelStyles:()=>cs,imgTemplate:()=>Ci,isDark:()=>u,listboxStyles:()=>Ni,menuItemStyles:()=>So,menuStyles:()=>Io,neutralColor:()=>Fe,neutralFillActive:()=>yt,neutralFillActiveDelta:()=>he,neutralFillFocus:()=>xt,neutralFillFocusDelta:()=>de,neutralFillHover:()=>vt,neutralFillHoverDelta:()=>ce,neutralFillInputActive:()=>kt,neutralFillInputActiveDelta:()=>ge,neutralFillInputFocus:()=>Tt,neutralFillInputFocusDelta:()=>me,neutralFillInputHover:()=>Ct,neutralFillInputHoverDelta:()=>pe,neutralFillInputRecipe:()=>$t,neutralFillInputRest:()=>wt,neutralFillInputRestDelta:()=>ue,neutralFillLayerRecipe:()=>Vt,neutralFillLayerRest:()=>Pt,neutralFillLayerRestDelta:()=>ke,neutralFillRecipe:()=>bt,neutralFillRest:()=>ft,neutralFillRestDelta:()=>le,neutralFillStealthActive:()=>At,neutralFillStealthActiveDelta:()=>ve,neutralFillStealthFocus:()=>Ft,neutralFillStealthFocusDelta:()=>ye,neutralFillStealthHover:()=>It,neutralFillStealthHoverDelta:()=>fe,neutralFillStealthRecipe:()=>St,neutralFillStealthRest:()=>_t,neutralFillStealthRestDelta:()=>be,neutralFillStrongActive:()=>Et,neutralFillStrongActiveDelta:()=>we,neutralFillStrongFocus:()=>Lt,neutralFillStrongFocusDelta:()=>Ce,neutralFillStrongHover:()=>Rt,neutralFillStrongHoverDelta:()=>$e,neutralFillStrongRecipe:()=>Ot,neutralFillStrongRest:()=>Dt,neutralFillStrongRestDelta:()=>xe,neutralForegroundHint:()=>jt,neutralForegroundHintRecipe:()=>Nt,neutralForegroundRecipe:()=>Gt,neutralForegroundRest:()=>qt,neutralLayer1:()=>Be,neutralLayer1Recipe:()=>Me,neutralLayer2:()=>ze,neutralLayer2Recipe:()=>He,neutralLayer3:()=>je,neutralLayer3Recipe:()=>Ne,neutralLayer4:()=>qe,neutralLayer4Recipe:()=>Ge,neutralLayerCardContainer:()=>Le,neutralLayerCardContainerRecipe:()=>Ee,neutralLayerFloating:()=>Pe,neutralLayerFloatingRecipe:()=>Ve,neutralPalette:()=>Oe,neutralStrokeActive:()=>Xt,neutralStrokeActiveDelta:()=>_e,neutralStrokeDividerRecipe:()=>Qt,neutralStrokeDividerRest:()=>Zt,neutralStrokeDividerRestDelta:()=>Ae,neutralStrokeFocus:()=>Yt,neutralStrokeFocusDelta:()=>Ie,neutralStrokeHover:()=>Kt,neutralStrokeHoverDelta:()=>Se,neutralStrokeRecipe:()=>Ut,neutralStrokeRest:()=>Wt,neutralStrokeRestDelta:()=>Te,numberFieldStyles:()=>Oo,optionStyles:()=>wo,pickerListItemStyles:()=>Po,pickerMenuOptionStyles:()=>Vo,pickerMenuStyles:()=>Lo,pickerStyles:()=>Eo,progressRingStyles:()=>Go,progressStyles:()=>Uo,provideFASTDesignSystem:()=>Ws,radioGroupStyles:()=>Ko,radioStyles:()=>Yo,searchStyles:()=>os,selectStyles:()=>ji,skeletonStyles:()=>ns,sliderLabelStyles:()=>ds,sliderStyles:()=>bs,strokeWidth:()=>E,switchStyles:()=>vs,tabPanelStyles:()=>Cs,tabStyles:()=>$s,tabsStyles:()=>xs,textAreaStyles:()=>Ss,textFieldStyles:()=>As,toolbarStyles:()=>Ds,tooltipStyles:()=>Ls,treeItemStyles:()=>Ns,treeViewStyles:()=>Gs,typeRampBaseFontSize:()=>V,typeRampBaseLineHeight:()=>P,typeRampMinus1FontSize:()=>M,typeRampMinus1LineHeight:()=>B,typeRampMinus2FontSize:()=>H,typeRampMinus2LineHeight:()=>z,typeRampPlus1FontSize:()=>N,typeRampPlus1LineHeight:()=>j,typeRampPlus2FontSize:()=>G,typeRampPlus2LineHeight:()=>q,typeRampPlus3FontSize:()=>U,typeRampPlus3LineHeight:()=>W,typeRampPlus4FontSize:()=>K,typeRampPlus4LineHeight:()=>X,typeRampPlus5FontSize:()=>Y,typeRampPlus5LineHeight:()=>Q,typeRampPlus6FontSize:()=>Z,typeRampPlus6LineHeight:()=>J,verticalSliderLabelStyles:()=>hs});var o=i(84674),s=i(57418),r=i(85109),n=i(4273);function a(e,t){const i=e.relativeLuminance>t.relativeLuminance?e:t,o=e.relativeLuminance>t.relativeLuminance?t:e;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const l=Object.freeze({create:(e,t,i)=>new c(e,t,i),from:e=>new c(e.r,e.g,e.b)});class c extends n.ColorRGBA64{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=a.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,n.rgbToRelativeLuminance)(this)}static fromObject(e){return new c(e.r,e.g,e.b)}}function h(e,t,i=0,o=e.length-1){if(o===i)return e[i];const s=Math.floor((o-i)/2)+i;return t(e[s])?h(e,t,i,s):h(e,t,s+1,o)}const d=(-.1+Math.sqrt(.21))/2;function u(e){return e.relativeLuminance<=d}function p(e){return u(e)?-1:1}const g=Object.freeze({create:function(e,t,i){return"number"==typeof e?g.from(l.create(e,t,i)):g.from(e)},from:function(e){return function(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in t)if(typeof t[i]!=typeof e[i])return!1;return!0}(e)?m.from(e):m.from(l.create(e.r,e.g,e.b))}});class m{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,o){void 0===i&&(i=this.closestIndexOf(e));let s=this.swatches;const r=this.lastIndex;let n=i;void 0===o&&(o=p(e));return-1===o&&(s=this.reversedSwatches,n=r-n),h(s,(i=>a(e,i)>=t),n,r)}get(e){return this.swatches[e]||this.swatches[(0,n.clamp)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const i=this.swatches.reduce(((t,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?i:t));return t=this.swatches.indexOf(i),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new m(e,Object.freeze(new n.ComponentStateColorPalette({baseColor:n.ColorRGBA64.fromObject(e)}).palette.map((e=>{const t=(0,n.parseColorHexRGB)(e.toStringHexRGB());return l.create(t.r,t.g,t.b)}))))}}const b=l.create(1,1,1),f=l.create(0,0,0),v=l.from((0,n.parseColorHexRGB)("#808080")),y=l.from((0,n.parseColorHexRGB)("#DA1A5F"));function x(e){return l.create(e,e,e)}const $={LightMode:1,DarkMode:.23};function w(e,t,i,o,s,r){return Math.max(e.closestIndexOf(x(t))+i,o,s,r)}const{create:C}=o.DesignToken;function k(e){return o.DesignToken.create({name:e,cssCustomPropertyName:null})}const T=C("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),S=C("base-height-multiplier").withDefault(10),_=C("base-horizontal-spacing-multiplier").withDefault(3),I=C("base-layer-luminance").withDefault($.DarkMode),A=C("control-corner-radius").withDefault(4),F=C("density").withDefault(0),O=C("design-unit").withDefault(4),D=C("direction").withDefault(r.O.ltr),R=C("disabled-opacity").withDefault(.3),E=C("stroke-width").withDefault(1),L=C("focus-stroke-width").withDefault(2),V=C("type-ramp-base-font-size").withDefault("14px"),P=C("type-ramp-base-line-height").withDefault("20px"),M=C("type-ramp-minus-1-font-size").withDefault("12px"),B=C("type-ramp-minus-1-line-height").withDefault("16px"),H=C("type-ramp-minus-2-font-size").withDefault("10px"),z=C("type-ramp-minus-2-line-height").withDefault("16px"),N=C("type-ramp-plus-1-font-size").withDefault("16px"),j=C("type-ramp-plus-1-line-height").withDefault("24px"),G=C("type-ramp-plus-2-font-size").withDefault("20px"),q=C("type-ramp-plus-2-line-height").withDefault("28px"),U=C("type-ramp-plus-3-font-size").withDefault("28px"),W=C("type-ramp-plus-3-line-height").withDefault("36px"),K=C("type-ramp-plus-4-font-size").withDefault("34px"),X=C("type-ramp-plus-4-line-height").withDefault("44px"),Y=C("type-ramp-plus-5-font-size").withDefault("46px"),Q=C("type-ramp-plus-5-line-height").withDefault("56px"),Z=C("type-ramp-plus-6-font-size").withDefault("60px"),J=C("type-ramp-plus-6-line-height").withDefault("72px"),ee=k("accent-fill-rest-delta").withDefault(0),te=k("accent-fill-hover-delta").withDefault(4),ie=k("accent-fill-active-delta").withDefault(-5),oe=k("accent-fill-focus-delta").withDefault(0),se=k("accent-foreground-rest-delta").withDefault(0),re=k("accent-foreground-hover-delta").withDefault(6),ne=k("accent-foreground-active-delta").withDefault(-4),ae=k("accent-foreground-focus-delta").withDefault(0),le=k("neutral-fill-rest-delta").withDefault(7),ce=k("neutral-fill-hover-delta").withDefault(10),he=k("neutral-fill-active-delta").withDefault(5),de=k("neutral-fill-focus-delta").withDefault(0),ue=k("neutral-fill-input-rest-delta").withDefault(0),pe=k("neutral-fill-input-hover-delta").withDefault(0),ge=k("neutral-fill-input-active-delta").withDefault(0),me=k("neutral-fill-input-focus-delta").withDefault(0),be=k("neutral-fill-stealth-rest-delta").withDefault(0),fe=k("neutral-fill-stealth-hover-delta").withDefault(5),ve=k("neutral-fill-stealth-active-delta").withDefault(3),ye=k("neutral-fill-stealth-focus-delta").withDefault(0),xe=k("neutral-fill-strong-rest-delta").withDefault(0),$e=k("neutral-fill-strong-hover-delta").withDefault(8),we=k("neutral-fill-strong-active-delta").withDefault(-5),Ce=k("neutral-fill-strong-focus-delta").withDefault(0),ke=k("neutral-fill-layer-rest-delta").withDefault(3),Te=k("neutral-stroke-rest-delta").withDefault(25),Se=k("neutral-stroke-hover-delta").withDefault(40),_e=k("neutral-stroke-active-delta").withDefault(16),Ie=k("neutral-stroke-focus-delta").withDefault(25),Ae=k("neutral-stroke-divider-rest-delta").withDefault(8),Fe=C("neutral-color").withDefault(v),Oe=k("neutral-palette").withDefault((e=>g.from(Fe.getValueFor(e)))),De=C("accent-color").withDefault(y),Re=k("accent-palette").withDefault((e=>g.from(De.getValueFor(e)))),Ee=k("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),t.get(t.closestIndexOf(x(i))+o);var t,i,o}}),Le=C("neutral-layer-card-container").withDefault((e=>Ee.getValueFor(e).evaluate(e))),Ve=k("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(x(t))-i;return e.get(o-i)}(Oe.getValueFor(e),I.getValueFor(e),ke.getValueFor(e))}),Pe=C("neutral-layer-floating").withDefault((e=>Ve.getValueFor(e).evaluate(e))),Me=k("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(x(t)))}(Oe.getValueFor(e),I.getValueFor(e))}),Be=C("neutral-layer-1").withDefault((e=>Me.getValueFor(e).evaluate(e))),He=k("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n));var t,i,o,s,r,n}}),ze=C("neutral-layer-2").withDefault((e=>He.getValueFor(e).evaluate(e))),Ne=k("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+o);var t,i,o,s,r,n}}),je=C("neutral-layer-3").withDefault((e=>Ne.getValueFor(e).evaluate(e))),Ge=k("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+2*o);var t,i,o,s,r,n}}),qe=C("neutral-layer-4").withDefault((e=>Ge.getValueFor(e).evaluate(e))),Ue=C("fill-color").withDefault((e=>Be.getValueFor(e)));var We;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(We||(We={}));const Ke=C({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l){const c=e.source,h=t.closestIndexOf(i)>=Math.max(n,a,l)?-1:1,d=e.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*r;return{rest:e.get(u),hover:e.get(d),active:e.get(p),focus:e.get(g)}}(Re.getValueFor(e),Oe.getValueFor(e),t||Ue.getValueFor(e),te.getValueFor(e),ie.getValueFor(e),oe.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e))}),Xe=C("accent-fill-rest").withDefault((e=>Ke.getValueFor(e).evaluate(e).rest)),Ye=C("accent-fill-hover").withDefault((e=>Ke.getValueFor(e).evaluate(e).hover)),Qe=C("accent-fill-active").withDefault((e=>Ke.getValueFor(e).evaluate(e).active)),Ze=C("accent-fill-focus").withDefault((e=>Ke.getValueFor(e).evaluate(e).focus)),Je=e=>(t,i)=>function(e,t){return e.contrast(b)>=t?b:f}(i||Xe.getValueFor(t),e),et=k("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>Je(We.normal)(e,t)}),tt=C("foreground-on-accent-rest").withDefault((e=>et.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),it=C("foreground-on-accent-hover").withDefault((e=>et.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),ot=C("foreground-on-accent-active").withDefault((e=>et.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),st=C("foreground-on-accent-focus").withDefault((e=>et.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),rt=k("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>Je(We.large)(e,t)}),nt=C("foreground-on-accent-rest-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),at=C("foreground-on-accent-hover-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),lt=C("foreground-on-accent-active-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),ct=C("foreground-on-accent-focus-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),ht=e=>(t,i)=>function(e,t,i,o,s,r,n){const a=e.source,l=e.closestIndexOf(a),c=p(t),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=e.colorContrast(t,i,h,c),u=e.closestIndexOf(d),g=u+c*Math.abs(o-s);let m,b;return(1===c?o<s:c*o>c*s)?(m=u,b=g):(m=g,b=u),{rest:e.get(m),hover:e.get(b),active:e.get(m+c*r),focus:e.get(m+c*n)}}(Re.getValueFor(t),i||Ue.getValueFor(t),e,se.getValueFor(t),re.getValueFor(t),ne.getValueFor(t),ae.getValueFor(t)),dt=C({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ht(We.normal)(e,t)}),ut=C("accent-foreground-rest").withDefault((e=>dt.getValueFor(e).evaluate(e).rest)),pt=C("accent-foreground-hover").withDefault((e=>dt.getValueFor(e).evaluate(e).hover)),gt=C("accent-foreground-active").withDefault((e=>dt.getValueFor(e).evaluate(e).active)),mt=C("accent-foreground-focus").withDefault((e=>dt.getValueFor(e).evaluate(e).focus)),bt=C({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=n>=Math.max(i,o,s,r)?-1:1;return{rest:e.get(n+a*i),hover:e.get(n+a*o),active:e.get(n+a*s),focus:e.get(n+a*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),ft=C("neutral-fill-rest").withDefault((e=>bt.getValueFor(e).evaluate(e).rest)),vt=C("neutral-fill-hover").withDefault((e=>bt.getValueFor(e).evaluate(e).hover)),yt=C("neutral-fill-active").withDefault((e=>bt.getValueFor(e).evaluate(e).active)),xt=C("neutral-fill-focus").withDefault((e=>bt.getValueFor(e).evaluate(e).focus)),$t=C({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(t);return{rest:e.get(a-n*i),hover:e.get(a-n*o),active:e.get(a-n*s),focus:e.get(a-n*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),ue.getValueFor(e),pe.getValueFor(e),ge.getValueFor(e),me.getValueFor(e))}),wt=C("neutral-fill-input-rest").withDefault((e=>$t.getValueFor(e).evaluate(e).rest)),Ct=C("neutral-fill-input-hover").withDefault((e=>$t.getValueFor(e).evaluate(e).hover)),kt=C("neutral-fill-input-active").withDefault((e=>$t.getValueFor(e).evaluate(e).active)),Tt=C("neutral-fill-input-focus").withDefault((e=>$t.getValueFor(e).evaluate(e).focus)),St=C({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l,c){const h=Math.max(i,o,s,r,n,a,l,c),d=e.closestIndexOf(t),u=d>=h?-1:1;return{rest:e.get(d+u*i),hover:e.get(d+u*o),active:e.get(d+u*s),focus:e.get(d+u*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),be.getValueFor(e),fe.getValueFor(e),ve.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),_t=C("neutral-fill-stealth-rest").withDefault((e=>St.getValueFor(e).evaluate(e).rest)),It=C("neutral-fill-stealth-hover").withDefault((e=>St.getValueFor(e).evaluate(e).hover)),At=C("neutral-fill-stealth-active").withDefault((e=>St.getValueFor(e).evaluate(e).active)),Ft=C("neutral-fill-stealth-focus").withDefault((e=>St.getValueFor(e).evaluate(e).focus)),Ot=C({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(e.colorContrast(t,4.5)),l=a+n*Math.abs(i-o);let c,h;return(1===n?i<o:n*i>n*o)?(c=a,h=l):(c=l,h=a),{rest:e.get(c),hover:e.get(h),active:e.get(c+n*s),focus:e.get(c+n*r)}}(Oe.getValueFor(e),t||Ue.getValueFor(e),xe.getValueFor(e),$e.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e))}),Dt=C("neutral-fill-strong-rest").withDefault((e=>Ot.getValueFor(e).evaluate(e).rest)),Rt=C("neutral-fill-strong-hover").withDefault((e=>Ot.getValueFor(e).evaluate(e).hover)),Et=C("neutral-fill-strong-active").withDefault((e=>Ot.getValueFor(e).evaluate(e).active)),Lt=C("neutral-fill-strong-focus").withDefault((e=>Ot.getValueFor(e).evaluate(e).focus)),Vt=k("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){const o=e.closestIndexOf(t);return e.get(o-(o<i?-1*i:i))}(Oe.getValueFor(e),t||Ue.getValueFor(e),ke.getValueFor(e))}),Pt=C("neutral-fill-layer-rest").withDefault((e=>Vt.getValueFor(e).evaluate(e))),Mt=k("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,3.5);var t,i}}),Bt=C("focus-stroke-outer").withDefault((e=>Mt.getValueFor(e).evaluate(e))),Ht=k("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Re.getValueFor(e),i=Ue.getValueFor(e),o=Bt.getValueFor(e),t.colorContrast(o,3.5,t.closestIndexOf(t.source),-1*p(i));var t,i,o}}),zt=C("focus-stroke-inner").withDefault((e=>Ht.getValueFor(e).evaluate(e))),Nt=k("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,4.5);var t,i}}),jt=C("neutral-foreground-hint").withDefault((e=>Nt.getValueFor(e).evaluate(e))),Gt=k("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=Oe.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,14);var t,i}}),qt=C("neutral-foreground-rest").withDefault((e=>Gt.getValueFor(e).evaluate(e))),Ut=C({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=p(t),l=n+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(r-i);return{rest:e.get(l),hover:e.get(c),active:e.get(h),focus:e.get(d)}}(Oe.getValueFor(e),Ue.getValueFor(e),Te.getValueFor(e),Se.getValueFor(e),_e.getValueFor(e),Ie.getValueFor(e))}),Wt=C("neutral-stroke-rest").withDefault((e=>Ut.getValueFor(e).evaluate(e).rest)),Kt=C("neutral-stroke-hover").withDefault((e=>Ut.getValueFor(e).evaluate(e).hover)),Xt=C("neutral-stroke-active").withDefault((e=>Ut.getValueFor(e).evaluate(e).active)),Yt=C("neutral-stroke-focus").withDefault((e=>Ut.getValueFor(e).evaluate(e).focus)),Qt=k("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){return e.get(e.closestIndexOf(t)+p(t)*i)}(Oe.getValueFor(e),t||Ue.getValueFor(e),Ae.getValueFor(e))}),Zt=C("neutral-stroke-divider-rest").withDefault((e=>Qt.getValueFor(e).evaluate(e))),Jt=o.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(S.getValueFor(e)+F.getValueFor(e))*O.getValueFor(e))),ei=(e,t)=>s.css`
|
|
2
2
|
${(0,o.display)("flex")} :host {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
flex-direction: column;
|
|
@@ -4933,7 +4933,7 @@
|
|
|
4933
4933
|
:host:focus-visible {
|
|
4934
4934
|
outline: none;
|
|
4935
4935
|
}
|
|
4936
|
-
`,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:bi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:Si,fastBreadcrumb:Fi,fastBreadcrumbItem:Ii,fastButton:Ri,fastCalendar:Li,fastCard:Bi,fastCheckbox:zi,fastCombobox:Ui,fastDataGrid:Zi,fastDataGridCell:Yi,fastDataGridRow:Qi,fastDesignSystemProvider:ro,fastDialog:ao,fastDisclosure:ho,fastDivider:po,fastFlipper:mo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Fo,fastMenuItem:_o,fastNumberField:Ro,fastPicker:Mo,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Ho,fastPickerMenuOption:zo,fastProgress:Wo,fastProgressRing:qo,fastRadio:Qo,fastRadioGroup:Xo,fastSearch:is,fastSelect:rs,fastSkeleton:as,fastSlider:fs,fastSliderLabel:ps,fastSwitch:ys,fastTabs:Ts,fastTab:ws,fastTabPanel:ks,fastTextArea:Is,fastTextField:Os,fastTooltip:Vs,fastToolbar:Es,fastTreeView:qs,fastTreeItem:js,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function Ws(e){return o.DesignSystem.getOrCreate(e).withPrefix("fast")}},37811:(e,t,i)=>{i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>re,AttributeDefinition:()=>le,BindingBehavior:()=>P,CSSDirective:()=>$e,ChildrenBehavior:()=>tt,Controller:()=>fe,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>ye,FASTElementDefinition:()=>pe,HTMLBindingDirective:()=>V,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>b,RefBehavior:()=>Be,RepeatBehavior:()=>Ke,RepeatDirective:()=>Xe,SlottedBehavior:()=>Je,SubscriberSet:()=>m,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>ce,booleanConverter:()=>ne,children:()=>it,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>Ce,cssPartial:()=>Te,customElement:()=>xe,defaultExecutionContext:()=>w,elements:()=>Qe,emptyArray:()=>n,enableArrayObservation:()=>Me,html:()=>Y,nullableNumberConverter:()=>ae,observable:()=>v,ref:()=>He,repeat:()=>Ye,slotted:()=>et,volatile:()=>y,when:()=>Ge});const o=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const r=o.FAST;if(void 0===r.getById){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,i){let o=e[t];return void 0===o&&(o=i?e[t]=i():null),o}},s))}const n=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let o=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==o;)i=e.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const l=o.FAST.getById(1,(()=>{const e=[],t=[];function i(){if(t.length)throw t.shift()}function s(e){try{e.call()}catch(e){t.push(e),setTimeout(i,0)}}function r(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&o.requestAnimationFrame(r),e.push(t)},process:r})})),c=o.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let h=c;const d=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${d}{`,p=`}${d}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(h!==c)throw new Error("The HTML policy can only be set once.");h=e},createHTML:e=>h.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${d}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${d}:${e}--\x3e`,queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class m{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,o=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==o&&o.handleChange(i,e)}else for(let o=0,s=t.length;o<s;++o)t[o].handleChange(i,e)}}class b{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const i=this.subscribers[e];void 0!==i&&i.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var i;if(t){let i=this.subscribers[t];void 0===i&&(this.subscribers[t]=i=new m(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){const i=this.subscribers[t];void 0!==i&&i.unsubscribe(e)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(e)}}const f=r.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=g.queueUpdate;let o,s=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=s(e):t.set(e,i=new b(e))),i}const n=a();class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,o=e[i];if(o!==t){e[i]=t;const s=e[this.callback];"function"==typeof s&&s.call(e,o,t),r(e).notify(this.name)}}}class c extends m{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=r(e),n=null===i?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){s=e},getNotifier:r,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){r(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),n(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:n,binding(e,t,i=this.isVolatileBinding(e)){return new c(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function v(e,t){f.defineProperty(e,t)}function y(e,t,i){return Object.assign({},i,{get:function(){return f.trackVolatile(),i.get.apply(this)}})}const x=r.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class ${constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return x.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){x.set(e)}}f.defineProperty($.prototype,"index"),f.defineProperty($.prototype,"length");const w=Object.seal(new $);class C{constructor(){this.targetIndex=0}}class k extends C{constructor(){super(...arguments),this.createPlaceholder=g.createInterpolationPlaceholder}}class T extends C{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return g.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function S(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=f.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function _(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function I(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function A(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function F(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(e){g.setAttribute(this.target,this.targetName,e)}function D(e){g.setBooleanAttribute(this.target,this.targetName,e)}function R(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function E(e){this.target[this.targetName]=e}function L(e){const t=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=e&&e.length){const s=e.split(/\s+/);for(let e=0,r=s.length;e<r;++e){const r=s[e];""!==r&&(t[r]=o,i.classList.add(r))}}if(this.classVersions=t,this.version=o+1,0!==o){o-=1;for(const e in t)t[e]===o&&i.classList.remove(e)}}class V extends k{constructor(e){super(),this.binding=e,this.bind=S,this.unbind=I,this.updateTarget=O,this.isBindingVolatile=f.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=E,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,i)=>g.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=_,this.unbind=F;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=A}createBehavior(e){return new P(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class P{constructor(e,t,i,o,s,r,n){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=r,this.targetName=n}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){$.setEvent(e);const t=this.binding(this.source,this.context);$.setEvent(null),!0!==t&&e.preventDefault()}}let M=null;class B{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){M=this}static borrow(e){const t=M||new B;return t.directives=e,t.reset(),M=null,t}}function H(e){if(1===e.length)return e[0];let t;const i=e.length,o=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),s=new V(((e,t)=>{let s="";for(let r=0;r<i;++r)s+=o[r](e,t);return s}));return s.targetName=t,s}const z=p.length;function N(e,t){const i=t.split(u);if(1===i.length)return null;const o=[];for(let t=0,s=i.length;t<s;++t){const s=i[t],r=s.indexOf(p);let n;if(-1===r)n=s;else{const t=parseInt(s.substring(0,r));o.push(e.directives[t]),n=s.substring(r+z)}""!==n&&o.push(n)}return o}function j(e,t,i=!1){const o=t.attributes;for(let s=0,r=o.length;s<r;++s){const n=o[s],a=n.value,l=N(e,a);let c=null;null===l?i&&(c=new V((()=>a)),c.targetName=n.name):c=H(l),null!==c&&(t.removeAttributeNode(n),s--,r--,e.addFactory(c))}}function G(e,t,i){const o=N(e,t.textContent);if(null!==o){let s=t;for(let r=0,n=o.length;r<n;++r){const n=o[r],a=0===r?t:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof n?a.textContent=n:(a.textContent=" ",e.captureContentBinding(n)),s=a,e.targetIndex++,a!==t&&i.nextNode()}e.targetIndex--}}function q(e,t){const i=e.content;document.adoptNode(i);const o=B.borrow(t);j(o,e,!0);const s=o.behaviorFactories;o.reset();const r=g.createTemplateWalker(i);let n;for(;n=r.nextNode();)switch(o.targetIndex++,n.nodeType){case 1:j(o,n);break;case 3:G(o,n,r);break;case 8:g.isMarker(n)&&o.addFactory(t[g.extractDirectiveIndexFromMarker(n)])}let a=0;(g.isMarker(i.firstChild)||1===i.childNodes.length&&t.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const U=document.createRange();class W{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let o,s=this.firstChild;for(;s!==t;)o=s.nextSibling,i.insertBefore(s,e),s=o;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);const s=this.behaviors,r=this.source;for(let e=0,t=s.length;e<t;++e)s[e].unbind(r)}bind(e,t){const i=this.behaviors;if(this.source!==e)if(null!==this.source){const o=this.source;this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s){const r=i[s];r.unbind(o),r.bind(e,t)}}else{this.source=e,this.context=t;for(let o=0,s=i.length;o<s;++o)i[o].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let i=0,o=e.length;i<o;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){U.setStartBefore(e[0].firstChild),U.setEndAfter(e[e.length-1].lastChild),U.deleteContents();for(let t=0,i=e.length;t<i;++t){const i=e[t],o=i.behaviors,s=i.source;for(let e=0,t=o.length;e<t;++e)o[e].unbind(s)}}}}class K{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=g.createHTML(t);const i=e.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(e=i)}else e=t;const i=q(e,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=g.createTemplateWalker(t);let r=0,n=this.targetOffset,a=s.nextNode();for(let e=i.length;r<e;++r){const e=i[r],t=e.targetIndex;for(;null!==a;){if(n===t){o[r]=e.createBehavior(a);break}a=s.nextNode(),n++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let i=0,s=t.length;i<s;++i,++r)o[r]=t[i].createBehavior(e)}return new W(t,o)}render(e,t,i){"string"==typeof t&&(t=document.getElementById(t)),void 0===i&&(i=t);const o=this.create(i);return o.bind(e,w),o.appendTo(t),o}}const X=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Y(e,...t){const i=[];let o="";for(let s=0,r=e.length-1;s<r;++s){const r=e[s];let n=t[s];if(o+=r,n instanceof K){const e=n;n=()=>e}if("function"==typeof n&&(n=new V(n)),n instanceof k){const e=X.exec(r);null!==e&&(n.targetName=e[2])}n instanceof C?(o+=n.createPlaceholder(i.length),i.push(n)):o+=n}return o+=e[e.length-1],new K(o,i)}class Q{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function Z(e){return e.map((e=>e instanceof Q?Z(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function J(e){return e.map((e=>e instanceof Q?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}Q.create=(()=>{if(g.supportsAdoptedStyleSheets){const e=new Map;return t=>new ie(t,e)}return e=>new se(e)})();let ee=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},te=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(g.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ee=(e,t)=>{e.adoptedStyleSheets.push(...t)},te=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class ie extends Q{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=J(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=Z(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){ee(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){te(e,this.styleSheets),super.removeStylesFrom(e)}}let oe=0;class se extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++oe}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let o=0;o<t.length;o++){const s=document.createElement("style");s.innerHTML=t[o],s.className=i,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=t.length;i<o;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const re=Object.freeze({locate:a()}),ne={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ae={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class le{constructor(e,t,i=t.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===o&&void 0===s&&(this.converter=ne)}setValue(e,t){const i=e[this.fieldName],o=this.converter;void 0!==o&&(t=o.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||g.queueUpdate((()=>{i.add(e);const o=e[this.fieldName];switch(t){case"reflect":const t=this.converter;g.setAttribute(e,this.attribute,void 0!==t?t.toView(o):o);break;case"boolean":g.setBooleanAttribute(e,this.attribute,o)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(re.locate(e));for(let o=0,s=t.length;o<s;++o){const s=t[o];if(void 0!==s)for(let t=0,o=s.length;t<o;++t){const o=s[t];"string"==typeof o?i.push(new le(e,o)):i.push(new le(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function ce(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),re.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const he={mode:"open"},de={},ue=r.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class pe{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=le.collect(e,t.attributes),o=new Array(i.length),s={},r={};for(let e=0,t=i.length;e<t;++e){const t=i[e];o[e]=t.attribute,s[t.name]=t,r[t.attribute]=t}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=r,this.shadowOptions=void 0===t.shadowOptions?he:null===t.shadowOptions?void 0:Object.assign(Object.assign({},he),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?de:Object.assign(Object.assign({},de),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?Q.create(t.styles):t.styles instanceof Q?t.styles:Q.create([t.styles])}get isDefined(){return!!ue.getByType(this.type)}define(e=customElements){const t=this.type;if(ue.register(this)){const e=this.attributes,i=t.prototype;for(let t=0,o=e.length;t<o;++t)f.defineProperty(i,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}pe.forType=ue.getByType;const ge=new WeakMap,me={bubbles:!0,composed:!0,cancelable:!0};function be(e){return e.shadowRoot||ge.get(e)||null}class fe extends b{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const i=t.shadowOptions;if(void 0!==i){const t=e.attachShadow(i);"closed"===i.mode&&ge.set(e,t)}const o=f.getAccessors(e);if(o.length>0){const t=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}}}get isConnected(){return f.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,f.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const i=e.behaviors;e.addStylesTo(t),null!==i&&this.addBehaviors(i)}}removeStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const i=e.behaviors;e.removeStylesFrom(t),null!==i&&this.removeBehaviors(i)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),i=e.length,o=[];for(let s=0;s<i;++s){const i=e[s];t.has(i)?t.set(i,t.get(i)+1):(t.set(i,1),o.push(i))}if(this._isConnected){const e=this.element;for(let t=0;t<o.length;++t)o[t].bind(e,w)}}removeBehaviors(e,t=!1){const i=this.behaviors;if(null===i)return;const o=e.length,s=[];for(let r=0;r<o;++r){const o=e[r];if(i.has(o)){const e=i.get(o)-1;0===e||t?i.delete(o)&&s.push(o):i.set(o,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<s.length;++t)s[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,w);const t=this.behaviors;if(null!==t)for(const[i]of t)i.bind(e,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[i]of t)i.unbind(e)}}onAttributeChangedCallback(e,t,i){const o=this.definition.attributeLookup[e];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},me),i)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const i=Object.keys(t);for(let o=0,s=i.length;o<s;++o){const s=i[o];e[s]=t[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,i=be(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||g.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const i=pe.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new fe(e,i)}}function ve(e){return class extends e{constructor(){super(),fe.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}const ye=Object.assign(ve(HTMLElement),{from:e=>ve(e),define:(e,t)=>new pe(e,t).define().type});function xe(e){return function(t){new pe(t,e).define()}}class $e{createCSS(){return""}createBehavior(){}}function we(e,t){const i=[];let o="";const s=[];for(let r=0,n=e.length-1;r<n;++r){o+=e[r];let n=t[r];if(n instanceof $e){const e=n.createBehavior();n=n.createCSS(),e&&s.push(e)}n instanceof Q||n instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(n)):o+=n}return o+=e[e.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Ce(e,...t){const{styles:i,behaviors:o}=we(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class ke extends $e{constructor(e,t){super(),this.behaviors=t,this.css="";const i=e.reduce(((e,t)=>("string"==typeof t?this.css+=t:e.push(t),e)),[]);i.length&&(this.styles=Q.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function Te(e,...t){const{styles:i,behaviors:o}=we(e,t);return new ke(i,o)}function Se(e,t,i){return{index:e,removed:t,addedCount:i}}const _e=0,Ie=1,Ae=2,Fe=3;function Oe(e,t,i,o,s,r){let a=0,l=0;const c=Math.min(i-t,r-s);if(0===t&&0===s&&(a=function(e,t,i){for(let o=0;o<i;++o)if(e[o]!==t[o])return o;return i}(e,o,c)),i===e.length&&r===o.length&&(l=function(e,t,i){let o=e.length,s=t.length,r=0;for(;r<i&&e[--o]===t[--s];)r++;return r}(e,o,c-a)),s+=a,r-=l,(i-=l)-(t+=a)==0&&r-s==0)return n;if(t===i){const e=Se(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[Se(t,[],i-t)];const h=function(e){let t=e.length-1,i=e[0].length-1,o=e[t][i];const s=[];for(;t>0||i>0;){if(0===t){s.push(Ae),i--;continue}if(0===i){s.push(Fe),t--;continue}const r=e[t-1][i-1],n=e[t-1][i],a=e[t][i-1];let l;l=n<a?n<r?n:r:a<r?a:r,l===r?(r===o?s.push(_e):(s.push(Ie),o=r),t--,i--):l===n?(s.push(Fe),t--,o=n):(s.push(Ae),i--,o=a)}return s.reverse(),s}(function(e,t,i,o,s,r){const n=r-s+1,a=i-t+1,l=new Array(n);let c,h;for(let e=0;e<n;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let i=1;i<n;++i)for(let r=1;r<a;++r)e[t+r-1]===o[s+i-1]?l[i][r]=l[i-1][r-1]:(c=l[i-1][r]+1,h=l[i][r-1]+1,l[i][r]=c<h?c:h);return l}(e,t,i,o,s,r)),d=[];let u,p=t,g=s;for(let e=0;e<h.length;++e)switch(h[e]){case _e:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case Ie:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Ae:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++;break;case Fe:void 0===u&&(u=Se(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&d.push(u),d}const De=Array.prototype.push;function Re(e,t,i,o){const s=Se(t,i,o);let r=!1,n=0;for(let t=0;t<e.length;t++){const i=e[t];if(i.index+=n,r)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){e.splice(t,1),t--,n-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let e=i.removed;if(s.index<i.index){const t=s.removed.slice(0,i.index-s.index);De.apply(t,e),e=t}if(s.index+s.removed.length>i.index+i.addedCount){const t=s.removed.slice(i.index+i.addedCount-s.index);De.apply(e,t)}s.removed=e,i.index<s.index&&(s.index=i.index)}else r=!0}else if(s.index<i.index){r=!0,e.splice(t,0,s),t++;const o=s.addedCount-s.removed.length;i.index+=o,n+=o}}var a,l,c,h;r||e.push(s)}function Ee(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];Re(t,o.index,o.removed,o.addedCount)}return t}(t);for(let t=0,s=o.length;t<s;++t){const s=o[t];1!==s.addedCount||1!==s.removed.length?i=i.concat(Oe(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&i.push(s)}return i}let Le=!1;function Ve(e,t){let i=e.index;const o=t.length;return i>o?i=o-e.addedCount:i<0&&(i=o+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Pe extends m{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ee(this.source,e):Oe(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function Me(){if(Le)return;Le=!0,f.setArrayObserverFactory((e=>new Pe(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,o=e.reverse,s=e.shift,r=e.sort,n=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),o=this.$fastController;return void 0!==o&&e&&o.addSplice(Se(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ve(Se(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=o.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(Se(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=r.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ve(Se(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ve(Se(0,[],arguments.length),this)),e}}class Be{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function He(e){return new T("fast-ref",Be,e)}const ze=e=>"function"==typeof e,Ne=()=>null;function je(e){return void 0===e?Ne:ze(e)?e:()=>e}function Ge(e,t,i){const o=ze(e)?e:()=>e,s=je(t),r=je(i);return(e,t)=>o(e,t)?s(e,t):r(e,t)}const qe=Object.freeze({positioning:!1,recycle:!0});function Ue(e,t,i,o){e.bind(t[i],o)}function We(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class Ke{constructor(e,t,i,o,s,r){this.location=e,this.itemsBinding=t,this.templateBinding=o,this.options=r,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ue,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=We)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=n);const t=this.itemsObserver,i=this.itemsObserver=f.getNotifier(this.items),o=t!==i;o&&null!==t&&t.unsubscribe(this),(o||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,o=this.bindView,s=this.items,r=this.template,n=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=e.length;h<d;++h){const d=e[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,b=i.splice(d.index,u.length),f=c=a.length+b.length;for(;g<m;++g){const e=i[g],h=e?e.firstChild:this.location;let d;n&&c>0?(p<=f&&b.length>0?(d=b[p],p++):(d=a[l],l++),c--):d=r.create(),i.splice(g,0,d),o(d,s,g,t),d.insertBefore(h)}b[p]&&a.push(...b.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=i.length;e<t;++e){const o=i[e].context;o.length=t,o.index=e}}refreshAllViews(e=!1){const t=this.items,i=this.childContext,o=this.template,s=this.location,r=this.bindView;let n=t.length,a=this.views,l=a.length;if(0!==n&&!e&&this.options.recycle||(W.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(n);for(let e=0;e<n;++e){const n=o.create();r(n,t,e,i),a[e]=n,n.insertBefore(s)}}else{let e=0;for(;e<n;++e)if(e<l){r(a[e],t,e,i)}else{const n=o.create();r(n,t,e,i),a.push(n),n.insertBefore(s)}const c=a.splice(e,l-e);for(e=0,n=c.length;e<n;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}class Xe extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,Me(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new Ke(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Ye(e,t,i=qe){return new Xe(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},qe),i))}function Qe(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class Ze{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=f.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Je extends Ze{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function et(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",Je,e)}class tt extends Ze{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function it(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",tt,e)}},71105:(e,t,i)=>{i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>ve,Accordion:()=>be,AccordionExpandMode:()=>me,AccordionItem:()=>de,Anchor:()=>ye,AnchoredRegion:()=>Fe,Avatar:()=>Be,Badge:()=>ze,BaseProgress:()=>mo,Breadcrumb:()=>qe,BreadcrumbItem:()=>je,Button:()=>tt,Calendar:()=>st,CalendarTitleTemplate:()=>pt,Card:()=>$t,CheckableFormAssociated:()=>Ze,Checkbox:()=>Tt,Combobox:()=>Bt,ComboboxAutocomplete:()=>Mt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>m,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>ut,DataGridCell:()=>ht,DataGridCellTypes:()=>nt,DataGridRow:()=>dt,DataGridRowTypes:()=>at,DateFormatter:()=>ot,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>it,DelegatesARIACombobox:()=>Ht,DelegatesARIALink:()=>xe,DelegatesARIAListbox:()=>Et,DelegatesARIAListboxOption:()=>Dt,DelegatesARIASearch:()=>Fo,DelegatesARIASelect:()=>Eo,DelegatesARIATextbox:()=>co,DelegatesARIAToolbar:()=>ps,DesignSystem:()=>mi,DesignToken:()=>ci,Dialog:()=>xi,Disclosure:()=>Si,Divider:()=>Fi,DividerRole:()=>Ai,ElementDisambiguation:()=>hi,FactoryImpl:()=>B,Flipper:()=>Ri,FlipperDirection:()=>Oi,FlyoutPosBottom:()=>Re,FlyoutPosBottomFill:()=>Ve,FlyoutPosTallest:()=>Ee,FlyoutPosTallestFill:()=>Pe,FlyoutPosTop:()=>De,FlyoutPosTopFill:()=>Le,FormAssociated:()=>Qe,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>rt,HorizontalScroll:()=>Co,Listbox:()=>Rt,ListboxElement:()=>Li,ListboxOption:()=>Ot,MatchMediaBehavior:()=>ws,MatchMediaStyleSheetBehavior:()=>Cs,Menu:()=>oo,MenuItem:()=>to,MenuItemRole:()=>Zi,NumberField:()=>po,Picker:()=>Wi,PickerList:()=>Hi,PickerListItem:()=>Ni,PickerMenu:()=>Pi,PickerMenuOption:()=>Bi,PropertyStyleSheetBehavior:()=>_s,Radio:()=>wo,RadioGroup:()=>vo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>V,Search:()=>Ao,Select:()=>Ro,SelectPosition:()=>Lt,ServiceLocator:()=>$,Skeleton:()=>Po,Slider:()=>Uo,SliderLabel:()=>zo,SliderMode:()=>qo,StartEnd:()=>s,Switch:()=>Yo,Tab:()=>es,TabPanel:()=>Zo,Tabs:()=>os,TabsOrientation:()=>is,TextArea:()=>ls,TextAreaResize:()=>ss,TextField:()=>lo,TextFieldType:()=>ao,Toolbar:()=>us,Tooltip:()=>bs,TooltipPosition:()=>ms,TreeItem:()=>ys,TreeView:()=>$s,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>I,anchorTemplate:()=>fe,anchoredRegionTemplate:()=>$e,applyMixins:()=>he,avatarTemplate:()=>Me,badgeTemplate:()=>He,breadcrumbItemTemplate:()=>Ne,breadcrumbTemplate:()=>Ge,buttonTemplate:()=>Ue,calendarCellTemplate:()=>mt,calendarRowTemplate:()=>bt,calendarTemplate:()=>yt,calendarWeekdayTemplate:()=>gt,cardTemplate:()=>xt,checkboxTemplate:()=>wt,comboboxTemplate:()=>zt,composedContains:()=>Ut,composedParent:()=>qt,darkModeStylesheetBehavior:()=>Ts,dataGridCellTemplate:()=>Gt,dataGridRowTemplate:()=>jt,dataGridTemplate:()=>Nt,dialogTemplate:()=>vi,disabledCursor:()=>Is,disclosureTemplate:()=>Ti,display:()=>Fs,dividerTemplate:()=>_i,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>Di,focusVisible:()=>Os,forcedColorsStylesheetBehavior:()=>ks,getDirection:()=>Ae,hidden:()=>As,horizontalScrollTemplate:()=>ko,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>ft,isListboxOption:()=>Ft,isTreeItemElement:()=>vs,lazy:()=>F,lightModeStylesheetBehavior:()=>Ss,listboxOptionTemplate:()=>Ei,listboxTemplate:()=>Vi,menuItemTemplate:()=>eo,menuTemplate:()=>io,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>vt,numberFieldTemplate:()=>so,optional:()=>O,pickerListItemTemplate:()=>Qi,pickerListTemplate:()=>Yi,pickerMenuOptionTemplate:()=>Xi,pickerMenuTemplate:()=>Ki,pickerTemplate:()=>ji,progressRingTemplate:()=>go,progressTemplate:()=>bo,radioGroupTemplate:()=>fo,radioTemplate:()=>yo,reflectAttributes:()=>ki,roleForMenuItem:()=>Ji,searchTemplate:()=>So,selectTemplate:()=>Lo,singleton:()=>_,skeletonTemplate:()=>Vo,sliderLabelTemplate:()=>Mo,sliderTemplate:()=>No,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>Xe,switchTemplate:()=>Wo,tabPanelTemplate:()=>Qo,tabTemplate:()=>Jo,tabsTemplate:()=>ts,textAreaTemplate:()=>rs,textFieldTemplate:()=>cs,toolbarTemplate:()=>hs,tooltipTemplate:()=>gs,transient:()=>T,treeItemTemplate:()=>fs,treeViewTemplate:()=>xs,validateKey:()=>Y,whitespaceFilter:()=>To});var o=i(57418);class s{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const r=(e,t)=>o.html`
|
|
4936
|
+
`,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:bi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:Si,fastBreadcrumb:Fi,fastBreadcrumbItem:Ii,fastButton:Ri,fastCalendar:Li,fastCard:Bi,fastCheckbox:zi,fastCombobox:Ui,fastDataGrid:Zi,fastDataGridCell:Yi,fastDataGridRow:Qi,fastDesignSystemProvider:ro,fastDialog:ao,fastDisclosure:ho,fastDivider:po,fastFlipper:mo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Fo,fastMenuItem:_o,fastNumberField:Ro,fastPicker:Mo,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Ho,fastPickerMenuOption:zo,fastProgress:Wo,fastProgressRing:qo,fastRadio:Qo,fastRadioGroup:Xo,fastSearch:is,fastSelect:rs,fastSkeleton:as,fastSlider:fs,fastSliderLabel:ps,fastSwitch:ys,fastTabs:Ts,fastTab:ws,fastTabPanel:ks,fastTextArea:Is,fastTextField:Os,fastTooltip:Vs,fastToolbar:Es,fastTreeView:qs,fastTreeItem:js,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function Ws(e){return o.DesignSystem.getOrCreate(e).withPrefix("fast")}},37811:(e,t,i)=>{i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>ae,AttributeDefinition:()=>he,BindingBehavior:()=>P,CSSDirective:()=>Ce,ChildrenBehavior:()=>ot,Controller:()=>ye,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>$e,FASTElementDefinition:()=>me,HTMLBindingDirective:()=>V,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>b,RefBehavior:()=>ze,RepeatBehavior:()=>Ye,RepeatDirective:()=>Qe,SlottedBehavior:()=>tt,SubscriberSet:()=>m,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>de,booleanConverter:()=>le,children:()=>st,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>Te,cssPartial:()=>_e,customElement:()=>we,defaultExecutionContext:()=>w,elements:()=>Je,emptyArray:()=>n,enableArrayObservation:()=>He,html:()=>Y,nullableNumberConverter:()=>ce,observable:()=>v,prependToAdoptedStyleSheetsSymbol:()=>ee,ref:()=>Ne,repeat:()=>Ze,slotted:()=>it,volatile:()=>y,when:()=>Ue});const o=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const r=o.FAST;if(void 0===r.getById){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,i){let o=e[t];return void 0===o&&(o=i?e[t]=i():null),o}},s))}const n=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let o=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==o;)i=e.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const l=o.FAST.getById(1,(()=>{const e=[],t=[];function i(){if(t.length)throw t.shift()}function s(e){try{e.call()}catch(e){t.push(e),setTimeout(i,0)}}function r(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&o.requestAnimationFrame(r),e.push(t)},process:r})})),c=o.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let h=c;const d=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${d}{`,p=`}${d}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(h!==c)throw new Error("The HTML policy can only be set once.");h=e},createHTML:e=>h.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${d}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${d}:${e}--\x3e`,queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class m{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,o=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==o&&o.handleChange(i,e)}else for(let o=0,s=t.length;o<s;++o)t[o].handleChange(i,e)}}class b{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const i=this.subscribers[e];void 0!==i&&i.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var i;if(t){let i=this.subscribers[t];void 0===i&&(this.subscribers[t]=i=new m(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){const i=this.subscribers[t];void 0!==i&&i.unsubscribe(e)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(e)}}const f=r.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=g.queueUpdate;let o,s=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=s(e):t.set(e,i=new b(e))),i}const n=a();class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,o=e[i];if(o!==t){e[i]=t;const s=e[this.callback];"function"==typeof s&&s.call(e,o,t),r(e).notify(this.name)}}}class c extends m{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=r(e),n=null===i?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){s=e},getNotifier:r,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){r(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),n(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:n,binding(e,t,i=this.isVolatileBinding(e)){return new c(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function v(e,t){f.defineProperty(e,t)}function y(e,t,i){return Object.assign({},i,{get:function(){return f.trackVolatile(),i.get.apply(this)}})}const x=r.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class ${constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return x.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){x.set(e)}}f.defineProperty($.prototype,"index"),f.defineProperty($.prototype,"length");const w=Object.seal(new $);class C{constructor(){this.targetIndex=0}}class k extends C{constructor(){super(...arguments),this.createPlaceholder=g.createInterpolationPlaceholder}}class T extends C{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return g.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function S(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=f.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function _(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function I(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function A(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function F(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(e){g.setAttribute(this.target,this.targetName,e)}function D(e){g.setBooleanAttribute(this.target,this.targetName,e)}function R(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function E(e){this.target[this.targetName]=e}function L(e){const t=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=e&&e.length){const s=e.split(/\s+/);for(let e=0,r=s.length;e<r;++e){const r=s[e];""!==r&&(t[r]=o,i.classList.add(r))}}if(this.classVersions=t,this.version=o+1,0!==o){o-=1;for(const e in t)t[e]===o&&i.classList.remove(e)}}class V extends k{constructor(e){super(),this.binding=e,this.bind=S,this.unbind=I,this.updateTarget=O,this.isBindingVolatile=f.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=E,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,i)=>g.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=_,this.unbind=F;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=A}createBehavior(e){return new P(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class P{constructor(e,t,i,o,s,r,n){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=r,this.targetName=n}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){$.setEvent(e);const t=this.binding(this.source,this.context);$.setEvent(null),!0!==t&&e.preventDefault()}}let M=null;class B{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){M=this}static borrow(e){const t=M||new B;return t.directives=e,t.reset(),M=null,t}}function H(e){if(1===e.length)return e[0];let t;const i=e.length,o=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),s=new V(((e,t)=>{let s="";for(let r=0;r<i;++r)s+=o[r](e,t);return s}));return s.targetName=t,s}const z=p.length;function N(e,t){const i=t.split(u);if(1===i.length)return null;const o=[];for(let t=0,s=i.length;t<s;++t){const s=i[t],r=s.indexOf(p);let n;if(-1===r)n=s;else{const t=parseInt(s.substring(0,r));o.push(e.directives[t]),n=s.substring(r+z)}""!==n&&o.push(n)}return o}function j(e,t,i=!1){const o=t.attributes;for(let s=0,r=o.length;s<r;++s){const n=o[s],a=n.value,l=N(e,a);let c=null;null===l?i&&(c=new V((()=>a)),c.targetName=n.name):c=H(l),null!==c&&(t.removeAttributeNode(n),s--,r--,e.addFactory(c))}}function G(e,t,i){const o=N(e,t.textContent);if(null!==o){let s=t;for(let r=0,n=o.length;r<n;++r){const n=o[r],a=0===r?t:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof n?a.textContent=n:(a.textContent=" ",e.captureContentBinding(n)),s=a,e.targetIndex++,a!==t&&i.nextNode()}e.targetIndex--}}function q(e,t){const i=e.content;document.adoptNode(i);const o=B.borrow(t);j(o,e,!0);const s=o.behaviorFactories;o.reset();const r=g.createTemplateWalker(i);let n;for(;n=r.nextNode();)switch(o.targetIndex++,n.nodeType){case 1:j(o,n);break;case 3:G(o,n,r);break;case 8:g.isMarker(n)&&o.addFactory(t[g.extractDirectiveIndexFromMarker(n)])}let a=0;(g.isMarker(i.firstChild)||1===i.childNodes.length&&t.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const U=document.createRange();class W{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let o,s=this.firstChild;for(;s!==t;)o=s.nextSibling,i.insertBefore(s,e),s=o;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);const s=this.behaviors,r=this.source;for(let e=0,t=s.length;e<t;++e)s[e].unbind(r)}bind(e,t){const i=this.behaviors;if(this.source!==e)if(null!==this.source){const o=this.source;this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s){const r=i[s];r.unbind(o),r.bind(e,t)}}else{this.source=e,this.context=t;for(let o=0,s=i.length;o<s;++o)i[o].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let i=0,o=e.length;i<o;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){U.setStartBefore(e[0].firstChild),U.setEndAfter(e[e.length-1].lastChild),U.deleteContents();for(let t=0,i=e.length;t<i;++t){const i=e[t],o=i.behaviors,s=i.source;for(let e=0,t=o.length;e<t;++e)o[e].unbind(s)}}}}class K{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=g.createHTML(t);const i=e.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(e=i)}else e=t;const i=q(e,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=g.createTemplateWalker(t);let r=0,n=this.targetOffset,a=s.nextNode();for(let e=i.length;r<e;++r){const e=i[r],t=e.targetIndex;for(;null!==a;){if(n===t){o[r]=e.createBehavior(a);break}a=s.nextNode(),n++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let i=0,s=t.length;i<s;++i,++r)o[r]=t[i].createBehavior(e)}return new W(t,o)}render(e,t,i){"string"==typeof t&&(t=document.getElementById(t)),void 0===i&&(i=t);const o=this.create(i);return o.bind(e,w),o.appendTo(t),o}}const X=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Y(e,...t){const i=[];let o="";for(let s=0,r=e.length-1;s<r;++s){const r=e[s];let n=t[s];if(o+=r,n instanceof K){const e=n;n=()=>e}if("function"==typeof n&&(n=new V(n)),n instanceof k){const e=X.exec(r);null!==e&&(n.targetName=e[2])}n instanceof C?(o+=n.createPlaceholder(i.length),i.push(n)):o+=n}return o+=e[e.length-1],new K(o,i)}class Q{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function Z(e){return e.map((e=>e instanceof Q?Z(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function J(e){return e.map((e=>e instanceof Q?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}Q.create=(()=>{if(g.supportsAdoptedStyleSheets){const e=new Map;return t=>new se(t,e)}return e=>new ne(e)})();const ee=Symbol("prependToAdoptedStyleSheets");function te(e){const t=[],i=[];return e.forEach((e=>(e[ee]?t:i).push(e))),{prepend:t,append:i}}let ie=(e,t)=>{const{prepend:i,append:o}=te(t);e.adoptedStyleSheets=[...i,...e.adoptedStyleSheets,...o]},oe=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(g.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ie=(e,t)=>{const{prepend:i,append:o}=te(t);e.adoptedStyleSheets.splice(0,0,...i),e.adoptedStyleSheets.push(...o)},oe=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class se extends Q{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=J(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=Z(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){ie(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){oe(e,this.styleSheets),super.removeStylesFrom(e)}}let re=0;class ne extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++re}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let o=0;o<t.length;o++){const s=document.createElement("style");s.innerHTML=t[o],s.className=i,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=t.length;i<o;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const ae=Object.freeze({locate:a()}),le={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ce={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class he{constructor(e,t,i=t.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===o&&void 0===s&&(this.converter=le)}setValue(e,t){const i=e[this.fieldName],o=this.converter;void 0!==o&&(t=o.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||g.queueUpdate((()=>{i.add(e);const o=e[this.fieldName];switch(t){case"reflect":const t=this.converter;g.setAttribute(e,this.attribute,void 0!==t?t.toView(o):o);break;case"boolean":g.setBooleanAttribute(e,this.attribute,o)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(ae.locate(e));for(let o=0,s=t.length;o<s;++o){const s=t[o];if(void 0!==s)for(let t=0,o=s.length;t<o;++t){const o=s[t];"string"==typeof o?i.push(new he(e,o)):i.push(new he(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function de(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),ae.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const ue={mode:"open"},pe={},ge=r.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class me{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=he.collect(e,t.attributes),o=new Array(i.length),s={},r={};for(let e=0,t=i.length;e<t;++e){const t=i[e];o[e]=t.attribute,s[t.name]=t,r[t.attribute]=t}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=r,this.shadowOptions=void 0===t.shadowOptions?ue:null===t.shadowOptions?void 0:Object.assign(Object.assign({},ue),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?pe:Object.assign(Object.assign({},pe),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?Q.create(t.styles):t.styles instanceof Q?t.styles:Q.create([t.styles])}get isDefined(){return!!ge.getByType(this.type)}define(e=customElements){const t=this.type;if(ge.register(this)){const e=this.attributes,i=t.prototype;for(let t=0,o=e.length;t<o;++t)f.defineProperty(i,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}me.forType=ge.getByType;const be=new WeakMap,fe={bubbles:!0,composed:!0,cancelable:!0};function ve(e){return e.shadowRoot||be.get(e)||null}class ye extends b{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const i=t.shadowOptions;if(void 0!==i){const t=e.attachShadow(i);"closed"===i.mode&&be.set(e,t)}const o=f.getAccessors(e);if(o.length>0){const t=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}}}get isConnected(){return f.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,f.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=ve(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const i=e.behaviors;e.addStylesTo(t),null!==i&&this.addBehaviors(i)}}removeStyles(e){const t=ve(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const i=e.behaviors;e.removeStylesFrom(t),null!==i&&this.removeBehaviors(i)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),i=e.length,o=[];for(let s=0;s<i;++s){const i=e[s];t.has(i)?t.set(i,t.get(i)+1):(t.set(i,1),o.push(i))}if(this._isConnected){const e=this.element;for(let t=0;t<o.length;++t)o[t].bind(e,w)}}removeBehaviors(e,t=!1){const i=this.behaviors;if(null===i)return;const o=e.length,s=[];for(let r=0;r<o;++r){const o=e[r];if(i.has(o)){const e=i.get(o)-1;0===e||t?i.delete(o)&&s.push(o):i.set(o,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<s.length;++t)s[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,w);const t=this.behaviors;if(null!==t)for(const[i]of t)i.bind(e,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[i]of t)i.unbind(e)}}onAttributeChangedCallback(e,t,i){const o=this.definition.attributeLookup[e];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},fe),i)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const i=Object.keys(t);for(let o=0,s=i.length;o<s;++o){const s=i[o];e[s]=t[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,i=ve(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||g.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const i=me.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new ye(e,i)}}function xe(e){return class extends e{constructor(){super(),ye.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}const $e=Object.assign(xe(HTMLElement),{from:e=>xe(e),define:(e,t)=>new me(e,t).define().type});function we(e){return function(t){new me(t,e).define()}}class Ce{createCSS(){return""}createBehavior(){}}function ke(e,t){const i=[];let o="";const s=[];for(let r=0,n=e.length-1;r<n;++r){o+=e[r];let n=t[r];if(n instanceof Ce){const e=n.createBehavior();n=n.createCSS(),e&&s.push(e)}n instanceof Q||n instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(n)):o+=n}return o+=e[e.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Te(e,...t){const{styles:i,behaviors:o}=ke(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class Se extends Ce{constructor(e,t){super(),this.behaviors=t,this.css="";const i=e.reduce(((e,t)=>("string"==typeof t?this.css+=t:e.push(t),e)),[]);i.length&&(this.styles=Q.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function _e(e,...t){const{styles:i,behaviors:o}=ke(e,t);return new Se(i,o)}function Ie(e,t,i){return{index:e,removed:t,addedCount:i}}const Ae=0,Fe=1,Oe=2,De=3;function Re(e,t,i,o,s,r){let a=0,l=0;const c=Math.min(i-t,r-s);if(0===t&&0===s&&(a=function(e,t,i){for(let o=0;o<i;++o)if(e[o]!==t[o])return o;return i}(e,o,c)),i===e.length&&r===o.length&&(l=function(e,t,i){let o=e.length,s=t.length,r=0;for(;r<i&&e[--o]===t[--s];)r++;return r}(e,o,c-a)),s+=a,r-=l,(i-=l)-(t+=a)==0&&r-s==0)return n;if(t===i){const e=Ie(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[Ie(t,[],i-t)];const h=function(e){let t=e.length-1,i=e[0].length-1,o=e[t][i];const s=[];for(;t>0||i>0;){if(0===t){s.push(Oe),i--;continue}if(0===i){s.push(De),t--;continue}const r=e[t-1][i-1],n=e[t-1][i],a=e[t][i-1];let l;l=n<a?n<r?n:r:a<r?a:r,l===r?(r===o?s.push(Ae):(s.push(Fe),o=r),t--,i--):l===n?(s.push(De),t--,o=n):(s.push(Oe),i--,o=a)}return s.reverse(),s}(function(e,t,i,o,s,r){const n=r-s+1,a=i-t+1,l=new Array(n);let c,h;for(let e=0;e<n;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let i=1;i<n;++i)for(let r=1;r<a;++r)e[t+r-1]===o[s+i-1]?l[i][r]=l[i-1][r-1]:(c=l[i-1][r]+1,h=l[i][r-1]+1,l[i][r]=c<h?c:h);return l}(e,t,i,o,s,r)),d=[];let u,p=t,g=s;for(let e=0;e<h.length;++e)switch(h[e]){case Ae:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case Fe:void 0===u&&(u=Ie(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Oe:void 0===u&&(u=Ie(p,[],0)),u.addedCount++,p++;break;case De:void 0===u&&(u=Ie(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&d.push(u),d}const Ee=Array.prototype.push;function Le(e,t,i,o){const s=Ie(t,i,o);let r=!1,n=0;for(let t=0;t<e.length;t++){const i=e[t];if(i.index+=n,r)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){e.splice(t,1),t--,n-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let e=i.removed;if(s.index<i.index){const t=s.removed.slice(0,i.index-s.index);Ee.apply(t,e),e=t}if(s.index+s.removed.length>i.index+i.addedCount){const t=s.removed.slice(i.index+i.addedCount-s.index);Ee.apply(e,t)}s.removed=e,i.index<s.index&&(s.index=i.index)}else r=!0}else if(s.index<i.index){r=!0,e.splice(t,0,s),t++;const o=s.addedCount-s.removed.length;i.index+=o,n+=o}}var a,l,c,h;r||e.push(s)}function Ve(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];Le(t,o.index,o.removed,o.addedCount)}return t}(t);for(let t=0,s=o.length;t<s;++t){const s=o[t];1!==s.addedCount||1!==s.removed.length?i=i.concat(Re(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&i.push(s)}return i}let Pe=!1;function Me(e,t){let i=e.index;const o=t.length;return i>o?i=o-e.addedCount:i<0&&(i=o+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Be extends m{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ve(this.source,e):Re(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function He(){if(Pe)return;Pe=!0,f.setArrayObserverFactory((e=>new Be(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,o=e.reverse,s=e.shift,r=e.sort,n=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),o=this.$fastController;return void 0!==o&&e&&o.addSplice(Ie(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Me(Ie(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=o.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(Ie(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=r.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Me(Ie(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Me(Ie(0,[],arguments.length),this)),e}}class ze{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Ne(e){return new T("fast-ref",ze,e)}const je=e=>"function"==typeof e,Ge=()=>null;function qe(e){return void 0===e?Ge:je(e)?e:()=>e}function Ue(e,t,i){const o=je(e)?e:()=>e,s=qe(t),r=qe(i);return(e,t)=>o(e,t)?s(e,t):r(e,t)}const We=Object.freeze({positioning:!1,recycle:!0});function Ke(e,t,i,o){e.bind(t[i],o)}function Xe(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class Ye{constructor(e,t,i,o,s,r){this.location=e,this.itemsBinding=t,this.templateBinding=o,this.options=r,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ke,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=Xe)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=n);const t=this.itemsObserver,i=this.itemsObserver=f.getNotifier(this.items),o=t!==i;o&&null!==t&&t.unsubscribe(this),(o||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,o=this.bindView,s=this.items,r=this.template,n=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=e.length;h<d;++h){const d=e[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,b=i.splice(d.index,u.length),f=c=a.length+b.length;for(;g<m;++g){const e=i[g],h=e?e.firstChild:this.location;let d;n&&c>0?(p<=f&&b.length>0?(d=b[p],p++):(d=a[l],l++),c--):d=r.create(),i.splice(g,0,d),o(d,s,g,t),d.insertBefore(h)}b[p]&&a.push(...b.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=i.length;e<t;++e){const o=i[e].context;o.length=t,o.index=e}}refreshAllViews(e=!1){const t=this.items,i=this.childContext,o=this.template,s=this.location,r=this.bindView;let n=t.length,a=this.views,l=a.length;if(0!==n&&!e&&this.options.recycle||(W.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(n);for(let e=0;e<n;++e){const n=o.create();r(n,t,e,i),a[e]=n,n.insertBefore(s)}}else{let e=0;for(;e<n;++e)if(e<l){r(a[e],t,e,i)}else{const n=o.create();r(n,t,e,i),a.push(n),n.insertBefore(s)}const c=a.splice(e,l-e);for(e=0,n=c.length;e<n;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}class Qe extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,He(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new Ye(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Ze(e,t,i=We){return new Qe(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},We),i))}function Je(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class et{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=f.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class tt extends et{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function it(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",tt,e)}class ot extends et{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function st(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",ot,e)}},7524:(e,t,i)=>{i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>ve,Accordion:()=>be,AccordionExpandMode:()=>me,AccordionItem:()=>de,Anchor:()=>ye,AnchoredRegion:()=>Fe,Avatar:()=>Be,Badge:()=>ze,BaseProgress:()=>mo,Breadcrumb:()=>qe,BreadcrumbItem:()=>je,Button:()=>tt,Calendar:()=>st,CalendarTitleTemplate:()=>pt,Card:()=>$t,CheckableFormAssociated:()=>Ze,Checkbox:()=>Tt,Combobox:()=>Bt,ComboboxAutocomplete:()=>Mt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>m,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>ut,DataGridCell:()=>ht,DataGridCellTypes:()=>nt,DataGridRow:()=>dt,DataGridRowTypes:()=>at,DateFormatter:()=>ot,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>it,DelegatesARIACombobox:()=>Ht,DelegatesARIALink:()=>xe,DelegatesARIAListbox:()=>Et,DelegatesARIAListboxOption:()=>Dt,DelegatesARIASearch:()=>Fo,DelegatesARIASelect:()=>Eo,DelegatesARIATextbox:()=>co,DelegatesARIAToolbar:()=>ps,DesignSystem:()=>mi,DesignToken:()=>ci,Dialog:()=>xi,Disclosure:()=>Si,Divider:()=>Fi,DividerRole:()=>Ai,ElementDisambiguation:()=>hi,FactoryImpl:()=>B,Flipper:()=>Ri,FlipperDirection:()=>Oi,FlyoutPosBottom:()=>Re,FlyoutPosBottomFill:()=>Ve,FlyoutPosTallest:()=>Ee,FlyoutPosTallestFill:()=>Pe,FlyoutPosTop:()=>De,FlyoutPosTopFill:()=>Le,FormAssociated:()=>Qe,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>rt,HorizontalScroll:()=>Co,Listbox:()=>Rt,ListboxElement:()=>Li,ListboxOption:()=>Ot,MatchMediaBehavior:()=>ws,MatchMediaStyleSheetBehavior:()=>Cs,Menu:()=>oo,MenuItem:()=>to,MenuItemRole:()=>Zi,NumberField:()=>po,Picker:()=>Wi,PickerList:()=>Hi,PickerListItem:()=>Ni,PickerMenu:()=>Pi,PickerMenuOption:()=>Bi,PropertyStyleSheetBehavior:()=>_s,Radio:()=>wo,RadioGroup:()=>vo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>V,Search:()=>Ao,Select:()=>Ro,SelectPosition:()=>Lt,ServiceLocator:()=>$,Skeleton:()=>Po,Slider:()=>Uo,SliderLabel:()=>zo,SliderMode:()=>qo,StartEnd:()=>s,Switch:()=>Yo,Tab:()=>es,TabPanel:()=>Zo,Tabs:()=>os,TabsOrientation:()=>is,TextArea:()=>ls,TextAreaResize:()=>ss,TextField:()=>lo,TextFieldType:()=>ao,Toolbar:()=>us,Tooltip:()=>bs,TooltipPosition:()=>ms,TreeItem:()=>ys,TreeView:()=>$s,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>I,anchorTemplate:()=>fe,anchoredRegionTemplate:()=>$e,applyMixins:()=>he,avatarTemplate:()=>Me,badgeTemplate:()=>He,breadcrumbItemTemplate:()=>Ne,breadcrumbTemplate:()=>Ge,buttonTemplate:()=>Ue,calendarCellTemplate:()=>mt,calendarRowTemplate:()=>bt,calendarTemplate:()=>yt,calendarWeekdayTemplate:()=>gt,cardTemplate:()=>xt,checkboxTemplate:()=>wt,comboboxTemplate:()=>zt,composedContains:()=>Ut,composedParent:()=>qt,darkModeStylesheetBehavior:()=>Ts,dataGridCellTemplate:()=>Gt,dataGridRowTemplate:()=>jt,dataGridTemplate:()=>Nt,dialogTemplate:()=>vi,disabledCursor:()=>Is,disclosureTemplate:()=>Ti,display:()=>Fs,dividerTemplate:()=>_i,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>Di,focusVisible:()=>Os,forcedColorsStylesheetBehavior:()=>ks,getDirection:()=>Ae,hidden:()=>As,horizontalScrollTemplate:()=>ko,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>ft,isListboxOption:()=>Ft,isTreeItemElement:()=>vs,lazy:()=>F,lightModeStylesheetBehavior:()=>Ss,listboxOptionTemplate:()=>Ei,listboxTemplate:()=>Vi,menuItemTemplate:()=>eo,menuTemplate:()=>io,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>vt,numberFieldTemplate:()=>so,optional:()=>O,pickerListItemTemplate:()=>Qi,pickerListTemplate:()=>Yi,pickerMenuOptionTemplate:()=>Xi,pickerMenuTemplate:()=>Ki,pickerTemplate:()=>ji,progressRingTemplate:()=>go,progressTemplate:()=>bo,radioGroupTemplate:()=>fo,radioTemplate:()=>yo,reflectAttributes:()=>ki,roleForMenuItem:()=>Ji,searchTemplate:()=>So,selectTemplate:()=>Lo,singleton:()=>_,skeletonTemplate:()=>Vo,sliderLabelTemplate:()=>Mo,sliderTemplate:()=>No,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>Xe,switchTemplate:()=>Wo,tabPanelTemplate:()=>Qo,tabTemplate:()=>Jo,tabsTemplate:()=>ts,textAreaTemplate:()=>rs,textFieldTemplate:()=>cs,toolbarTemplate:()=>hs,tooltipTemplate:()=>gs,transient:()=>T,treeItemTemplate:()=>fs,treeViewTemplate:()=>xs,validateKey:()=>Y,whitespaceFilter:()=>To});var o=i(57418);class s{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const r=(e,t)=>o.html`
|
|
4937
4937
|
<span
|
|
4938
4938
|
part="end"
|
|
4939
4939
|
${(0,o.ref)("endContainer")}
|
|
@@ -5399,7 +5399,7 @@
|
|
|
5399
5399
|
>
|
|
5400
5400
|
<slot></slot>
|
|
5401
5401
|
</template>
|
|
5402
|
-
`;function qt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function Ut(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=qt(i)}return!1}const Wt=document.createElement("div");class Kt{setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Xt extends Kt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Yt extends Kt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Qt{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),o.Observable.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}(0,h.__decorate)([o.observable],Qt.prototype,"target",void 0);class Zt{constructor(e){this.target=e.style}setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Jt{setProperty(e,t){Jt.properties[e]=t;for(const i of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Jt.properties[e];for(const t of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Jt;if(!t.has(e)){t.add(e);const i=ii.getOrCreate(this.normalizeRoot(e));for(const e in Jt.properties)i.setProperty(e,Jt.properties[e])}}static unregisterRoot(e){const{roots:t}=Jt;if(t.has(e)){t.delete(e);const i=ii.getOrCreate(Jt.normalizeRoot(e));for(const e in Jt.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===Wt?document:e}}Jt.roots=new Set,Jt.properties={};const ei=new WeakMap,ti=o.DOM.supportsAdoptedStyleSheets?class extends Kt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(o.ElementStyles.create([t]))}}:Qt,ii=Object.freeze({getOrCreate(e){if(ei.has(e))return ei.get(e);let t;return e===Wt?t=new Jt:e instanceof Document?t=o.DOM.supportsAdoptedStyleSheets?new Xt:new Yt:t=e instanceof o.FASTElement?new ti(e):new Zt(e),ei.set(e,t),t}});class oi extends o.CSSDirective{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=oi.uniqueId(),oi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new oi({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return oi.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=li.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof oi&&(t=this.alias(t)),li.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),li.existsFor(e)&&li.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Wt,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!li.existsFor(t)&&li.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}oi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),oi.tokensById=new Map;class si{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=o.Observable.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,o.defaultExecutionContext))}}class ri{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),o.Observable.getNotifier(this).notify(e.id))}get(e){return o.Observable.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const ni=new WeakMap,ai=new WeakMap;class li{constructor(e){this.target=e,this.store=new ri,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=oi.getTokenById(t);if(i&&(i.notify(this.target),oi.isCSSDesignToken(i))){const t=this.parent,o=this.isReflecting(i);if(t){const s=t.get(i),r=e.get(i);s===r||o?s===r&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},ni.set(e,this),o.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof o.FASTElement?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return ni.get(e)||new li(e)}static existsFor(e){return ni.has(e)}static findParent(e){if(Wt!==e.target){let t=qt(e.target);for(;null!==t;){if(ni.has(t))return ni.get(t);t=qt(t)}return li.getOrCreate(Wt)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==Wt?li.getOrCreate(Wt):null}while(null!==i);return null}get parent(){return ai.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=li.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){oi.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),oi.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=li.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){ai.get(this).removeChild(this)}}appendChild(e){e.parent&&ai.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));ai.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),o.Observable.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),o.Observable.getNotifier(this.store).unsubscribe(e),e.parent===this&&ai.delete(e)}contains(e){return Ut(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),li.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),li.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=oi.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);oi.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new si(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}li.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){ii.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(li.getOrCreate(t).get(e)))}remove(e,t){ii.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},(0,h.__decorate)([o.observable],li.prototype,"children",void 0);const ci=Object.freeze({create:function(e){return oi.from(e)},notifyConnection:e=>!(!e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).unbind(),!0),registerRoot(e=Wt){Jt.registerRoot(e)},unregisterRoot(e=Wt){Jt.unregisterRoot(e)}}),hi=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),di=new Map,ui=new Map;let pi=null;const gi=y.createInterface((e=>e.cachedCallback((e=>(null===pi&&(pi=new bi(null,e)),pi))))),mi=Object.freeze({tagFor:e=>ui.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return y.findResponsibleContainer(e).get(gi)},getOrCreate(e){if(!e)return null===pi&&(pi=y.getOrCreateDOMContainer().get(gi)),pi;const t=e.$$designSystem$$;if(t)return t;const i=y.getOrCreateDOMContainer(e);if(i.has(gi,!1))return i.get(gi);{const t=new bi(e,i);return i.register(X.instance(gi,t)),t}}});class bi{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>hi.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,r={elementPrefix:this.prefix,tryDefineElement(e,r,n){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,r,n),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=di.get(u),g=!0;for(;p;){const e=o(u,d,p);switch(e){case hi.ignoreDuplicate:return;case hi.definitionCallbackOnly:g=!1,p=void 0;break;default:u=e,p=di.get(u)}}g&&((ui.has(d)||d===ae)&&(d=class extends d{}),di.set(u,d),ui.set(d,u),h&&ui.set(h,u)),i.push(new fi(t,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&ci.registerRoot(this.designTokenRoot)),t.registerWithContext(r,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class fi{constructor(e,t,i,o,s,r){this.container=e,this.name=t,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=r,this.definition=null}definePresentation(e){re.define(this.name,e,this.container)}defineElement(e){this.definition=new o.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return mi.tagFor(e)}}const vi=(e,t)=>o.html`
|
|
5402
|
+
`;function qt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function Ut(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=qt(i)}return!1}const Wt=document.createElement("div");class Kt{setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Xt extends Kt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Yt extends Kt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Qt{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),o.Observable.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}(0,h.__decorate)([o.observable],Qt.prototype,"target",void 0);class Zt{constructor(e){this.target=e.style}setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Jt{setProperty(e,t){Jt.properties[e]=t;for(const i of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Jt.properties[e];for(const t of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Jt;if(!t.has(e)){t.add(e);const i=ii.getOrCreate(this.normalizeRoot(e));for(const e in Jt.properties)i.setProperty(e,Jt.properties[e])}}static unregisterRoot(e){const{roots:t}=Jt;if(t.has(e)){t.delete(e);const i=ii.getOrCreate(Jt.normalizeRoot(e));for(const e in Jt.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===Wt?document:e}}Jt.roots=new Set,Jt.properties={};const ei=new WeakMap,ti=o.DOM.supportsAdoptedStyleSheets?class extends Kt{constructor(e){super();const t=new CSSStyleSheet;t[o.prependToAdoptedStyleSheetsSymbol]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(o.ElementStyles.create([t]))}}:Qt,ii=Object.freeze({getOrCreate(e){if(ei.has(e))return ei.get(e);let t;return e===Wt?t=new Jt:e instanceof Document?t=o.DOM.supportsAdoptedStyleSheets?new Xt:new Yt:t=e instanceof o.FASTElement?new ti(e):new Zt(e),ei.set(e,t),t}});class oi extends o.CSSDirective{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=oi.uniqueId(),oi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new oi({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return oi.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=li.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof oi&&(t=this.alias(t)),li.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),li.existsFor(e)&&li.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Wt,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!li.existsFor(t)&&li.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}oi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),oi.tokensById=new Map;class si{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=o.Observable.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,o.defaultExecutionContext))}}class ri{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),o.Observable.getNotifier(this).notify(e.id))}get(e){return o.Observable.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const ni=new WeakMap,ai=new WeakMap;class li{constructor(e){this.target=e,this.store=new ri,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=oi.getTokenById(t);i&&(i.notify(this.target),this.updateCSSTokenReflection(e,i))}},ni.set(e,this),o.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof o.FASTElement?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return ni.get(e)||new li(e)}static existsFor(e){return ni.has(e)}static findParent(e){if(Wt!==e.target){let t=qt(e.target);for(;null!==t;){if(ni.has(t))return ni.get(t);t=qt(t)}return li.getOrCreate(Wt)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==Wt?li.getOrCreate(Wt):null}while(null!==i);return null}get parent(){return ai.get(this)||null}updateCSSTokenReflection(e,t){if(oi.isCSSDesignToken(t)){const i=this.parent,o=this.isReflecting(t);if(i){const s=i.get(t),r=e.get(t);s===r||o?s===r&&o&&this.stopReflectToCSS(t):this.reflectToCSS(t)}else o||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=li.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){oi.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),oi.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=li.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){ai.get(this).removeChild(this)}}appendChild(e){e.parent&&ai.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));ai.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),o.Observable.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),o.Observable.getNotifier(this.store).unsubscribe(e),e.parent===this&&ai.delete(e)}contains(e){return Ut(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),li.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),li.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=oi.getTokenById(t);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);oi.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new si(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}li.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){ii.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(li.getOrCreate(t).get(e)))}remove(e,t){ii.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},(0,h.__decorate)([o.observable],li.prototype,"children",void 0);const ci=Object.freeze({create:function(e){return oi.from(e)},notifyConnection:e=>!(!e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).unbind(),!0),registerRoot(e=Wt){Jt.registerRoot(e)},unregisterRoot(e=Wt){Jt.unregisterRoot(e)}}),hi=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),di=new Map,ui=new Map;let pi=null;const gi=y.createInterface((e=>e.cachedCallback((e=>(null===pi&&(pi=new bi(null,e)),pi))))),mi=Object.freeze({tagFor:e=>ui.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return y.findResponsibleContainer(e).get(gi)},getOrCreate(e){if(!e)return null===pi&&(pi=y.getOrCreateDOMContainer().get(gi)),pi;const t=e.$$designSystem$$;if(t)return t;const i=y.getOrCreateDOMContainer(e);if(i.has(gi,!1))return i.get(gi);{const t=new bi(e,i);return i.register(X.instance(gi,t)),t}}});class bi{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>hi.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,r={elementPrefix:this.prefix,tryDefineElement(e,r,n){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,r,n),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=di.get(u),g=!0;for(;p;){const e=o(u,d,p);switch(e){case hi.ignoreDuplicate:return;case hi.definitionCallbackOnly:g=!1,p=void 0;break;default:u=e,p=di.get(u)}}g&&((ui.has(d)||d===ae)&&(d=class extends d{}),di.set(u,d),ui.set(d,u),h&&ui.set(h,u)),i.push(new fi(t,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&ci.registerRoot(this.designTokenRoot)),t.registerWithContext(r,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class fi{constructor(e,t,i,o,s,r){this.container=e,this.name=t,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=r,this.definition=null}definePresentation(e){re.define(this.name,e,this.container)}defineElement(e){this.definition=new o.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return mi.tagFor(e)}}const vi=(e,t)=>o.html`
|
|
5403
5403
|
<div class="positioning-region" part="positioning-region">
|
|
5404
5404
|
${(0,o.when)((e=>e.modal),o.html`
|
|
5405
5405
|
<div
|
|
@@ -5704,7 +5704,7 @@
|
|
|
5704
5704
|
>
|
|
5705
5705
|
<slot ${(0,o.slotted)("items")}></slot>
|
|
5706
5706
|
</template>
|
|
5707
|
-
`;class oo extends ae{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&It(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=e=>{const t=e.target;void 0!==this.menuItems&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||null===e.target||void 0===this.menuItems||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;null===this.expandedItem||t!==this.expandedItem||!1!==t.expanded?t.expanded&&(null!==this.expandedItem&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const e=this.domChildren();this.removeItemListeners(),this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const i=t.reduce(((e,t)=>{const i=function(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t!==Zi.menuitem&&null===i||t===Zi.menuitem&&null!==i?1:t!==Zi.menuitem&&null!==i?2:0}(t);return e>i?e:i}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),e.addEventListener("expanded-change",this.handleExpandedChanged),e.addEventListener("focus",this.handleItemFocus),e instanceof to&&(e.startColumnCount=i)}))},this.changeHandler=e=>{if(void 0===this.menuItems)return;const t=e.target,i=this.menuItems.indexOf(t);if(-1!==i&&"menuitemradio"===t.role&&!0===t.checked){for(let e=i-1;e>=0;--e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Zi.menuitemradio&&(t.checked=!1),"separator"===i)break}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Zi.menuitemradio&&(e.checked=!1),"separator"===i)break}}},this.isMenuItemElement=e=>It(e)&&oo.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),o.DOM.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!e.defaultPrevented&&void 0!==this.menuItems)switch(e.key){case pe.HX:return void this.setFocus(this.focusIndex+1,1);case pe.I5:return void this.setFocus(this.focusIndex-1,-1);case pe.FM:return void this.setFocus(this.menuItems.length-1,-1);case pe.Tg:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(void 0!==this.menuItems)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}}oo.focusableElementRoles=Ji,(0,h.__decorate)([o.observable],oo.prototype,"items",void 0);const so=(e,t)=>o.html`
|
|
5707
|
+
`;class oo extends ae{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&It(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=e=>{const t=e.target;void 0!==this.menuItems&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||null===e.target||void 0===this.menuItems||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;null===this.expandedItem||t!==this.expandedItem||!1!==t.expanded?t.expanded&&(null!==this.expandedItem&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const e=this.domChildren();this.removeItemListeners(),this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const i=t.reduce(((e,t)=>{const i=function(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t!==Zi.menuitem&&null===i||t===Zi.menuitem&&null!==i?1:t!==Zi.menuitem&&null!==i?2:0}(t);return e>i?e:i}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),e.addEventListener("expanded-change",this.handleExpandedChanged),e.addEventListener("focus",this.handleItemFocus),(e instanceof to||"startColumnCount"in e)&&(e.startColumnCount=i)}))},this.changeHandler=e=>{if(void 0===this.menuItems)return;const t=e.target,i=this.menuItems.indexOf(t);if(-1!==i&&"menuitemradio"===t.role&&!0===t.checked){for(let e=i-1;e>=0;--e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Zi.menuitemradio&&(t.checked=!1),"separator"===i)break}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Zi.menuitemradio&&(e.checked=!1),"separator"===i)break}}},this.isMenuItemElement=e=>It(e)&&oo.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),o.DOM.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!e.defaultPrevented&&void 0!==this.menuItems)switch(e.key){case pe.HX:return void this.setFocus(this.focusIndex+1,1);case pe.I5:return void this.setFocus(this.focusIndex-1,-1);case pe.FM:return void this.setFocus(this.menuItems.length-1,-1);case pe.Tg:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(void 0!==this.menuItems)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}}oo.focusableElementRoles=Ji,(0,h.__decorate)([o.observable],oo.prototype,"items",void 0);const so=(e,t)=>o.html`
|
|
5708
5708
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
5709
5709
|
<label
|
|
5710
5710
|
part="label"
|
|
@@ -6321,7 +6321,7 @@
|
|
|
6321
6321
|
${r(e,t)}
|
|
6322
6322
|
</div>
|
|
6323
6323
|
</template>
|
|
6324
|
-
|
|
6324
|
+
`;const ds=Object.freeze({[pe.Is.ArrowUp]:{[Ii.t.vertical]:-1},[pe.Is.ArrowDown]:{[Ii.t.vertical]:1},[pe.Is.ArrowLeft]:{[Ii.t.horizontal]:{[we.O.ltr]:-1,[we.O.rtl]:1}},[pe.Is.ArrowRight]:{[Ii.t.horizontal]:{[we.O.ltr]:1,[we.O.rtl]:-1}}});class us extends ae{constructor(){super(...arguments),this._activeIndex=0,this.direction=we.O.ltr,this.orientation=Ii.t.horizontal}get activeIndex(){return o.Observable.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=(0,ge.AB)(0,this.focusableElements.length-1,e),o.Observable.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;const i=null===(t=this.focusableElements)||void 0===t?void 0:t.findIndex((t=>t.contains(e.target)));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Ae(this)}focusinHandler(e){const t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,o,s,r;return null!==(r=null!==(o=null===(i=null===(t=ds[e])||void 0===t?void 0:t[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=ds[e])||void 0===s?void 0:s[this.orientation])&&void 0!==r?r:0}keydownHandler(e){const t=e.key;if(!(t in pe.Is)||e.defaultPrevented||e.shiftKey)return!0;const i=this.getDirectionalIncrementer(t);if(!i)return!e.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&e.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=null===(e=this.focusableElements)||void 0===e?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(us.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var i,o,s,r;const n="radio"===t.getAttribute("role"),a=null===(o=null===(i=t.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(r=null===(s=t.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==r?r:[]).some((e=>(0,yi.tp)(e)));return t.hasAttribute("disabled")||t.hasAttribute("hidden")||!((0,yi.tp)(t)||n||a||l)?t.childElementCount?e.concat(Array.from(t.children).reduce(us.reduceFocusableItems,[])):e:(e.push(t),e)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}(0,h.__decorate)([o.observable],us.prototype,"direction",void 0),(0,h.__decorate)([o.attr],us.prototype,"orientation",void 0),(0,h.__decorate)([o.observable],us.prototype,"slottedItems",void 0),(0,h.__decorate)([o.observable],us.prototype,"slottedLabel",void 0),(0,h.__decorate)([o.observable],us.prototype,"childItems",void 0);class ps{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-labelledby"})],ps.prototype,"ariaLabelledby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-label"})],ps.prototype,"ariaLabel",void 0),he(ps,ve),he(us,s,ps);const gs=(e,t)=>o.html`
|
|
6325
6325
|
${(0,o.when)((e=>e.tooltipVisible),o.html`
|
|
6326
6326
|
<${e.tagFor(Fe)}
|
|
6327
6327
|
fixed-placement="true"
|
|
@@ -6399,4 +6399,4 @@
|
|
|
6399
6399
|
`;class $s extends ae{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1))return e.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&ys.focusItem(this.currentFocused))):void(this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target))},this.handleBlur=e=>{e.target instanceof HTMLElement&&(null===e.relatedTarget||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const t=this.getVisibleNodes();switch(e.key){case pe.Tg:return void(t.length&&ys.focusItem(t[0]));case pe.FM:return void(t.length&&ys.focusItem(t[t.length-1]));case pe.kT:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof ys&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof ys&&t.parentElement instanceof ys&&ys.focusItem(t.parentElement)}return!1;case pe.bb:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof ys&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof ys&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case pe.HX:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target));case pe.I5:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target));case pe.Mm:return void this.handleClick(e)}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element&&vs(e.target)))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):t.selected||this.currentSelected!==t||(this.currentSelected=null)},this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((e=>{vs(e)&&(e.nested=this.nested)}))},this.isFocusableElement=e=>vs(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),o.DOM.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element&&vs(e.target)))return!0;const t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(t)+e];It(o)&&ys.focusItem(o)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);return-1===t&&(t=e.findIndex(this.isFocusableElement)),-1!==t?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some((e=>vs(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(e,t){if(!e||!t||!It(e))return;return Array.from(e.querySelectorAll(t)).filter((e=>null!==e.offsetParent))}(this,"[role='treeitem']")||[]}}(0,h.__decorate)([(0,o.attr)({attribute:"render-collapsed-nodes"})],$s.prototype,"renderCollapsedNodes",void 0),(0,h.__decorate)([o.observable],$s.prototype,"currentSelected",void 0),(0,h.__decorate)([o.observable],$s.prototype,"slottedTreeItems",void 0);class ws{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}class Cs extends ws{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Cs(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!t?(e.$fastController.addStyles(i),t=o):!o&&t&&(e.$fastController.removeStyles(i),t=o)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const ks=Cs.with(window.matchMedia("(forced-colors)")),Ts=Cs.with(window.matchMedia("(prefers-color-scheme: dark)")),Ss=Cs.with(window.matchMedia("(prefers-color-scheme: light)"));class _s{constructor(e,t,i){this.propertyName=e,this.value=t,this.styles=i}bind(e){o.Observable.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){o.Observable.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}const Is="not-allowed",As=":host([hidden]){display:none}";function Fs(e){return`${As}:host{display:${e}}`}const Os=function(){if("boolean"==typeof At)return At;if(!(0,_t.S)())return At=!1,At;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),At=!0}catch(e){At=!1}finally{document.head.removeChild(e)}return At}()?"focus-visible":"focus"},98647:(e,t,i)=>{i.d(t,{Y:()=>g});var o=i(84225),s=i(36132),r=i(53523),n=i(80751);class a{constructor(){this.handler=e=>{const{shouldHandleEvent:t,href:i}=this.getEventInfo(e);t&&(e.preventDefault(),s.qh.path.push(i))}}connect(){window.addEventListener("click",this.handler,!0)}disconnect(){window.removeEventListener("click",this.handler)}getEventInfo(e){const t={shouldHandleEvent:!1,href:null,anchor:null},i=this.findClosestAnchor(e);if(!i||!this.targetIsThisWindow(i))return t;if(i.hasAttribute("download")||i.hasAttribute("router-ignore")||i.hasAttribute("data-router-ignore"))return t;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return t;const o=i.getAttribute("href");t.anchor=i,t.href=o;const s=1===e.which,r=o&&!("#"===o.charAt(0)||/^[a-z]+:/i.test(o));return t.shouldHandleEvent=s&&!!r,t}findClosestAnchor(e){const t=e.composedPath();for(let e=0,i=t.length;e<i;++e){const i=t[e];if("A"===i.tagName)return i}return e.target}targetIsThisWindow(e){const t=e.getAttribute("target");return!t||t===window.name||"_self"===t}}var l=i(77820);class c{constructor(e,t,i,o,s){this.name=e,this.commitActions=o,this.cancelActions=s,this.routes=[],this.routers=[],this.canceled=!1,this.titles=[],this.routes.push(t),this.routers.push(i)}get route(){return this.routes[this.routes.length-1]}get router(){return this.routers[this.routers.length-1]}cancel(e){this.canceled=!0,e&&this.cancelActions.push(e)}onCommit(e){this.commitActions.push(e)}onCancel(e){this.cancelActions.push(e)}setTitle(e){const t=this.router.level;for(;this.titles.length<t+1;)this.titles.push([]);this.titles[t].push(e)}evaluateContributor(e,t=this.route,i=this.router){return(0,o.__awaiter)(this,void 0,void 0,(function*(){(0,l.J)(e,this.name)&&(this.routes.push(t),this.routers.push(i),yield e[this.name](this),this.routes.pop(),this.routers.pop())}))}}class h{constructor(){this.phases=["navigate","leave","construct","enter","commit"]}run(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=e.config.createEventSink(),o=yield e.config.recognizeRoute(t.path);if(null===o)return void i.onUnhandledNavigationMessage(e,t);const s=o.route,r=o.command;i.onNavigationBegin(e,s,r);const n=[],a=[];let l=n;const h=[yield r.createContributor(e,s),e,this];for(const t of this.phases){const o=new c(t,s,e,n,a);if(i.onPhaseBegin(o),o.canceled)l=a;else for(const e of h)if(yield o.evaluateContributor(e),o.canceled){l=a;break}if(i.onPhaseEnd(o),o.canceled)break}yield Promise.all(l.map((e=>e()))).then((()=>i.onNavigationEnd(e,s,r)))}))}commit(e){const t=e.router.config.createTitleBuilder();document.title=t.buildTitle(e.router.config.title,e.titles)}}class d{constructor(e=" - ",t=":"){this.segmentSeparator=e,this.fragmentSeparator=t}joinTitles(e,t){return""===e?t:""===t?e:`${e}${this.segmentSeparator}${t}`}buildTitle(e,t){let i=e;for(const e of t){i&&(i+=this.segmentSeparator);let t="";for(const i of e)t&&(t+=this.fragmentSeparator),t+=i;i+=t}return i}}class u{onUnhandledNavigationMessage(e,t){}onNavigationBegin(e,t,i){}onPhaseBegin(e){}onPhaseEnd(e){}onNavigationEnd(e,t,i){}}var p=i(8428);class g{constructor(){this.isConfigured=!1,this.routes=new n.s(this),this.contributors=[],this.defaultLayout=r.PE.default,this.defaultTransition=r.eB.default,this.title="",this.parent=null}createNavigationQueue(){return this.construct(s.xN)}createLinkHandler(){return this.construct(a)}createNavigationProcess(){return new h}createEventSink(){return this.construct(u)}createTitleBuilder(){return this.construct(d)}createRouteRecognizer(){return this.construct(p.vX)}construct(e){return null!==this.parent?this.parent.construct(e):new e}recognizeRoute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.recognize(e)}))}generateRouteFromName(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromName(e,t)}))}generateRouteFromPath(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromPath(e,t)}))}findContributors(e){return this.contributors.filter((t=>(0,l.J)(t,e)))}cached(e){let t=null;return()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return null===t&&(t=new e),t}))}ensureConfigured(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.isConfigured||(yield this.configure(),this.isConfigured=!0)}))}}},77820:(e,t,i)=>{i.d(t,{J:()=>r,c:()=>c});var o=i(57418),s=i(3479);function r(e,t){return t in e}const n={lifecycle:!0,parameters:!0};class a extends o.HTMLDirective{constructor(e){super(),this.options=e}createPlaceholder(e){return o.DOM.createCustomAttributePlaceholder("fast-navigation-contributor",e)}createBehavior(e){return new l(e,this.options)}}class l{constructor(e,t){this.contributor=e,this.options=t,this.router=null}bind(e,t){if(this.options.lifecycle&&(this.router=t.router||s.Ix.find(this.contributor),this.router.addContributor(this.contributor)),this.options.parameters){const t=this.contributor,i=e;for(const e in i)t[e]=i[e]}}unbind(e){null!==this.router&&this.router.removeContributor(this.contributor)}}function c(e){return new a(Object.assign({},n,e))}},36132:(e,t,i)=>{i.d(t,{kg:()=>r,qh:()=>c,xN:()=>h});var o=i(84225),s=i(3479);class r{constructor(e){this.path=e}}const n=new Set,a=Object.freeze({register(e){n.add(e)},unregister(e){n.delete(e)}}),l=/^([a-z][a-z0-9+\-.]*:)?\/\//i,c=Object.freeze({path:Object.freeze({get current(){return location.pathname+location.search},generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.Ix.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t=!0){e&&l.test(e)?location.href=e:(history.pushState({},document.title,e),t&&c.path.trigger(e))},replace(e,t=!0){e&&l.test(e)?location.href=e:(history.replaceState({},document.title,e),t&&c.path.trigger(e))},trigger(e){const t=new r(e);for(const e of n)e.enqueue(t)}}),name:Object.freeze({generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.Ix.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.push(o,s)}))},replace(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.replace(o,s)}))},trigger(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.trigger(o)}))}})});class h{constructor(){this.queue=[],this.promise=null,this.resolve=null}connect(){this.enqueue(new r(c.path.current)),window.addEventListener("popstate",this),a.register(this)}disconnect(){this.queue=[],this.promise=null,this.resolve=null,window.removeEventListener("popstate",this),a.unregister(this)}receive(){return null!==this.promise||(this.promise=new Promise((e=>this.resolve=e)),Promise.resolve().then((()=>this.tryDequeue()))),this.promise}enqueue(e){this.queue.push(e),this.tryDequeue()}tryDequeue(){if(null===this.resolve||0===this.queue.length)return;const e=this.queue[this.queue.length-1],t=this.resolve;this.queue.length=0,this.promise=null,this.resolve=null,t(e)}handleEvent(e){this.enqueue(new r(c.path.current))}}},35044:(e,t,i)=>{i.d(t,{C:()=>l});const o=encodeURIComponent,s=e=>o(e).replace("%24","$");function r(e,t,i){let n=[];if(null==t)return n;if(Array.isArray(t))for(let a=0,l=t.length;a<l;a++)if(i)n.push(`${s(e)}=${o(t[a])}`);else{const i=e+"["+("object"==typeof t[a]&&null!==t[a]?a:"")+"]";n=n.concat(r(i,t[a]))}else if("object"!=typeof t||i)n.push(`${s(e)}=${o(t)}`);else for(const i in t)n=n.concat(r(e+"["+i+"]",t[i]));return n}function n(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function a(e,t,i){let o=e;const s=t.length-1;for(let e=0;e<=s;e++){const r=""===t[e]?o.length:t[e];if(e<s){const i=o[r]&&"object"!=typeof o[r]?[o[r]]:o[r];o=o[r]=i||(isNaN(t[e+1])?{}:[])}else o=o[r]=i}}const l=Object.freeze({get current(){return location.search},build(e,t){let i=[];const o=Object.keys(e||{}).sort();for(let s=0,n=o.length;s<n;s++){const n=o[s];i=i.concat(r(n,e[n],t))}return 0===i.length?"":i.join("&")},separate(e){const t=e.indexOf("?");let i="";return-1!==t&&(i=e.substr(t+1,e.length),e=e.substr(0,t)),{path:e,queryString:i}},parse(e){const t={};if(!e||"string"!=typeof e)return t;let i=e;"?"===i.charAt(0)&&(i=i.substr(1));const o=i.replace(/\+/g," ").split("&");for(let e=0;e<o.length;e++){const i=o[e].split("="),s=decodeURIComponent(i[0]);if(!s)continue;let r=s.split("]["),l=r.length-1;if(/\[/.test(r[0])&&/\]$/.test(r[l])?(r[l]=r[l].replace(/\]$/,""),r=r.shift().split("[").concat(r),l=r.length-1):l=0,i.length>=2){const e=i[1]?decodeURIComponent(i[1]):"";l?a(t,r,e):t[s]=n(t[s],e)}else t[s]=!0}return t}})},8428:(e,t,i)=>{i.d(t,{Pt:()=>n,e9:()=>l,vX:()=>p,yI:()=>a});var o=i(84225),s=i(35044);const r=e=>e;class n{constructor(e,t,i){this.path=e,this.name=t,this.caseSensitive=i}}class a{constructor(e,t,i,o){this.route=e,this.paramNames=t,this.paramTypes=i,this.settings=o}get path(){return this.route.path}}class l{constructor(e,t,i,o){this.endpoint=e,this.params=t,this.typedParams=i,this.queryParams=o,this.allParams=Object.assign(Object.assign({},t),o),this.allTypedParams=Object.assign(Object.assign({},i),o)}get settings(){return this.endpoint.settings}}class c{constructor(e,t,i,o){var s;this.chars=e,this.states=t,this.skippedStates=i,this.result=o,this.head=t[t.length-1],this.endpoint=null===(s=this.head)||void 0===s?void 0:s.endpoint}advance(e){const{chars:t,states:i,skippedStates:o,result:s}=this;let r=null,n=0;const a=i[i.length-1];function l(h,d){if(h.isMatch(e)&&(1==++n?r=h:s.add(new c(t.concat(e),i.concat(h),null===d?o:o.concat(d),s))),null===a.segment&&h.isOptional&&null!==h.nextStates){if(h.nextStates.length>1)throw new Error(`${h.nextStates.length} nextStates`);const e=h.nextStates[0];if(!e.isSeparator)throw new Error("Not a separator");if(null!==e.nextStates)for(const t of e.nextStates)l(t,h)}}if(a.isDynamic&&l(a,null),null!==a.nextStates)for(const e of a.nextStates)l(e,null);null!==r&&(i.push(this.head=r),t.push(e),null!==r.endpoint&&(this.endpoint=r.endpoint)),0===n&&s.remove(this)}finalize(){!function e(t,i){const o=i.nextStates;if(null!==o)if(1===o.length&&null===o[0].segment)e(t,o[0]);else for(const i of o)if(i.isOptional&&null!==i.endpoint){if(t.push(i),null!==i.nextStates)for(const o of i.nextStates)e(t,o);break}}(this.skippedStates,this.head)}getParams(){const{states:e,chars:t,endpoint:i}=this,o={};for(const e of i.paramNames)o[e]=void 0;for(let i=0,s=e.length;i<s;++i){const s=e[i];if(s.isDynamic){const e=s.segment.name;void 0===o[e]?o[e]=t[i]:o[e]+=t[i]}}return o}compareTo(e){const t=this.states,i=e.states;for(let e=0,o=0,s=Math.max(t.length,i.length);e<s;++e){let s=t[e];if(void 0===s)return 1;let r=i[o];if(void 0===r)return-1;let n=s.segment,a=r.segment;if(null===n){if(null===a){++o;continue}if(void 0===(s=t[++e]))return 1;n=s.segment}else if(null===a){if(void 0===(r=i[++o]))return-1;a=r.segment}if(n.kind<a.kind)return 1;if(n.kind>a.kind)return-1;++o}const o=this.skippedStates,s=e.skippedStates,r=o.length,n=s.length;if(r<n)return 1;if(r>n)return-1;for(let e=0;e<r;++e){const t=o[e],i=s[e];if(t.length<i.length)return 1;if(t.length>i.length)return-1}return 0}}function h(e){return null!==e.head.endpoint}function d(e,t){return e.compareTo(t)}class u{constructor(e){this.candidates=[],this.candidates=[new c([""],[e],[],this)]}get isEmpty(){return 0===this.candidates.length}getSolution(){const e=this.candidates.filter(h);if(0===e.length)return null;for(const t of e)t.finalize();return e.sort(d),e[0]}add(e){this.candidates.push(e)}remove(e){this.candidates.splice(this.candidates.indexOf(e),1)}advance(e){const t=this.candidates.slice();for(const i of t)i.advance(e)}}class p{constructor(){this.names=new Map,this.paths=new Map,this.rootState=new g(null,null,"")}add(e,t){if(e instanceof Array)for(const i of e)this.$add(i,t);else this.$add(e,t)}$add(e,t){const i=e.path,o=new n(e.path,e.name||"",!0===e.caseSensitive),s=""===i?[""]:i.split("/").filter(m),r=[],l=[];let c=this.rootState;const h=[];for(const e of s)switch(c=c.append(null,"/"),e.charAt(0)){case"{":{const t=e.slice(1,-1).split(":").map((e=>e.trim()));2===t.length?l.push(t[1]):l.push("string");const i=t[0].endsWith("?"),o=i?t[0].slice(0,-1):t[0];r.push(o);const s=new f(o,i);h.push(s),c=s.appendTo(c);break}case"*":{const t=e.slice(1);r.push(t),l.push("string");const i=new v(t);h.push(i),c=i.appendTo(c);break}default:{const t=new b(e,o.caseSensitive);h.push(t),c=t.appendTo(c);break}}const d=new a(o,r,l,t||null);c.setEndpoint(d),this.paths.set(i,h),e.name&&this.names.set(e.name,h)}recognize(e,t={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=s.C.separate(e),o=s.C.parse(i.queryString);(e=decodeURI(i.path)).startsWith("/")||(e=`/${e}`),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1));const n=new u(this.rootState);for(let t=0,i=e.length;t<i;++t){const i=e.charAt(t);if(n.advance(i),n.isEmpty)return null}const a=n.getSolution();if(null===a)return null;const{endpoint:c}=a,h=c.paramNames,d=c.paramTypes,p=a.getParams(),g={};for(let e=0,i=h.length;e<i;++e){const i=h[e],o=t[d[e]]||r,s=p[i],n=yield o(s);g[i]=n}return new l(c,p,g,o)}))}generateFromName(e,t){return this.generate(this.names.get(e),t)}generateFromPath(e,t){return this.generate(this.paths.get(e),t)}generate(e,t){if(!e)return null;const i=Object.assign({},t),o={};let r="";for(let t=0,s=e.length;t<s;t++){const s=e[t],n=s.generate(i,o);if(null==n){if(s instanceof f&&!s.optional)throw new Error(`A value is required for route parameter '${s.name}'.`)}else r+="/",r+=n}"/"!==r.charAt(0)&&(r="/"+r);for(const e in o)delete i[e];const n=s.C.build(i);return r+=n?`?${n}`:"",r}}class g{constructor(e,t,i){switch(this.prevState=e,this.segment=t,this.value=i,this.nextStates=null,this.endpoint=null,null==t?void 0:t.kind){case 2:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=t.optional;break;case 1:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=!1;break;case 3:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!1,this.isOptional=!1;break;case void 0:this.length=null===e?0:e.length,this.isSeparator=!0,this.isDynamic=!1,this.isOptional=!1}}append(e,t){let i,o=this.nextStates;return null===o?(i=void 0,o=this.nextStates=[]):i=null===e?o.find((e=>e.value===t)):o.find((t=>{var i;return null===(i=t.segment)||void 0===i?void 0:i.equals(e)})),void 0===i&&o.push(i=new g(this,e,t)),i}setEndpoint(e){if(null!==this.endpoint)throw new Error(`Cannot add ambiguous route. The pattern '${e.route.path}' clashes with '${this.endpoint.route.path}'`);this.endpoint=e,this.isOptional&&(this.prevState.setEndpoint(e),this.prevState.isSeparator&&null!==this.prevState.prevState&&this.prevState.prevState.setEndpoint(e))}isMatch(e){const t=this.segment;switch(null==t?void 0:t.kind){case 2:return!this.value.includes(e);case 1:return!0;case 3:case void 0:return this.value.includes(e)}}}function m(e){return e.length>0}class b{constructor(e,t){this.value=e,this.caseSensitive=t}get kind(){return 3}appendTo(e){const{value:t,value:{length:i}}=this;if(this.caseSensitive)for(let o=0;o<i;++o)e=e.append(this,t.charAt(o));else for(let o=0;o<i;++o){const i=t.charAt(o);e=e.append(this,i.toUpperCase()+i.toLowerCase())}return e}generate(){return this.value}equals(e){return 3===e.kind&&e.caseSensitive===this.caseSensitive&&e.value===this.value}}class f{constructor(e,t){this.name=e,this.optional=t}get kind(){return 2}appendTo(e){return e=e.append(this,"/")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 2===e.kind&&e.optional===this.optional&&e.name===this.name}}class v{constructor(e){this.name=e}get kind(){return 1}appendTo(e){return e=e.append(this,"")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 1===e.kind&&e.name===this.name}}},3479:(e,t,i)=>{i.d(t,{$Q:()=>u,Ix:()=>d});var o=i(84225),s=i(57418),r=i(36132),n=i(80751),a=i(53523);const l="$router";function c(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function h(e){let t=e;for(;t=c(t);)if(l in t)return t[l];return null}const d=Object.freeze({getOrCreateFor(e){const t=e[l];return void 0!==t?t:e[l]=new p(e)},find:e=>e[l]||h(e),from(e){class t extends e{constructor(){super(),d.getOrCreateFor(this)}get config(){return this[l].config}set config(e){this[l].config=e}}const i=t.prototype;if("connectedCallback"in i){const e=i.connectedCallback;i.connectedCallback=function(){e.call(this),this[l].connect()}}else i.connectedCallback=function(){this[l].connect()};if("disconnectedCallback"in i){const e=i.disconnectedCallback;i.disconnectedCallback=function(){e.call(this),this[l].disconnect()}}else i.disconnectedCallback=function(){this[l].disconnect()};return t}});function u(e){return e instanceof s.FASTElement}class p{constructor(e){this.host=e,this.parentRouter=void 0,this.contributors=new Set,this.navigationQueue=null,this.linkHandler=null,this.newView=null,this.newRoute=null,this.childCommandContributor=null,this.childRoute=null,this.isConnected=!1,this.routerConfig=null,this.view=null,this.route=null,this.onNavigationMessage=e=>(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.config.createNavigationProcess();yield t.run(this,e),this.navigationQueue.receive().then(this.onNavigationMessage)})),e[l]=this}get config(){return this.routerConfig}set config(e){this.routerConfig=e,this.tryConnect()}get parent(){if(void 0===this.parentRouter){if(!this.isConnected)return null;this.parentRouter=h(this.host)}return this.parentRouter||null}get level(){return null===this.parent?0:this.parent.level+1}shouldRender(e){var t;if(this.route&&this.route.endpoint.path===e.endpoint.path){const i=null==e?void 0:e.allParams,o=null===(t=this.route)||void 0===t?void 0:t.allParams;if(JSON.stringify(o)===JSON.stringify(i))return!1}return!0}beginRender(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return this.newRoute=e,this.newView=yield t.createView(),this.newView.bind(e.allTypedParams,a.Hz.create(this)),this.newView.appendTo(this.host),yield t.transition.begin(this.host,this.view,this.newView),{commit:this.renderOperationCommit.bind(this,t.layout,t.transition),rollback:this.renderOperationRollback.bind(this,t.transition)}}))}connect(){this.isConnected=!0,this.tryConnect()}disconnect(){null===this.parent?(null!==this.navigationQueue&&(this.navigationQueue.disconnect(),this.navigationQueue=null),null!==this.linkHandler&&(this.linkHandler.disconnect(),this.linkHandler=null)):this.parent.removeContributor(this),this.isConnected=!1,this.parentRouter=void 0}addContributor(e){this.contributors.add(e)}removeContributor(e){this.contributors.delete(e)}tryConnect(){null!==this.config&&this.isConnected&&(null===this.parent?(null!==this.navigationQueue&&this.navigationQueue.disconnect(),this.navigationQueue=this.config.createNavigationQueue(),this.navigationQueue.connect(),this.navigationQueue.receive().then(this.onNavigationMessage),null!==this.linkHandler&&this.linkHandler.disconnect(),this.linkHandler=this.config.createLinkHandler(),this.linkHandler.connect()):(this.config.parent=this.parent.config,this.parent.addContributor(this)))}renderOperationCommit(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield e.beforeCommit(this.host),yield t.commit(this.host,this.view,this.newView),yield e.afterCommit(this.host),null!==this.view&&this.view.dispose(),this.route=this.newRoute,this.view=this.newView,this.newRoute=null,this.newView=null}))}renderOperationRollback(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){null!==this.newView&&(yield e.rollback(this.host,this.view,this.newView),this.newView.dispose(),this.newRoute=null,this.newView=null)}))}navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}leave(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(yield this.tunnel(e),!e.canceled){const t=this.contributors;this.contributors=new Set,e.onCancel((()=>this.contributors=t))}}))}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(null!==this.parent){const t=e.route.allParams[n.N]||"",i=yield this.config.recognizeRoute(t);if(null===i){return this.config.createEventSink().onUnhandledNavigationMessage(this,new r.kg(t)),void e.cancel()}this.childRoute=i.route,this.childCommandContributor=yield i.command.createContributor(this,i.route)}yield this.tunnel(e)}))}enter(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}tunnel(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.childRoute,i=this.childCommandContributor;if(t&&i&&(yield e.evaluateContributor(i,t,this)),e.canceled)return;const o=[...this.config.findContributors(e.name),...Array.from(this.contributors)];for(const t of o)if(yield e.evaluateContributor(t,void 0,this),e.canceled)return}))}}},80751:(e,t,i)=>{i.d(t,{s:()=>x,N:()=>b});var o=i(84225),s=i(8428),r=i(57418),n=i(53523),a=i(36132),l=i(77820);class c{createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return{navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){e.cancel()}))}}}))}}class h{constructor(e){this.redirect=e}createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=this.redirect;return{navigate(t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=t.router.config,s=(yield i.generateRouteFromName(e,t.route.allParams))||(yield i.generateRouteFromPath(e,t.route.allParams));if(null===s)throw new Error(`Invalid redirect. Name or path not found: ${e}`);t.cancel((()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return a.qh.path.replace(s)}))))}))}}}))}}function d(e){return r.html`<${e} ${(0,l.c)()}></${e}>`}function u(e){const t=document.createDocumentFragment();t.appendChild(e);const i=new r.HTMLView(t,[(0,l.c)().createBehavior(e)]);return{create:()=>i}}class p{constructor(e,t,i){this.router=e,this.route=t,this.command=i}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.router.shouldRender(this.route)?(this.operation=yield this.router.beginRender(this.route,this.command),e.onCancel((()=>this.operation.rollback()))):e.cancel()}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.operation.commit(),this.command.title&&e.setTitle(this.command.title)}))}}class g{constructor(e,t){this.owner=e,this.createView=t,this._layout=null,this._transition=null,this.title=""}get transition(){return this._transition||this.owner.defaultTransition}set transition(e){this._transition=e}get layout(){return this._layout||this.owner.defaultLayout}set layout(e){this._layout=e}createContributor(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return new p(e,t,this)}))}static fromDefinition(e,t){let i;i="template"in t?()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.template;return"function"==typeof e&&(e=yield e()),e.create()})):()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.element,i=null;if(t.factory)i=t.factory;else if("function"==typeof e){let t=r.FASTElementDefinition.forType(e);if(t)i=d(t.name);else if(e=yield e(),"string"==typeof e)i=d(e);else if(e instanceof HTMLElement)i=u(e);else{if(t=r.FASTElementDefinition.forType(e),!t)throw new Error("Invalid value for element in route config.");i=d(t.name)}}else e instanceof HTMLElement?t.factory=i=u(e):t.factory=i=d(e);return i.create()}));const s=new g(e,i);return t.layout&&(t.layout instanceof r.ViewTemplate?s.layout=new n.Bj(t.layout):s.layout=t.layout),t.transition&&(s.transition=t.transition),t.title&&(s.title=t.title),s}}var m=i(35044);const b="fast-child-route";function f(e,t){return"command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(e,t)}const v=e=>{if(null==e)return!1;switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;default:return!1}},y={number:e=>void 0===e?NaN:parseFloat(e),float:e=>void 0===e?NaN:parseFloat(e),int:e=>void 0===e?NaN:parseInt(e),integer:e=>void 0===e?NaN:parseInt(e),Date:e=>void 0===e?new Date(Date.now()):new Date(e),boolean:v,bool:v};class x{constructor(e){this.owner=e,this._recognizer=null,this.pathToCommand=new Map,this.fallbackCommand=null,this.fallbackSettings=null,this.converters={}}get recognizer(){return null===this._recognizer&&(this._recognizer=this.owner.createRouteRecognizer()),this._recognizer}ignore(e){"string"==typeof e&&(e={path:e}),this.pathToCommand.set(e.path,new c),this.recognizer.add(e,e.settings)}map(...e){for(const t of e){if("children"in t){const e=this.owner.createTitleBuilder(),i=t.children.map((i=>{const o=Object.assign(Object.assign(Object.assign({},t),i),{path:`${t.path}/${i.path}`});if("title"in t||"title"in i){const s=t.title||"",r=i.title||"";o.title=e.joinTitles(s,r)}if("name"in i){const e=t.name?t.name+"/":"";o.name=e+i.name}return o.children===t.children&&delete o.children,o}));this.map(...i);continue}let e;if(e="command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(this.owner,t),this.pathToCommand.set(t.path,e),this.recognizer.add(t,t.settings),"childRouters"in t&&t.childRouters){const i=Object.assign(Object.assign({},t),{path:t.path+`/*${b}`});this.pathToCommand.set(i.path,e),this.recognizer.add(i,i.settings)}}}fallback(e){const t=this.owner;this.fallbackCommand="function"==typeof e?{createContributor(i,s){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield e();return f(t,o).createContributor(i,s)}))}}:f(t,e)}converter(e,t){let i;i="convert"in t?t.convert.bind(t):t.prototype&&"convert"in t.prototype?e=>this.owner.construct(t).convert(e):t,this.converters[e]=i}recognize(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.recognizer.recognize(e,this.aggregateConverters());if(null!==t)return{route:t,command:this.pathToCommand.get(t.endpoint.path)};if(null!==this.fallbackCommand){const t=m.C.separate(e),i=m.C.parse(t.queryString);return{route:new s.e9(new s.yI(new s.Pt("*","",!1),[],[],this.fallbackSettings),{},{},i),command:this.fallbackCommand}}return null}))}generateFromName(e,t){return this.recognizer.generateFromName(e,t)}generateFromPath(e,t){return this.recognizer.generateFromPath(e,t)}aggregateConverters(){return null===this.owner.parent?Object.assign(Object.assign({},y),this.converters):Object.assign(Object.assign({},this.owner.parent.routes.aggregateConverters()),this.converters)}}},53523:(e,t,i)=>{i.d(t,{Bj:()=>l,Hz:()=>n,PE:()=>c,eB:()=>a});var o=i(84225),s=i(57418),r=i(3479);const n=Object.freeze({create:e=>Object.create(s.defaultExecutionContext,{router:{value:e}})}),a=Object.freeze({default:Object.freeze({begin(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},rollback(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},commit(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))}})});class l{constructor(e=null,t=null,i=!0){this.template=e,this.runBeforeCommit=i,this.styles=null==t?null:Array.isArray(t)?s.ElementStyles.create(t):t instanceof s.ElementStyles?t:s.ElementStyles.create([t])}beforeCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit&&this.apply(e)}))}afterCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit||this.apply(e)}))}apply(e){(0,r.$Q)(e)&&(e.$fastController.template!==this.template&&(e.$fastController.template=this.template),e.$fastController.styles!==this.styles&&(e.$fastController.styles=this.styles))}}const c=Object.freeze({default:new l(s.html`
|
|
6400
6400
|
<slot></slot>
|
|
6401
6401
|
`)})},17733:(e,t,i)=>{i.d(t,{t:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},31679:(e,t,i)=>{function o(...e){return e.reduce(((e,t)=>{const i=e.length?" ":"",s=Array.isArray(t)&&t[1]?o.call(null,t[0]):"function"==typeof t?t():"string"==typeof t?t:"";return s.length?e+i+s:e}),"")}i.d(t,{x:()=>o})},6526:(e,t,i)=>{var o;i.d(t,{Ac:()=>u,De:()=>v,F9:()=>c,FM:()=>d,HX:()=>s,I5:()=>a,Is:()=>y,J9:()=>b,Mm:()=>l,R9:()=>f,Tg:()=>h,bb:()=>n,f_:()=>p,gG:()=>m,kT:()=>r,oK:()=>g}),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(o||(o={}));const s="ArrowDown",r="ArrowLeft",n="ArrowRight",a="ArrowUp",l="Enter",c="Escape",h="Home",d="End",u="F2",p="PageDown",g="PageUp",m=" ",b="Tab",f="Backspace",v="Delete",y={ArrowDown:s,ArrowLeft:r,ArrowRight:n,ArrowUp:a}},85109:(e,t,i)=>{var o;i.d(t,{O:()=>o}),function(e){e.ltr="ltr",e.rtl="rtl"}(o||(o={}))},54120:(e,t,i)=>{function o(e,t,i){return i<e?t:i>t?e:i}function s(e,t,i){return Math.min(Math.max(i,e),t)}function r(e,t,i=0){return[t,i]=[t,i].sort(((e,t)=>e-t)),t<=e&&e<i}i.d(t,{AB:()=>s,Vf:()=>o,r4:()=>r})},64324:(e,t,i)=>{i.d(t,{NF:()=>s,fL:()=>r});let o=0;function s(e=""){return`${e}${o++}`}function r(e){let t=`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((e,t,i)=>`${t.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(e=>e.toUpperCase())),i=0;for(let e=0;e<t.length;e++){const o=t.charAt(e);if(o==o.toLowerCase()){i=e;break}}return i>1&&(t=`${t.charAt(0).toUpperCase()}${t.slice(1,i-1).toLowerCase()}`+t.slice(i-1)),t}},85090:(e,t,i)=>{var o;i.d(t,{A:()=>o}),function(e){e.Canvas="Canvas",e.CanvasText="CanvasText",e.LinkText="LinkText",e.VisitedText="VisitedText",e.ActiveText="ActiveText",e.ButtonFace="ButtonFace",e.ButtonText="ButtonText",e.Field="Field",e.FieldText="FieldText",e.Highlight="Highlight",e.HighlightText="HighlightText",e.GrayText="GrayText"}(o||(o={}))}}]);
|
|
6402
|
-
//# sourceMappingURL=npm.microsoft.
|
|
6402
|
+
//# sourceMappingURL=npm.microsoft.0672c016cd36c90579da822a2bcf4065.js.map
|