@genesislcap/foundation-events 9.0.1-alpha-77995c4.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.
Files changed (51) hide show
  1. package/README.md +89 -0
  2. package/dist/1.0.0.remoteEntry.js +1 -0
  3. package/dist/573.573.6e60854155addcc72467.js +2 -0
  4. package/dist/573.650390e975bc6c8376d3ff8eda7e52f4.js.map +1 -0
  5. package/dist/755.537dff5a23d468b98824bdef43b0cda0.js.map +1 -0
  6. package/dist/755.755.e981769af6aec9db513d.js +2 -0
  7. package/dist/856.3e4045c8104c25006236673f533997ff.js.map +1 -0
  8. package/dist/856.856.72fdef7363783c3bf498.js +3 -0
  9. package/dist/856.856.72fdef7363783c3bf498.js.LICENSE.txt +4 -0
  10. package/dist/dashboard.json +1 -0
  11. package/dist/dts/eventEmitter/eventEmitterDI.d.ts +10 -0
  12. package/dist/dts/eventEmitter/eventEmitterDI.d.ts.map +1 -0
  13. package/dist/dts/eventEmitter/eventEmitterMixin.d.ts +319 -0
  14. package/dist/dts/eventEmitter/eventEmitterMixin.d.ts.map +1 -0
  15. package/dist/dts/eventEmitter/index.d.ts +3 -0
  16. package/dist/dts/eventEmitter/index.d.ts.map +1 -0
  17. package/dist/dts/index.d.ts +3 -0
  18. package/dist/dts/index.d.ts.map +1 -0
  19. package/dist/dts/index.federated.d.ts +1 -0
  20. package/dist/dts/index.federated.d.ts.map +1 -0
  21. package/dist/dts/types.d.ts +25 -0
  22. package/dist/dts/types.d.ts.map +1 -0
  23. package/dist/esm/eventEmitter/eventEmitterDI.js +14 -0
  24. package/dist/esm/eventEmitter/eventEmitterDI.js.map +1 -0
  25. package/dist/esm/eventEmitter/eventEmitterMixin.js +8 -0
  26. package/dist/esm/eventEmitter/eventEmitterMixin.js.map +1 -0
  27. package/dist/esm/eventEmitter/index.js +3 -0
  28. package/dist/esm/eventEmitter/index.js.map +1 -0
  29. package/dist/esm/index.federated.js +2 -0
  30. package/dist/esm/index.federated.js.map +1 -0
  31. package/dist/esm/index.js +3 -0
  32. package/dist/esm/index.js.map +1 -0
  33. package/dist/esm/types.js +22 -0
  34. package/dist/esm/types.js.map +1 -0
  35. package/dist/favicon.ico +0 -0
  36. package/dist/foundation-events.iife.min.js +1 -0
  37. package/dist/foundation-events.js +2728 -0
  38. package/dist/foundation-events.min.js +1 -0
  39. package/dist/foundationEvents.8f5b3182da29e4d9304d1d4c151e3e58.js.map +1 -0
  40. package/dist/index.ejs +23 -0
  41. package/dist/index.html +13 -0
  42. package/dist/info.ejs +13 -0
  43. package/dist/main.50811a618c5e054436cd.js +2 -0
  44. package/dist/main.db9310a7c29193d4ad3bbbeeb42b7729.js.map +1 -0
  45. package/dist/npm.microsoft.127.08b9ac45e34e116d147c.js +1469 -0
  46. package/dist/npm.microsoft.127.08b9ac45e34e116d147c.js.LICENSE.txt +14 -0
  47. package/dist/npm.microsoft.c693b5fe4306901c8d3cdd3b3c894944.js.map +1 -0
  48. package/dist/remoteEntry.js +2 -0
  49. package/dist/serve.json +3 -0
  50. package/license.txt +46 -0
  51. package/package.json +87 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGhG,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AACtF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AACxC,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,SAAS,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAErC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,gBAAgB,CAAC,eAAe,SAAS,cAAc,IAAI;KACpE,CAAC,IAAI,MAAM,eAAe,GAAG,aAAa;CAC5C,CAAC;AACF,MAAM,MAAM,cAAc,CAAC,eAAe,SAAS,cAAc,IAAI;KAClE,CAAC,IAAI,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAC9D,CAAC;AAOF,eAAO,MAAM,eAAe,YAAa,OAAO,EAAE,aAWjD,CAAC;AAEF,eAAO,MAAM,WAAW,6BAA8B,gBAAgB,8BAC9B,CAAC;AAEzC,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,gBAAgB,KAAK,GAAG,CAAC;AAElD,eAAO,MAAM,WAAW,EAAE,WAAwE,CAAC;AAEnG,eAAO,MAAM,wBAAwB,EAAE,WACmB,CAAC;AAc3D,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AAO3F,eAAO,MAAM,kBAAkB,qHAJwC,WAAW,KAAG,OAKlC,CAAC;AAEpD,eAAO,MAAM,mBAAmB,qHAPuC,WAAW,KAAG,OAQrB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { DI } from '@microsoft/fast-foundation';
