@genesislcap/design-system-configurator 12.0.1 → 12.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/1.0.0.remoteEntry.js +1 -1
  2. package/dist/{119.119.08648a504cc91559e6c3.js → 119.119.5f4440edab5e79e05d7b.js} +3 -3
  3. package/dist/{119.12232b536f03e0405df86810757ded01.js.map → 119.fcf0491a32abb778a131910c2ad8e8ad.js.map} +1 -1
  4. package/dist/{361.361.851d9e6e1947b5606572.js → 361.361.e4e8563f03bd46b2e0a6.js} +1 -1
  5. package/dist/594.594.61a47bd860d9ecee310b.js +3 -0
  6. package/dist/{594.9baf933760af0a1f23cb9a11137ee772.js.map → 594.abc25c0b2a32dcd9a916a6f52cc9c7fb.js.map} +1 -1
  7. package/dist/{614.614.527dac0a369fb5fa3542.js → 614.614.23dde585382290964a8f.js} +6 -6
  8. package/dist/{688.688.1a67c7d35760594cc566.js → 688.688.3af4ea1239e41870a9f4.js} +1 -1
  9. package/dist/{755.755.9b1ee6129603d4126087.js → 755.755.80318506a6786ceb707b.js} +2 -2
  10. package/dist/{755.3a4728881eb76e7ca78e9e24938ac82c.js.map → 755.b341fccec39a741d39946938c12e4c32.js.map} +1 -1
  11. package/dist/dashboard.json +1 -1
  12. package/dist/{designSystemConfigurator.db4ad5918295c95b91317d564fcfb66f.js.map → designSystemConfigurator.bfea758927231066fea03eafe989809a.js.map} +1 -1
  13. package/dist/index.html +1 -1
  14. package/dist/info.html +4 -4
  15. package/dist/main.17dacb23352411795c0a.js +2 -0
  16. package/dist/{main.ac729abb5cd4685080820efded848e41.js.map → main.392020e838bf7d26a7c5191608cdbb65.js.map} +1 -1
  17. package/dist/{npm.dialog-polyfill.47.5c51a6932ed6a90ed568.js → npm.dialog-polyfill.47.4c7929bbd87c64f7e011.js} +1 -1
  18. package/dist/{npm.microsoft.127.ae588e64f4f1be3e524c.js → npm.microsoft.127.87b9142379160a96127d.js} +2 -2
  19. package/dist/npm.popperjs.591.1c9db64ce289476020fa.js +2 -0
  20. package/dist/npm.popperjs.ac79f4962b096252cc2379eb76352506.js.map +1 -0
  21. package/dist/npm.rxjs.271.4f3aaa4d69fc116036ad.js +2 -0
  22. package/dist/npm.rxjs.2ad838729cee99cb3f48b31dd65215d0.js.map +1 -0
  23. package/dist/remoteEntry.js +2 -2
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/package.json +7 -8
  26. package/dist/594.594.e173817f8a085f8dedde.js +0 -3
  27. package/dist/main.132e89092de80c588c4c.js +0 -2
  28. package/dist/npm.popperjs.591.987f91263b1038998a2f.js +0 -2
  29. package/dist/npm.popperjs.b4aeaaaf90668c31b79adb730bdce29c.js.map +0 -1
  30. package/dist/npm.rxjs.271.8f07d2c204e4e9c516d8.js +0 -2
  31. package/dist/npm.rxjs.87c94f4520ba01fa48edfeddf8a28be4.js.map +0 -1
  32. /package/dist/{594.594.e173817f8a085f8dedde.js.LICENSE.txt → 594.594.61a47bd860d9ecee310b.js.LICENSE.txt} +0 -0
  33. /package/dist/{npm.microsoft.127.ae588e64f4f1be3e524c.js.LICENSE.txt → npm.microsoft.127.87b9142379160a96127d.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- /*! For license information please see npm.microsoft.127.ae588e64f4f1be3e524c.js.LICENSE.txt */
1
+ /*! For license information please see npm.microsoft.127.87b9142379160a96127d.js.LICENSE.txt */
2
2
  (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[127],{6622:(e,t,i)=>{"use strict";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 d(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:()=>b,ColorInterpolationSpace:()=>ce,ColorLAB:()=>m,ColorLCH:()=>f,ColorPalette:()=>Pe,ColorRGBA64:()=>v,ColorScale:()=>ye,ColorXYZ:()=>y,ComponentStateColorPalette:()=>Ze,Histogram:()=>qe,ImageDataPixelBlob:()=>it,PixelBox:()=>We,blend:()=>de,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:()=>_,centeredRescale:()=>je,clamp:()=>o,computeAlphaBlend:()=>he,contrastRatio:()=>C,darkenViaLAB:()=>q,defaultCenteredRescaleConfig:()=>Ne,defaultPaletteExtractionConfig:()=>Je,defaultQuantizeConfig:()=>Xe,degreesToRadians:()=>n,denormalize:()=>r,desaturateViaLCH:()=>G,extractPalette:()=>et,generateOffCenterPalette:()=>Me,generateScaledPalettes:()=>Ge,getHexStringForByte:()=>l,hslToRGB:()=>S,hsvToRGB:()=>O,insertIntoSortedList:()=>Ue,interpolateByColorSpace:()=>ve,interpolateHSL:()=>pe,interpolateHSV:()=>ge,interpolateLAB:()=>me,interpolateLCH:()=>fe,interpolateRGB:()=>ue,interpolateXYZ:()=>be,isColorNamed:()=>Oe,isColorStringHexARGB:()=>_e,isColorStringHexRGB:()=>Te,isColorStringHexRGBA:()=>Ie,isColorStringWebRGB:()=>Se,isColorStringWebRGBA:()=>Fe,labToLCH:()=>D,labToRGB:()=>P,labToXYZ:()=>R,lchToLAB:()=>H,lchToRGB:()=>M,lerp:()=>c,lerpAnglesInDegrees:()=>d,lerpAnglesInRadians:()=>u,lightenViaLAB:()=>U,loadImageData:()=>tt,matchLightnessIndex:()=>Be,normalize:()=>s,parseColor:()=>Ve,parseColorHexARGB:()=>De,parseColorHexRGB:()=>He,parseColorHexRGBA:()=>Re,parseColorNamed:()=>Ae,parseColorWebRGB:()=>Ee,parseColorWebRGBA:()=>Le,quantize:()=>Qe,quantizeHistogram:()=>Ye,radiansToDegrees:()=>a,rescale:()=>ze,rgbToHSL:()=>I,rgbToHSV:()=>F,rgbToLAB:()=>V,rgbToLCH:()=>B,rgbToLinearLuminance:()=>x,rgbToRelativeLuminance:()=>$,rgbToTemperature:()=>N,rgbToXYZ:()=>L,roundToPrecisionSmall:()=>p,saturateViaLCH:()=>j,temperatureToRGB:()=>z,xyzToLAB:()=>E,xyzToRGB:()=>A});const h=2*Math.PI;function u(e,t,i){if(isNaN(e)||e<=0)return t%h;if(e>=1)return i%h;const o=(t-i+h)%h;return o<=(i-t+h)%h?(t-o*e+h)%h:(t+o*e+h)%h}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 b{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 b(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 b(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class m{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 m(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 m(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}m.epsilon=216/24389,m.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 _(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 I(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 S(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 F(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 b(o,s,t)}function O(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 H(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 m(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>m.epsilon?s:(116*i-16)/m.kappa;let l=0;l=e.l>m.epsilon*m.kappa?r:e.l/m.kappa;let c=0;return c=n>m.epsilon?n:(116*o-16)/m.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>m.epsilon?Math.pow(e,1/3):(m.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 m(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 A(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 V(e){return E(L(e))}function P(e,t=1){return A(R(e),t)}function B(e){return D(V(e))}function M(e,t=1){return P(H(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),M(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=V(e),s=o.l-t*i;return P(new m(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=I(e),o=I(t);return 0===o.s?new v(i.l,i.l,i.l,1):S(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 de(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 he(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(d(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 b(d(e,t.h,i.h),c(e,t.s,i.s),c(e,t.v,i.v))}function be(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 me(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new m(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),d(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 S(pe(e,I(i),I(o)));case ce.HSV:return O(ge(e,F(i),F(o)));case ce.XYZ:return A(be(e,L(i),L(o)));case ce.LAB:return P(me(e,V(i),V(o)));case ce.LCH:return M(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,d=a,h=0;for(;h<=r;){d=Math.abs(c-l)/2+l;const e=C(n,this.getColor(d,o));if(Math.abs(e-t)<=s)return d;e>t?i?l=d:c=d:i?c=d:l=d,h++}return d}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 _e(e){return ke.test(e)}function Ie(e){return _e(e)}function Se(e){return $e.test(e)}function Fe(e){return we.test(e)}function Oe(e){return xe.hasOwnProperty(e)}function He(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 Ae(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 Ve(e){const t=e.toLowerCase();return Te(t)?He(t):Ie(t)?De(t):Se(t)?Ee(t):Fe(t)?Le(t):Oe(t)?Ae(t):null}class Pe{constructor(e){this.config=Object.assign({},Pe.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=I(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=I(e);let o=Number.MAX_VALUE,s=0;for(let e=0;e<t.length;e++){const r=I(t[e]),n=Math.abs(r.l-i.l);n<o&&(o=n,s=e)}return s}function Me(e,t,i=Pe.greyscalePaletteConfig,o=Pe.defaultPaletteConfig){const s=Be(e,new Pe(Object.assign(Object.assign({},i),{steps:t})).palette);return new Pe(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}Pe.defaultPaletteConfig={baseColor:He("#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},Pe.greyscalePaletteConfig={baseColor:He("#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:Pe.defaultPaletteConfig.scaleColorLight,scaleColorDark:Pe.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=Me(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 d=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)*d,l+=o*(t+.5)*d,c+=o*(i+.5)*d}0===this.pixelCount?this.averageColor=new v(d*((t+i+1)/2)/255,d*((o+s+1)/2)/255,d*((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 Pe(Object.assign(Object.assign({},Pe.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,s=(x(this.config.baseColor)+I(this.config.baseColor).l)/2,r=this.matchRelativeLuminanceIndex(s,o)/(e-1),n=this.matchRelativeLuminanceIndex(t,o)/(e-1),a=I(this.config.baseColor),l=S(g.fromObject({h:a.h,s:a.s,l:t})),c=S(g.fromObject({h:a.h,s:a.s,l:.06})),d=new Array(5);d[0]={position:0,color:new v(1,1,1,1)},d[1]={position:r,color:this.config.baseColor},d[2]={position:n,color:l},d[3]={position:.99,color:c},d[4]={position:1,color:new v(0,0,0,1)};const h=new ye(d);this.palette=new Array(e);for(let t=0;t<e;t++){const i=h.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:He("#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=I(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 d=e[a].pixelCount/i,h=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=(d*t.populationWeight+h*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}}},3047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Accordion:()=>o.Accordion,AccordionItem:()=>o.AccordionItem,ActionsStyles:()=>vo,Anchor:()=>bi,AnchoredRegion:()=>o.AnchoredRegion,Avatar:()=>wi,Badge:()=>o.Badge,Breadcrumb:()=>o.Breadcrumb,BreadcrumbItem:()=>o.BreadcrumbItem,Button:()=>Di,Calendar:()=>o.Calendar,CalendarStyles:()=>Ei,Card:()=>Pi,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:()=>Fo,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:()=>Is,TextField:()=>Os,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:()=>bt,accentForegroundFocusDelta:()=>ae,accentForegroundHover:()=>pt,accentForegroundHoverDelta:()=>re,accentForegroundRecipe:()=>ht,accentForegroundRest:()=>ut,accentForegroundRestDelta:()=>se,accentPalette:()=>Re,accordionItemStyles:()=>oi,accordionStyles:()=>ei,allComponents:()=>Us,anchorStyles:()=>gi,anchoredRegionStyles:()=>fi,avatarStyles:()=>$i,badgeStyles:()=>Ti,baseHeightMultiplier:()=>_,baseHorizontalSpacingMultiplier:()=>I,baseLayerLuminance:()=>S,bodyFont:()=>T,breadcrumbItemStyles:()=>Ii,breadcrumbStyles:()=>Fi,buttonStyles:()=>Hi,cardStyles:()=>Vi,checkboxStyles:()=>Mi,comboboxStyles:()=>Gi,controlCornerRadius:()=>F,dataGridCellStyles:()=>Xi,dataGridRowStyles:()=>Ki,dataGridStyles:()=>Wi,density:()=>O,designSystemProviderStyles:()=>so,designSystemProviderTemplate:()=>oo,designUnit:()=>H,dialogStyles:()=>no,direction:()=>D,disabledOpacity:()=>R,disclosureStyles:()=>lo,dividerStyles:()=>uo,fastAccordion:()=>ri,fastAccordionItem:()=>si,fastAnchor:()=>mi,fastAnchoredRegion:()=>vi,fastAvatar:()=>ki,fastBadge:()=>_i,fastBreadcrumb:()=>Oi,fastBreadcrumbItem:()=>Si,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:()=>bo,fastHorizontalScroll:()=>$o,fastListbox:()=>To,fastMenu:()=>Oo,fastMenuItem:()=>Io,fastNumberField:()=>Ro,fastOption:()=>Co,fastPicker:()=>Po,fastPickerList:()=>No,fastPickerListItem:()=>jo,fastPickerMenu:()=>Mo,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:()=>Ss,fastTextField:()=>Hs,fastToolbar:()=>Es,fastTooltip:()=>As,fastTreeItem:()=>js,fastTreeView:()=>qs,fillColor:()=>Ue,flipperStyles:()=>go,focusStrokeInner:()=>zt,focusStrokeInnerRecipe:()=>Mt,focusStrokeOuter:()=>Bt,focusStrokeOuterRecipe:()=>Pt,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:()=>_o,menuStyles:()=>So,neutralColor:()=>Oe,neutralFillActive:()=>yt,neutralFillActiveDelta:()=>de,neutralFillFocus:()=>xt,neutralFillFocusDelta:()=>he,neutralFillHover:()=>vt,neutralFillHoverDelta:()=>ce,neutralFillInputActive:()=>kt,neutralFillInputActiveDelta:()=>ge,neutralFillInputFocus:()=>Tt,neutralFillInputFocusDelta:()=>be,neutralFillInputHover:()=>Ct,neutralFillInputHoverDelta:()=>pe,neutralFillInputRecipe:()=>$t,neutralFillInputRest:()=>wt,neutralFillInputRestDelta:()=>ue,neutralFillLayerRecipe:()=>At,neutralFillLayerRest:()=>Vt,neutralFillLayerRestDelta:()=>ke,neutralFillRecipe:()=>mt,neutralFillRest:()=>ft,neutralFillRestDelta:()=>le,neutralFillStealthActive:()=>Ft,neutralFillStealthActiveDelta:()=>ve,neutralFillStealthFocus:()=>Ot,neutralFillStealthFocusDelta:()=>ye,neutralFillStealthHover:()=>St,neutralFillStealthHoverDelta:()=>fe,neutralFillStealthRecipe:()=>_t,neutralFillStealthRest:()=>It,neutralFillStealthRestDelta:()=>me,neutralFillStrongActive:()=>Et,neutralFillStrongActiveDelta:()=>we,neutralFillStrongFocus:()=>Lt,neutralFillStrongFocusDelta:()=>Ce,neutralFillStrongHover:()=>Rt,neutralFillStrongHoverDelta:()=>$e,neutralFillStrongRecipe:()=>Ht,neutralFillStrongRest:()=>Dt,neutralFillStrongRestDelta:()=>xe,neutralForegroundHint:()=>jt,neutralForegroundHintRecipe:()=>Nt,neutralForegroundRecipe:()=>Gt,neutralForegroundRest:()=>qt,neutralLayer1:()=>Be,neutralLayer1Recipe:()=>Pe,neutralLayer2:()=>ze,neutralLayer2Recipe:()=>Me,neutralLayer3:()=>je,neutralLayer3Recipe:()=>Ne,neutralLayer4:()=>qe,neutralLayer4Recipe:()=>Ge,neutralLayerCardContainer:()=>Le,neutralLayerCardContainerRecipe:()=>Ee,neutralLayerFloating:()=>Ve,neutralLayerFloatingRecipe:()=>Ae,neutralPalette:()=>He,neutralStrokeActive:()=>Xt,neutralStrokeActiveDelta:()=>Ie,neutralStrokeDividerRecipe:()=>Qt,neutralStrokeDividerRest:()=>Zt,neutralStrokeDividerRestDelta:()=>Fe,neutralStrokeFocus:()=>Yt,neutralStrokeFocusDelta:()=>Se,neutralStrokeHover:()=>Kt,neutralStrokeHoverDelta:()=>_e,neutralStrokeRecipe:()=>Ut,neutralStrokeRest:()=>Wt,neutralStrokeRestDelta:()=>Te,numberFieldStyles:()=>Ho,optionStyles:()=>wo,pickerListItemStyles:()=>Vo,pickerMenuOptionStyles:()=>Ao,pickerMenuStyles:()=>Lo,pickerStyles:()=>Eo,progressRingStyles:()=>Go,progressStyles:()=>Uo,provideFASTDesignSystem:()=>Ws,radioGroupStyles:()=>Ko,radioStyles:()=>Yo,searchStyles:()=>os,selectStyles:()=>ji,skeletonStyles:()=>ns,sliderLabelStyles:()=>hs,sliderStyles:()=>ms,strokeWidth:()=>E,switchStyles:()=>vs,tabPanelStyles:()=>Cs,tabStyles:()=>$s,tabsStyles:()=>xs,textAreaStyles:()=>_s,textFieldStyles:()=>Fs,toolbarStyles:()=>Ds,tooltipStyles:()=>Ls,treeItemStyles:()=>Ns,treeViewStyles:()=>Gs,typeRampBaseFontSize:()=>A,typeRampBaseLineHeight:()=>V,typeRampMinus1FontSize:()=>P,typeRampMinus1LineHeight:()=>B,typeRampMinus2FontSize:()=>M,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:()=>ds});var o=i(5951),s=i(3147),r=i(3773),n=i(2694);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 d(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])?d(e,t,i,s):d(e,t,s+1,o)}const h=(-.1+Math.sqrt(.21))/2;function u(e){return e.relativeLuminance<=h}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)?b.from(e):b.from(l.create(e.r,e.g,e.b))}});class b{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),d(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 b(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 m=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'),_=C("base-height-multiplier").withDefault(10),I=C("base-horizontal-spacing-multiplier").withDefault(3),S=C("base-layer-luminance").withDefault($.DarkMode),F=C("control-corner-radius").withDefault(4),O=C("density").withDefault(0),H=C("design-unit").withDefault(4),D=C("direction").withDefault(r.N.ltr),R=C("disabled-opacity").withDefault(.3),E=C("stroke-width").withDefault(1),L=C("focus-stroke-width").withDefault(2),A=C("type-ramp-base-font-size").withDefault("14px"),V=C("type-ramp-base-line-height").withDefault("20px"),P=C("type-ramp-minus-1-font-size").withDefault("12px"),B=C("type-ramp-minus-1-line-height").withDefault("16px"),M=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),de=k("neutral-fill-active-delta").withDefault(5),he=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),be=k("neutral-fill-input-focus-delta").withDefault(0),me=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),_e=k("neutral-stroke-hover-delta").withDefault(40),Ie=k("neutral-stroke-active-delta").withDefault(16),Se=k("neutral-stroke-focus-delta").withDefault(25),Fe=k("neutral-stroke-divider-rest-delta").withDefault(8),Oe=C("neutral-color").withDefault(v),He=k("neutral-palette").withDefault((e=>g.from(Oe.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=He.getValueFor(e),i=S.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))),Ae=k("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(x(t))-i;return e.get(o-i)}(He.getValueFor(e),S.getValueFor(e),ke.getValueFor(e))}),Ve=C("neutral-layer-floating").withDefault((e=>Ae.getValueFor(e).evaluate(e))),Pe=k("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(x(t)))}(He.getValueFor(e),S.getValueFor(e))}),Be=C("neutral-layer-1").withDefault((e=>Pe.getValueFor(e).evaluate(e))),Me=k("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=S.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=de.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=>Me.getValueFor(e).evaluate(e))),Ne=k("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=S.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=de.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=He.getValueFor(e),i=S.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=de.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,d=t.closestIndexOf(i)>=Math.max(n,a,l)?-1:1,h=e.closestIndexOf(c),u=h+-1*d*o,p=u+d*s,g=u+d*r;return{rest:e.get(u),hover:e.get(h),active:e.get(p),focus:e.get(g)}}(Re.getValueFor(e),He.getValueFor(e),t||Ue.getValueFor(e),te.getValueFor(e),ie.getValueFor(e),oe.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),de.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(m)>=t?m: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)))),dt=e=>(t,i)=>function(e,t,i,o,s,r,n){const a=e.source,l=e.closestIndexOf(a),c=p(t),d=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),h=e.colorContrast(t,i,d,c),u=e.closestIndexOf(h),g=u+c*Math.abs(o-s);let b,m;return(1===c?o<s:c*o>c*s)?(b=u,m=g):(b=g,m=u),{rest:e.get(b),hover:e.get(m),active:e.get(b+c*r),focus:e.get(b+c*n)}}(Re.getValueFor(t),i||Ue.getValueFor(t),e,se.getValueFor(t),re.getValueFor(t),ne.getValueFor(t),ae.getValueFor(t)),ht=C({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>dt(We.normal)(e,t)}),ut=C("accent-foreground-rest").withDefault((e=>ht.getValueFor(e).evaluate(e).rest)),pt=C("accent-foreground-hover").withDefault((e=>ht.getValueFor(e).evaluate(e).hover)),gt=C("accent-foreground-active").withDefault((e=>ht.getValueFor(e).evaluate(e).active)),bt=C("accent-foreground-focus").withDefault((e=>ht.getValueFor(e).evaluate(e).focus)),mt=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)}}(He.getValueFor(e),t||Ue.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),de.getValueFor(e),he.getValueFor(e))}),ft=C("neutral-fill-rest").withDefault((e=>mt.getValueFor(e).evaluate(e).rest)),vt=C("neutral-fill-hover").withDefault((e=>mt.getValueFor(e).evaluate(e).hover)),yt=C("neutral-fill-active").withDefault((e=>mt.getValueFor(e).evaluate(e).active)),xt=C("neutral-fill-focus").withDefault((e=>mt.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)}}(He.getValueFor(e),t||Ue.getValueFor(e),ue.getValueFor(e),pe.getValueFor(e),ge.getValueFor(e),be.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)),_t=C({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l,c){const d=Math.max(i,o,s,r,n,a,l,c),h=e.closestIndexOf(t),u=h>=d?-1:1;return{rest:e.get(h+u*i),hover:e.get(h+u*o),active:e.get(h+u*s),focus:e.get(h+u*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),me.getValueFor(e),fe.getValueFor(e),ve.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),de.getValueFor(e),he.getValueFor(e))}),It=C("neutral-fill-stealth-rest").withDefault((e=>_t.getValueFor(e).evaluate(e).rest)),St=C("neutral-fill-stealth-hover").withDefault((e=>_t.getValueFor(e).evaluate(e).hover)),Ft=C("neutral-fill-stealth-active").withDefault((e=>_t.getValueFor(e).evaluate(e).active)),Ot=C("neutral-fill-stealth-focus").withDefault((e=>_t.getValueFor(e).evaluate(e).focus)),Ht=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,d;return(1===n?i<o:n*i>n*o)?(c=a,d=l):(c=l,d=a),{rest:e.get(c),hover:e.get(d),active:e.get(c+n*s),focus:e.get(c+n*r)}}(He.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=>Ht.getValueFor(e).evaluate(e).rest)),Rt=C("neutral-fill-strong-hover").withDefault((e=>Ht.getValueFor(e).evaluate(e).hover)),Et=C("neutral-fill-strong-active").withDefault((e=>Ht.getValueFor(e).evaluate(e).active)),Lt=C("neutral-fill-strong-focus").withDefault((e=>Ht.getValueFor(e).evaluate(e).focus)),At=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))}(He.getValueFor(e),t||Ue.getValueFor(e),ke.getValueFor(e))}),Vt=C("neutral-fill-layer-rest").withDefault((e=>At.getValueFor(e).evaluate(e))),Pt=k("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,3.5);var t,i}}),Bt=C("focus-stroke-outer").withDefault((e=>Pt.getValueFor(e).evaluate(e))),Mt=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=>Mt.getValueFor(e).evaluate(e))),Nt=k("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=He.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=He.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),d=l+a*(s-i),h=l+a*(r-i);return{rest:e.get(l),hover:e.get(c),active:e.get(d),focus:e.get(h)}}(He.getValueFor(e),Ue.getValueFor(e),Te.getValueFor(e),_e.getValueFor(e),Ie.getValueFor(e),Se.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)}(He.getValueFor(e),t||Ue.getValueFor(e),Fe.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=>(_.getValueFor(e)+O.getValueFor(e))*H.getValueFor(e))),ei=(e,t)=>s.css`
3
3
  ${(0,o.display)("flex")} :host {
4
4
  box-sizing: border-box;
@@ -4934,7 +4934,7 @@
4934
4934
  :host:focus-visible {
4935
4935
  outline: none;
4936
4936
  }
4937
- `,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:mi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:_i,fastBreadcrumb:Oi,fastBreadcrumbItem:Si,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:bo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Oo,fastMenuItem:Io,fastNumberField:Ro,fastPicker:Po,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Mo,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:Ss,fastTextField:Hs,fastTooltip:As,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")}},6160:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__extends:()=>s,__assign:()=>r,__rest:()=>n,__decorate:()=>a,__param:()=>l,__metadata:()=>c,__awaiter:()=>d,__generator:()=>h,__createBinding:()=>u,__exportStar:()=>p,__values:()=>g,__read:()=>b,__spread:()=>m,__spreadArrays:()=>f,__await:()=>v,__asyncGenerator:()=>y,__asyncDelegator:()=>x,__asyncValues:()=>$,__makeTemplateObject:()=>w,__importStar:()=>C,__importDefault:()=>k,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>_});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},o(e,t)};function s(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return r=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};function n(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]])}return i}function a(e,t,i,o){var s,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}function l(e,t){return function(i,o){t(i,o,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,i,o){return new(i||(i=Promise))((function(s,r){function n(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,a)}l((o=o.apply(e,t||[])).next())}))}function h(e,t){var i,o,s,r,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=2&r[0]?o.return:r[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;switch(o=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,o=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(!(s=n.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e],o=0}finally{i=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function u(e,t,i,o){void 0===o&&(o=i),e[o]=t[i]}function p(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||(t[i]=e[i])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],o=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var o,s,r=i.call(e),n=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(e){s={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(s)throw s.error}}return n}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function f(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var o=Array(e),s=0;for(t=0;t<i;t++)for(var r=arguments[t],n=0,a=r.length;n<a;n++,s++)o[s]=r[n];return o}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,s=i.apply(e,t||[]),r=[];return o={},n("next"),n("throw"),n("return"),o[Symbol.asyncIterator]=function(){return this},o;function n(e){s[e]&&(o[e]=function(t){return new Promise((function(i,o){r.push([e,t,i,o])>1||a(e,t)}))})}function a(e,t){try{(i=s[e](t)).value instanceof v?Promise.resolve(i.value.v).then(l,c):d(r[0][2],i)}catch(e){d(r[0][3],e)}var i}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function x(e){var t,i;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,s){t[o]=e[o]?function(t){return(i=!i)?{value:v(e[o](t)),done:"return"===o}:s?s(t):t}:s}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=g(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(t){return new Promise((function(o,s){(function(e,t,i,o){Promise.resolve(o).then((function(t){e({value:t,done:i})}),t)})(o,s,(t=e[i](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},1759:(e,t,i)=>{"use strict";i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>oe,AttributeDefinition:()=>ne,BindingBehavior:()=>V,CSSDirective:()=>ye,ChildrenBehavior:()=>Ye,Controller:()=>be,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>fe,FASTElementDefinition:()=>he,HTMLBindingDirective:()=>A,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>m,RefBehavior:()=>Ve,RepeatBehavior:()=>je,RepeatDirective:()=>Ge,SlottedBehavior:()=>Ke,SubscriberSet:()=>b,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>ae,booleanConverter:()=>se,children:()=>Qe,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>$e,cssPartial:()=>Ce,customElement:()=>ve,defaultExecutionContext:()=>w,elements:()=>Ue,emptyArray:()=>n,enableArrayObservation:()=>Ae,html:()=>Y,nullableNumberConverter:()=>re,observable:()=>v,ref:()=>Pe,repeat:()=>qe,slotted:()=>Xe,volatile:()=>y,when:()=>Be});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 d=c;const h=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${h}{`,p=`}${h}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(d!==c)throw new Error("The HTML policy can only be set once.");d=e},createHTML:e=>d.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(h),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${h}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${h}:${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 b{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 m{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 b(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new b(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 m(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 b{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 _(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 I(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function S(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function F(){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 O(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function H(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 A extends k{constructor(e){super(),this.binding=e,this.bind=_,this.unbind=S,this.updateTarget=H,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=I,this.unbind=O;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=F}createBehavior(e){return new V(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{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 P=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(){P=this}static borrow(e){const t=P||new B;return t.directives=e,t.reset(),P=null,t}}function M(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 A(((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 A((()=>a)),c.targetName=n.name):c=M(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 A(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 ee(t,e)}return e=>new ie(e)})();class ee 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){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let te=0;class ie extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++te}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 oe=Object.freeze({locate:a()}),se={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},re={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 ne{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=se)}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(oe.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 ne(e,o)):i.push(new ne(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function ae(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),oe.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const le={mode:"open"},ce={},de=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 he{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=ne.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?le:null===t.shadowOptions?void 0:Object.assign(Object.assign({},le),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?ce:Object.assign(Object.assign({},ce),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!!de.getByType(this.type)}define(e=customElements){const t=this.type;if(de.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}}he.forType=de.getByType;const ue=new WeakMap,pe={bubbles:!0,composed:!0,cancelable:!0};function ge(e){return e.shadowRoot||ue.get(e)||null}class be extends m{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&&ue.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=ge(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=ge(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},pe),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=ge(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=he.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new be(e,i)}}function me(e){return class extends e{constructor(){super(),be.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 fe=Object.assign(me(HTMLElement),{from:e=>me(e),define:(e,t)=>new he(e,t).define().type});function ve(e){return function(t){new he(t,e).define()}}class ye{createCSS(){return""}createBehavior(){}}function xe(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 ye){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 $e(e,...t){const{styles:i,behaviors:o}=xe(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class we extends ye{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 Ce(e,...t){const{styles:i,behaviors:o}=xe(e,t);return new we(i,o)}function ke(e,t,i){return{index:e,removed:t,addedCount:i}}const Te=0,_e=1,Ie=2,Se=3;function Fe(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=ke(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[ke(t,[],i-t)];const d=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(Ie),i--;continue}if(0===i){s.push(Se),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(Te):(s.push(_e),o=r),t--,i--):l===n?(s.push(Se),t--,o=n):(s.push(Ie),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,d;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,d=l[i][r-1]+1,l[i][r]=c<d?c:d);return l}(e,t,i,o,s,r)),h=[];let u,p=t,g=s;for(let e=0;e<d.length;++e)switch(d[e]){case Te:void 0!==u&&(h.push(u),u=void 0),p++,g++;break;case _e:void 0===u&&(u=ke(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Ie:void 0===u&&(u=ke(p,[],0)),u.addedCount++,p++;break;case Se:void 0===u&&(u=ke(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&h.push(u),h}const Oe=Array.prototype.push;function He(e,t,i,o){const s=ke(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,d=i.index+i.addedCount,l<c||d<a?-1:l===c||d===a?0:a<c?l<d?l-c:d-c:d<l?d-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);Oe.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);Oe.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,d;r||e.push(s)}function De(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];He(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(Fe(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 Re=!1;function Ee(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 Le extends b{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?De(this.source,e):Fe(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function Ae(){if(Re)return;Re=!0,f.setArrayObserverFactory((e=>new Le(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(ke(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ee(ke(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(ke(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(Ee(ke(+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(Ee(ke(0,[],arguments.length),this)),e}}class Ve{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Pe(e){return new T("fast-ref",Ve,e)}function Be(e,t){const i="function"==typeof t?t:()=>t;return(t,o)=>e(t,o)?i(t,o):null}const Me=Object.freeze({positioning:!1,recycle:!0});function ze(e,t,i,o){e.bind(t[i],o)}function Ne(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class je{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=ze,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=Ne)}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 d=0,h=e.length;d<h;++d){const h=e[d],u=h.removed;let p=0,g=h.index;const b=g+h.addedCount,m=i.splice(h.index,u.length),f=c=a.length+m.length;for(;g<b;++g){const e=i[g],d=e?e.firstChild:this.location;let h;n&&c>0?(p<=f&&m.length>0?(h=m[p],p++):(h=a[l],l++),c--):h=r.create(),i.splice(g,0,h),o(h,s,g,t),h.insertBefore(d)}m[p]&&a.push(...m.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 Ge extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,Ae(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new je(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function qe(e,t,i=Me){return new Ge(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},Me),i))}function Ue(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class We{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 Ke extends We{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 Xe(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",Ke,e)}class Ye extends We{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 Qe(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",Ye,e)}},6907:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>Fe,Accordion:()=>Ie,AccordionExpandMode:()=>_e,AccordionItem:()=>he,Anchor:()=>Oe,AnchoredRegion:()=>ze,Avatar:()=>Ye,Badge:()=>Ze,BaseProgress:()=>_o,Breadcrumb:()=>it,BreadcrumbItem:()=>et,Button:()=>ut,Calendar:()=>bt,CalendarTitleTemplate:()=>kt,Card:()=>Dt,CheckableFormAssociated:()=>ct,Checkbox:()=>At,Combobox:()=>Yt,ComboboxAutocomplete:()=>Xt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>b,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>Ct,DataGridCell:()=>$t,DataGridCellTypes:()=>ft,DataGridRow:()=>wt,DataGridRowTypes:()=>vt,DateFormatter:()=>gt,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>pt,DelegatesARIACombobox:()=>Qt,DelegatesARIALink:()=>He,DelegatesARIAListbox:()=>qt,DelegatesARIAListboxOption:()=>jt,DelegatesARIASearch:()=>zo,DelegatesARIASelect:()=>qo,DelegatesARIATextbox:()=>$o,DelegatesARIAToolbar:()=>ks,DesignSystem:()=>_i,DesignToken:()=>xi,Dialog:()=>Hi,Disclosure:()=>Vi,Divider:()=>zi,DividerRole:()=>Mi,ElementDisambiguation:()=>$i,FactoryImpl:()=>B,Flipper:()=>Gi,FlipperDirection:()=>Ni,FlyoutPosBottom:()=>Ge,FlyoutPosBottomFill:()=>We,FlyoutPosTallest:()=>qe,FlyoutPosTallestFill:()=>Ke,FlyoutPosTop:()=>je,FlyoutPosTopFill:()=>Ue,FormAssociated:()=>lt,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>mt,HorizontalScroll:()=>Eo,Listbox:()=>Gt,ListboxElement:()=>Ui,ListboxOption:()=>Nt,MatchMediaBehavior:()=>Rs,MatchMediaStyleSheetBehavior:()=>Es,Menu:()=>bo,MenuItem:()=>po,MenuItemRole:()=>co,NumberField:()=>ko,Picker:()=>so,PickerList:()=>Qi,PickerListItem:()=>Ji,PickerMenu:()=>Ki,PickerMenuOption:()=>Yi,PropertyStyleSheetBehavior:()=>Ps,Radio:()=>Ro,RadioGroup:()=>Fo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>A,Search:()=>Mo,Select:()=>Go,SelectPosition:()=>Ut,ServiceLocator:()=>$,Skeleton:()=>Ko,Slider:()=>os,SliderLabel:()=>Zo,SliderMode:()=>is,StartEnd:()=>s,Switch:()=>as,Tab:()=>hs,TabPanel:()=>cs,Tabs:()=>gs,TabsOrientation:()=>ps,TextArea:()=>ys,TextAreaResize:()=>bs,TextField:()=>xo,TextFieldType:()=>yo,Toolbar:()=>Cs,Tooltip:()=>Is,TooltipPosition:()=>_s,TreeItem:()=>Os,TreeView:()=>Ds,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>S,anchorTemplate:()=>Se,anchoredRegionTemplate:()=>De,applyMixins:()=>de,avatarTemplate:()=>Xe,badgeTemplate:()=>Qe,breadcrumbItemTemplate:()=>Je,breadcrumbTemplate:()=>tt,buttonTemplate:()=>ot,calendarCellTemplate:()=>_t,calendarRowTemplate:()=>It,calendarTemplate:()=>Ot,calendarWeekdayTemplate:()=>Tt,cardTemplate:()=>Ht,checkboxTemplate:()=>Rt,comboboxTemplate:()=>Zt,composedContains:()=>oi,composedParent:()=>ii,darkModeStylesheetBehavior:()=>As,dataGridCellTemplate:()=>ti,dataGridRowTemplate:()=>ei,dataGridTemplate:()=>Jt,dialogTemplate:()=>Fi,disabledCursor:()=>Bs,disclosureTemplate:()=>Ai,display:()=>zs,dividerTemplate:()=>Pi,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>ji,focusVisible:()=>Ns,forcedColorsStylesheetBehavior:()=>Ls,getDirection:()=>Me,hidden:()=>Ms,horizontalScrollTemplate:()=>Lo,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>St,isListboxOption:()=>zt,isTreeItemElement:()=>Fs,lazy:()=>O,lightModeStylesheetBehavior:()=>Vs,listboxOptionTemplate:()=>qi,listboxTemplate:()=>Wi,menuItemTemplate:()=>uo,menuTemplate:()=>go,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>Ft,numberFieldTemplate:()=>mo,optional:()=>H,pickerListItemTemplate:()=>lo,pickerListTemplate:()=>ao,pickerMenuOptionTemplate:()=>no,pickerMenuTemplate:()=>ro,pickerTemplate:()=>eo,progressRingTemplate:()=>To,progressTemplate:()=>Io,radioGroupTemplate:()=>So,radioTemplate:()=>Oo,reflectAttributes:()=>Li,roleForMenuItem:()=>ho,searchTemplate:()=>Vo,selectTemplate:()=>Uo,singleton:()=>I,skeletonTemplate:()=>Wo,sliderLabelTemplate:()=>Xo,sliderTemplate:()=>Jo,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>nt,switchTemplate:()=>ss,tabPanelTemplate:()=>ls,tabTemplate:()=>ds,tabsTemplate:()=>us,textAreaTemplate:()=>ms,textFieldTemplate:()=>xs,toolbarTemplate:()=>$s,tooltipTemplate:()=>Ts,transient:()=>T,treeItemTemplate:()=>Ss,treeViewTemplate:()=>Hs,validateKey:()=>Y,whitespaceFilter:()=>Ao});var o=i(3147);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
+ `,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:mi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:_i,fastBreadcrumb:Oi,fastBreadcrumbItem:Si,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:bo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Oo,fastMenuItem:Io,fastNumberField:Ro,fastPicker:Po,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Mo,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:Ss,fastTextField:Hs,fastTooltip:As,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")}},6160:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__extends:()=>s,__assign:()=>r,__rest:()=>n,__decorate:()=>a,__param:()=>l,__metadata:()=>c,__awaiter:()=>d,__generator:()=>h,__createBinding:()=>u,__exportStar:()=>p,__values:()=>g,__read:()=>b,__spread:()=>m,__spreadArrays:()=>f,__await:()=>v,__asyncGenerator:()=>y,__asyncDelegator:()=>x,__asyncValues:()=>$,__makeTemplateObject:()=>w,__importStar:()=>C,__importDefault:()=>k,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>_});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},o(e,t)};function s(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return r=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};function n(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]])}return i}function a(e,t,i,o){var s,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}function l(e,t){return function(i,o){t(i,o,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,i,o){return new(i||(i=Promise))((function(s,r){function n(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,a)}l((o=o.apply(e,t||[])).next())}))}function h(e,t){var i,o,s,r,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=2&r[0]?o.return:r[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;switch(o=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,o=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(!(s=n.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e],o=0}finally{i=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function u(e,t,i,o){void 0===o&&(o=i),e[o]=t[i]}function p(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||(t[i]=e[i])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],o=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var o,s,r=i.call(e),n=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(e){s={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(s)throw s.error}}return n}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function f(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var o=Array(e),s=0;for(t=0;t<i;t++)for(var r=arguments[t],n=0,a=r.length;n<a;n++,s++)o[s]=r[n];return o}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,s=i.apply(e,t||[]),r=[];return o={},n("next"),n("throw"),n("return"),o[Symbol.asyncIterator]=function(){return this},o;function n(e){s[e]&&(o[e]=function(t){return new Promise((function(i,o){r.push([e,t,i,o])>1||a(e,t)}))})}function a(e,t){try{(i=s[e](t)).value instanceof v?Promise.resolve(i.value.v).then(l,c):d(r[0][2],i)}catch(e){d(r[0][3],e)}var i}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function x(e){var t,i;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,s){t[o]=e[o]?function(t){return(i=!i)?{value:v(e[o](t)),done:"return"===o}:s?s(t):t}:s}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=g(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(t){return new Promise((function(o,s){(function(e,t,i,o){Promise.resolve(o).then((function(t){e({value:t,done:i})}),t)})(o,s,(t=e[i](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},1759:(e,t,i)=>{"use strict";i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>oe,AttributeDefinition:()=>ne,BindingBehavior:()=>V,CSSDirective:()=>ye,ChildrenBehavior:()=>Ye,Controller:()=>be,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>fe,FASTElementDefinition:()=>he,HTMLBindingDirective:()=>A,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>m,RefBehavior:()=>Ve,RepeatBehavior:()=>je,RepeatDirective:()=>Ge,SlottedBehavior:()=>Ke,SubscriberSet:()=>b,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>ae,booleanConverter:()=>se,children:()=>Qe,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>$e,cssPartial:()=>Ce,customElement:()=>ve,defaultExecutionContext:()=>w,elements:()=>Ue,emptyArray:()=>n,enableArrayObservation:()=>Ae,html:()=>Y,nullableNumberConverter:()=>re,observable:()=>v,ref:()=>Pe,repeat:()=>qe,slotted:()=>Xe,volatile:()=>y,when:()=>Be});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 d=c;const h=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${h}{`,p=`}${h}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(d!==c)throw new Error("The HTML policy can only be set once.");d=e},createHTML:e=>d.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(h),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${h}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${h}:${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 b{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 m{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 b(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new b(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 m(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 b{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 _(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 I(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function S(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function F(){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 O(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function H(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 A extends k{constructor(e){super(),this.binding=e,this.bind=_,this.unbind=S,this.updateTarget=H,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=I,this.unbind=O;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=F}createBehavior(e){return new V(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{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 P=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(){P=this}static borrow(e){const t=P||new B;return t.directives=e,t.reset(),P=null,t}}function M(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 A(((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 A((()=>a)),c.targetName=n.name):c=M(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 A(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 ee(t,e)}return e=>new ie(e)})();class ee 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){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let te=0;class ie extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++te}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 oe=Object.freeze({locate:a()}),se={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},re={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 ne{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=se)}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(oe.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 ne(e,o)):i.push(new ne(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function ae(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),oe.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const le={mode:"open"},ce={},de=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 he{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=ne.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?le:null===t.shadowOptions?void 0:Object.assign(Object.assign({},le),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?ce:Object.assign(Object.assign({},ce),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!!de.getByType(this.type)}define(e=customElements){const t=this.type;if(de.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}}he.forType=de.getByType;const ue=new WeakMap,pe={bubbles:!0,composed:!0,cancelable:!0};function ge(e){return e.shadowRoot||ue.get(e)||null}class be extends m{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&&ue.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=ge(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=ge(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},pe),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=ge(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=he.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new be(e,i)}}function me(e){return class extends e{constructor(){super(),be.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 fe=Object.assign(me(HTMLElement),{from:e=>me(e),define:(e,t)=>new he(e,t).define().type});function ve(e){return function(t){new he(t,e).define()}}class ye{createCSS(){return""}createBehavior(){}}function xe(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 ye){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 $e(e,...t){const{styles:i,behaviors:o}=xe(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class we extends ye{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 Ce(e,...t){const{styles:i,behaviors:o}=xe(e,t);return new we(i,o)}function ke(e,t,i){return{index:e,removed:t,addedCount:i}}const Te=0,_e=1,Ie=2,Se=3;function Fe(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=ke(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[ke(t,[],i-t)];const d=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(Ie),i--;continue}if(0===i){s.push(Se),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(Te):(s.push(_e),o=r),t--,i--):l===n?(s.push(Se),t--,o=n):(s.push(Ie),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,d;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,d=l[i][r-1]+1,l[i][r]=c<d?c:d);return l}(e,t,i,o,s,r)),h=[];let u,p=t,g=s;for(let e=0;e<d.length;++e)switch(d[e]){case Te:void 0!==u&&(h.push(u),u=void 0),p++,g++;break;case _e:void 0===u&&(u=ke(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Ie:void 0===u&&(u=ke(p,[],0)),u.addedCount++,p++;break;case Se:void 0===u&&(u=ke(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&h.push(u),h}const Oe=Array.prototype.push;function He(e,t,i,o){const s=ke(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,d=i.index+i.addedCount,l<c||d<a?-1:l===c||d===a?0:a<c?l<d?l-c:d-c:d<l?d-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);Oe.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);Oe.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,d;r||e.push(s)}function De(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];He(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(Fe(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 Re=!1;function Ee(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 Le extends b{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?De(this.source,e):Fe(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function Ae(){if(Re)return;Re=!0,f.setArrayObserverFactory((e=>new Le(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(ke(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ee(ke(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(ke(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(Ee(ke(+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(Ee(ke(0,[],arguments.length),this)),e}}class Ve{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Pe(e){return new T("fast-ref",Ve,e)}function Be(e,t){const i="function"==typeof t?t:()=>t;return(t,o)=>e(t,o)?i(t,o):null}const Me=Object.freeze({positioning:!1,recycle:!0});function ze(e,t,i,o){e.bind(t[i],o)}function Ne(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class je{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=ze,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=Ne)}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 d=0,h=e.length;d<h;++d){const h=e[d],u=h.removed;let p=0,g=h.index;const b=g+h.addedCount,m=i.splice(h.index,u.length),f=c=a.length+m.length;for(;g<b;++g){const e=i[g],d=e?e.firstChild:this.location;let h;n&&c>0?(p<=f&&m.length>0?(h=m[p],p++):(h=a[l],l++),c--):h=r.create(),i.splice(g,0,h),o(h,s,g,t),h.insertBefore(d)}m[p]&&a.push(...m.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 Ge extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,Ae(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new je(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function qe(e,t,i=Me){return new Ge(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},Me),i))}function Ue(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class We{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 Ke extends We{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 Xe(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",Ke,e)}class Ye extends We{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 Qe(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",Ye,e)}},7211:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>Fe,Accordion:()=>Ie,AccordionExpandMode:()=>_e,AccordionItem:()=>he,Anchor:()=>Oe,AnchoredRegion:()=>ze,Avatar:()=>Ye,Badge:()=>Ze,BaseProgress:()=>_o,Breadcrumb:()=>it,BreadcrumbItem:()=>et,Button:()=>ut,Calendar:()=>bt,CalendarTitleTemplate:()=>kt,Card:()=>Dt,CheckableFormAssociated:()=>ct,Checkbox:()=>At,Combobox:()=>Yt,ComboboxAutocomplete:()=>Xt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>b,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>Ct,DataGridCell:()=>$t,DataGridCellTypes:()=>ft,DataGridRow:()=>wt,DataGridRowTypes:()=>vt,DateFormatter:()=>gt,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>pt,DelegatesARIACombobox:()=>Qt,DelegatesARIALink:()=>He,DelegatesARIAListbox:()=>qt,DelegatesARIAListboxOption:()=>jt,DelegatesARIASearch:()=>zo,DelegatesARIASelect:()=>qo,DelegatesARIATextbox:()=>$o,DelegatesARIAToolbar:()=>ks,DesignSystem:()=>_i,DesignToken:()=>xi,Dialog:()=>Hi,Disclosure:()=>Vi,Divider:()=>zi,DividerRole:()=>Mi,ElementDisambiguation:()=>$i,FactoryImpl:()=>B,Flipper:()=>Gi,FlipperDirection:()=>Ni,FlyoutPosBottom:()=>Ge,FlyoutPosBottomFill:()=>We,FlyoutPosTallest:()=>qe,FlyoutPosTallestFill:()=>Ke,FlyoutPosTop:()=>je,FlyoutPosTopFill:()=>Ue,FormAssociated:()=>lt,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>mt,HorizontalScroll:()=>Eo,Listbox:()=>Gt,ListboxElement:()=>Ui,ListboxOption:()=>Nt,MatchMediaBehavior:()=>Rs,MatchMediaStyleSheetBehavior:()=>Es,Menu:()=>bo,MenuItem:()=>po,MenuItemRole:()=>co,NumberField:()=>ko,Picker:()=>so,PickerList:()=>Qi,PickerListItem:()=>Ji,PickerMenu:()=>Ki,PickerMenuOption:()=>Yi,PropertyStyleSheetBehavior:()=>Ps,Radio:()=>Ro,RadioGroup:()=>Fo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>A,Search:()=>Mo,Select:()=>Go,SelectPosition:()=>Ut,ServiceLocator:()=>$,Skeleton:()=>Ko,Slider:()=>os,SliderLabel:()=>Zo,SliderMode:()=>is,StartEnd:()=>s,Switch:()=>as,Tab:()=>hs,TabPanel:()=>cs,Tabs:()=>gs,TabsOrientation:()=>ps,TextArea:()=>ys,TextAreaResize:()=>bs,TextField:()=>xo,TextFieldType:()=>yo,Toolbar:()=>Cs,Tooltip:()=>Is,TooltipPosition:()=>_s,TreeItem:()=>Os,TreeView:()=>Ds,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>S,anchorTemplate:()=>Se,anchoredRegionTemplate:()=>De,applyMixins:()=>de,avatarTemplate:()=>Xe,badgeTemplate:()=>Qe,breadcrumbItemTemplate:()=>Je,breadcrumbTemplate:()=>tt,buttonTemplate:()=>ot,calendarCellTemplate:()=>_t,calendarRowTemplate:()=>It,calendarTemplate:()=>Ot,calendarWeekdayTemplate:()=>Tt,cardTemplate:()=>Ht,checkboxTemplate:()=>Rt,comboboxTemplate:()=>Zt,composedContains:()=>oi,composedParent:()=>ii,darkModeStylesheetBehavior:()=>As,dataGridCellTemplate:()=>ti,dataGridRowTemplate:()=>ei,dataGridTemplate:()=>Jt,dialogTemplate:()=>Fi,disabledCursor:()=>Bs,disclosureTemplate:()=>Ai,display:()=>zs,dividerTemplate:()=>Pi,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>ji,focusVisible:()=>Ns,forcedColorsStylesheetBehavior:()=>Ls,getDirection:()=>Me,hidden:()=>Ms,horizontalScrollTemplate:()=>Lo,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>St,isListboxOption:()=>zt,isTreeItemElement:()=>Fs,lazy:()=>O,lightModeStylesheetBehavior:()=>Vs,listboxOptionTemplate:()=>qi,listboxTemplate:()=>Wi,menuItemTemplate:()=>uo,menuTemplate:()=>go,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>Ft,numberFieldTemplate:()=>mo,optional:()=>H,pickerListItemTemplate:()=>lo,pickerListTemplate:()=>ao,pickerMenuOptionTemplate:()=>no,pickerMenuTemplate:()=>ro,pickerTemplate:()=>eo,progressRingTemplate:()=>To,progressTemplate:()=>Io,radioGroupTemplate:()=>So,radioTemplate:()=>Oo,reflectAttributes:()=>Li,roleForMenuItem:()=>ho,searchTemplate:()=>Vo,selectTemplate:()=>Uo,singleton:()=>I,skeletonTemplate:()=>Wo,sliderLabelTemplate:()=>Xo,sliderTemplate:()=>Jo,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>nt,switchTemplate:()=>ss,tabPanelTemplate:()=>ls,tabTemplate:()=>ds,tabsTemplate:()=>us,textAreaTemplate:()=>ms,textFieldTemplate:()=>xs,toolbarTemplate:()=>$s,tooltipTemplate:()=>Ts,transient:()=>T,treeItemTemplate:()=>Ss,treeViewTemplate:()=>Hs,validateKey:()=>Y,whitespaceFilter:()=>Ao});var o=i(3147);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`
4938
4938
  <span
4939
4939
  part="end"
4940
4940
  ${(0,o.ref)("endContainer")}
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[591],{6975:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:()=>ve});var s=Math.max,f=Math.min,c=Math.round;function p(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function u(){return!/^((?!chrome|android).)*safari/i.test(p())}function l(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,f=1;t&&i(e)&&(s=e.offsetWidth>0&&c(a.width)/e.offsetWidth||1,f=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var p=(o(e)?r(e):window).visualViewport,l=!u()&&n,d=(a.left+(l&&p?p.offsetLeft:0))/s,h=(a.top+(l&&p?p.offsetTop:0))/f,m=a.width/s,v=a.height/f;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return l(m(e)).left+d(e).scrollLeft}function g(e){return r(e).getComputedStyle(e)}function y(e){var t=g(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var o,a,s=i(t),f=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),p=m(t),u=l(e,f,n),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==h(t)||y(p))&&(g=(o=t)!==r(o)&&i(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:d(o)),i(t)?((b=l(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):p&&(b.x=v(p))),{x:u.left+g.scrollLeft-b.x,y:u.top+g.scrollTop-b.y,width:u.width,height:u.height}}function w(e){var t=l(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||m(e)}function O(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&y(e)?e:O(x(e))}function j(e,t){var n;void 0===t&&(t=[]);var o=O(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=r(o),s=i?[a].concat(a.visualViewport||[],y(o)?o:[]):o,f=t.concat(s);return i?f:f.concat(j(x(s)))}function E(e){return["table","td","th"].indexOf(h(e))>=0}function D(e){return i(e)&&"fixed"!==g(e).position?e.offsetParent:null}function A(e){for(var t=r(e),n=D(e);n&&E(n)&&"static"===g(n).position;)n=D(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=/firefox/i.test(p());if(/Trident/i.test(p())&&i(e)&&"fixed"===g(e).position)return null;var n=x(e);for(a(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var k="top",L="bottom",W="right",M="left",P="auto",B=[k,L,W,M],H="start",R="end",T="clippingParents",C="viewport",S="popper",V="reference",_=B.reduce((function(e,t){return e.concat([t+"-"+H,t+"-"+R])}),[]),q=[].concat(B,[P]).reduce((function(e,t){return e.concat([t,t+"-"+H,t+"-"+R])}),[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var F={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function z(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?F:i;return function(e,t,n){void 0===n&&(n=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(n){var i="function"==typeof n?n(f.options):n;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:o(e)?j(e):e.contextElement?j(e.contextElement):[],popper:j(t)};var s=function(e){var t=I(e);return N.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,f.options.modifiers)));return f.orderedModifiers=s.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(U(t,n)){f.rects={reference:b(t,A(n),"fixed"===f.options.strategy),popper:w(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),p=!0}};if(!U(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){!p&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var X={passive:!0};function Y(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Y(o):null,a=o?G(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case k:t={x:s,y:n.y-r.height};break;case L:t={x:s,y:n.y+n.height};break;case W:t={x:n.x+n.width,y:f};break;case M:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?J(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case H:t[c]=t[c]-(n[p]/2-r[p]/2);break;case R:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(e){var t,n=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,f=e.position,p=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,h=s.x,v=void 0===h?0:h,y=s.y,b=void 0===y?0:y,w="function"==typeof l?l({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var x=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),j=M,E=k,D=window;if(u){var P=A(n),B="clientHeight",H="clientWidth";if(P===r(n)&&"static"!==g(P=m(n)).position&&"absolute"===f&&(B="scrollHeight",H="scrollWidth"),i===k||(i===M||i===W)&&a===R)E=L,b-=(d&&P===D&&D.visualViewport?D.visualViewport.height:P[B])-o.height,b*=p?1:-1;if(i===M||(i===k||i===L)&&a===R)j=W,v-=(d&&P===D&&D.visualViewport?D.visualViewport.width:P[H])-o.width,v*=p?1:-1}var T,C=Object.assign({position:f},u&&Q),S=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:c(n*o)/o||0,y:c(r*o)/o||0}}({x:v,y:b},r(n)):{x:v,y:b};return v=S.x,b=S.y,p?Object.assign({},C,((T={})[E]=O?"0":"",T[j]=x?"0":"",T.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",T)):Object.assign({},C,((t={})[E]=O?b+"px":"",t[j]=x?v+"px":"",t.transform="",t))}const $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),o=[M,k].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[M,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t,n){return t===C?ie(function(e,t){var n=r(e),o=m(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,c=0;if(i){a=i.width,s=i.height;var p=u();(p||!p&&"fixed"===t)&&(f=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:f+v(e),y:c}}(e,n)):o(t)?function(e,t){var n=l(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=m(e),r=d(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+v(e),c=-r.scrollTop;return"rtl"===g(o||n).direction&&(f+=s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:f,y:c}}(m(e)))}function se(e,t,n,r){var a="clippingParents"===t?function(e){var t=j(x(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&i(e)?A(e):e;return o(n)?t.filter((function(e){return o(e)&&oe(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),p=c[0],u=c.reduce((function(t,n){var o=ae(e,n,r);return t.top=s(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=s(o.left,t.left),t}),ae(e,p,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,f=n.boundary,c=void 0===f?T:f,p=n.rootBoundary,u=void 0===p?C:p,d=n.elementContext,h=void 0===d?S:d,v=n.altBoundary,g=void 0!==v&&v,y=n.padding,b=void 0===y?0:y,w=fe("number"!=typeof b?b:ce(b,B)),x=h===S?V:S,O=e.rects.popper,j=e.elements[g?x:h],E=se(o(j)?j:j.contextElement||m(e.elements.popper),c,u,s),D=l(e.elements.reference),A=K({reference:D,element:O,strategy:"absolute",placement:i}),M=ie(Object.assign({},O,A)),P=h===S?M:D,H={top:E.top-P.top+w.top,bottom:P.bottom-E.bottom+w.bottom,left:E.left-P.left+w.left,right:P.right-E.right+w.right},R=e.modifiersData.offset;if(h===S&&R){var _=R[i];Object.keys(H).forEach((function(e){var t=[W,L].indexOf(e)>=0?1:-1,n=[k,L].indexOf(e)>=0?"y":"x";H[e]+=_[n]*t}))}return H}function ue(e,t,n){return s(e,f(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,g=void 0===v?0:v,y=pe(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),b=Y(t.placement),x=G(t.placement),O=!x,j=J(b),E="x"===j?"y":"x",D=t.modifiersData.popperOffsets,P=t.rects.reference,B=t.rects.popper,R="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(D){if(i){var V,_="y"===j?k:M,q="y"===j?L:W,N="y"===j?"height":"width",I=D[j],F=I+y[_],U=I-y[q],z=m?-B[N]/2:0,X=x===H?P[N]:B[N],K=x===H?-B[N]:-P[N],Q=t.elements.arrow,Z=m&&Q?w(Q):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=$[_],te=$[q],ne=ue(0,P[N],Z[N]),re=O?P[N]/2-z-ne-ee-T.mainAxis:X-ne-ee-T.mainAxis,oe=O?-P[N]/2+z+ne+te+T.mainAxis:K+ne+te+T.mainAxis,ie=t.elements.arrow&&A(t.elements.arrow),ae=ie?"y"===j?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(V=null==C?void 0:C[j])?V:0,fe=I+oe-se,ce=ue(m?f(F,I+re-se-ae):F,I,m?s(U,fe):U);D[j]=ce,S[j]=ce-I}if(c){var le,de="x"===j?k:M,he="x"===j?L:W,me=D[E],ve="y"===E?"height":"width",ge=me+y[de],ye=me-y[he],be=-1!==[k,M].indexOf(b),we=null!=(le=null==C?void 0:C[E])?le:0,xe=be?ge:me-P[ve]-B[ve]-we+T.altAxis,Oe=be?me+P[ve]+B[ve]-we-T.altAxis:ye,je=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(xe,me,Oe):ue(m?xe:ge,me,m?Oe:ye);D[E]=je,S[E]=je-me}t.modifiersData[r]=S}},requiresIfExists:["offset"]};const de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),f=J(s),c=[M,W].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return fe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,B))}(o.padding,n),u=w(i),l="y"===f?k:M,d="y"===f?L:W,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=A(i),g=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=p[l],x=g-u[c]-p[d],O=g/2-u[c]/2+y,j=ue(b,O,x),E=f;n.modifiersData[r]=((t={})[E]=j,t.centerOffset=j-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[k,W,L,M].some((function(t){return e[t]>=0}))}var ve=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=r(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",n.update,X)})),f&&c.addEventListener("resize",n.update,X),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",n.update,X)})),f&&c.removeEventListener("resize",n.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:Y(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},$,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,g=Y(v),y=f||(g===v||!h?[te(v)]:function(e){if(Y(e)===P)return[];var t=te(e);return[re(e),t,re(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(Y(n)===P?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?q:f,p=G(r),u=p?s?_:_.filter((function(e){return G(e)===p})):B,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Y(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,j=!0,E=b[0],D=0;D<b.length;D++){var A=b[D],R=Y(A),T=G(A)===H,C=[k,L].indexOf(R)>=0,S=C?"width":"height",V=pe(t,{placement:A,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),N=C?T?W:M:T?L:k;w[S]>x[S]&&(N=te(N));var I=te(N),F=[];if(i&&F.push(V[R]<=0),s&&F.push(V[N]<=0,V[I]<=0),F.every((function(e){return e}))){E=A,j=!1;break}O.set(A,F)}if(j)for(var U=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},z=h?3:1;z>0;z--){if("break"===U(z))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,de,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),f=he(a,r),c=he(s,o,i),p=me(f),u=me(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]})}}]);
2
+ //# sourceMappingURL=npm.popperjs.ac79f4962b096252cc2379eb76352506.js.map