@genesislcap/foundation-errors 10.3.1 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/dist/dts/banner/error-banner-builder.d.ts +25 -0
- package/dist/dts/banner/error-banner-builder.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-builder.d.ts +25 -0
- package/dist/dts/dialog/error-dialog-builder.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts.map +1 -1
- package/dist/dts/error-builder.d.ts +60 -0
- package/dist/dts/error-builder.d.ts.map +1 -1
- package/dist/dts/error-launcher.d.ts.map +1 -1
- package/dist/dts/logger.d.ts.map +1 -1
- package/dist/dts/notification/notification-builder.d.ts +32 -2
- package/dist/dts/notification/notification-builder.d.ts.map +1 -1
- package/dist/dts/notification/notification-launcher.d.ts +1 -1
- package/dist/dts/notification/notification-launcher.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-builder.d.ts +15 -7
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
- package/dist/dts/types.d.ts +50 -2
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/banner/error-banner-builder.js +25 -1
- package/dist/esm/banner/index.js +0 -1
- package/dist/esm/dialog/error-dialog-builder.js +25 -1
- package/dist/esm/dialog/error-dialog-launcher.js +1 -2
- package/dist/esm/dialog/index.js +0 -1
- package/dist/esm/error-builder.js +60 -1
- package/dist/esm/error-launcher.js +2 -3
- package/dist/esm/error-util.js +0 -1
- package/dist/esm/index.federated.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/logger.js +0 -1
- package/dist/esm/notification/index.js +0 -1
- package/dist/esm/notification/notification-builder.js +30 -1
- package/dist/esm/notification/notification-launcher.js +1 -2
- package/dist/esm/snackbar/index.js +0 -1
- package/dist/esm/snackbar/snackbar-builder.js +13 -6
- package/dist/esm/snackbar/snackbar-launcher.js +1 -2
- package/dist/esm/types.js +4 -1
- package/dist/foundation-errors.api.json +103 -250
- package/dist/foundation-errors.d.ts +210 -12
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-errors.confirmingaction.md +2 -0
- package/docs/api/foundation-errors.dismissingaction.md +2 -0
- package/docs/api/foundation-errors.errorbanner.md +2 -0
- package/docs/api/foundation-errors.errorbannerbuilder.build.md +4 -0
- package/docs/api/foundation-errors.errorbannerbuilder.md +5 -3
- package/docs/api/foundation-errors.errorbannerbuilder.withconfirmingaction.md +4 -1
- package/docs/api/foundation-errors.errorbannerbuilder.withdismissingaction.md +4 -1
- package/docs/api/foundation-errors.errorboundaryevent.md +2 -0
- package/docs/api/foundation-errors.errorbuilder.build.md +3 -0
- package/docs/api/foundation-errors.errorbuilder.md +11 -9
- package/docs/api/foundation-errors.errorbuilder.withalert.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withbanner.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withdialog.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.witherrordetails.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withloglevel.md +3 -0
- package/docs/api/foundation-errors.errorbuilder.withnotification.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withsnackbar.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withtitle.md +4 -1
- package/docs/api/foundation-errors.errordialog.md +2 -0
- package/docs/api/foundation-errors.errordialogbuilder.build.md +4 -0
- package/docs/api/foundation-errors.errordialogbuilder.md +5 -3
- package/docs/api/foundation-errors.errordialogbuilder.withconfirmingaction.md +4 -1
- package/docs/api/foundation-errors.errordialogbuilder.withdismissingaction.md +4 -1
- package/docs/api/foundation-errors.errornotification.md +3 -1
- package/docs/api/foundation-errors.errornotification.type.md +1 -1
- package/docs/api/foundation-errors.errornotificationtype.md +13 -0
- package/docs/api/foundation-errors.errorstructure.md +2 -0
- package/docs/api/foundation-errors.geterrorbannerbuilder.md +2 -0
- package/docs/api/foundation-errors.geterrorbuilder.md +2 -0
- package/docs/api/foundation-errors.geterrordialogbuilder.md +2 -0
- package/docs/api/foundation-errors.getnotificationbuilder.md +2 -0
- package/docs/api/foundation-errors.getsnackbarbuilder.md +2 -0
- package/docs/api/foundation-errors.md +20 -23
- package/docs/api/foundation-errors.notificationbuilder.build.md +4 -0
- package/docs/api/foundation-errors.notificationbuilder.md +6 -4
- package/docs/api/foundation-errors.notificationbuilder.withautoclose.md +4 -1
- package/docs/api/foundation-errors.notificationbuilder.withclosetimeout.md +4 -1
- package/docs/api/foundation-errors.notificationbuilder.withtype.md +5 -2
- package/docs/api/foundation-errors.snackbar.md +3 -1
- package/docs/api/foundation-errors.snackbar.type.md +1 -1
- package/docs/api/foundation-errors.snackbarbuilder.md +3 -1
- package/docs/api/foundation-errors.snackbarbuilder.withconfirmingaction.md +1 -1
- package/docs/api/foundation-errors.snackbarbuilder.withtype.md +3 -3
- package/docs/api/foundation-errors.snackbartype.md +13 -0
- package/docs/api-report.md +43 -46
- package/package.json +8 -8
- package/dist/1.0.0.remoteEntry.js +0 -1
- package/dist/145.145.48c3a34dc8598a016d9b.js +0 -2
- package/dist/145.9debf52d04b6fdb805987fa6a56e9266.js.map +0 -1
- package/dist/191.191.da8a5884febca6f1a439.js +0 -2
- package/dist/191.efd2fea1a42a47cddbf6e6ab15fbf2bb.js.map +0 -1
- package/dist/366.366.82702b77300a9353fc87.js +0 -2
- package/dist/366.a181180b871f72ff9f4ad3e3f3ea3734.js.map +0 -1
- package/dist/755.62d9698f4e62142b980949b517fded3f.js.map +0 -1
- package/dist/755.755.f8db61516204a76477a8.js +0 -2
- package/dist/dashboard.json +0 -1
- package/dist/esm/banner/error-banner-builder.js.map +0 -1
- package/dist/esm/banner/index.js.map +0 -1
- package/dist/esm/dialog/error-dialog-builder.js.map +0 -1
- package/dist/esm/dialog/error-dialog-launcher.js.map +0 -1
- package/dist/esm/dialog/index.js.map +0 -1
- package/dist/esm/error-builder.js.map +0 -1
- package/dist/esm/error-launcher.js.map +0 -1
- package/dist/esm/error-util.js.map +0 -1
- package/dist/esm/index.federated.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/logger.js.map +0 -1
- package/dist/esm/notification/index.js.map +0 -1
- package/dist/esm/notification/notification-builder.js.map +0 -1
- package/dist/esm/notification/notification-launcher.js.map +0 -1
- package/dist/esm/snackbar/index.js.map +0 -1
- package/dist/esm/snackbar/snackbar-builder.js.map +0 -1
- package/dist/esm/snackbar/snackbar-launcher.js.map +0 -1
- package/dist/esm/types.js.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/foundation-errors.iife.min.js +0 -1
- package/dist/foundation-errors.js +0 -1240
- package/dist/foundation-errors.min.js +0 -1
- package/dist/foundationErrors.2c93e6eb2ef9200237968325716b6236.js.map +0 -1
- package/dist/index.ejs +0 -23
- package/dist/index.html +0 -10
- package/dist/info.ejs +0 -13
- package/dist/info.html +0 -14
- package/dist/main.32b6b5ccbc4fb35f99c6.js +0 -2
- package/dist/main.48adf629bdf2e8347fb7dc199f202017.js.map +0 -1
- package/dist/npm.consola.713.6bcc5abc1500250af5f5.js +0 -2
- package/dist/npm.consola.de429dd64b8dd7d3424e047e422d6ee1.js.map +0 -1
- package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js +0 -3
- package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js.LICENSE.txt +0 -14
- package/dist/npm.microsoft.4ae729aafa2e074df718ae9a73d16fa1.js.map +0 -1
- package/dist/remoteEntry.js +0 -2
- package/dist/serve.json +0 -3
- package/docs/api/foundation-errors.errordialogelement.md +0 -15
- package/docs/api/foundation-errors.errorelement.md +0 -15
- package/docs/api/foundation-errors.showdialog.md +0 -13
- package/docs/api/foundation-errors.shownotification.md +0 -13
- package/docs/api/foundation-errors.showsnackbar.md +0 -13
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see npm.microsoft.127.821cbcff47e0a34e88c9.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_genesislcap_foundation_errors=self.webpackChunk_genesislcap_foundation_errors||[]).push([[127],{112:(t,e,r)=>{"use strict";r.d(e,{rp:()=>c,hM:()=>h,wo:()=>d,lw:()=>g,hP:()=>p,T8:()=>v,iI:()=>b,zP:()=>y,rD:()=>m,v1:()=>w,DR:()=>C,$2:()=>x,KW:()=>O});var n=r(336),s=r(125),i=r(94),o=r(341),a=r(242),l=r(904),u=r(902);function c(t){return.2126*t.r+.7152*t.g+.0722*t.b}function h(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return c(new a.h(e(t.r),e(t.g),e(t.b),1))}const f=(t,e)=>(t+.05)/(e+.05);function d(t,e){const r=h(t),n=h(e);return r>n?f(r,n):f(n,r)}function g(t){const e=Math.max(t.r,t.g,t.b),r=Math.min(t.r,t.g,t.b),s=e-r;let i=0;0!==s&&(i=e===t.r?(t.g-t.b)/s%6*60:e===t.g?60*((t.b-t.r)/s+2):60*((t.r-t.g)/s+4)),i<0&&(i+=360);const o=(e+r)/2;let a=0;return 0!==s&&(a=s/(1-Math.abs(2*o-1))),new n.H(i,a,o)}function p(t,e=1){const r=(1-Math.abs(2*t.l-1))*t.s,n=r*(1-Math.abs(t.h/60%2-1)),s=t.l-r/2;let i=0,o=0,l=0;return t.h<60?(i=r,o=n,l=0):t.h<120?(i=n,o=r,l=0):t.h<180?(i=0,o=r,l=n):t.h<240?(i=0,o=n,l=r):t.h<300?(i=n,o=0,l=r):t.h<360&&(i=r,o=0,l=n),new a.h(i+s,o+s,l+s,e)}function v(t){const e=Math.max(t.r,t.g,t.b),r=e-Math.min(t.r,t.g,t.b);let n=0;0!==r&&(n=e===t.r?(t.g-t.b)/r%6*60:e===t.g?60*((t.b-t.r)/r+2):60*((t.r-t.g)/r+4)),n<0&&(n+=360);let i=0;return 0!==e&&(i=r/e),new s.T(n,i,e)}function b(t,e=1){const r=t.s*t.v,n=r*(1-Math.abs(t.h/60%2-1)),s=t.v-r;let i=0,o=0,l=0;return t.h<60?(i=r,o=n,l=0):t.h<120?(i=n,o=r,l=0):t.h<180?(i=0,o=r,l=n):t.h<240?(i=0,o=n,l=r):t.h<300?(i=n,o=0,l=r):t.h<360&&(i=r,o=0,l=n),new a.h(i+s,o+s,l+s,e)}function y(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const r=e(t.r),n=e(t.g),s=e(t.b),i=.4124564*r+.3575761*n+.1804375*s,o=.2126729*r+.7151522*n+.072175*s,a=.0193339*r+.119192*n+.9503041*s;return new l.x(i,o,a)}function m(t,e=1){function r(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const n=r(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=r(-.969266*t.x+1.8760108*t.y+.041556*t.z),i=r(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new a.h(n,s,i,e)}function w(t){return function(t){function e(t){return t>i.R.epsilon?Math.pow(t,1/3):(i.R.kappa*t+16)/116}const r=e(t.x/l.x.whitePoint.x),n=e(t.y/l.x.whitePoint.y),s=116*n-16,o=500*(r-n),a=200*(n-e(t.z/l.x.whitePoint.z));return new i.R(s,o,a)}(y(t))}function C(t,e=1){return m(function(t){const e=(t.l+16)/116,r=e+t.a/500,n=e-t.b/200,s=Math.pow(r,3),o=Math.pow(e,3),a=Math.pow(n,3);let u=0;u=s>i.R.epsilon?s:(116*r-16)/i.R.kappa;let c=0;c=t.l>i.R.epsilon*i.R.kappa?o:t.l/i.R.kappa;let h=0;return h=a>i.R.epsilon?a:(116*n-16)/i.R.kappa,u=l.x.whitePoint.x*u,c=l.x.whitePoint.y*c,h=l.x.whitePoint.z*h,new l.x(u,c,h)}(t),e)}function x(t){return function(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=(0,u.vi)(Math.atan2(t.b,t.a))),e<0&&(e+=360);const r=Math.sqrt(t.a*t.a+t.b*t.b);return new o.t(t.l,r,e)}(w(t))}function O(t,e=1){return C(function(t){let e=0,r=0;return 0!==t.h&&(e=Math.cos((0,u.Ht)(t.h))*t.c,r=Math.sin((0,u.Ht)(t.h))*t.c),new i.R(t.l,e,r)}(t),e)}},336:(t,e,r)=>{"use strict";r.d(e,{H:()=>s});var n=r(902);class s{constructor(t,e,r){this.h=t,this.s=e,this.l=r}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new s(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new s((0,n.fZ)(this.h,t),(0,n.fZ)(this.s,t),(0,n.fZ)(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}},125:(t,e,r)=>{"use strict";r.d(e,{T:()=>s});var n=r(902);class s{constructor(t,e,r){this.h=t,this.s=e,this.v=r}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new s(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new s((0,n.fZ)(this.h,t),(0,n.fZ)(this.s,t),(0,n.fZ)(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}},94:(t,e,r)=>{"use strict";r.d(e,{R:()=>s});var n=r(902);class s{constructor(t,e,r){this.l=t,this.a=e,this.b=r}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new s(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new s((0,n.fZ)(this.l,t),(0,n.fZ)(this.a,t),(0,n.fZ)(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}s.epsilon=216/24389,s.kappa=24389/27},341:(t,e,r)=>{"use strict";r.d(e,{t:()=>s});var n=r(902);class s{constructor(t,e,r){this.l=t,this.c=e,this.h=r}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new s(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new s((0,n.fZ)(this.l,t),(0,n.fZ)(this.c,t),(0,n.fZ)(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}},242:(t,e,r)=>{"use strict";r.d(e,{h:()=>s});var n=r(902);class s{constructor(t,e,r,n){this.r=t,this.g=e,this.b=r,this.a="number"!=typeof n||isNaN(n)?1:n}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new s(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.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((0,n.cY)(this.r,0,255))},${Math.round((0,n.cY)(this.g,0,255))},${Math.round((0,n.cY)(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round((0,n.cY)(this.r,0,255))},${Math.round((0,n.cY)(this.g,0,255))},${Math.round((0,n.cY)(this.b,0,255))},${(0,n.uZ)(this.a,0,1)})`}roundToPrecision(t){return new s((0,n.fZ)(this.r,t),(0,n.fZ)(this.g,t),(0,n.fZ)(this.b,t),(0,n.fZ)(this.a,t))}clamp(){return new s((0,n.uZ)(this.r,0,1),(0,n.uZ)(this.g,0,1),(0,n.uZ)(this.b,0,1),(0,n.uZ)(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return(0,n.yi)((0,n.cY)(t,0,255))}}},904:(t,e,r)=>{"use strict";r.d(e,{x:()=>s});var n=r(902);class s{constructor(t,e,r){this.x=t,this.y=e,this.z=r}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new s(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new s((0,n.fZ)(this.x,t),(0,n.fZ)(this.y,t),(0,n.fZ)(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}s.whitePoint=new s(.95047,1,1.08883)},902:(t,e,r)=>{"use strict";function n(t,e,r){return isNaN(t)||t<=e?e:t>=r?r:t}function s(t,e,r){return isNaN(t)||t<=e?0:t>=r?1:t/(r-e)}function i(t,e,r){return isNaN(t)?e:e+t*(r-e)}function o(t){return t*(Math.PI/180)}function a(t){return t*(180/Math.PI)}function l(t){const e=Math.round(n(t,0,255)).toString(16);return 1===e.length?"0"+e:e}function u(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:e+t*(r-e)}function c(t,e,r){if(t<=0)return e%360;if(t>=1)return r%360;const n=(e-r+360)%360;return n<=(r-e+360)%360?(e-n*t+360)%360:(e+n*t+360)%360}r.d(e,{uZ:()=>n,Fv:()=>s,cY:()=>i,Ht:()=>o,vi:()=>a,yi:()=>l,t7:()=>u,AG:()=>c,fZ:()=>h});Math.PI;function h(t,e){const r=Math.pow(10,e);return Math.round(t*r)/r}},384:(t,e,r)=>{"use strict";r.d(e,{w:()=>o,m:()=>a});var n=r(242),s=r(112),i=r(559);const o=Object.freeze({create:(t,e,r)=>new l(t,e,r),from:t=>new l(t.r,t.g,t.b)});function a(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in e)if(typeof e[r]!=typeof t[r])return!1;return!0}class l extends n.h{constructor(t,e,r){super(t,e,r,1),this.toColorString=this.toStringHexRGB,this.contrast=i.$.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,s.hM)(this)}static fromObject(t){return new l(t.r,t.g,t.b)}}},251:(t,e,r)=>{"use strict";r.d(e,{C:()=>s,h:()=>i});var n=r(384);function s(t){return n.w.create(t,t,t)}const i={LightMode:1,DarkMode:.23}},559:(t,e,r)=>{"use strict";function n(t,e){const r=t.relativeLuminance>e.relativeLuminance?t:e,n=t.relativeLuminance>e.relativeLuminance?e:t;return(r.relativeLuminance+.05)/(n.relativeLuminance+.05)}r.d(e,{$:()=>n})},892:(t,e,r)=>{"use strict";r.d(e,{q2:()=>z});var n,s=r(772);!function(t){t.ltr="ltr",t.rtl="rtl"}(n||(n={}));var i,o=r(902),a=r(242),l=r(112),u=r(341);function c(t,e,r=18){const n=(0,l.$2)(t);let s=n.c+e*r;return s<0&&(s=0),(0,l.KW)(new u.t(n.l,s,n.h))}function h(t,e){return t*e}function f(t,e){return new a.h(h(t.r,e.r),h(t.g,e.g),h(t.b,e.b),1)}function d(t,e){return t<.5?(0,o.uZ)(2*e*t,0,1):(0,o.uZ)(1-2*(1-e)*(1-t),0,1)}function g(t,e){return new a.h(d(t.r,e.r),d(t.g,e.g),d(t.b,e.b),1)}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(i||(i={}));var p,v=r(336),b=r(125),y=r(94),m=r(904);function w(t,e,r,n){if(isNaN(t)||t<=0)return r;if(t>=1)return n;switch(e){case p.HSL:return(0,l.hP)(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new v.H((0,o.AG)(t,e.h,r.h),(0,o.t7)(t,e.s,r.s),(0,o.t7)(t,e.l,r.l))}(t,(0,l.lw)(r),(0,l.lw)(n)));case p.HSV:return(0,l.iI)(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new b.T((0,o.AG)(t,e.h,r.h),(0,o.t7)(t,e.s,r.s),(0,o.t7)(t,e.v,r.v))}(t,(0,l.T8)(r),(0,l.T8)(n)));case p.XYZ:return(0,l.rD)(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new m.x((0,o.t7)(t,e.x,r.x),(0,o.t7)(t,e.y,r.y),(0,o.t7)(t,e.z,r.z))}(t,(0,l.zP)(r),(0,l.zP)(n)));case p.LAB:return(0,l.DR)(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new y.R((0,o.t7)(t,e.l,r.l),(0,o.t7)(t,e.a,r.a),(0,o.t7)(t,e.b,r.b))}(t,(0,l.v1)(r),(0,l.v1)(n)));case p.LCH:return(0,l.KW)(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new u.t((0,o.t7)(t,e.l,r.l),(0,o.t7)(t,e.c,r.c),(0,o.AG)(t,e.h,r.h))}(t,(0,l.$2)(r),(0,l.$2)(n)));default:return function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new a.h((0,o.t7)(t,e.r,r.r),(0,o.t7)(t,e.g,r.g),(0,o.t7)(t,e.b,r.b),(0,o.t7)(t,e.a,r.a))}(t,r,n)}}!function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(p||(p={}));class C{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let r=0;r<t.length;r++)0===r?e[r]={color:t[r],position:0}:r===t.length-1?e[r]={color:t[r],position:1}:e[r]={color:t[r],position:r*(1/(t.length-1))};return new C(e)}getColor(t,e=p.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let r=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(r=e);let n=r+1;n>=this.stops.length&&(n=this.stops.length-1);return w((t-this.stops[r].position)*(1/(this.stops[n].position-this.stops[r].position)),e,this.stops[r].color,this.stops[n].color)}trim(t,e,r=p.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new C([{color:this.getColor(t,r),position:0}]);const n=[];for(let r=0;r<this.stops.length;r++)this.stops[r].position>=t&&this.stops[r].position<=e&&n.push(this.stops[r]);if(0===n.length)return new C([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);n[0].position!==t&&n.unshift({color:this.getColor(t),position:t}),n[n.length-1].position!==e&&n.push({color:this.getColor(e),position:e});const s=e-t,i=new Array(n.length);for(let e=0;e<n.length;e++)i[e]={color:n[e].color,position:(n[e].position-t)/s};return new C(i)}findNextColor(t,e,r=!1,n=p.RGB,s=.005,i=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const o=this.getColor(t,n),a=r?0:1,u=this.getColor(a,n);if((0,l.wo)(o,u)<=e)return a;let c=r?0:t,h=r?t:0,f=a,d=0;for(;d<=i;){f=Math.abs(h-c)/2+c;const t=this.getColor(f,n),i=(0,l.wo)(o,t);if(Math.abs(i-e)<=s)return f;i>e?r?c=f:h=f:r?h=f:c=f,d++}return f}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new C(t)}sortColorScaleStops(t){return t.sort(((t,e)=>{const r=t.position,n=e.position;return r<n?-1:r>n?1:0}))}}const x=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function O(t){const e=x.exec(t);if(null===e)return null;let r=e[1];if(3===r.length){const t=r.charAt(0),e=r.charAt(1),n=r.charAt(2);r=t.concat(t,e,e,n,n)}const n=parseInt(r,16);return isNaN(n)?null:new a.h((0,o.Fv)((16711680&n)>>>16,0,255),(0,o.Fv)((65280&n)>>>8,0,255),(0,o.Fv)(255&n,0,255),1)}class S{constructor(t){this.config=Object.assign({},S.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const r in t)this.config[r]&&(this.config[r].equalValue?this.config[r].equalValue(t[r])||(this.config[r]=t[r],e=!0):t[r]!==this.config[r]&&(this.config[r]=t[r],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=(0,l.lw)(this.config.baseColor),e=new C([{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 r=e.getColor(0),n=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(r=c(r,this.config.saturationLight),n=c(n,this.config.saturationDark)),0!==this.config.multiplyLight){const t=f(this.config.baseColor,r);r=w(this.config.multiplyLight,this.config.interpolationMode,r,t)}if(0!==this.config.multiplyDark){const t=f(this.config.baseColor,n);n=w(this.config.multiplyDark,this.config.interpolationMode,n,t)}if(0!==this.config.overlayLight){const t=g(this.config.baseColor,r);r=w(this.config.overlayLight,this.config.interpolationMode,r,t)}if(0!==this.config.overlayDark){const t=g(this.config.baseColor,n);n=w(this.config.overlayDark,this.config.interpolationMode,n,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new C([{position:0,color:this.config.baseColor},{position:1,color:n.clamp()}]):this.config.baseScalePosition>=1?new C([{position:0,color:r.clamp()},{position:1,color:this.config.baseColor}]):new C([{position:0,color:r.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:n.clamp()}]):new C([{position:0,color:r.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:n.clamp()}])}}S.defaultPaletteConfig={baseColor:O("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new a.h(1,1,1,1),scaleColorDark:new a.h(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},S.greyscalePaletteConfig={baseColor:O("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new a.h(1,1,1,1),scaleColorDark:new a.h(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};S.defaultPaletteConfig.scaleColorLight,S.defaultPaletteConfig.scaleColorDark;class V{constructor(t){this.palette=[],this.config=Object.assign({},V.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=.14,r=new a.h(e,e,e,1),n=new S(Object.assign(Object.assign({},S.greyscalePaletteConfig),{baseColor:r,baseScalePosition:86/94,steps:t})).palette,s=((0,l.rp)(this.config.baseColor)+(0,l.lw)(this.config.baseColor).l)/2,i=this.matchRelativeLuminanceIndex(s,n)/(t-1),o=this.matchRelativeLuminanceIndex(e,n)/(t-1),u=(0,l.lw)(this.config.baseColor),c=(0,l.hP)(v.H.fromObject({h:u.h,s:u.s,l:e})),h=(0,l.hP)(v.H.fromObject({h:u.h,s:u.s,l:.06})),f=new Array(5);f[0]={position:0,color:new a.h(1,1,1,1)},f[1]={position:i,color:this.config.baseColor},f[2]={position:o,color:c},f[3]={position:.99,color:h},f[4]={position:1,color:new a.h(0,0,0,1)};const d=new C(f);this.palette=new Array(t);for(let e=0;e<t;e++){const r=d.getColor(e/(t-1),p.RGB);this.palette[e]=r}}matchRelativeLuminanceIndex(t,e){let r=Number.MAX_VALUE,n=0,s=0;const i=e.length;for(;s<i;s++){const i=Math.abs((0,l.rp)(e[s])-t);i<r&&(r=i,n=s)}return n}}V.defaultPaletteConfig={baseColor:O("#808080"),steps:94};var F=r(384);function D(t,e,r=0,n=t.length-1){if(n===r)return t[r];const s=Math.floor((n-r)/2)+r;return e(t[s])?D(t,e,r,s):D(t,e,s+1,n)}const P=(-.1+Math.sqrt(.21))/2;function _(t){return function(t){return t.relativeLuminance<=P}(t)?-1:1}var N=r(559);const T=Object.freeze({create:function(t,e,r){return"number"==typeof t?T.from(F.w.create(t,e,r)):T.from(t)},from:function(t){return(0,F.m)(t)?A.from(t):A.from(F.w.create(t.r,t.g,t.b))}});class A{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,r,n){void 0===r&&(r=this.closestIndexOf(t));let s=this.swatches;const i=this.lastIndex;let o=r;void 0===n&&(n=_(t));return-1===n&&(s=this.reversedSwatches,o=i-o),D(s,(r=>(0,N.$)(t,r)>=e),o,i)}get(t){return this.swatches[t]||this.swatches[(0,o.uZ)(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const r=this.swatches.reduce(((e,r)=>Math.abs(r.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?r:e));return e=this.swatches.indexOf(r),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new A(t,Object.freeze(new V({baseColor:a.h.fromObject(t)}).palette.map((t=>{const e=O(t.toStringHexRGB());return F.w.create(e.r,e.g,e.b)}))))}}const R=F.w.create(1,1,1),k=F.w.create(0,0,0),B=F.w.from(O("#808080")),M=F.w.from(O("#DA1A5F"));var j=r(251);function I(t,e,r,n,s,i){return Math.max(t.closestIndexOf((0,j.C)(e))+r,n,s,i)}const{create:$}=s.L;function E(t){return s.L.create({name:t,cssCustomPropertyName:null})}$("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif');const L=$("base-height-multiplier").withDefault(10),z=($("base-horizontal-spacing-multiplier").withDefault(3),$("base-layer-luminance").withDefault(j.h.DarkMode)),H=($("control-corner-radius").withDefault(4),$("density").withDefault(0)),q=$("design-unit").withDefault(4),Z=($("direction").withDefault(n.ltr),$("disabled-opacity").withDefault(.3),$("stroke-width").withDefault(1),$("focus-stroke-width").withDefault(2),$("type-ramp-base-font-size").withDefault("14px"),$("type-ramp-base-line-height").withDefault("20px"),$("type-ramp-minus-1-font-size").withDefault("12px"),$("type-ramp-minus-1-line-height").withDefault("16px"),$("type-ramp-minus-2-font-size").withDefault("10px"),$("type-ramp-minus-2-line-height").withDefault("16px"),$("type-ramp-plus-1-font-size").withDefault("16px"),$("type-ramp-plus-1-line-height").withDefault("24px"),$("type-ramp-plus-2-font-size").withDefault("20px"),$("type-ramp-plus-2-line-height").withDefault("28px"),$("type-ramp-plus-3-font-size").withDefault("28px"),$("type-ramp-plus-3-line-height").withDefault("36px"),$("type-ramp-plus-4-font-size").withDefault("34px"),$("type-ramp-plus-4-line-height").withDefault("44px"),$("type-ramp-plus-5-font-size").withDefault("46px"),$("type-ramp-plus-5-line-height").withDefault("56px"),$("type-ramp-plus-6-font-size").withDefault("60px"),$("type-ramp-plus-6-line-height").withDefault("72px"),E("accent-fill-rest-delta").withDefault(0),E("accent-fill-hover-delta").withDefault(4)),G=E("accent-fill-active-delta").withDefault(-5),U=E("accent-fill-focus-delta").withDefault(0),W=E("accent-foreground-rest-delta").withDefault(0),Q=E("accent-foreground-hover-delta").withDefault(6),Y=E("accent-foreground-active-delta").withDefault(-4),K=E("accent-foreground-focus-delta").withDefault(0),X=E("neutral-fill-rest-delta").withDefault(7),J=E("neutral-fill-hover-delta").withDefault(10),tt=E("neutral-fill-active-delta").withDefault(5),et=E("neutral-fill-focus-delta").withDefault(0),rt=E("neutral-fill-input-rest-delta").withDefault(0),nt=E("neutral-fill-input-hover-delta").withDefault(0),st=E("neutral-fill-input-active-delta").withDefault(0),it=E("neutral-fill-input-focus-delta").withDefault(0),ot=E("neutral-fill-stealth-rest-delta").withDefault(0),at=E("neutral-fill-stealth-hover-delta").withDefault(5),lt=E("neutral-fill-stealth-active-delta").withDefault(3),ut=E("neutral-fill-stealth-focus-delta").withDefault(0),ct=E("neutral-fill-strong-rest-delta").withDefault(0),ht=E("neutral-fill-strong-hover-delta").withDefault(8),ft=E("neutral-fill-strong-active-delta").withDefault(-5),dt=E("neutral-fill-strong-focus-delta").withDefault(0),gt=E("neutral-fill-layer-rest-delta").withDefault(3),pt=E("neutral-stroke-rest-delta").withDefault(25),vt=E("neutral-stroke-hover-delta").withDefault(40),bt=E("neutral-stroke-active-delta").withDefault(16),yt=E("neutral-stroke-focus-delta").withDefault(25),mt=E("neutral-stroke-divider-rest-delta").withDefault(8),wt=$("neutral-color").withDefault(B),Ct=E("neutral-palette").withDefault((t=>T.from(wt.getValueFor(t)))),xt=$("accent-color").withDefault(M),Ot=E("accent-palette").withDefault((t=>T.from(xt.getValueFor(t)))),St=E("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=z.getValueFor(t),n=gt.getValueFor(t),e.get(e.closestIndexOf((0,j.C)(r))+n);var e,r,n}}),Vt=($("neutral-layer-card-container").withDefault((t=>St.getValueFor(t).evaluate(t))),E("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,r){const n=t.closestIndexOf((0,j.C)(e))-r;return t.get(n-r)}(Ct.getValueFor(t),z.getValueFor(t),gt.getValueFor(t))})),Ft=($("neutral-layer-floating").withDefault((t=>Vt.getValueFor(t).evaluate(t))),E("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf((0,j.C)(e)))}(Ct.getValueFor(t),z.getValueFor(t))})),Dt=$("neutral-layer-1").withDefault((t=>Ft.getValueFor(t).evaluate(t))),Pt=E("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=z.getValueFor(t),n=gt.getValueFor(t),s=X.getValueFor(t),i=J.getValueFor(t),o=tt.getValueFor(t),e.get(I(e,r,n,s,i,o));var e,r,n,s,i,o}}),_t=($("neutral-layer-2").withDefault((t=>Pt.getValueFor(t).evaluate(t))),E("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=z.getValueFor(t),n=gt.getValueFor(t),s=X.getValueFor(t),i=J.getValueFor(t),o=tt.getValueFor(t),e.get(I(e,r,n,s,i,o)+n);var e,r,n,s,i,o}})),Nt=($("neutral-layer-3").withDefault((t=>_t.getValueFor(t).evaluate(t))),E("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=z.getValueFor(t),n=gt.getValueFor(t),s=X.getValueFor(t),i=J.getValueFor(t),o=tt.getValueFor(t),e.get(I(e,r,n,s,i,o)+2*n);var e,r,n,s,i,o}})),Tt=($("neutral-layer-4").withDefault((t=>Nt.getValueFor(t).evaluate(t))),$("fill-color").withDefault((t=>Dt.getValueFor(t))));var At;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(At||(At={}));const Rt=$({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,n,s,i,o,a,l){const u=t.source,c=e.closestIndexOf(r)>=Math.max(o,a,l)?-1:1,h=t.closestIndexOf(u),f=h+-1*c*n,d=f+c*s,g=f+c*i;return{rest:t.get(f),hover:t.get(h),active:t.get(d),focus:t.get(g)}}(Ot.getValueFor(t),Ct.getValueFor(t),e||Tt.getValueFor(t),Z.getValueFor(t),G.getValueFor(t),U.getValueFor(t),X.getValueFor(t),J.getValueFor(t),tt.getValueFor(t))}),kt=$("accent-fill-rest").withDefault((t=>Rt.getValueFor(t).evaluate(t).rest)),Bt=$("accent-fill-hover").withDefault((t=>Rt.getValueFor(t).evaluate(t).hover)),Mt=$("accent-fill-active").withDefault((t=>Rt.getValueFor(t).evaluate(t).active)),jt=$("accent-fill-focus").withDefault((t=>Rt.getValueFor(t).evaluate(t).focus)),It=t=>(e,r)=>function(t,e){return t.contrast(R)>=e?R:k}(r||kt.getValueFor(e),t),$t=E("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>It(At.normal)(t,e)}),Et=($("foreground-on-accent-rest").withDefault((t=>$t.getValueFor(t).evaluate(t,kt.getValueFor(t)))),$("foreground-on-accent-hover").withDefault((t=>$t.getValueFor(t).evaluate(t,Bt.getValueFor(t)))),$("foreground-on-accent-active").withDefault((t=>$t.getValueFor(t).evaluate(t,Mt.getValueFor(t)))),$("foreground-on-accent-focus").withDefault((t=>$t.getValueFor(t).evaluate(t,jt.getValueFor(t)))),E("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>It(At.large)(t,e)})),Lt=($("foreground-on-accent-rest-large").withDefault((t=>Et.getValueFor(t).evaluate(t,kt.getValueFor(t)))),$("foreground-on-accent-hover-large").withDefault((t=>Et.getValueFor(t).evaluate(t,Bt.getValueFor(t)))),$("foreground-on-accent-active-large").withDefault((t=>Et.getValueFor(t).evaluate(t,Mt.getValueFor(t)))),$("foreground-on-accent-focus-large").withDefault((t=>Et.getValueFor(t).evaluate(t,jt.getValueFor(t)))),t=>(e,r)=>function(t,e,r,n,s,i,o){const a=t.source,l=t.closestIndexOf(a),u=_(e),c=l+(1===u?Math.min(n,s):Math.max(u*n,u*s)),h=t.colorContrast(e,r,c,u),f=t.closestIndexOf(h),d=f+u*Math.abs(n-s);let g,p;return(1===u?n<s:u*n>u*s)?(g=f,p=d):(g=d,p=f),{rest:t.get(g),hover:t.get(p),active:t.get(g+u*i),focus:t.get(g+u*o)}}(Ot.getValueFor(e),r||Tt.getValueFor(e),t,W.getValueFor(e),Q.getValueFor(e),Y.getValueFor(e),K.getValueFor(e))),zt=$({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>Lt(At.normal)(t,e)}),Ht=($("accent-foreground-rest").withDefault((t=>zt.getValueFor(t).evaluate(t).rest)),$("accent-foreground-hover").withDefault((t=>zt.getValueFor(t).evaluate(t).hover)),$("accent-foreground-active").withDefault((t=>zt.getValueFor(t).evaluate(t).active)),$("accent-foreground-focus").withDefault((t=>zt.getValueFor(t).evaluate(t).focus)),$({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,n,s,i){const o=t.closestIndexOf(e),a=o>=Math.max(r,n,s,i)?-1:1;return{rest:t.get(o+a*r),hover:t.get(o+a*n),active:t.get(o+a*s),focus:t.get(o+a*i)}}(Ct.getValueFor(t),e||Tt.getValueFor(t),X.getValueFor(t),J.getValueFor(t),tt.getValueFor(t),et.getValueFor(t))})),qt=($("neutral-fill-rest").withDefault((t=>Ht.getValueFor(t).evaluate(t).rest)),$("neutral-fill-hover").withDefault((t=>Ht.getValueFor(t).evaluate(t).hover)),$("neutral-fill-active").withDefault((t=>Ht.getValueFor(t).evaluate(t).active)),$("neutral-fill-focus").withDefault((t=>Ht.getValueFor(t).evaluate(t).focus)),$({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,n,s,i){const o=_(e),a=t.closestIndexOf(e);return{rest:t.get(a-o*r),hover:t.get(a-o*n),active:t.get(a-o*s),focus:t.get(a-o*i)}}(Ct.getValueFor(t),e||Tt.getValueFor(t),rt.getValueFor(t),nt.getValueFor(t),st.getValueFor(t),it.getValueFor(t))})),Zt=($("neutral-fill-input-rest").withDefault((t=>qt.getValueFor(t).evaluate(t).rest)),$("neutral-fill-input-hover").withDefault((t=>qt.getValueFor(t).evaluate(t).hover)),$("neutral-fill-input-active").withDefault((t=>qt.getValueFor(t).evaluate(t).active)),$("neutral-fill-input-focus").withDefault((t=>qt.getValueFor(t).evaluate(t).focus)),$({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,n,s,i,o,a,l,u){const c=Math.max(r,n,s,i,o,a,l,u),h=t.closestIndexOf(e),f=h>=c?-1:1;return{rest:t.get(h+f*r),hover:t.get(h+f*n),active:t.get(h+f*s),focus:t.get(h+f*i)}}(Ct.getValueFor(t),e||Tt.getValueFor(t),ot.getValueFor(t),at.getValueFor(t),lt.getValueFor(t),ut.getValueFor(t),X.getValueFor(t),J.getValueFor(t),tt.getValueFor(t),et.getValueFor(t))})),Gt=($("neutral-fill-stealth-rest").withDefault((t=>Zt.getValueFor(t).evaluate(t).rest)),$("neutral-fill-stealth-hover").withDefault((t=>Zt.getValueFor(t).evaluate(t).hover)),$("neutral-fill-stealth-active").withDefault((t=>Zt.getValueFor(t).evaluate(t).active)),$("neutral-fill-stealth-focus").withDefault((t=>Zt.getValueFor(t).evaluate(t).focus)),$({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,n,s,i){const o=_(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+o*Math.abs(r-n);let u,c;return(1===o?r<n:o*r>o*n)?(u=a,c=l):(u=l,c=a),{rest:t.get(u),hover:t.get(c),active:t.get(u+o*s),focus:t.get(u+o*i)}}(Ct.getValueFor(t),e||Tt.getValueFor(t),ct.getValueFor(t),ht.getValueFor(t),ft.getValueFor(t),dt.getValueFor(t))})),Ut=($("neutral-fill-strong-rest").withDefault((t=>Gt.getValueFor(t).evaluate(t).rest)),$("neutral-fill-strong-hover").withDefault((t=>Gt.getValueFor(t).evaluate(t).hover)),$("neutral-fill-strong-active").withDefault((t=>Gt.getValueFor(t).evaluate(t).active)),$("neutral-fill-strong-focus").withDefault((t=>Gt.getValueFor(t).evaluate(t).focus)),E("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,r){const n=t.closestIndexOf(e);return t.get(n-(n<r?-1*r:r))}(Ct.getValueFor(t),e||Tt.getValueFor(t),gt.getValueFor(t))})),Wt=($("neutral-fill-layer-rest").withDefault((t=>Ut.getValueFor(t).evaluate(t))),E("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=Tt.getValueFor(t),e.colorContrast(r,3.5);var e,r}})),Qt=$("focus-stroke-outer").withDefault((t=>Wt.getValueFor(t).evaluate(t))),Yt=E("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=Ot.getValueFor(t),r=Tt.getValueFor(t),n=Qt.getValueFor(t),e.colorContrast(n,3.5,e.closestIndexOf(e.source),-1*_(r));var e,r,n}}),Kt=($("focus-stroke-inner").withDefault((t=>Yt.getValueFor(t).evaluate(t))),E("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=Tt.getValueFor(t),e.colorContrast(r,4.5);var e,r}})),Xt=($("neutral-foreground-hint").withDefault((t=>Kt.getValueFor(t).evaluate(t))),E("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=Ct.getValueFor(t),r=Tt.getValueFor(t),e.colorContrast(r,14);var e,r}})),Jt=($("neutral-foreground-rest").withDefault((t=>Xt.getValueFor(t).evaluate(t))),$({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,r,n,s,i){const o=t.closestIndexOf(e),a=_(e),l=o+a*r,u=l+a*(n-r),c=l+a*(s-r),h=l+a*(i-r);return{rest:t.get(l),hover:t.get(u),active:t.get(c),focus:t.get(h)}}(Ct.getValueFor(t),Tt.getValueFor(t),pt.getValueFor(t),vt.getValueFor(t),bt.getValueFor(t),yt.getValueFor(t))})),te=($("neutral-stroke-rest").withDefault((t=>Jt.getValueFor(t).evaluate(t).rest)),$("neutral-stroke-hover").withDefault((t=>Jt.getValueFor(t).evaluate(t).hover)),$("neutral-stroke-active").withDefault((t=>Jt.getValueFor(t).evaluate(t).active)),$("neutral-stroke-focus").withDefault((t=>Jt.getValueFor(t).evaluate(t).focus)),E("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,r){return t.get(t.closestIndexOf(e)+_(e)*r)}(Ct.getValueFor(t),e||Tt.getValueFor(t),mt.getValueFor(t))}));$("neutral-stroke-divider-rest").withDefault((t=>te.getValueFor(t).evaluate(t))),s.L.create({name:"height-number",cssCustomPropertyName:null}).withDefault((t=>(L.getValueFor(t)+H.getValueFor(t))*q.getValueFor(t)))},160:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__extends:()=>s,__assign:()=>i,__rest:()=>o,__decorate:()=>a,__param:()=>l,__metadata:()=>u,__awaiter:()=>c,__generator:()=>h,__createBinding:()=>f,__exportStar:()=>d,__values:()=>g,__read:()=>p,__spread:()=>v,__spreadArrays:()=>b,__await:()=>y,__asyncGenerator:()=>m,__asyncDelegator:()=>w,__asyncValues:()=>C,__makeTemplateObject:()=>x,__importStar:()=>O,__importDefault:()=>S,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>F});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function s(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},i.apply(this,arguments)};function o(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]])}return r}function a(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function l(t,e){return function(r,n){e(r,n,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,r,n){return new(r||(r=Promise))((function(s,i){function o(t){try{l(n.next(t))}catch(t){i(t)}}function a(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(s=o.trys,(s=s.length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],n=0}finally{r=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function d(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,s,i=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(t){s={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function b(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),s=0;for(e=0;e<r;e++)for(var i=arguments[e],o=0,a=i.length;o<a;o++,s++)n[s]=i[o];return n}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function m(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(t,e||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){s[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||a(t,e)}))})}function a(t,e){try{(r=s[t](e)).value instanceof y?Promise.resolve(r.value.v).then(l,u):c(i[0][2],r)}catch(t){c(i[0][3],t)}var r}function l(t){a("next",t)}function u(t){a("throw",t)}function c(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,s){e[n]=t[n]?function(e){return(r=!r)?{value:y(t[n](e)),done:"return"===n}:s?s(e):e}:s}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=g(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,s){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,s,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function V(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function F(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},759:(t,e,r)=>{"use strict";r.r(e),r.d(e,{$global:()=>n,AttachedBehaviorHTMLDirective:()=>V,AttributeConfiguration:()=>nt,AttributeDefinition:()=>ot,BindingBehavior:()=>j,CSSDirective:()=>mt,ChildrenBehavior:()=>Yt,Controller:()=>pt,DOM:()=>g,ElementStyles:()=>K,ExecutionContext:()=>C,FAST:()=>i,FASTElement:()=>bt,FASTElementDefinition:()=>ht,HTMLBindingDirective:()=>M,HTMLDirective:()=>O,HTMLView:()=>U,Observable:()=>b,PropertyChangeNotifier:()=>v,RefBehavior:()=>jt,RepeatBehavior:()=>Ht,RepeatDirective:()=>qt,SlottedBehavior:()=>Wt,SubscriberSet:()=>p,TargetedHTMLDirective:()=>S,ViewTemplate:()=>W,attr:()=>at,booleanConverter:()=>st,children:()=>Kt,compileTemplate:()=>Z,createMetadataLocator:()=>a,css:()=>Ct,cssPartial:()=>Ot,customElement:()=>yt,defaultExecutionContext:()=>x,elements:()=>Gt,emptyArray:()=>o,enableArrayObservation:()=>Mt,html:()=>Y,nullableNumberConverter:()=>it,observable:()=>y,ref:()=>It,repeat:()=>Zt,slotted:()=>Qt,volatile:()=>m,when:()=>$t});const n=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(t){return{}}}();void 0===n.trustedTypes&&(n.trustedTypes={createPolicy:(t,e)=>e});const s={configurable:!1,enumerable:!1,writable:!1};void 0===n.FAST&&Reflect.defineProperty(n,"FAST",Object.assign({value:Object.create(null)},s));const i=n.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,r){let n=t[e];return void 0===n&&(n=r?t[e]=r():null),n}},s))}const o=Object.freeze([]);function a(){const t=new WeakMap;return function(e){let r=t.get(e);if(void 0===r){let n=Reflect.getPrototypeOf(e);for(;void 0===r&&null!==n;)r=t.get(n),n=Reflect.getPrototypeOf(n);r=void 0===r?[]:r.slice(0),t.set(e,r)}return r}}const l=n.FAST.getById(1,(()=>{const t=[],e=[];function r(){if(e.length)throw e.shift()}function s(t){try{t.call()}catch(t){e.push(t),setTimeout(r,0)}}function i(){let e=0;for(;e<t.length;)if(s(t[e]),e++,e>1024){for(let r=0,n=t.length-e;r<n;r++)t[r]=t[r+e];t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(e){t.length<1&&n.requestAnimationFrame(i),t.push(e)},process:i})})),u=n.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let c=u;const h=`fast-${Math.random().toString(36).substring(2,8)}`,f=`${h}{`,d=`}${h}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(c!==u)throw new Error("The HTML policy can only be set once.");c=t},createHTML:t=>c.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(h),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${h}:`,"")),createInterpolationPlaceholder:t=>`${f}${t}${d}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${h}:${t}--\x3e`,queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(t,e,r){null==r?t.removeAttribute(e):t.setAttribute(e,r)},setBooleanAttribute(t,e,r){r?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});class p{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=e.indexOf(t);-1!==r&&e.splice(r,1)}}notify(t){const e=this.spillover,r=this.source;if(void 0===e){const e=this.sub1,n=this.sub2;void 0!==e&&e.handleChange(r,t),void 0!==n&&n.handleChange(r,t)}else for(let n=0,s=e.length;n<s;++n)e[n].handleChange(r,t)}}class v{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const r=this.subscribers[t];void 0!==r&&r.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var r;if(e){let r=this.subscribers[e];void 0===r&&(this.subscribers[e]=r=new p(this.source)),r.subscribe(t)}else this.sourceSubscribers=null!==(r=this.sourceSubscribers)&&void 0!==r?r:new p(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var r;if(e){const r=this.subscribers[e];void 0!==r&&r.unsubscribe(t)}else null===(r=this.sourceSubscribers)||void 0===r||r.unsubscribe(t)}}const b=i.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,r=g.queueUpdate;let n,s=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(t){let r=t.$fastController||e.get(t);return void 0===r&&(Array.isArray(t)?r=s(t):e.set(t,r=new v(t))),r}const o=a();class l{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==n&&n.watch(t,this.name),t[this.field]}setValue(t,e){const r=this.field,n=t[r];if(n!==e){t[r]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,n,e),i(t).notify(this.name)}}}class u extends p{constructor(t,e,r=!1){super(t,e),this.binding=t,this.isVolatileBinding=r,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(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const r=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(t,e);return n=r,s}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const r=this.last,s=i(t),o=null===r?this.first:{};if(o.propertySource=t,o.propertyName=e,o.notifier=s,s.subscribe(this,e),null!==r){if(!this.needsRefresh){let e;n=void 0,e=r.propertySource[r.propertyName],n=this,t===e&&(this.needsRefresh=!0)}r.next=o}this.last=o}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){s=t},getNotifier:i,track(t,e){void 0!==n&&n.watch(t,e)},trackVolatile(){void 0!==n&&(n.needsRefresh=!0)},notify(t,e){i(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),o(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:o,binding(t,e,r=this.isVolatileBinding(t)){return new u(t,e,r)},isVolatileBinding:e=>t.test(e.toString())})}));function y(t,e){b.defineProperty(t,e)}function m(t,e,r){return Object.assign({},r,{get:function(){return b.trackVolatile(),r.get.apply(this)}})}const w=i.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class C{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return w.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(t){w.set(t)}}b.defineProperty(C.prototype,"index"),b.defineProperty(C.prototype,"length");const x=Object.seal(new C);class O{constructor(){this.targetIndex=0}}class S extends O{constructor(){super(...arguments),this.createPlaceholder=g.createInterpolationPlaceholder}}class V extends O{constructor(t,e,r){super(),this.name=t,this.behavior=e,this.options=r}createPlaceholder(t){return g.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function F(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=b.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function D(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function P(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function _(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function N(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function T(t){g.setAttribute(this.target,this.targetName,t)}function A(t){g.setBooleanAttribute(this.target,this.targetName,t)}function R(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function k(t){this.target[this.targetName]=t}function B(t){const e=this.classVersions||Object.create(null),r=this.target;let n=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,i=s.length;t<i;++t){const i=s[t];""!==i&&(e[i]=n,r.classList.add(i))}}if(this.classVersions=e,this.version=n+1,0!==n){n-=1;for(const t in e)e[t]===n&&r.classList.remove(t)}}class M extends S{constructor(t){super(),this.binding=t,this.bind=F,this.unbind=P,this.updateTarget=T,this.isBindingVolatile=b.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=k,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,r)=>g.createHTML(t(e,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=A;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=D,this.unbind=N;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=B)}}targetAtContent(){this.updateTarget=R,this.unbind=_}createBehavior(t){return new j(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class j{constructor(t,e,r,n,s,i,o){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=r,this.bind=n,this.unbind=s,this.updateTarget=i,this.targetName=o}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){C.setEvent(t);const e=this.binding(this.source,this.context);C.setEvent(null),!0!==e&&t.preventDefault()}}let I=null;class ${addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){I=this}static borrow(t){const e=I||new $;return e.directives=t,e.reset(),I=null,e}}function E(t){if(1===t.length)return t[0];let e;const r=t.length,n=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),s=new M(((t,e)=>{let s="";for(let i=0;i<r;++i)s+=n[i](t,e);return s}));return s.targetName=e,s}const L=d.length;function z(t,e){const r=e.split(f);if(1===r.length)return null;const n=[];for(let e=0,s=r.length;e<s;++e){const s=r[e],i=s.indexOf(d);let o;if(-1===i)o=s;else{const e=parseInt(s.substring(0,i));n.push(t.directives[e]),o=s.substring(i+L)}""!==o&&n.push(o)}return n}function H(t,e,r=!1){const n=e.attributes;for(let s=0,i=n.length;s<i;++s){const o=n[s],a=o.value,l=z(t,a);let u=null;null===l?r&&(u=new M((()=>a)),u.targetName=o.name):u=E(l),null!==u&&(e.removeAttributeNode(o),s--,i--,t.addFactory(u))}}function q(t,e,r){const n=z(t,e.textContent);if(null!==n){let s=e;for(let i=0,o=n.length;i<o;++i){const o=n[i],a=0===i?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof o?a.textContent=o:(a.textContent=" ",t.captureContentBinding(o)),s=a,t.targetIndex++,a!==e&&r.nextNode()}t.targetIndex--}}function Z(t,e){const r=t.content;document.adoptNode(r);const n=$.borrow(e);H(n,t,!0);const s=n.behaviorFactories;n.reset();const i=g.createTemplateWalker(r);let o;for(;o=i.nextNode();)switch(n.targetIndex++,o.nodeType){case 1:H(n,o);break;case 3:q(n,o,i);break;case 8:g.isMarker(o)&&n.addFactory(e[g.extractDirectiveIndexFromMarker(o)])}let a=0;(g.isMarker(r.firstChild)||1===r.childNodes.length&&e.length)&&(r.insertBefore(document.createComment(""),r.firstChild),a=-1);const l=n.behaviorFactories;return n.release(),{fragment:r,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const G=document.createRange();class U{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const r=t.parentNode;let n,s=this.firstChild;for(;s!==e;)n=s.nextSibling,r.insertBefore(s,t),s=n;r.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let r,n=this.firstChild;for(;n!==e;)r=n.nextSibling,t.appendChild(n),n=r;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let r,n=this.firstChild;for(;n!==e;)r=n.nextSibling,t.removeChild(n),n=r;t.removeChild(e);const s=this.behaviors,i=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(i)}bind(t,e){const r=this.behaviors;if(this.source!==t)if(null!==this.source){const n=this.source;this.source=t,this.context=e;for(let s=0,i=r.length;s<i;++s){const i=r[s];i.unbind(n),i.bind(t,e)}}else{this.source=t,this.context=e;for(let n=0,s=r.length;n<s;++n)r[n].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let r=0,n=t.length;r<n;++r)t[r].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){G.setStartBefore(t[0].firstChild),G.setEndAfter(t[t.length-1].lastChild),G.deleteContents();for(let e=0,r=t.length;e<r;++e){const r=t[e],n=r.behaviors,s=r.source;for(let t=0,e=n.length;t<e;++t)n[t].unbind(s)}}}}class W{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=g.createHTML(e);const r=t.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(t=r)}else t=e;const r=Z(t,this.directives);this.fragment=r.fragment,this.viewBehaviorFactories=r.viewBehaviorFactories,this.hostBehaviorFactories=r.hostBehaviorFactories,this.targetOffset=r.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,n=new Array(this.behaviorCount),s=g.createTemplateWalker(e);let i=0,o=this.targetOffset,a=s.nextNode();for(let t=r.length;i<t;++i){const t=r[i],e=t.targetIndex;for(;null!==a;){if(o===e){n[i]=t.createBehavior(a);break}a=s.nextNode(),o++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let r=0,s=e.length;r<s;++r,++i)n[i]=e[r].createBehavior(t)}return new U(e,n)}render(t,e,r){"string"==typeof e&&(e=document.getElementById(e)),void 0===r&&(r=e);const n=this.create(r);return n.bind(t,x),n.appendTo(e),n}}const Q=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Y(t,...e){const r=[];let n="";for(let s=0,i=t.length-1;s<i;++s){const i=t[s];let o=e[s];if(n+=i,o instanceof W){const t=o;o=()=>t}if("function"==typeof o&&(o=new M(o)),o instanceof S){const t=Q.exec(i);null!==t&&(o.targetName=t[2])}o instanceof O?(n+=o.createPlaceholder(r.length),r.push(o)):n+=o}return n+=t[t.length-1],new W(n,r)}class K{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function X(t){return t.map((t=>t instanceof K?X(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function J(t){return t.map((t=>t instanceof K?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}K.create=(()=>{if(g.supportsAdoptedStyleSheets){const t=new Map;return e=>new tt(e,t)}return t=>new rt(t)})();class tt extends K{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=J(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=X(t).map((t=>{if(t instanceof CSSStyleSheet)return t;let r=e.get(t);return void 0===r&&(r=new CSSStyleSheet,r.replaceSync(t),e.set(t,r)),r}))}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t))),super.removeStylesFrom(t)}}let et=0;class rt extends K{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=J(t),this.styleSheets=X(t),this.styleClass="fast-style-class-"+ ++et}addStylesTo(t){const e=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let n=0;n<e.length;n++){const s=document.createElement("style");s.innerHTML=e[n],s.className=r,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let r=0,n=e.length;r<n;++r)t.removeChild(e[r]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const nt=Object.freeze({locate:a()}),st={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},it={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class ot{constructor(t,e,r=e.toLowerCase(),n="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=r,this.mode=n,this.converter=s,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===n&&void 0===s&&(this.converter=st)}setValue(t,e){const r=t[this.fieldName],n=this.converter;void 0!==n&&(e=n.fromView(e)),r!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](r,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,r=this.guards;r.has(t)||"fromView"===e||g.queueUpdate((()=>{r.add(t);const n=t[this.fieldName];switch(e){case"reflect":const e=this.converter;g.setAttribute(t,this.attribute,void 0!==e?e.toView(n):n);break;case"boolean":g.setBooleanAttribute(t,this.attribute,n)}r.delete(t)}))}static collect(t,...e){const r=[];e.push(nt.locate(t));for(let n=0,s=e.length;n<s;++n){const s=e[n];if(void 0!==s)for(let e=0,n=s.length;e<n;++e){const n=s[e];"string"==typeof n?r.push(new ot(t,n)):r.push(new ot(t,n.property,n.attribute,n.mode,n.converter))}}return r}}function at(t,e){let r;function n(t,e){arguments.length>1&&(r.property=e),nt.locate(t.constructor).push(r)}return arguments.length>1?(r={},void n(t,e)):(r=void 0===t?{}:t,n)}const lt={mode:"open"},ut={},ct=i.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class ht{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const r=ot.collect(t,e.attributes),n=new Array(r.length),s={},i={};for(let t=0,e=r.length;t<e;++t){const e=r[t];n[t]=e.attribute,s[e.name]=e,i[e.attribute]=e}this.attributes=r,this.observedAttributes=n,this.propertyLookup=s,this.attributeLookup=i,this.shadowOptions=void 0===e.shadowOptions?lt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},lt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?ut:Object.assign(Object.assign({},ut),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?K.create(e.styles):e.styles instanceof K?e.styles:K.create([e.styles])}get isDefined(){return!!ct.getByType(this.type)}define(t=customElements){const e=this.type;if(ct.register(this)){const t=this.attributes,r=e.prototype;for(let e=0,n=t.length;e<n;++e)b.defineProperty(r,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}ht.forType=ct.getByType;const ft=new WeakMap,dt={bubbles:!0,composed:!0,cancelable:!0};function gt(t){return t.shadowRoot||ft.get(t)||null}class pt extends v{constructor(t,e){super(t),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=t,this.definition=e;const r=e.shadowOptions;if(void 0!==r){const e=t.attachShadow(r);"closed"===r.mode&&ft.set(t,e)}const n=b.getAccessors(t);if(n.length>0){const e=this.boundObservables=Object.create(null);for(let r=0,s=n.length;r<s;++r){const s=n[r].name,i=t[s];void 0!==i&&(delete t[s],e[s]=i)}}}get isConnected(){return b.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,b.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=gt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const r=t.behaviors;t.addStylesTo(e),null!==r&&this.addBehaviors(r)}}removeStyles(t){const e=gt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const r=t.behaviors;t.removeStylesFrom(e),null!==r&&this.removeBehaviors(r)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),r=t.length,n=[];for(let s=0;s<r;++s){const r=t[s];e.has(r)?e.set(r,e.get(r)+1):(e.set(r,1),n.push(r))}if(this._isConnected){const t=this.element;for(let e=0;e<n.length;++e)n[e].bind(t,x)}}removeBehaviors(t,e=!1){const r=this.behaviors;if(null===r)return;const n=t.length,s=[];for(let i=0;i<n;++i){const n=t[i];if(r.has(n)){const t=r.get(n)-1;0===t||e?r.delete(n)&&s.push(n):r.set(n,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,x);const e=this.behaviors;if(null!==e)for(const[r]of e)r.bind(t,x);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[r]of e)r.unbind(t)}}onAttributeChangedCallback(t,e,r){const n=this.definition.attributeLookup[t];void 0!==n&&n.onAttributeChangedCallback(this.element,r)}emit(t,e,r){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},dt),r)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const r=Object.keys(e);for(let n=0,s=r.length;n<s;++n){const s=r[n];t[s]=e[s]}this.boundObservables=null}const r=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():r.template&&(this._template=r.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():r.styles&&(this._styles=r.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,r=gt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||g.removeChildNodes(r),t&&(this.view=t.render(e,r,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const r=ht.forType(t.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return t.$fastController=new pt(t,r)}}function vt(t){return class extends t{constructor(){super(),pt.forCustomElement(this)}$emit(t,e,r){return this.$fastController.emit(t,e,r)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,r){this.$fastController.onAttributeChangedCallback(t,e,r)}}}const bt=Object.assign(vt(HTMLElement),{from:t=>vt(t),define:(t,e)=>new ht(t,e).define().type});function yt(t){return function(e){new ht(e,t).define()}}class mt{createCSS(){return""}createBehavior(){}}function wt(t,e){const r=[];let n="";const s=[];for(let i=0,o=t.length-1;i<o;++i){n+=t[i];let o=e[i];if(o instanceof mt){const t=o.createBehavior();o=o.createCSS(),t&&s.push(t)}o instanceof K||o instanceof CSSStyleSheet?(""!==n.trim()&&(r.push(n),n=""),r.push(o)):n+=o}return n+=t[t.length-1],""!==n.trim()&&r.push(n),{styles:r,behaviors:s}}function Ct(t,...e){const{styles:r,behaviors:n}=wt(t,e),s=K.create(r);return n.length&&s.withBehaviors(...n),s}class xt extends mt{constructor(t,e){super(),this.behaviors=e,this.css="";const r=t.reduce(((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t)),[]);r.length&&(this.styles=K.create(r))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function Ot(t,...e){const{styles:r,behaviors:n}=wt(t,e);return new xt(r,n)}function St(t,e,r){return{index:t,removed:e,addedCount:r}}const Vt=0,Ft=1,Dt=2,Pt=3;function _t(t,e,r,n,s,i){let a=0,l=0;const u=Math.min(r-e,i-s);if(0===e&&0===s&&(a=function(t,e,r){for(let n=0;n<r;++n)if(t[n]!==e[n])return n;return r}(t,n,u)),r===t.length&&i===n.length&&(l=function(t,e,r){let n=t.length,s=e.length,i=0;for(;i<r&&t[--n]===e[--s];)i++;return i}(t,n,u-a)),s+=a,i-=l,(r-=l)-(e+=a)==0&&i-s==0)return o;if(e===r){const t=St(e,[],0);for(;s<i;)t.removed.push(n[s++]);return[t]}if(s===i)return[St(e,[],r-e)];const c=function(t){let e=t.length-1,r=t[0].length-1,n=t[e][r];const s=[];for(;e>0||r>0;){if(0===e){s.push(Dt),r--;continue}if(0===r){s.push(Pt),e--;continue}const i=t[e-1][r-1],o=t[e-1][r],a=t[e][r-1];let l;l=o<a?o<i?o:i:a<i?a:i,l===i?(i===n?s.push(Vt):(s.push(Ft),n=i),e--,r--):l===o?(s.push(Pt),e--,n=o):(s.push(Dt),r--,n=a)}return s.reverse(),s}(function(t,e,r,n,s,i){const o=i-s+1,a=r-e+1,l=new Array(o);let u,c;for(let t=0;t<o;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let r=1;r<o;++r)for(let i=1;i<a;++i)t[e+i-1]===n[s+r-1]?l[r][i]=l[r-1][i-1]:(u=l[r-1][i]+1,c=l[r][i-1]+1,l[r][i]=u<c?u:c);return l}(t,e,r,n,s,i)),h=[];let f,d=e,g=s;for(let t=0;t<c.length;++t)switch(c[t]){case Vt:void 0!==f&&(h.push(f),f=void 0),d++,g++;break;case Ft:void 0===f&&(f=St(d,[],0)),f.addedCount++,d++,f.removed.push(n[g]),g++;break;case Dt:void 0===f&&(f=St(d,[],0)),f.addedCount++,d++;break;case Pt:void 0===f&&(f=St(d,[],0)),f.removed.push(n[g]),g++}return void 0!==f&&h.push(f),h}const Nt=Array.prototype.push;function Tt(t,e,r,n){const s=St(e,r,n);let i=!1,o=0;for(let e=0;e<t.length;e++){const r=t[e];if(r.index+=o,i)continue;const n=(a=s.index,l=s.index+s.removed.length,u=r.index,c=r.index+r.addedCount,l<u||c<a?-1:l===u||c===a?0:a<u?l<c?l-u:c-u:c<l?c-a:l-a);if(n>=0){t.splice(e,1),e--,o-=r.addedCount-r.removed.length,s.addedCount+=r.addedCount-n;const a=s.removed.length+r.removed.length-n;if(s.addedCount||a){let t=r.removed;if(s.index<r.index){const e=s.removed.slice(0,r.index-s.index);Nt.apply(e,t),t=e}if(s.index+s.removed.length>r.index+r.addedCount){const e=s.removed.slice(r.index+r.addedCount-s.index);Nt.apply(t,e)}s.removed=t,r.index<s.index&&(s.index=r.index)}else i=!0}else if(s.index<r.index){i=!0,t.splice(e,0,s),e++;const n=s.addedCount-s.removed.length;r.index+=n,o+=n}}var a,l,u,c;i||t.push(s)}function At(t,e){let r=[];const n=function(t){const e=[];for(let r=0,n=t.length;r<n;r++){const n=t[r];Tt(e,n.index,n.removed,n.addedCount)}return e}(e);for(let e=0,s=n.length;e<s;++e){const s=n[e];1!==s.addedCount||1!==s.removed.length?r=r.concat(_t(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&r.push(s)}return r}let Rt=!1;function kt(t,e){let r=t.index;const n=e.length;return r>n?r=n-t.addedCount:r<0&&(r=n+t.removed.length+r-t.addedCount),r<0&&(r=0),t.index=r,t}class Bt extends p{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=void 0===e?At(this.source,t):_t(this.source,0,this.source.length,e,0,e.length);this.notify(r)}}function Mt(){if(Rt)return;Rt=!0,b.setArrayObserverFactory((t=>new Bt(t)));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,r=t.push,n=t.reverse,s=t.shift,i=t.sort,o=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,r=e.apply(this,arguments),n=this.$fastController;return void 0!==n&&t&&n.addSplice(St(this.length,[r],0)),r},t.push=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(kt(St(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const r=n.apply(this,arguments);return void 0!==e&&e.reset(t),r},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),r=this.$fastController;return void 0!==r&&t&&r.addSplice(St(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const r=i.apply(this,arguments);return void 0!==e&&e.reset(t),r},t.splice=function(){const t=o.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(kt(St(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(kt(St(0,[],arguments.length),this)),t}}class jt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function It(t){return new V("fast-ref",jt,t)}function $t(t,e){const r="function"==typeof e?e:()=>e;return(e,n)=>t(e,n)?r(e,n):null}const Et=Object.freeze({positioning:!1,recycle:!0});function Lt(t,e,r,n){t.bind(e[r],n)}function zt(t,e,r,n){const s=Object.create(n);s.index=r,s.length=e.length,t.bind(e[r],s)}class Ht{constructor(t,e,r,n,s,i){this.location=t,this.itemsBinding=e,this.templateBinding=n,this.options=i,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Lt,this.itemsBindingObserver=b.binding(e,this,r),this.templateBindingObserver=b.binding(n,this,s),i.positioning&&(this.bindView=zt)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,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(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=o);const e=this.itemsObserver,r=this.itemsObserver=b.getNotifier(this.items),n=e!==r;n&&null!==e&&e.unsubscribe(this),(n||t)&&r.subscribe(this)}updateViews(t){const e=this.childContext,r=this.views,n=this.bindView,s=this.items,i=this.template,o=this.options.recycle,a=[];let l=0,u=0;for(let c=0,h=t.length;c<h;++c){const h=t[c],f=h.removed;let d=0,g=h.index;const p=g+h.addedCount,v=r.splice(h.index,f.length),b=u=a.length+v.length;for(;g<p;++g){const t=r[g],c=t?t.firstChild:this.location;let h;o&&u>0?(d<=b&&v.length>0?(h=v[d],d++):(h=a[l],l++),u--):h=i.create(),r.splice(g,0,h),n(h,s,g,e),h.insertBefore(c)}v[d]&&a.push(...v.slice(d))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=r.length;t<e;++t){const n=r[t].context;n.length=e,n.index=t}}refreshAllViews(t=!1){const e=this.items,r=this.childContext,n=this.template,s=this.location,i=this.bindView;let o=e.length,a=this.views,l=a.length;if(0!==o&&!t&&this.options.recycle||(U.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(o);for(let t=0;t<o;++t){const o=n.create();i(o,e,t,r),a[t]=o,o.insertBefore(s)}}else{let t=0;for(;t<o;++t)if(t<l){i(a[t],e,t,r)}else{const o=n.create();i(o,e,t,r),a.push(o),o.insertBefore(s)}const u=a.splice(t,l-t);for(t=0,o=u.length;t<o;++t)u[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,r=t.length;e<r;++e)t[e].unbind()}}class qt extends O{constructor(t,e,r){super(),this.itemsBinding=t,this.templateBinding=e,this.options=r,this.createPlaceholder=g.createBlockPlaceholder,Mt(),this.isItemsBindingVolatile=b.isVolatileBinding(t),this.isTemplateBindingVolatile=b.isVolatileBinding(e)}createBehavior(t){return new Ht(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Zt(t,e,r=Et){return new qt(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},Et),r))}function Gt(t){return t?function(e,r,n){return 1===e.nodeType&&e.matches(t)}:function(t,e,r){return 1===t.nodeType}}class Ut{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=b.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Wt extends Ut{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Qt(t){return"string"==typeof t&&(t={property:t}),new V("fast-slotted",Wt,t)}class Yt extends Ut{constructor(t,e){super(t,e),this.observer=null,e.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 Kt(t){return"string"==typeof t&&(t={property:t}),new V("fast-children",Yt,t)}},772:(t,e,r)=>{"use strict";r.d(e,{L:()=>x});var n=r(495),s=r(147);function i(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const o=document.createElement("div");class a{setProperty(t,e){s.DOM.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){s.DOM.queueUpdate((()=>this.target.removeProperty(t)))}}class l extends a{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class u extends a{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class c{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),s.Observable.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),s.DOM.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),s.DOM.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:r}=this.style;if(r){const t=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[t].style}else this.target=null}}(0,n.__decorate)([s.observable],c.prototype,"target",void 0);class h{constructor(t){this.target=t.style}setProperty(t,e){s.DOM.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){s.DOM.queueUpdate((()=>this.target.removeProperty(t)))}}class f{setProperty(t,e){f.properties[t]=e;for(const r of f.roots.values())p.getOrCreate(f.normalizeRoot(r)).setProperty(t,e)}removeProperty(t){delete f.properties[t];for(const e of f.roots.values())p.getOrCreate(f.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=f;if(!e.has(t)){e.add(t);const r=p.getOrCreate(this.normalizeRoot(t));for(const t in f.properties)r.setProperty(t,f.properties[t])}}static unregisterRoot(t){const{roots:e}=f;if(e.has(t)){e.delete(t);const r=p.getOrCreate(f.normalizeRoot(t));for(const t in f.properties)r.removeProperty(t)}}static normalizeRoot(t){return t===o?document:t}}f.roots=new Set,f.properties={};const d=new WeakMap,g=s.DOM.supportsAdoptedStyleSheets?class extends a{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(s.ElementStyles.create([e]))}}:c,p=Object.freeze({getOrCreate(t){if(d.has(t))return d.get(t);let e;return t===o?e=new f:t instanceof Document?e=s.DOM.supportsAdoptedStyleSheets?new l:new u:e=t instanceof s.FASTElement?new g(t):new h(t),d.set(t,e),e}});class v extends s.CSSDirective{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=v.uniqueId(),v.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new v({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return v.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=C.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof v&&(e=this.alias(e)),C.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),C.existsFor(t)&&C.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(o,t),this}subscribe(t,e){const r=this.getOrCreateSubscriberSet(e);e&&!C.existsFor(e)&&C.getOrCreate(e),r.has(t)||r.add(t)}unsubscribe(t,e){const r=this.subscribers.get(e||this);r&&r.has(t)&&r.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach((t=>t.handleChange(e))),this.subscribers.has(t)&&this.subscribers.get(t).forEach((t=>t.handleChange(e)))}alias(t){return e=>t.getValueFor(e)}}v.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),v.tokensById=new Map;class b{constructor(t,e,r){this.source=t,this.token=e,this.node=r,this.dependencies=new Set,this.observer=s.Observable.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,s.defaultExecutionContext))}}class y{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),s.Observable.getNotifier(this).notify(t.id))}get(t){return s.Observable.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const m=new WeakMap,w=new WeakMap;class C{constructor(t){this.target=t,this.store=new y,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const r=v.getTokenById(e);if(r&&(r.notify(this.target),v.isCSSDesignToken(r))){const e=this.parent,n=this.isReflecting(r);if(e){const s=e.get(r),i=t.get(r);s===i||n?s===i&&n&&this.stopReflectToCSS(r):this.reflectToCSS(r)}else n||this.reflectToCSS(r)}}},m.set(t,this),s.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof s.FASTElement?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return m.get(t)||new C(t)}static existsFor(t){return m.has(t)}static findParent(t){if(o!==t.target){let e=i(t.target);for(;null!==e;){if(m.has(e))return m.get(e);e=i(e)}return C.getOrCreate(o)}return null}static findClosestAssignedNode(t,e){let r=e;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==o?C.getOrCreate(o):null}while(null!==r);return null}get parent(){return w.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const r=this.getRaw(t);return void 0!==r?(this.hydrate(t,r),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=C.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){v.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),v.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=C.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){w.get(this).removeChild(this)}}appendChild(t){t.parent&&w.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));w.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),s.Observable.getNotifier(this.store).subscribe(t);for(const[e,r]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):r)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),s.Observable.getNotifier(this.store).unsubscribe(t),t.parent===this&&w.delete(t)}contains(t){return function(t,e){let r=e;for(;null!==r;){if(r===t)return!0;r=i(r)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),C.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),C.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const r=v.getTokenById(e);r&&this.hydrate(r,this.getRaw(r))}hydrate(t,e){if(!this.has(t)){const r=this.bindingObservers.get(t);v.isDerivedDesignTokenValue(e)?r?r.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(r&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const r=new b(e,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}C.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:r}=t;this.add(e,r)}add(t,e){p.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(C.getOrCreate(e).get(t)))}remove(t,e){p.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},(0,n.__decorate)([s.observable],C.prototype,"children",void 0);const x=Object.freeze({create:function(t){return v.from(t)},notifyConnection:t=>!(!t.isConnected||!C.existsFor(t))&&(C.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!C.existsFor(t))&&(C.getOrCreate(t).unbind(),!0),registerRoot(t=o){f.registerRoot(t)},unregisterRoot(t=o){f.unregisterRoot(t)}})},512:(t,e,r)=>{"use strict";r.d(e,{DI:()=>f});var n=r(147);const s=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(r){Reflect.defineMetadata(t,e,r)}},Reflect.defineMetadata=function(t,e,r){let n=s.get(r);void 0===n&&s.set(r,n=new Map),n.set(t,e)},Reflect.getOwnMetadata=function(t,e){const r=s.get(e);if(void 0!==r)return r.get(t)});class i{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,T(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:r,key:n}=this;return this.container=this.key=void 0,r.registerResolver(n,new m(n,t,e))}}function o(t){const e=t.slice(),r=Object.keys(t),n=r.length;let s;for(let i=0;i<n;++i)s=r[i],$(s)||(e[s]=t[s]);return e}const a=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new m(t,1,t),transient:t=>new m(t,2,t)}),l=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:a.singleton})}),u=new Map;function c(t){return e=>Reflect.getOwnMetadata(t,e)}let h=null;const f=Object.freeze({createContainer:t=>new _(null,Object.assign({},l.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:f.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(D,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||f.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new _(t,Object.assign({},l.default,e,{parentLocator:f.findParentContainer})):h||(h=new _(null,Object.assign({},l.default,e,{parentLocator:()=>null}))),getDesignParamtypes:c("design:paramtypes"),getAnnotationParamtypes:c("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=u.get(t);if(void 0===e){const r=t.inject;if(void 0===r){const r=f.getDesignParamtypes(t),n=f.getAnnotationParamtypes(t);if(void 0===r)if(void 0===n){const r=Object.getPrototypeOf(t);e="function"==typeof r&&r!==Function.prototype?o(f.getDependencies(r)):[]}else e=o(n);else if(void 0===n)e=o(r);else{e=o(r);let t,s=n.length;for(let r=0;r<s;++r)t=n[r],void 0!==t&&(e[r]=t);const i=Object.keys(n);let a;s=i.length;for(let t=0;t<s;++t)a=i[t],$(a)||(e[a]=n[a])}}else e=o(r);u.set(t,e)}return e},defineProperty(t,e,r,s=!1){const i=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[i];if(void 0===t){const o=this instanceof HTMLElement?f.findResponsibleContainer(this):f.getOrCreateDOMContainer();if(t=o.get(r),this[i]=t,s&&this instanceof n.FASTElement){const n=this.$fastController,s=()=>{f.findResponsibleContainer(this).get(r)!==this[i]&&(this[i]=t,n.notify(e))};n.subscribe({handleChange:s},"isConnected")}}return t}})},createInterface(t,e){const r="function"==typeof t?t:e,n="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||B,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),o=function(t,e,r){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(e)f.defineProperty(t,e,o,s);else{f.getOrCreateAnnotationParamTypes(t)[r]=o}};return o.$isInterface=!0,o.friendlyName=null==n?"(anonymous)":n,null!=r&&(o.register=function(t,e){return r(new i(t,null!=e?e:o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject:(...t)=>function(e,r,n){if("number"==typeof n){const r=f.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(r[n]=s)}else if(r)f.defineProperty(e,r,t[0]);else{const r=n?f.getOrCreateAnnotationParamTypes(n.value):f.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(r[e]=s)}},transient:t=>(t.register=function(e){return A.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=p)=>(t.register=function(e){return A.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),d=f.createInterface("Container");function g(t){return function(e){const r=function(t,e,n){f.inject(r)(t,e,n)};return r.$isResolver=!0,r.resolve=function(r,n){return t(e,r,n)},r}}f.inject;const p={scoped:!1};v=(t,e,r,n)=>r.getAll(t,n);var v;g(((t,e,r)=>()=>r.get(t))),g(((t,e,r)=>r.has(t,!0)?r.get(t):void 0));function b(t,e,r){f.inject(b)(t,e,r)}b.$isResolver=!0,b.resolve=()=>{};g(((t,e,r)=>{const n=y(t,e),s=new m(t,0,n);return r.registerResolver(t,s),n})),g(((t,e,r)=>y(t,e)));function y(t,e){return e.getFactory(t).construct(e)}class m{constructor(t,e,r){this.key=t,this.strategy=e,this.state=r,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const r=t.getFactory(this.state);if(null===r)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return r.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,r,n;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(n=null===(r=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===r?void 0:r.call(e,t))&&void 0!==n?n:null;default:return null}}}function w(t){return this.get(t)}function C(t,e){return e(t)}class x{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let r;return r=void 0===e?new this.Type(...this.dependencies.map(w,t)):new this.Type(...this.dependencies.map(w,t),...e),null==this.transformers?r:this.transformers.reduce(C,r)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const O={$isResolver:!0,resolve:(t,e)=>e};function S(t){return"function"==typeof t.register}function V(t){return function(t){return S(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const F=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),D="__DI_LOCATE_PARENT__",P=new Map;class _{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(d,O),t instanceof Node&&t.addEventListener(D,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,r,n,s,i;const o=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],M(e))if(S(e))e.register(this,o);else if(void 0!==e.prototype)A.singleton(e,e).register(this);else for(r=Object.keys(e),s=0,i=r.length;s<i;++s)n=e[r[s]],M(n)&&(S(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}registerResolver(t,e){R(t);const r=this.resolvers,n=r.get(t);return null==n?r.set(t,e):n instanceof m&&4===n.strategy?n.state.push(e):r.set(t,new m(t,4,[n,e])),e}registerTransformer(t,e){const r=this.getResolver(t);if(null==r)return!1;if(r.getFactory){const t=r.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(R(t),void 0!==t.resolve)return t;let r,n=this;for(;null!=n;){if(r=n.resolvers.get(t),null!=r)return r;if(null==n.parent){const r=V(t)?this:n;return e?this.jitRegister(t,r):null}n=n.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(R(t),t.$isResolver)return t.resolve(this,this);let e,r=this;for(;null!=r;){if(e=r.resolvers.get(t),null!=e)return e.resolve(r,this);if(null==r.parent){const n=V(t)?this:r;return e=this.jitRegister(t,n),e.resolve(r,this)}r=r.parent}throw new Error(`Unable to resolve key: ${t}`)}getAll(t,e=!1){R(t);const r=this;let s,i=r;if(e){let e=n.emptyArray;for(;null!=i;)s=i.resolvers.get(t),null!=s&&(e=e.concat(k(s,i,r))),i=i.parent;return e}for(;null!=i;){if(s=i.resolvers.get(t),null!=s)return k(s,i,r);if(i=i.parent,null==i)return n.emptyArray}return n.emptyArray}getFactory(t){let e=P.get(t);if(void 0===e){if(j(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);P.set(t,e=new x(t,f.getDependencies(t)))}return e}registerFactory(t,e){P.set(t,e)}createChild(t){return new _(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(F.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(S(t)){const r=t.register(e);if(!(r instanceof Object)||null==r.resolve){const r=e.resolvers.get(t);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return r}if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,e);return e.resolvers.set(t,r),r}}}const N=new WeakMap;function T(t){return function(e,r,n){if(N.has(n))return N.get(n);const s=t(e,r,n);return N.set(n,s),s}}const A=Object.freeze({instance:(t,e)=>new m(t,0,e),singleton:(t,e)=>new m(t,1,e),transient:(t,e)=>new m(t,2,e),callback:(t,e)=>new m(t,3,e),cachedCallback:(t,e)=>new m(t,3,T(e)),aliasTo:(t,e)=>new m(e,5,t)});function R(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function k(t,e,r){if(t instanceof m&&4===t.strategy){const n=t.state;let s=n.length;const i=new Array(s);for(;s--;)i[s]=n[s].resolve(e,r);return i}return[t.resolve(e,r)]}const B="(anonymous)";function M(t){return"object"==typeof t&&null!==t||"function"==typeof t}const j=function(){const t=new WeakMap;let e=!1,r="",n=0;return function(s){return e=t.get(s),void 0===e&&(r=s.toString(),n=r.length,e=n>=29&&n<=100&&125===r.charCodeAt(n-1)&&r.charCodeAt(n-2)<=32&&93===r.charCodeAt(n-3)&&101===r.charCodeAt(n-4)&&100===r.charCodeAt(n-5)&&111===r.charCodeAt(n-6)&&99===r.charCodeAt(n-7)&&32===r.charCodeAt(n-8)&&101===r.charCodeAt(n-9)&&118===r.charCodeAt(n-10)&&105===r.charCodeAt(n-11)&&116===r.charCodeAt(n-12)&&97===r.charCodeAt(n-13)&&110===r.charCodeAt(n-14)&&88===r.charCodeAt(n-15),t.set(s,e)),e}}(),I={};function $(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=I[t];if(void 0!==e)return e;const r=t.length;if(0===r)return I[t]=!1;let n=0;for(let e=0;e<r;++e)if(n=t.charCodeAt(e),0===e&&48===n&&r>1||n<48||n>57)return I[t]=!1;return I[t]=!0}default:return!1}}},726:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__extends:()=>s,__assign:()=>i,__rest:()=>o,__decorate:()=>a,__param:()=>l,__metadata:()=>u,__awaiter:()=>c,__generator:()=>h,__createBinding:()=>f,__exportStar:()=>d,__values:()=>g,__read:()=>p,__spread:()=>v,__spreadArrays:()=>b,__await:()=>y,__asyncGenerator:()=>m,__asyncDelegator:()=>w,__asyncValues:()=>C,__makeTemplateObject:()=>x,__importStar:()=>O,__importDefault:()=>S,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>F});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function s(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},i.apply(this,arguments)};function o(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]])}return r}function a(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function l(t,e){return function(r,n){e(r,n,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,r,n){return new(r||(r=Promise))((function(s,i){function o(t){try{l(n.next(t))}catch(t){i(t)}}function a(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(s=o.trys,(s=s.length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],n=0}finally{r=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function d(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,s,i=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(t){s={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function b(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),s=0;for(e=0;e<r;e++)for(var i=arguments[e],o=0,a=i.length;o<a;o++,s++)n[s]=i[o];return n}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function m(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(t,e||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){s[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||a(t,e)}))})}function a(t,e){try{(r=s[t](e)).value instanceof y?Promise.resolve(r.value.v).then(l,u):c(i[0][2],r)}catch(t){c(i[0][3],t)}var r}function l(t){a("next",t)}function u(t){a("throw",t)}function c(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,s){e[n]=t[n]?function(e){return(r=!r)?{value:y(t[n](e)),done:"return"===n}:s?s(e):e}:s}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=g(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,s){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,s,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function V(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function F(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}}}]);
|
|
3
|
-
//# sourceMappingURL=npm.microsoft.4ae729aafa2e074df718ae9a73d16fa1.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|