2
+ import { getBaseEmitArgs } from '../types';
3
+ export class DefaultEventEmitterDI {
4
+ emit(...args) {
5
+ const [origin, ...rest] = args;
6
+ const [type, detail, options] = getBaseEmitArgs(...rest);
7
+ return origin.$emit(type, detail, options);
8
+ }
9
+ }
10
+ export const EventEmitterDI = DI.createInterface((x) => x.singleton(DefaultEventEmitterDI));
11
+ export const registerEmitter = () => {
12
+ return DI.createInterface((x) => x.aliasTo(EventEmitterDI));
13
+ };
14
+ //# sourceMappingURL=eventEmitterDI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventEmitterDI.js","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterDI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAuD,eAAe,EAAE,MAAM,UAAU,CAAC;AAiBhG,MAAM,OAAO,qBAAqB;IAGhC,IAAI,CACF,GAAG,IAEiF;QAEpF,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;QAC/B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,eAAe,CAAiC,CAAC,CAAC,EAAE,EAAE,CACrF,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAA2C,EAAE;IAC1E,OAAO,EAAE,CAAC,eAAe,CAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { getBaseEmitArgs, } from '../types';
2
+ export const EventEmitter = (Base) => class extends Base {
3
+ $emit(...args) {
4
+ const [type, detail, options] = getBaseEmitArgs(...args);
5
+ return super.$emit(type, detail, options);
6
+ }
7
+ };
8
+ //# sourceMappingURL=eventEmitterMixin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventEmitterMixin.js","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,eAAe,GAChB,MAAM,UAAU,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,IAAoC,EACpC,EAAE,CACF,KAAM,SAAQ,IAAI;IAChB,KAAK,CACH,GAAG,IAE6D;QAEhE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './eventEmitterDI';
2
+ export * from './eventEmitterMixin';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eventEmitter/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import('./index');
2
+ //# sourceMappingURL=index.federated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.federated.js","sourceRoot":"","sources":["../../src/index.federated.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,SAAS,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './eventEmitter';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ const isEmitOptions = (candidate) => (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('bubbles')) ||
2
+ (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('cancelable')) ||
3
+ (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('composed'));
4
+ export const getBaseEmitArgs = (...args) => {
5
+ let [type, detailOrOptions, options] = args;
6
+ let detail = detailOrOptions;
7
+ if (isEmitOptions(detailOrOptions)) {
8
+ options = detailOrOptions;
9
+ detail = undefined;
10
+ }
11
+ if (typeof type !== 'string') {
12
+ throw new Error('$emit event types must be typeof string.');
13
+ }
14
+ return [type, detail, options];
15
+ };
16
+ export const customEvent = (ctx) => ctx.event;
17
+ export const targetValue = (ctx) => ctx.event.target.value;
18
+ export const targetFirstSelectedValue = (ctx) => { var _a, _b; return (_b = (_a = ctx.event.target) === null || _a === void 0 ? void 0 : _a.firstSelectedOption) === null || _b === void 0 ? void 0 : _b.value; };
19
+ const createChangeEmitter = (valueGetter) => (type, options) => (x, c) => x.$emit(String(type), valueGetter(c), options);
20
+ export const createInputEmitter = () => createChangeEmitter(targetValue);
21
+ export const createSelectEmitter = () => createChangeEmitter(targetFirstSelectedValue);
22
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAiBA,MAAM,aAAa,GAAG,CAAC,SAA4B,EAAW,EAAE,CAC9D,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,SAAS,CAAC;KACpC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,YAAY,CAAC,CAAA;KACvC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,UAAU,CAAC,CAAA,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,IAAe,EAAY,EAAE;IAC9D,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,IAAI,MAAM,GAAG,eAAe,CAAC;IAC7B,IAAI,aAAa,CAAC,eAAe,CAAC,EAAE;QAClC,OAAO,GAAG,eAAe,CAAC;QAC1B,MAAM,GAAG,SAAS,CAAC;KACpB;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC7D;IACD,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAsB,GAAqB,EAAE,EAAE,CACxE,GAAG,CAAC,KAAkC,CAAC;AAIzC,MAAM,CAAC,MAAM,WAAW,GAAgB,CAAC,GAAqB,EAAE,EAAE,CAAE,GAAG,CAAC,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC;AAEnG,MAAM,CAAC,MAAM,wBAAwB,GAAgB,CAAC,GAAqB,EAAE,EAAE,eAC7E,OAAA,MAAA,MAAC,GAAG,CAAC,KAAK,CAAC,MAAiB,0CAAE,mBAAmB,0CAAE,KAAK,CAAA,EAAA,CAAC;AAe3D,MAAM,mBAAmB,GACvB,CAAyC,WAAwB,EAAE,EAAE,CACrE,CAAkD,IAAO,EAAE,OAAqB,EAAW,EAAE,CAC7F,CAAC,CAAc,EAAE,CAAmB,EAAE,EAAE,CACtC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAA2C,EAAE,CAC7E,mBAAmB,CAAkB,WAAW,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAA2C,EAAE,CAC9E,mBAAmB,CAAkB,wBAAwB,CAAC,CAAC"}
Binary file
@@ -0,0 +1 @@
1
+ !function(e){"use strict";const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},s));const n=t.FAST;if(void 0===n.getById){const e=Object.create(null);Reflect.defineProperty(n,"getById",Object.assign({value(t,s){let n=e[t];return void 0===n&&(n=s?e[t]=s():null),n}},s))}const r=Object.freeze([]);function i(){const e=new WeakMap;return function(t){let s=e.get(t);if(void 0===s){let n=Reflect.getPrototypeOf(t);for(;void 0===s&&null!==n;)s=e.get(n),n=Reflect.getPrototypeOf(n);s=void 0===s?[]:s.slice(0),e.set(t,s)}return s}}const o=t.FAST.getById(1,(()=>{const e=[],s=[];function n(){if(s.length)throw s.shift()}function r(e){try{e.call()}catch(e){s.push(e),setTimeout(n,0)}}function i(){let t=0;for(;t<e.length;)if(r(e[t]),t++,t>1024){for(let s=0,n=e.length-t;s<n;s++)e[s]=e[s+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(s){e.length<1&&t.requestAnimationFrame(i),e.push(s)},process:i})})),l=t.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let a=l;const c=`fast-${Math.random().toString(36).substring(2,8)}`,h=`${c}{`,u=`}${c}`,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(a!==l)throw new Error("The HTML policy can only be set once.");a=e},createHTML:e=>a.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(c),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${c}:`,"")),createInterpolationPlaceholder:e=>`${h}${e}${u}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${c}:${e}--\x3e`,queueUpdate:o.enqueue,processUpdates:o.process,nextUpdate:()=>new Promise(o.enqueue),setAttribute(e,t,s){null==s?e.removeAttribute(t):e.setAttribute(t,s)},setBooleanAttribute(e,t,s){s?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class f{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const s=t.indexOf(e);-1!==s&&t.splice(s,1)}}notify(e){const t=this.spillover,s=this.source;if(void 0===t){const t=this.sub1,n=this.sub2;void 0!==t&&t.handleChange(s,e),void 0!==n&&n.handleChange(s,e)}else for(let n=0,r=t.length;n<r;++n)t[n].handleChange(s,e)}}class g{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const s=this.subscribers[e];void 0!==s&&s.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var s;if(t){let s=this.subscribers[t];void 0===s&&(this.subscribers[t]=s=new f(this.source)),s.subscribe(e)}else this.sourceSubscribers=null!==(s=this.sourceSubscribers)&&void 0!==s?s:new f(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var s;if(t){const s=this.subscribers[t];void 0!==s&&s.unsubscribe(e)}else null===(s=this.sourceSubscribers)||void 0===s||s.unsubscribe(e)}}const p=n.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,s=d.queueUpdate;let n,r=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(e){let s=e.$fastController||t.get(e);return void 0===s&&(Array.isArray(e)?s=r(e):t.set(e,s=new g(e))),s}const l=i();class a{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==n&&n.watch(e,this.name),e[this.field]}setValue(e,t){const s=this.field,n=e[s];if(n!==t){e[s]=t;const r=e[this.callback];"function"==typeof r&&r.call(e,n,t),o(e).notify(this.name)}}}class c extends f{constructor(e,t,s=!1){super(e,t),this.binding=e,this.isVolatileBinding=s,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const s=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const r=this.binding(e,t);return n=s,r}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const s=this.last,r=o(e),i=null===s?this.first:{};if(i.propertySource=e,i.propertyName=t,i.notifier=r,r.subscribe(this,t),null!==s){if(!this.needsRefresh){let t;n=void 0,t=s.propertySource[s.propertyName],n=this,e===t&&(this.needsRefresh=!0)}s.next=i}this.last=i}handleChange(){this.needsQueue&&(this.needsQueue=!1,s(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){r=e},getNotifier:o,track(e,t){void 0!==n&&n.watch(e,t)},trackVolatile(){void 0!==n&&(n.needsRefresh=!0)},notify(e,t){o(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new a(t)),l(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:l,binding(e,t,s=this.isVolatileBinding(e)){return new c(e,t,s)},isVolatileBinding:t=>e.test(t.toString())})})),y=n.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class v{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){y.set(e)}}p.defineProperty(v.prototype,"index"),p.defineProperty(v.prototype,"length");const b=Object.seal(new v);class m{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function w(e){return e.map((e=>e instanceof m?w(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function C(e){return e.map((e=>e instanceof m?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}m.create=(()=>{if(d.supportsAdoptedStyleSheets){const e=new Map;return t=>new S(t,e)}return e=>new O(e)})();class S extends m{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=C(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=w(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let s=t.get(e);return void 0===s&&(s=new CSSStyleSheet,s.replaceSync(e),t.set(e,s)),s}))}return this._styleSheets}addStylesTo(e){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let A=0;class O extends m{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=C(e),this.styleSheets=w(e),this.styleClass="fast-style-class-"+ ++A}addStylesTo(e){const t=this.styleSheets,s=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n<t.length;n++){const r=document.createElement("style");r.innerHTML=t[n],r.className=s,e.append(r)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let s=0,n=t.length;s<n;++s)e.removeChild(t[s]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const T=Object.freeze({locate:i()}),R={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e};class ${constructor(e,t,s=t.toLowerCase(),n="reflect",r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=s,this.mode=n,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===n&&void 0===r&&(this.converter=R)}setValue(e,t){const s=e[this.fieldName],n=this.converter;void 0!==n&&(t=n.fromView(t)),s!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](s,t),e.$fastController.notify(this.name))}getValue(e){return p.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,s=this.guards;s.has(e)||"fromView"===t||d.queueUpdate((()=>{s.add(e);const n=e[this.fieldName];switch(t){case"reflect":const t=this.converter;d.setAttribute(e,this.attribute,void 0!==t?t.toView(n):n);break;case"boolean":d.setBooleanAttribute(e,this.attribute,n)}s.delete(e)}))}static collect(e,...t){const s=[];t.push(T.locate(e));for(let n=0,r=t.length;n<r;++n){const r=t[n];if(void 0!==r)for(let t=0,n=r.length;t<n;++t){const n=r[t];"string"==typeof n?s.push(new $(e,n)):s.push(new $(e,n.property,n.attribute,n.mode,n.converter))}}return s}}const k={mode:"open"},E={},j=n.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class _{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const s=$.collect(e,t.attributes),n=new Array(s.length),r={},i={};for(let e=0,t=s.length;e<t;++e){const t=s[e];n[e]=t.attribute,r[t.name]=t,i[t.attribute]=t}this.attributes=s,this.observedAttributes=n,this.propertyLookup=r,this.attributeLookup=i,this.shadowOptions=void 0===t.shadowOptions?k:null===t.shadowOptions?void 0:Object.assign(Object.assign({},k),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?E:Object.assign(Object.assign({},E),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?m.create(t.styles):t.styles instanceof m?t.styles:m.create([t.styles])}get isDefined(){return!!j.getByType(this.type)}define(e=customElements){const t=this.type;if(j.register(this)){const e=this.attributes,s=t.prototype;for(let t=0,n=e.length;t<n;++t)p.defineProperty(s,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}_.forType=j.getByType;const I=new WeakMap,P={bubbles:!0,composed:!0,cancelable:!0};function M(e){return e.shadowRoot||I.get(e)||null}class x extends g{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const s=t.shadowOptions;if(void 0!==s){const t=e.attachShadow(s);"closed"===s.mode&&I.set(e,t)}const n=p.getAccessors(e);if(n.length>0){const t=this.boundObservables=Object.create(null);for(let s=0,r=n.length;s<r;++s){const r=n[s].name,i=e[r];void 0!==i&&(delete e[r],t[r]=i)}}}get isConnected(){return p.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,p.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=M(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const s=e.behaviors;e.addStylesTo(t),null!==s&&this.addBehaviors(s)}}removeStyles(e){const t=M(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const s=e.behaviors;e.removeStylesFrom(t),null!==s&&this.removeBehaviors(s)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),s=e.length,n=[];for(let r=0;r<s;++r){const s=e[r];t.has(s)?t.set(s,t.get(s)+1):(t.set(s,1),n.push(s))}if(this._isConnected){const e=this.element;for(let t=0;t<n.length;++t)n[t].bind(e,b)}}removeBehaviors(e,t=!1){const s=this.behaviors;if(null===s)return;const n=e.length,r=[];for(let i=0;i<n;++i){const n=e[i];if(s.has(n)){const e=s.get(n)-1;0===e||t?s.delete(n)&&r.push(n):s.set(n,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<r.length;++t)r[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,b);const t=this.behaviors;if(null!==t)for(const[s]of t)s.bind(e,b);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[s]of t)s.unbind(e)}}onAttributeChangedCallback(e,t,s){const n=this.definition.attributeLookup[e];void 0!==n&&n.onAttributeChangedCallback(this.element,s)}emit(e,t,s){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},P),s)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const s=Object.keys(t);for(let n=0,r=s.length;n<r;++n){const r=s[n];e[r]=t[r]}this.boundObservables=null}const s=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():s.template&&(this._template=s.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():s.styles&&(this._styles=s.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,s=M(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(s),e&&(this.view=e.render(t,s,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const s=_.forType(e.constructor);if(void 0===s)throw new Error("Missing FASTElement definition.");return e.$fastController=new x(e,s)}}function F(e){return class extends e{constructor(){super(),x.forCustomElement(this)}$emit(e,t,s){return this.$fastController.emit(e,t,s)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,s){this.$fastController.onAttributeChangedCallback(e,t,s)}}}const N=Object.assign(F(HTMLElement),{from:e=>F(e),define:(e,t)=>new _(e,t).define().type}),B=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(s){Reflect.defineMetadata(e,t,s)}},Reflect.defineMetadata=function(e,t,s){let n=B.get(s);void 0===n&&B.set(s,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const s=B.get(t);if(void 0!==s)return s.get(e)});class D{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,le(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:s,key:n}=this;return this.container=this.key=void 0,s.registerResolver(n,new G(n,e,t))}}function z(e){const t=e.slice(),s=Object.keys(e),n=s.length;let r;for(let i=0;i<n;++i)r=s[i],pe(r)||(t[r]=e[r]);return t}const L=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new G(e,1,e),transient:e=>new G(e,2,e)}),V=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:L.singleton})}),q=new Map;function U(e){return t=>Reflect.getOwnMetadata(e,t)}let W=null;const H=Object.freeze({createContainer:e=>new ie(null,Object.assign({},V.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:H.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(ne,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||H.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new ie(e,Object.assign({},V.default,t,{parentLocator:H.findParentContainer})):W||(W=new ie(null,Object.assign({},V.default,t,{parentLocator:()=>null}))),getDesignParamtypes:U("design:paramtypes"),getAnnotationParamtypes:U("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=q.get(e);if(void 0===t){const s=e.inject;if(void 0===s){const s=H.getDesignParamtypes(e),n=H.getAnnotationParamtypes(e);if(void 0===s)if(void 0===n){const s=Object.getPrototypeOf(e);t="function"==typeof s&&s!==Function.prototype?z(H.getDependencies(s)):[]}else t=z(n);else if(void 0===n)t=z(s);else{t=z(s);let e,r=n.length;for(let s=0;s<r;++s)e=n[s],void 0!==e&&(t[s]=e);const i=Object.keys(n);let o;r=i.length;for(let e=0;e<r;++e)o=i[e],pe(o)||(t[o]=n[o])}}else t=z(s);q.set(e,t)}return t},defineProperty(e,t,s,n=!1){const r=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[r];if(void 0===e){const i=this instanceof HTMLElement?H.findResponsibleContainer(this):H.getOrCreateDOMContainer();if(e=i.get(s),this[r]=e,n&&this instanceof N){const n=this.$fastController,i=()=>{H.findResponsibleContainer(this).get(s)!==this[r]&&(this[r]=e,n.notify(t))};n.subscribe({handleChange:i},"isConnected")}}return e}})},createInterface(e,t){const s="function"==typeof e?e:t,n="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||ue,r="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),i=function(e,t,s){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(t)H.defineProperty(e,t,i,r);else{H.getOrCreateAnnotationParamTypes(e)[s]=i}};return i.$isInterface=!0,i.friendlyName=null==n?"(anonymous)":n,null!=s&&(i.register=function(e,t){return s(new D(e,null!=t?t:i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject:(...e)=>function(t,s,n){if("number"==typeof n){const s=H.getOrCreateAnnotationParamTypes(t),r=e[0];void 0!==r&&(s[n]=r)}else if(s)H.defineProperty(t,s,e[0]);else{const s=n?H.getOrCreateAnnotationParamTypes(n.value):H.getOrCreateAnnotationParamTypes(t);let r;for(let t=0;t<e.length;++t)r=e[t],void 0!==r&&(s[t]=r)}},transient:e=>(e.register=function(t){return ae.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=K)=>(e.register=function(t){return ae.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),Q=H.createInterface("Container");H.inject;const K={scoped:!1};class G{constructor(e,t,s){this.key=e,this.strategy=t,this.state=s,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){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=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const s=e.getFactory(this.state);if(null===s)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return s.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,s,n;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(n=null===(s=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===s?void 0:s.call(t,e))&&void 0!==n?n:null;default:return null}}}function J(e){return this.get(e)}function X(e,t){return t(e)}class Y{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let s;return s=void 0===t?new this.Type(...this.dependencies.map(J,e)):new this.Type(...this.dependencies.map(J,e),...t),null==this.transformers?s:this.transformers.reduce(X,s)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const Z={$isResolver:!0,resolve:(e,t)=>t};function ee(e){return"function"==typeof e.register}function te(e){return function(e){return ee(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const se=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"]),ne="__DI_LOCATE_PARENT__",re=new Map;class ie{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Q,Z),e instanceof Node&&e.addEventListener(ne,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.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(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,s,n,r,i;const o=this.context;for(let l=0,a=e.length;l<a;++l)if(t=e[l],de(t))if(ee(t))t.register(this,o);else if(void 0!==t.prototype)ae.singleton(t,t).register(this);else for(s=Object.keys(t),r=0,i=s.length;r<i;++r)n=t[s[r]],de(n)&&(ee(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}registerResolver(e,t){ce(e);const s=this.resolvers,n=s.get(e);return null==n?s.set(e,t):n instanceof G&&4===n.strategy?n.state.push(t):s.set(e,new G(e,4,[n,t])),t}registerTransformer(e,t){const s=this.getResolver(e);if(null==s)return!1;if(s.getFactory){const e=s.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(ce(e),void 0!==e.resolve)return e;let s,n=this;for(;null!=n;){if(s=n.resolvers.get(e),null!=s)return s;if(null==n.parent){const s=te(e)?this:n;return t?this.jitRegister(e,s):null}n=n.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(ce(e),e.$isResolver)return e.resolve(this,this);let t,s=this;for(;null!=s;){if(t=s.resolvers.get(e),null!=t)return t.resolve(s,this);if(null==s.parent){const n=te(e)?this:s;return t=this.jitRegister(e,n),t.resolve(s,this)}s=s.parent}throw new Error(`Unable to resolve key: ${e}`)}getAll(e,t=!1){ce(e);const s=this;let n,i=s;if(t){let t=r;for(;null!=i;)n=i.resolvers.get(e),null!=n&&(t=t.concat(he(n,i,s))),i=i.parent;return t}for(;null!=i;){if(n=i.resolvers.get(e),null!=n)return he(n,i,s);if(i=i.parent,null==i)return r}return r}getFactory(e){let t=re.get(e);if(void 0===t){if(fe(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);re.set(e,t=new Y(e,H.getDependencies(e)))}return t}registerFactory(e,t){re.set(e,t)}createChild(e){return new ie(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(se.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(ee(e)){const s=e.register(t);if(!(s instanceof Object)||null==s.resolve){const s=t.resolvers.get(e);if(null!=s)return s;throw new Error("A valid resolver was not returned from the static register method")}return s}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const s=this.config.defaultResolver(e,t);return t.resolvers.set(e,s),s}}}const oe=new WeakMap;function le(e){return function(t,s,n){if(oe.has(n))return oe.get(n);const r=e(t,s,n);return oe.set(n,r),r}}const ae=Object.freeze({instance:(e,t)=>new G(e,0,t),singleton:(e,t)=>new G(e,1,t),transient:(e,t)=>new G(e,2,t),callback:(e,t)=>new G(e,3,t),cachedCallback:(e,t)=>new G(e,3,le(t)),aliasTo:(e,t)=>new G(t,5,e)});function ce(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function he(e,t,s){if(e instanceof G&&4===e.strategy){const n=e.state;let r=n.length;const i=new Array(r);for(;r--;)i[r]=n[r].resolve(t,s);return i}return[e.resolve(t,s)]}const ue="(anonymous)";function de(e){return"object"==typeof e&&null!==e||"function"==typeof e}const fe=function(){const e=new WeakMap;let t=!1,s="",n=0;return function(r){return t=e.get(r),void 0===t&&(s=r.toString(),n=s.length,t=n>=29&&n<=100&&125===s.charCodeAt(n-1)&&s.charCodeAt(n-2)<=32&&93===s.charCodeAt(n-3)&&101===s.charCodeAt(n-4)&&100===s.charCodeAt(n-5)&&111===s.charCodeAt(n-6)&&99===s.charCodeAt(n-7)&&32===s.charCodeAt(n-8)&&101===s.charCodeAt(n-9)&&118===s.charCodeAt(n-10)&&105===s.charCodeAt(n-11)&&116===s.charCodeAt(n-12)&&97===s.charCodeAt(n-13)&&110===s.charCodeAt(n-14)&&88===s.charCodeAt(n-15),e.set(r,t)),t}}(),ge={};function pe(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=ge[e];if(void 0!==t)return t;const s=e.length;if(0===s)return ge[e]=!1;let n=0;for(let t=0;t<s;++t)if(n=e.charCodeAt(t),0===t&&48===n&&s>1||n<48||n>57)return ge[e]=!1;return ge[e]=!0}default:return!1}}const ye=(...e)=>{let[t,s,n]=e,r=s;var i;if(((null==(i=s)?void 0:i.hasOwnProperty("bubbles"))||(null==i?void 0:i.hasOwnProperty("cancelable"))||(null==i?void 0:i.hasOwnProperty("composed")))&&(n=s,r=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,r,n]},ve=e=>e.event.target.value,be=e=>{var t,s;return null===(s=null===(t=e.event.target)||void 0===t?void 0:t.firstSelectedOption)||void 0===s?void 0:s.value},me=e=>(t,s)=>(n,r)=>n.$emit(String(t),e(r),s);class we{emit(...e){const[t,...s]=e,[n,r,i]=ye(...s);return t.$emit(n,r,i)}}const Ce=H.createInterface((e=>e.singleton(we)));e.DefaultEventEmitterDI=we,e.EventEmitter=e=>class extends e{$emit(...e){const[t,s,n]=ye(...e);return super.$emit(t,s,n)}},e.EventEmitterDI=Ce,e.createInputEmitter=()=>me(ve),e.createSelectEmitter=()=>me(be),e.customEvent=e=>e.event,e.getBaseEmitArgs=ye,e.registerEmitter=()=>H.createInterface((e=>e.aliasTo(Ce))),e.targetFirstSelectedValue=be,e.targetValue=ve,Object.defineProperty(e,"__esModule",{value:!0})}({});