@vonage/vivid 5.3.0 → 5.5.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/accordion-item/definition.js +1 -1
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +2 -2
- package/badge/definition.js +1 -1
- package/banner/definition.js +1 -1
- package/bundled/base-color-picker.cjs +18 -13
- package/bundled/base-color-picker.js +98 -81
- package/bundled/calendar-picker.template.cjs +7 -7
- package/bundled/calendar-picker.template.js +102 -102
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/definition10.cjs +1 -1
- package/bundled/definition10.js +2 -2
- package/bundled/definition11.cjs +12 -19
- package/bundled/definition11.js +87 -66
- package/bundled/definition12.cjs +19 -10
- package/bundled/definition12.js +217 -36
- package/bundled/definition13.cjs +10 -1
- package/bundled/definition13.js +38 -14
- package/bundled/definition14.cjs +1 -5
- package/bundled/definition14.js +15 -24
- package/bundled/definition15.cjs +5 -30
- package/bundled/definition15.js +22 -73
- package/bundled/definition16.cjs +30 -19
- package/bundled/definition16.js +74 -97
- package/bundled/definition17.cjs +19 -13
- package/bundled/definition17.js +83 -117
- package/bundled/definition18.cjs +13 -12
- package/bundled/definition18.js +114 -71
- package/bundled/definition19.cjs +26 -27
- package/bundled/definition19.js +171 -180
- package/bundled/definition2.cjs +9 -9
- package/bundled/definition2.js +84 -129
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -1
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +19 -19
- package/bundled/definition9.cjs +5 -5
- package/bundled/definition9.js +394 -392
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +82 -102
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +48 -31
- package/bundled/mixins.cjs +1 -1
- package/bundled/mixins.js +1 -1
- package/bundled/picker-field.template.cjs +14 -14
- package/bundled/picker-field.template.js +35 -56
- package/bundled/time-selection-picker.template.cjs +12 -12
- package/bundled/time-selection-picker.template.js +13 -12
- package/bundled/trapped-focus.cjs +1 -0
- package/bundled/trapped-focus.js +26 -0
- package/bundled/vivid-element.cjs +5 -1
- package/bundled/vivid-element.js +401 -358
- package/calendar/index.cjs +13 -13
- package/calendar/index.js +171 -143
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/color-picker/definition.cjs +209 -113
- package/color-picker/definition.js +209 -113
- package/color-picker/index.cjs +104 -75
- package/color-picker/index.js +412 -326
- package/combobox/definition.cjs +7 -27
- package/combobox/definition.js +8 -28
- package/combobox/index.cjs +6 -6
- package/combobox/index.js +57 -71
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +354 -2
- package/data-grid/index.cjs +1 -1
- package/data-grid/index.js +1 -1
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +139 -0
- package/dial-pad/definition.js +139 -0
- package/dial-pad/index.cjs +27 -20
- package/dial-pad/index.js +177 -100
- package/dialog/definition.cjs +2 -2
- package/dialog/definition.js +2 -2
- package/dialog/index.cjs +7 -7
- package/dialog/index.js +6 -6
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/fab/definition.js +1 -1
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/icon/definition.cjs +56 -22
- package/icon/definition.js +56 -22
- package/index.cjs +3 -4
- package/index.js +2 -3
- package/lib/accordion/accordion.d.ts +1 -1
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/audio-player/audio-player.d.ts +1 -1
- package/lib/color-picker/color-picker.d.ts +390 -12
- package/lib/color-picker/locale.d.ts +4 -0
- package/lib/combobox/combobox.d.ts +1 -0
- package/lib/combobox/combobox.options.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +38 -38
- package/lib/date-range-picker/date-range-picker.d.ts +20 -20
- package/lib/date-time-picker/date-time-picker.d.ts +40 -40
- package/lib/dial-pad/dial-pad.d.ts +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -0
- package/lib/menu-item/menu-item-role.d.ts +1 -1
- package/lib/popup/popup.d.ts +1 -1
- package/lib/searchable-select/locale.d.ts +4 -0
- package/lib/searchable-select/searchable-select.d.ts +3 -0
- package/lib/select/select.d.ts +3 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +2 -2
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -1
- package/lib/time-picker/time-picker.d.ts +20 -20
- package/locales/de-DE.cjs +20 -3
- package/locales/de-DE.js +20 -3
- package/locales/en-GB.cjs +21 -4
- package/locales/en-GB.js +21 -4
- package/locales/en-US.cjs +21 -4
- package/locales/en-US.js +21 -4
- package/locales/ja-JP.cjs +20 -3
- package/locales/ja-JP.js +20 -3
- package/locales/zh-CN.cjs +19 -2
- package/locales/zh-CN.js +19 -2
- package/menu/definition.cjs +4 -4
- package/menu/definition.js +4 -4
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +3 -3
- package/option/definition.cjs +6 -77
- package/option/definition.js +3 -78
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +31 -5
- package/popup/definition.cjs +2 -2
- package/popup/definition.js +2 -2
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +1 -1
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +2 -3
- package/rich-text-editor/definition.js +1 -2
- package/rich-text-editor/index.cjs +27 -27
- package/rich-text-editor/index.js +1209 -1199
- package/searchable-select/definition.cjs +103 -11
- package/searchable-select/definition.js +103 -11
- package/searchable-select/index.cjs +81 -69
- package/searchable-select/index.js +359 -273
- package/select/definition.cjs +30 -44
- package/select/definition.js +30 -44
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +2 -2
- package/shared/aria/aria-mixin.d.ts +1 -1
- package/shared/color-picker/base-color-picker.d.ts +2 -1
- package/shared/foundation/listbox/listbox.d.ts +4 -0
- package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
- package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
- package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
- package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
- package/simple-color-picker/definition.cjs +9 -7
- package/simple-color-picker/definition.js +9 -7
- package/simple-color-picker/index.cjs +6 -6
- package/simple-color-picker/index.js +41 -39
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/split-button/definition.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/tab/definition.js +1 -1
- package/tag/definition.cjs +34 -14
- package/tag/definition.js +35 -15
- package/tag/index.cjs +25 -12
- package/tag/index.js +64 -47
- package/tag-group/definition.cjs +1 -2
- package/tag-group/definition.js +1 -2
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +11 -12
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +2 -2
- package/text-field/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/toggletip/definition.cjs +1 -1
- package/toggletip/definition.js +1 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/definition.cjs +3 -3
- package/tooltip/definition.js +3 -3
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/base-color-picker.cjs +36 -18
- package/unbundled/base-color-picker.js +36 -18
- package/unbundled/calendar-picker.template.cjs +2 -2
- package/unbundled/calendar-picker.template.js +2 -2
- package/unbundled/definition.js +1 -1
- package/unbundled/definition2.js +1 -1
- package/unbundled/definition3.cjs +222 -141
- package/unbundled/definition3.js +220 -139
- package/unbundled/definition4.cjs +145 -235
- package/unbundled/definition4.js +143 -233
- package/unbundled/definition5.cjs +269 -27
- package/unbundled/definition5.js +267 -26
- package/unbundled/definition6.cjs +56 -0
- package/unbundled/definition6.js +52 -0
- package/unbundled/listbox.cjs +41 -63
- package/unbundled/listbox.js +39 -61
- package/unbundled/picker-field.template.cjs +3 -36
- package/unbundled/picker-field.template.js +3 -35
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +2 -1
- package/unbundled/time-selection-picker.template.js +2 -1
- package/unbundled/trapped-focus.cjs +37 -0
- package/unbundled/trapped-focus.js +34 -0
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +56 -16
- package/video-player/definition.js +56 -16
- package/video-player/index.cjs +36 -36
- package/video-player/index.js +2461 -2445
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +285 -38
- package/bundled/_has.cjs +0 -1
- package/bundled/_has.js +0 -34
- package/bundled/option.cjs +0 -1
- package/bundled/option.js +0 -158
- package/unbundled/option.cjs +0 -217
- package/unbundled/option.js +0 -214
|
@@ -1 +1,5 @@
|
|
|
1
|
-
"use strict";let I;const mt="fast-kernel";try{if(document.currentScript)I=document.currentScript.getAttribute(mt);else{const i=document.getElementsByTagName("script");I=i[i.length-1].getAttribute(mt)}}catch{I="isolate"}let x;switch(I){case"share":x=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":x=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const i=`-${Math.random().toString(36).substring(2,8)}`;x=Object.freeze({updateQueue:`1.2${i}`,observable:`2.2${i}`,contextEvent:`3.2${i}`,elementRegistry:`4.2${i}`});break}const E=i=>typeof i=="function",N=i=>typeof i=="string",qt=()=>{};var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ye(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ve(i){if(i.__esModule)return i;var t=i.default;if(typeof t=="function"){var e=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var n=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return i[s]}})}),e}(function(){if(!(typeof globalThis<"u"))if(typeof P<"u")P.globalThis=P;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Qt={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Qt));const g=globalThis.FAST;if(g.getById===void 0){const i=Object.create(null);Reflect.defineProperty(g,"getById",Object.assign({value(t,e){let s=i[t];return s===void 0&&(s=e?i[t]=e():null),s}},Qt))}g.error===void 0&&Object.assign(g,{warn(){},error(i){return new Error(`Error ${i}`)},addMessages(){}});const me=Object.freeze([]);function Gt(){const i=new Map;return Object.freeze({register(t){return i.has(t.type)?!1:(i.set(t.type,t),!0)},getByType(t){return i.get(t)},getForInstance(t){if(t!=null)return i.get(t.constructor)}})}function Jt(){const i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=i.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}function M(i){i.prototype.toJSON=qt}const b=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),wt=i=>i,we=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:wt}):{createHTML:wt};let D=Object.freeze({createHTML(i){return we.createHTML(i)},protect(i,t,e,s){return s}});const Se=D,S=Object.freeze({get policy(){return D},setPolicy(i){if(D!==Se)throw g.error(1201);D=i},setAttribute(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e)},setBooleanAttribute(i,t,e){e?i.setAttribute(t,""):i.removeAttribute(t)}}),dt=g.getById(x.updateQueue,()=>{const i=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function n(){if(t.length)throw t.shift()}function r(d){try{d.call()}catch(l){if(s)t.push(l),setTimeout(n,0);else throw i.length=0,l}}function a(){let l=0;for(;l<i.length;)if(r(i[l]),l++,l>1024){for(let o=0,h=i.length-l;o<h;o++)i[o]=i[o+l];i.length-=l,l=0}i.length=0}function c(d){i.push(d),i.length<2&&(s?e(a):a())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:a,setMode:d=>s=d})});class W{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const n=this.sub1,r=this.sub2;n!==void 0&&n.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let n=0,r=e.length;n<r;++n)e[n].handleChange(s,t)}}class Kt{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,n;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new W(this.subject):r=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new W(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,n;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(t)}}const Y=Object.freeze({unknown:void 0,coupled:1}),p=g.getById(x.observable,()=>{const i=dt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,n=l=>{throw g.error(1101)};function r(l){var o;let h=(o=l.$fastController)!==null&&o!==void 0?o:e.get(l);return h===void 0&&(Array.isArray(l)?h=n(l):e.set(l,h=new Kt(l))),h}const a=Jt();class c{constructor(o){this.name=o,this.field=`_${o}`,this.callback=`${o}Changed`}getValue(o){return s!==void 0&&s.watch(o,this.name),o[this.field]}setValue(o,h){const u=this.field,y=o[u];if(y!==h){o[u]=h;const $=o[this.callback];E($)&&$.call(o,y,h),r(o).notify(this.name)}}}class d extends W{constructor(o,h,u=!1){super(o,h),this.expression=o,this.isVolatileBinding=u,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(o){this.isAsync=this.needsQueue=o}bind(o){this.controller=o;const h=this.observe(o.source,o.context);return!o.isBound&&this.requiresUnbind(o)&&o.onUnbind(this),h}requiresUnbind(o){return o.sourceLifetime!==Y.coupled||this.first!==this.last||this.first.propertySource!==o.source}unbind(o){this.dispose()}observe(o,h){this.needsRefresh&&this.last!==null&&this.dispose();const u=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let y;try{y=this.expression(o,h)}finally{s=u}return y}disconnect(){this.dispose()}dispose(){if(this.last!==null){let o=this.first;for(;o!==void 0;)o.notifier.unsubscribe(this,o.propertyName),o=o.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(o,h){const u=this.last,y=r(o),$=u===null?this.first:{};if($.propertySource=o,$.propertyName=h,$.notifier=y,y.subscribe(this,h),u!==null){if(!this.needsRefresh){let vt;s=void 0,vt=u.propertySource[u.propertyName],s=this,o===vt&&(this.needsRefresh=!0)}u.next=$}this.last=$}handleChange(){this.needsQueue?(this.needsQueue=!1,i(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let o=this.first;for(;o!==void 0;)yield o,o=o.next}}return M(d),Object.freeze({setArrayObserverFactory(l){n=l},getNotifier:r,track(l,o){s&&s.watch(l,o)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(l,o){r(l).notify(o)},defineProperty(l,o){N(o)&&(o=new c(o)),a(l).push(o),Reflect.defineProperty(l,o.name,{enumerable:!0,get(){return o.getValue(this)},set(h){o.setValue(this,h)}})},getAccessors:a,binding(l,o,h=this.isVolatileBinding(l)){return new d(l,o,h)},isVolatileBinding(l){return t.test(l.toString())}})});function Ce(i,t){p.defineProperty(i,t)}function Te(i,t,e){return Object.assign({},e,{get(){return p.trackVolatile(),e.get.apply(this)}})}const St=g.getById(x.contextEvent,()=>{let i=null;return{get(){return i},set(t){i=t}}}),A=Object.freeze({default:{index:0,length:0,get event(){return A.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return St.get()},setEvent(i){St.set(i)}});class Z{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class $e extends Z{createObserver(t){return p.binding(this.evaluate,t,this.isVolatile)}}function ht(i,t,e=p.isVolatileBinding(i)){return new $e(i,t,e)}class Xt extends Z{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}M(Xt);function ut(i,t){return new Xt(i,t)}let Ct;function Yt(i){return i.map(t=>t instanceof v?Yt(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class v{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof v?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ct),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Yt(this.styles)),this}static setDefaultStrategy(t){Ct=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new v(t):t instanceof v?t:new v([t])}}v.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Tt=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$t=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Nt=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,kt=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Bt=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,xt=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function At(i){return i&&i.nodeType===Node.COMMENT_NODE}const m=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(i,t){return`fe-b$$start$$${i}$$${t}$$fe-b`},contentBindingEndMarker(i,t){return`fe-b$$end$$${i}$$${t}$$fe-b`},repeatStartMarker(i){return`fe-repeat$$start$$${i}$$fe-repeat`},repeatEndMarker(i){return`fe-repeat$$end$$${i}$$fe-repeat`},isContentBindingStartMarker(i){return Tt.test(i)},isContentBindingEndMarker(i){return $t.test(i)},isRepeatViewStartMarker(i){return Nt.test(i)},isRepeatViewEndMarker(i){return kt.test(i)},isElementBoundaryStartMarker(i){return At(i)&&Bt.test(i.data.trim())},isElementBoundaryEndMarker(i){return At(i)&&xt.test(i.data)},parseAttributeBinding(i){const t=i.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseEnumeratedAttributeBinding(i){const t=[],e=this.attributeMarkerName.length+1,s=`${this.attributeMarkerName}-`;for(const n of i.getAttributeNames())if(n.startsWith(s)){const r=Number(n.slice(e));if(!Number.isNaN(r))t.push(r);else throw new Error(`Invalid attribute marker name: ${n}. Expected format is ${s}<number>.`)}return t.length===0?null:t},parseContentBindingStartMarker(i){return Ot(Tt,i)},parseContentBindingEndMarker(i){return Ot($t,i)},parseRepeatStartMarker(i){return Et(Nt,i)},parseRepeatEndMarker(i){return Et(kt,i)},parseElementBoundaryStartMarker(i){return Mt(Bt,i.trim())},parseElementBoundaryEndMarker(i){return Mt(xt,i)}});function Et(i,t){const e=i.exec(t);return e===null?e:parseInt(e[1])}function Mt(i,t){const e=i.exec(t);return e===null?e:e[1]}function Ot(i,t){const e=i.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const q=Symbol.for("fe-hydration");function L(i){return i[q]===q}const ft=`fast-${Math.random().toString(36).substring(2,8)}`,z=`${ft}{`,_=`}${ft}`,Ne=_.length;let ke=0;const j=()=>`${ft}-${++ke}`,pt=Object.freeze({interpolation:i=>`${z}${i}${_}`,attribute:i=>`${j()}="${z}${i}${_}"`,comment:i=>`<!--${z}${i}${_}-->`}),tt=Object.freeze({parse(i,t){const e=i.split(z);if(e.length===1)return null;const s=[];for(let n=0,r=e.length;n<r;++n){const a=e[n],c=a.indexOf(_);let d;if(c===-1)d=a;else{const l=a.substring(0,c);s.push(t[l]),d=a.substring(c+Ne)}d!==""&&s.push(d)}return s}}),st=Gt(),C=Object.freeze({getForInstance:st.getForInstance,getByType:st.getByType,define(i,t){return t=t||{},t.type=i,st.register(t),i},assignAspect(i,t){if(!t){i.aspectType=b.content;return}switch(i.sourceAspect=t,t[0]){case":":i.targetAspect=t.substring(1),i.aspectType=i.targetAspect==="classList"?b.tokenList:b.property;break;case"?":i.targetAspect=t.substring(1),i.aspectType=b.booleanAttribute;break;case"@":i.targetAspect=t.substring(1),i.aspectType=b.event;break;default:i.targetAspect=t,i.aspectType=b.attribute;break}}});class Zt{constructor(t){this.options=t}createHTML(t){return pt.attribute(t(this))}createBehavior(){return this}}M(Zt);class te extends Error{constructor(t,e,s){super(t),this.factories=e,this.node=s}}function bt(i){return i.nodeType===Node.COMMENT_NODE}function ee(i){return i.nodeType===Node.TEXT_NODE}function ie(i,t){const e=document.createRange();return e.setStart(i,0),e.setEnd(t,bt(t)||ee(t)?t.data.length:t.childNodes.length),e}function Be(i){return i instanceof DocumentFragment&&"mode"in i}function xe(i,t,e){const s=ie(i,t),n=s.commonAncestorContainer,r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return s.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),a={},c={};let d=r.currentNode=i;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{Ae(d,e,a);break}case Node.COMMENT_NODE:{Ee(d,r,e,a,c);break}}d=r.nextNode()}return s.detach(),{targets:a,boundaries:c}}function Ae(i,t,e){var s;const n=(s=m.parseAttributeBinding(i))!==null&&s!==void 0?s:m.parseEnumeratedAttributeBinding(i);if(n!==null){for(const r of n){if(!t[r])throw new te(`HydrationView was unable to successfully target factory on ${i.nodeName} inside ${i.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,i);Q(t[r],i,e)}i.removeAttribute(m.attributeMarkerName)}}function Ee(i,t,e,s,n){if(m.isElementBoundaryStartMarker(i)){Me(i,t);return}if(m.isContentBindingStartMarker(i.data)){const r=m.parseContentBindingStartMarker(i.data);if(r===null)return;const[a,c]=r,d=e[a],l=[];let o=t.nextSibling();i.data="";const h=o;for(;o!==null;){if(bt(o)){const u=m.parseContentBindingEndMarker(o.data);if(u&&u[1]===c)break}l.push(o),o=t.nextSibling()}if(o===null){const u=i.getRootNode();throw new Error(`Error hydrating Comment node inside "${Be(u)?u.host.nodeName:u.nodeName}".`)}if(o.data="",l.length===1&&ee(l[0]))Q(d,l[0],s);else{o!==h&&o.previousSibling!==null&&(n[d.targetNodeId]={first:h,last:o.previousSibling});const u=o.parentNode.insertBefore(document.createTextNode(""),o);Q(d,u,s)}}}function Me(i,t){const e=m.parseElementBoundaryStartMarker(i.data);let s=t.nextSibling();for(;s!==null;){if(bt(s)){const n=m.parseElementBoundaryEndMarker(s.data);if(n&&n===e)break}s=t.nextSibling()}}function Q(i,t,e){if(i.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[i.targetNodeId]=t}var se;function lt(i,t){const e=i.parentNode;let s=i,n;for(;s!==t;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(s),s=n}e.removeChild(t)}class ne{constructor(){this.index=0,this.length=0}get event(){return A.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class H extends ne{constructor(t,e,s){super(),this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Y.unknown,this.context=this,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 s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,n;for(;s!==e;)n=s.nextSibling,t.appendChild(s),s=n;t.appendChild(e)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let r=0,a=n.length;r<a;++r){const c=n[r].createBehavior();c.bind(this),s[r]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,r=s.length;n<r;++n)s[n].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){lt(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}M(H);p.defineProperty(H.prototype,"index");p.defineProperty(H.prototype,"length");const k={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Oe extends Error{constructor(t,e,s,n){super(t),this.factory=e,this.fragment=s,this.templateString=n}}class _e extends ne{constructor(t,e,s,n){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=s,this.hostBindingTarget=n,this[se]=q,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Y.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=k.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=s.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let s=this.firstChild,n;for(;s!==e;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(s),s=n}t.appendChild(e)}bind(t,e=this){var s,n;if(this.hydrationStage!==k.hydrated&&(this._hydrationStage=k.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:c,boundaries:d}=xe(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=d}catch(c){if(c instanceof te){let d=this.sourceTemplate.html;typeof d!="string"&&(d=d.innerHTML),c.templateString=d}throw c}this.behaviors=r=new Array(this.factories.length);const a=this.factories;for(let c=0,d=a.length;c<d;++c){const l=a[c];if(l.targetNodeId==="h"&&this.hostBindingTarget&&Q(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const o=l.createBehavior();o.bind(this),r[c]=o}else{let o=this.sourceTemplate.html;throw typeof o!="string"&&(o=o.innerHTML),new Oe(`HydrationView was unable to successfully target bindings inside "${(n=((s=this.firstChild)===null||s===void 0?void 0:s.getRootNode()).host)===null||n===void 0?void 0:n.nodeName}".`,l,ie(this.firstChild,this.lastChild).cloneContents(),o)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let a=0,c=r.length;a<c;++a)r[a].bind(this)}this.isBound=!0,this._hydrationStage=k.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}}se=q;M(_e);function Re(i){return i.create!==void 0}function Ve(i,t,e,s){if(e==null&&(e=""),Re(e)){i.textContent="";let n=i.$fastView;if(n===void 0)if(L(s)&&L(e)&&s.bindingViewBoundaries[this.targetNodeId]!==void 0&&s.hydrationStage!==k.hydrated){const r=s.bindingViewBoundaries[this.targetNodeId];n=e.hydrate(r.first,r.last)}else n=e.create();else i.$fastTemplate!==e&&(n.isComposed&&(n.remove(),n.unbind()),n=e.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(s.source,s.context)):(n.isComposed=!0,n.bind(s.source,s.context),n.insertBefore(i),i.$fastView=n,i.$fastTemplate=e)}else{const n=i.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),i.textContent=e}}function Le(i,t,e){var s;const n=`${this.id}-t`,r=(s=i[n])!==null&&s!==void 0?s:i[n]={v:0,cv:Object.create(null)},a=r.cv;let c=r.v;const d=i[t];if(e!=null&&e.length){const l=e.split(/\s+/);for(let o=0,h=l.length;o<h;++o){const u=l[o];u!==""&&(a[u]=c,d.add(u))}}if(r.v=c+1,c!==0){c-=1;for(const l in a)a[l]===c&&d.remove(l)}}const je={[b.attribute]:S.setAttribute,[b.booleanAttribute]:S.setBooleanAttribute,[b.property]:(i,t,e)=>i[t]=e,[b.content]:Ve,[b.tokenList]:Le,[b.event]:()=>{}};class O{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=b.content}createHTML(t){return pt.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=je[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw g.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId],n=L(t)&&t.hydrationStage&&t.hydrationStage!==k.hydrated;switch(this.aspectType){case b.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case b.content:t.onUnbind(this);default:const r=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);if(r.target=s,r.controller=t,n&&(this.aspectType===b.attribute||this.aspectType===b.booleanAttribute)){r.bind(t);break}this.updateTarget(s,this.targetAspect,r.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){A.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);A.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,n=e.controller;this.updateTarget(s,this.targetAspect,e.bind(n),n)}}C.define(O,{aspected:!0});const re=(i,t)=>`${i}.${t}`,_t={},w={index:0,node:null};function Rt(i){i.startsWith("fast-")||g.warn(1204,{name:i})}const Fe=new Proxy(document.createElement("div"),{get(i,t){Rt(t);const e=Reflect.get(i,t);return E(e)?e.bind(i):e},set(i,t,e){return Rt(t),Reflect.set(i,t,e)}});class He{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,n,r){var a,c;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,n)),t.id=(a=t.id)!==null&&a!==void 0?a:j(),t.targetNodeId=s,t.targetTagName=r,t.policy=(c=t.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const n=this.descriptors;if(e==="r"||e==="h"||n[e])return;if(!n[t]){const a=t.lastIndexOf("."),c=t.substring(0,a),d=parseInt(t.substring(a+1));this.addTargetDescriptor(c,t,d)}let r=_t[e];if(!r){const a=`_${e}`;_t[e]=r={get(){var c;return(c=this[a])!==null&&c!==void 0?c:this[a]=this[t].childNodes[s]}}}n[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Fe;for(const n of this.nodeIds)s[n];return new H(e,this.factories,s)}}function oe(i,t,e,s,n,r=!1){const a=e.attributes,c=i.directives;for(let d=0,l=a.length;d<l;++d){const o=a[d],h=o.value,u=tt.parse(h,c);let y=null;u===null?r&&(y=new O(ut(()=>h,i.policy)),C.assignAspect(y,o.name)):y=gt.aggregate(u,i.policy),y!==null&&(e.removeAttributeNode(o),d--,l--,i.addFactory(y,t,s,n,e.tagName))}}function Ie(i,t,e,s,n){const r=tt.parse(t.textContent,i.directives);if(r===null)return w.node=t.nextSibling,w.index=n+1,w;let a,c=a=t;for(let d=0,l=r.length;d<l;++d){const o=r[d];d!==0&&(n++,s=re(e,n),a=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),N(o)?a.textContent=o:(a.textContent=" ",C.assignAspect(o),i.addFactory(o,e,s,n,null)),c=a}return w.index=n+1,w.node=c.nextSibling,w}function ae(i,t,e){let s=0,n=t.firstChild;for(;n;){const r=Pe(i,e,n,s);n=r.node,s=r.index}}function Pe(i,t,e,s){const n=re(t,s);switch(e.nodeType){case 1:oe(i,t,e,n,s),ae(i,e,n);break;case 3:return Ie(i,e,t,n,s);case 8:const r=tt.parse(e.data,i.directives);r!==null&&i.addFactory(gt.aggregate(r),t,n,s,null);break}return w.index=s+1,w.node=e.nextSibling,w}function De(i,t){return i&&i.nodeType==8&&tt.parse(i.data,t)!==null}const Vt="TEMPLATE",gt={compile(i,t,e=S.policy){let s;if(N(i)){s=document.createElement(Vt),s.innerHTML=e.createHTML(i);const a=s.content.firstElementChild;a!==null&&a.tagName===Vt&&(s=a)}else s=i;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const n=document.adoptNode(s.content),r=new He(n,t,e);return oe(r,"",s,"h",0,!0),(De(n.firstChild,t)||n.childNodes.length===1&&Object.keys(t).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),ae(r,n,"r"),w.node=null,r.freeze()},setDefaultStrategy(i){this.compile=i},aggregate(i,t=S.policy){if(i.length===1)return i[0];let e,s=!1,n;const r=i.length,a=i.map(l=>N(l)?()=>l:(e=l.sourceAspect||e,s=s||l.dataBinding.isVolatile,n=n||l.dataBinding.policy,l.dataBinding.evaluate)),c=(l,o)=>{let h="";for(let u=0;u<r;++u)h+=a[u](l,o);return h},d=new O(ht(c,n??t,s));return C.assignAspect(d,e),d}},ze=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Ue=Object.create(null);class F{constructor(t,e=Ue){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}F.empty=new F("");C.define(F);function We(i,t,e,s=C.getForInstance(i)){if(s.aspected){const n=ze.exec(t);n!==null&&C.assignAspect(i,n[2])}return i.createHTML(e)}class et{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=gt.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new F(N(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw g.error(1208);if(this.policy)throw g.error(1207);return this.policy=t,this}render(t,e,s){const n=this.create(s);return n.bind(t),n.appendTo(e),n}static create(t,e,s){let n="";const r=Object.create(null),a=c=>{var d;const l=(d=c.id)!==null&&d!==void 0?d:c.id=j();return r[l]=c,l};for(let c=0,d=t.length-1;c<d;++c){const l=t[c];let o=e[c],h;if(n+=l,E(o))o=new O(ht(o));else if(o instanceof Z)o=new O(o);else if(!(h=C.getForInstance(o))){const u=o;o=new O(ut(()=>u))}n+=We(o,l,a,h)}return new et(n+t[t.length-1],r,s)}}M(et);const yt=(i,...t)=>{if(Array.isArray(i)&&Array.isArray(i.raw))return et.create(i,t);throw g.error(1206)};yt.partial=i=>new F(i);const Lt="boolean",jt="reflect",le=Object.freeze({locate:Jt()}),qe={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}};function Ft(i){if(i==null)return null;const t=i*1;return isNaN(t)?null:t}const Qe={toView(i){const t=Ft(i);return t&&t.toString()},fromView:Ft};class G{constructor(t,e,s=e.toLowerCase(),n=jt,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=n,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,n===Lt&&r===void 0&&(this.converter=qe)}setValue(t,e){const s=t[this.fieldName],n=this.converter;n!==void 0&&(e=n.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return p.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,s=this.guards;s.has(t)||e==="fromView"||dt.enqueue(()=>{s.add(t);const n=t[this.fieldName];switch(e){case jt:const r=this.converter;S.setAttribute(t,this.attribute,r!==void 0?r.toView(n):n);break;case Lt:S.setBooleanAttribute(t,this.attribute,n);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(le.locate(t));for(let n=0,r=e.length;n<r;++n){const a=e[n];if(a!==void 0)for(let c=0,d=a.length;c<d;++c){const l=a[c];N(l)?s.push(new G(t,l)):s.push(new G(t,l.property,l.attribute,l.mode,l.converter))}}return s}}function ce(i,t){let e;function s(n,r){arguments.length>1&&(e.property=r),le.locate(n.constructor).push(e)}if(arguments.length>1){e={},s(i,t);return}return e=i===void 0?{}:i,s}var Ge=function(i,t,e,s){function n(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(o){try{l(s.next(o))}catch(h){a(h)}}function d(o){try{l(s.throw(o))}catch(h){a(h)}}function l(o){o.done?r(o.value):n(o.value).then(c,d)}l((s=s.apply(i,t||[])).next())})};const Ht={mode:"open"},It={},nt=new Set,R=g.getById(x.elementRegistry,()=>Gt());class f{constructor(t,e=t.definition){var s;this.platformDefined=!1,N(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.templateOptions=e.templateOptions,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const n=t.prototype,r=G.collect(t,e.attributes),a=new Array(r.length),c={},d={};for(let l=0,o=r.length;l<o;++l){const h=r[l];a[l]=h.attribute,c[h.name]=h,d[h.attribute]=h,p.defineProperty(n,h)}Reflect.defineProperty(t,"observedAttributes",{value:a,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=d,this.shadowOptions=e.shadowOptions===void 0?Ht:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ht),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?It:Object.assign(Object.assign({},It),e.elementOptions),this.styles=v.normalize(e.styles),R.register(this),p.defineProperty(f.isRegistered,this.name),f.isRegistered[this.name]=this.type}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return nt.has(t)||R.getByType(t)?new f(class extends t{},e):new f(t,e)}static registerBaseType(t){nt.add(t)}static composeAsync(t,e){return new Promise(s=>{(nt.has(t)||R.getByType(t))&&s(new f(class extends t{},e));const n=new f(t,e);Promise.all([new Promise(r=>{p.getNotifier(n).subscribe({handleChange:()=>r()},"template")})]).then(()=>{s(n)})})}}f.isRegistered={};f.getByType=R.getByType;f.getForInstance=R.getForInstance;f.registerAsync=i=>Ge(void 0,void 0,void 0,function*(){return new Promise(t=>{f.isRegistered[i]&&t(f.isRegistered[i]),p.getNotifier(f.isRegistered).subscribe({handleChange:()=>t(f.isRegistered[i])},i)})});p.defineProperty(f.prototype,"template");class Je extends MutationObserver{constructor(t){function e(s){this.callback.call(null,s.filter(n=>this.observedNodes.has(n.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}const Ke=Object.freeze({create(i){const t=[],e={};let s=null,n=!1;return{source:i,context:A.default,targets:e,get isBound(){return n},addBehaviorFactory(r,a){var c,d,l,o;const h=r;h.id=(c=h.id)!==null&&c!==void 0?c:j(),h.targetNodeId=(d=h.targetNodeId)!==null&&d!==void 0?d:j(),h.targetTagName=(l=a.tagName)!==null&&l!==void 0?l:null,h.policy=(o=h.policy)!==null&&o!==void 0?o:S.policy,this.addTarget(h.targetNodeId,a),this.addBehavior(h.createBehavior())},addTarget(r,a){e[r]=a},addBehavior(r){t.push(r),n&&r.bind(this)},onUnbind(r){s===null&&(s=[]),s.push(r)},connectedCallback(r){n||(n=!0,t.forEach(a=>a.bind(this)))},disconnectedCallback(r){n&&(n=!1,s!==null&&s.forEach(a=>a.unbind(this)))}}}}),Xe={bubbles:!0,composed:!0,cancelable:!0},U="isConnected",de=new WeakMap;function V(i){var t,e;return(e=(t=i.shadowRoot)!==null&&t!==void 0?t:de.get(i))!==null&&e!==void 0?e:null}let Pt;class T extends Kt{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e,this.shadowOptions=e.shadowOptions;const s=p.getAccessors(t);if(s.length>0){const n=this.boundObservables=Object.create(null);for(let r=0,a=s.length;r<a;++r){const c=s[r].name,d=t[c];d!==void 0&&(delete t[c],n[c]=d)}}}get isConnected(){return p.track(this,U),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:A.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(t){if(this._shadowRootOptions===void 0&&t!==void 0){this._shadowRootOptions=t;let e=this.source.shadowRoot;e?this.hasExistingShadowRoot=!0:(e=this.source.attachShadow(t),t.mode==="closed"&&de.set(this.source,e))}}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const n=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=n.get(t))!==null&&s!==void 0?s:0;r===0?(n.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):n.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const n=s.get(t);n!==void 0&&(n===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,n-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=V(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const n=t.behaviors;if(t.addStylesTo(s),n!==null)for(let r=0,a=n.length;r<a;++r)this.addBehavior(n[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=V(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const n=t.behaviors;if(t.removeStylesFrom(s),n!==null)for(let r=0,a=n.length;r<a;++r)this.removeBehavior(n[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,p.notify(this,U))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,s=Object.keys(e);for(let n=0,r=s.length;n<r;++n){const a=s[n];t[a]=e[a]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,p.notify(this,U),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,s){const n=this.definition.attributeLookup[t];n!==void 0&&n.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Xe),s))):!1}renderTemplate(t){var e;const s=this.source,n=(e=V(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=n.firstChild;r!==null;r=n.firstChild)n.removeChild(r)}t&&(this.view=t.render(s,n,s),this.view.sourceLifetime=Y.coupled)}static forCustomElement(t,e=!1){const s=t.$fastController;if(s!==void 0&&!e)return s;const n=f.getForInstance(t);if(n===void 0)throw g.error(1401);return p.getNotifier(n).subscribe({handleChange:()=>{T.forCustomElement(t,!0),t.$fastController.connect()}},"template"),p.getNotifier(n).subscribe({handleChange:()=>{T.forCustomElement(t,!0),t.$fastController.connect()}},"shadowOptions"),t.$fastController=new Pt(t,n)}static setStrategy(t){Pt=t}}M(T);T.setStrategy(T);function J(i){var t;return"adoptedStyleSheets"in i?i:(t=V(i))!==null&&t!==void 0?t:i.getRootNode()}class it{constructor(t){const e=it.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let n=e.get(s);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(s),e.set(s,n)),n})}addStylesTo(t){he(J(t),this.sheets)}removeStylesFrom(t){ue(J(t),this.sheets)}}it.styleSheetCache=new Map;let Ye=0;const Ze=()=>`fast-${++Ye}`;function Dt(i){return i===document?document.body:i}class ti{constructor(t){this.styles=t,this.styleClass=Ze()}addStylesTo(t){t=Dt(J(t));const e=this.styles,s=this.styleClass;for(let n=0;n<e.length;n++){const r=document.createElement("style");r.innerHTML=e[n],r.className=s,t.append(r)}}removeStylesFrom(t){t=Dt(J(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,n=e.length;s<n;++s)t.removeChild(e[s])}}let he=(i,t)=>{i.adoptedStyleSheets=[...i.adoptedStyleSheets,...t]},ue=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(v.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),he=(i,t)=>{i.adoptedStyleSheets.push(...t)},ue=(i,t)=>{for(const e of t){const s=i.adoptedStyleSheets.indexOf(e);s!==-1&&i.adoptedStyleSheets.splice(s,1)}}}catch{}v.setDefaultStrategy(it)}else v.setDefaultStrategy(ti);const rt="defer-hydration",ot="needs-hydration";class B extends T{static hydrationObserverHandler(t){for(const e of t)B.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}static forCustomElement(t,e){const s=f.getForInstance(t);return s!==void 0&&s.templateOptions==="defer-and-hydrate"&&!s.template&&(t.setAttribute(rt,""),t.setAttribute(ot,"")),super.forCustomElement(t,e)}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(ot)!==null),this.source.hasAttribute(rt)){B.hydrationObserver.observe(this.source,{attributeFilter:[rt]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const s=this.source,n=(t=V(s))!==null&&t!==void 0?t:s;if(this.template)if(L(this.template)){let r=n.firstChild,a=n.lastChild;s.shadowRoot===null&&(m.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),m.isElementBoundaryEndMarker(a)&&(a.data="",a=a.previousSibling)),this.view=this.template.hydrate(r,a,s),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(ot),this.needsInitialization=this.needsHydration=!1,p.notify(this,U)}disconnect(){super.disconnect(),B.hydrationObserver.unobserve(this.source)}static install(){T.setStrategy(B)}}B.hydrationObserver=new Je(B.hydrationObserverHandler);function fe(i){const t=class extends i{constructor(){super(),T.forCustomElement(this)}$emit(e,s,n){return this.$fastController.emit(e,s,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,n){this.$fastController.onAttributeChangedCallback(e,s,n)}};return f.registerBaseType(t),t}function ei(i,t){return E(i)?f.compose(i,t):f.compose(this,i)}function ii(i,t){return E(i)?new Promise(e=>{f.composeAsync(i,t).then(s=>{e(s)})}).then(e=>e.define().type):new Promise(e=>{f.composeAsync(this,i).then(s=>{e(s)})}).then(e=>e.define().type)}function si(i,t){return E(i)?f.compose(i,t).define().type:f.compose(this,i).define().type}function ni(i){return fe(i)}const ri=Object.assign(fe(HTMLElement),{from:ni,define:si,compose:ei,defineAsync:ii});function oi(i,t){return i instanceof Function?i(t):i}const zt=new Set,at=new Map,ai=i=>(t="vwc")=>{const e=n=>`${t}-${n}`,s=n=>{const r=e(n.name);let a=n.type;if(a.componentName=n.name,zt.has(r))return;at.has(a)&&at.get(a)!==r&&(a=class extends a{}),zt.add(r),at.set(a,r);for(const o of n.dependencies)s(o);const c=new Map([[n.type,r],...n.dependencies.map(o=>[o.type,e(o.name)])]),l={tagFor:(o,h)=>{if(!c.has(o))throw new Error(`Could not get tag for ${o.name} as it is not a dependency of ${n.name}.`);const u=c.get(o);return h?u:yt.partial(u)},tagForNonDependency(o){return e(o)}};f.compose(a,{...n.options,template:oi(n.template,l),name:`${t}-${n.name}`}).define()};s(i)},li=(i,t,e,s,n)=>({name:i,type:t,template:e,dependencies:s,options:n}),Ut=new WeakMap,pe=i=>{let t=Ut.get(i);return t||(t=[],Ut.set(i,t)),t},ci=(i,t)=>{pe(i).push(t)},di=(i,t)=>{pe(i).forEach(e=>e(i,t))},hi=i=>i==="delegate",Wt=i=>`vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`,be=(i,t)=>{if(hi(i._vividAriaBehaviour)){const e=i[t];i[`_${t}`]=null,i.removeAttribute(X(t)),i[`_${t}`]=e,i[t]!==null?i.dataset[Wt(t)]=i[t]:delete i.dataset[Wt(t)]}else S.setAttribute(i,X(t),i[t])},K=new WeakMap,ui=(i,t)=>{const e=K.get(i);e?e.add(t):K.set(i,new Set([t]))},fi=(i,t)=>{i.isConnected?be(i,t):ui(i,t)},pi=i=>{const t=K.get(i);if(t){for(const e of t)be(i,e);K.delete(i)}},ct=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","ariaRelevant"],X=i=>i.replace("aria","aria-").toLowerCase(),bi=i=>{class t extends i{constructor(...s){super(...s),this._vividAriaBehaviour="default";for(const n of ct)this[`_${n}`]=null}connectedCallback(){super.connectedCallback(),pi(this)}}for(const e of ct)ce({attribute:X(e),mode:"fromView"})(t.prototype,e),t.prototype[`${e}Changed`]=function(){fi(this,e),this._vividAriaBehaviour!=="default"&&di(this,e)};return t};function gi(){const i=new WeakMap;return t=>(i.has(t)||i.set(t,[]),i.get(t))}const ge=gi(),yi=i=>(t,e)=>{ge(t.constructor).push({newPropertyName:e,...i})},vi=i=>{class t extends i{#t(s){let n=!1,r=!1;const a=o=>r&&s.fromDeprecated(o[s.deprecatedPropertyName])===o[s.newPropertyName],c=o=>n&&s.toDeprecated&&s.toDeprecated(o[s.newPropertyName])===o[s.deprecatedPropertyName],d={handleChange(o,h){if(h===s.newPropertyName){if(n=!0,!s.toDeprecated||a(o))return;o[s.deprecatedPropertyName]=s.toDeprecated(o[s.newPropertyName])}if(h===s.deprecatedPropertyName){if(r=!0,c(o))return;o[s.newPropertyName]=s.fromDeprecated(o[s.deprecatedPropertyName])}}},l=p.getNotifier(this);l.subscribe(d,s.newPropertyName),l.subscribe(d,s.deprecatedPropertyName)}constructor(...s){super(...s);for(const n of ge(this.constructor))this.#t(n)}}return t};class mi extends bi(vi(ri)){static{this.VIVID_VERSION="5.3.0"}connectedCallback(){super.connectedCallback();const t=this.constructor.componentName;this.setAttribute("data-vvd-component",t)}}exports.Binding=Z;exports.DOM=S;exports.ElementStyles=v;exports.ExecutionContext=A;exports.HTMLDirective=C;exports.HTMLView=H;exports.HydrationMarkup=m;exports.HydrationStage=k;exports.Markup=pt;exports.Observable=p;exports.StatelessAttachedAttributeDirective=Zt;exports.SubscriberSet=W;exports.Updates=dt;exports.ViewBehaviorOrchestrator=Ke;exports.VividElement=mi;exports.ariaAttributeName=X;exports.ariaMixinProperties=ct;exports.attr=ce;exports.commonjsGlobal=P;exports.createRegisterFunction=ai;exports.defineVividComponent=li;exports.emptyArray=me;exports.getAugmentedNamespace=ve;exports.getDefaultExportFromCjs=ye;exports.html=yt;exports.isFunction=E;exports.isHydratable=L;exports.isString=N;exports.noop=qt;exports.nullableNumberConverter=Qe;exports.observable=Ce;exports.oneTime=ut;exports.oneWay=ht;exports.replaces=yi;exports.subscribeToAriaPropertyChanges=ci;exports.volatile=Te;
|
|
1
|
+
"use strict";let D;const mt="fast-kernel";try{if(document.currentScript)D=document.currentScript.getAttribute(mt);else{const i=document.getElementsByTagName("script");D=i[i.length-1].getAttribute(mt)}}catch{D="isolate"}let x;switch(D){case"share":x=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":x=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const i=`-${Math.random().toString(36).substring(2,8)}`;x=Object.freeze({updateQueue:`1.2${i}`,observable:`2.2${i}`,contextEvent:`3.2${i}`,elementRegistry:`4.2${i}`});break}const M=i=>typeof i=="function",N=i=>typeof i=="string",qt=()=>{};var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ye(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ve(i){if(i.__esModule)return i;var t=i.default;if(typeof t=="function"){var e=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var n=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return i[s]}})}),e}(function(){if(!(typeof globalThis<"u"))if(typeof P<"u")P.globalThis=P;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Qt={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Qt));const y=globalThis.FAST;if(y.getById===void 0){const i=Object.create(null);Reflect.defineProperty(y,"getById",Object.assign({value(t,e){let s=i[t];return s===void 0&&(s=e?i[t]=e():null),s}},Qt))}y.error===void 0&&Object.assign(y,{warn(){},error(i){return new Error(`Error ${i}`)},addMessages(){}});const me=Object.freeze([]);function Gt(){const i=new Map;return Object.freeze({register(t){return i.has(t.type)?!1:(i.set(t.type,t),!0)},getByType(t){return i.get(t)},getForInstance(t){if(t!=null)return i.get(t.constructor)}})}function Jt(){const i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=i.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}function E(i){i.prototype.toJSON=qt}const g=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),wt=i=>i,we=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:wt}):{createHTML:wt};let z=Object.freeze({createHTML(i){return we.createHTML(i)},protect(i,t,e,s){return s}});const Se=z,C=Object.freeze({get policy(){return z},setPolicy(i){if(z!==Se)throw y.error(1201);z=i},setAttribute(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e)},setBooleanAttribute(i,t,e){e?i.setAttribute(t,""):i.removeAttribute(t)}}),dt=y.getById(x.updateQueue,()=>{const i=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function n(){if(t.length)throw t.shift()}function r(d){try{d.call()}catch(l){if(s)t.push(l),setTimeout(n,0);else throw i.length=0,l}}function a(){let l=0;for(;l<i.length;)if(r(i[l]),l++,l>1024){for(let o=0,h=i.length-l;o<h;o++)i[o]=i[o+l];i.length-=l,l=0}i.length=0}function c(d){i.push(d),i.length<2&&(s?e(a):a())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:a,setMode:d=>s=d})});class q{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const n=this.sub1,r=this.sub2;n!==void 0&&n.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let n=0,r=e.length;n<r;++n)e[n].handleChange(s,t)}}class Kt{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,n;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new q(this.subject):r=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new q(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,n;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(t)}}const Z=Object.freeze({unknown:void 0,coupled:1}),p=y.getById(x.observable,()=>{const i=dt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,n=l=>{throw y.error(1101)};function r(l){var o;let h=(o=l.$fastController)!==null&&o!==void 0?o:e.get(l);return h===void 0&&(Array.isArray(l)?h=n(l):e.set(l,h=new Kt(l))),h}const a=Jt();class c{constructor(o){this.name=o,this.field=`_${o}`,this.callback=`${o}Changed`}getValue(o){return s!==void 0&&s.watch(o,this.name),o[this.field]}setValue(o,h){const u=this.field,b=o[u];if(b!==h){o[u]=h;const k=o[this.callback];M(k)&&k.call(o,b,h),r(o).notify(this.name)}}}class d extends q{constructor(o,h,u=!1){super(o,h),this.expression=o,this.isVolatileBinding=u,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(o){this.isAsync=this.needsQueue=o}bind(o){this.controller=o;const h=this.observe(o.source,o.context);return!o.isBound&&this.requiresUnbind(o)&&o.onUnbind(this),h}requiresUnbind(o){return o.sourceLifetime!==Z.coupled||this.first!==this.last||this.first.propertySource!==o.source}unbind(o){this.dispose()}observe(o,h){this.needsRefresh&&this.last!==null&&this.dispose();const u=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let b;try{b=this.expression(o,h)}finally{s=u}return b}disconnect(){this.dispose()}dispose(){if(this.last!==null){let o=this.first;for(;o!==void 0;)o.notifier.unsubscribe(this,o.propertyName),o=o.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(o,h){const u=this.last,b=r(o),k=u===null?this.first:{};if(k.propertySource=o,k.propertyName=h,k.notifier=b,b.subscribe(this,h),u!==null){if(!this.needsRefresh){let vt;s=void 0,vt=u.propertySource[u.propertyName],s=this,o===vt&&(this.needsRefresh=!0)}u.next=k}this.last=k}handleChange(){this.needsQueue?(this.needsQueue=!1,i(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let o=this.first;for(;o!==void 0;)yield o,o=o.next}}return E(d),Object.freeze({setArrayObserverFactory(l){n=l},getNotifier:r,track(l,o){s&&s.watch(l,o)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(l,o){r(l).notify(o)},defineProperty(l,o){N(o)&&(o=new c(o)),a(l).push(o),Reflect.defineProperty(l,o.name,{enumerable:!0,get(){return o.getValue(this)},set(h){o.setValue(this,h)}})},getAccessors:a,binding(l,o,h=this.isVolatileBinding(l)){return new d(l,o,h)},isVolatileBinding(l){return t.test(l.toString())}})});function Ce(i,t){p.defineProperty(i,t)}function Te(i,t,e){return Object.assign({},e,{get(){return p.trackVolatile(),e.get.apply(this)}})}const St=y.getById(x.contextEvent,()=>{let i=null;return{get(){return i},set(t){i=t}}}),A=Object.freeze({default:{index:0,length:0,get event(){return A.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return St.get()},setEvent(i){St.set(i)}});class tt{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class $e extends tt{createObserver(t){return p.binding(this.evaluate,t,this.isVolatile)}}function ht(i,t,e=p.isVolatileBinding(i)){return new $e(i,t,e)}class Xt extends tt{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}E(Xt);function ut(i,t){return new Xt(i,t)}let Ct;function Yt(i){return i.map(t=>t instanceof m?Yt(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class m{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof m?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ct),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Yt(this.styles)),this}static setDefaultStrategy(t){Ct=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new m(t):t instanceof m?t:new m([t])}}m.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Tt=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$t=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,kt=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Nt=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Bt=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,xt=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function At(i){return i&&i.nodeType===Node.COMMENT_NODE}const w=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(i,t){return`fe-b$$start$$${i}$$${t}$$fe-b`},contentBindingEndMarker(i,t){return`fe-b$$end$$${i}$$${t}$$fe-b`},repeatStartMarker(i){return`fe-repeat$$start$$${i}$$fe-repeat`},repeatEndMarker(i){return`fe-repeat$$end$$${i}$$fe-repeat`},isContentBindingStartMarker(i){return Tt.test(i)},isContentBindingEndMarker(i){return $t.test(i)},isRepeatViewStartMarker(i){return kt.test(i)},isRepeatViewEndMarker(i){return Nt.test(i)},isElementBoundaryStartMarker(i){return At(i)&&Bt.test(i.data.trim())},isElementBoundaryEndMarker(i){return At(i)&&xt.test(i.data)},parseAttributeBinding(i){const t=i.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseEnumeratedAttributeBinding(i){const t=[],e=this.attributeMarkerName.length+1,s=`${this.attributeMarkerName}-`;for(const n of i.getAttributeNames())if(n.startsWith(s)){const r=Number(n.slice(e));if(!Number.isNaN(r))t.push(r);else throw new Error(`Invalid attribute marker name: ${n}. Expected format is ${s}<number>.`)}return t.length===0?null:t},parseContentBindingStartMarker(i){return Ot(Tt,i)},parseContentBindingEndMarker(i){return Ot($t,i)},parseRepeatStartMarker(i){return Mt(kt,i)},parseRepeatEndMarker(i){return Mt(Nt,i)},parseElementBoundaryStartMarker(i){return Et(Bt,i.trim())},parseElementBoundaryEndMarker(i){return Et(xt,i)}});function Mt(i,t){const e=i.exec(t);return e===null?e:parseInt(e[1])}function Et(i,t){const e=i.exec(t);return e===null?e:e[1]}function Ot(i,t){const e=i.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Q=Symbol.for("fe-hydration");function V(i){return i[Q]===Q}const ft=`fast-${Math.random().toString(36).substring(2,8)}`,U=`${ft}{`,_=`}${ft}`,ke=_.length;let Ne=0;const j=()=>`${ft}-${++Ne}`,pt=Object.freeze({interpolation:i=>`${U}${i}${_}`,attribute:i=>`${j()}="${U}${i}${_}"`,comment:i=>`<!--${U}${i}${_}-->`}),et=Object.freeze({parse(i,t){const e=i.split(U);if(e.length===1)return null;const s=[];for(let n=0,r=e.length;n<r;++n){const a=e[n],c=a.indexOf(_);let d;if(c===-1)d=a;else{const l=a.substring(0,c);s.push(t[l]),d=a.substring(c+ke)}d!==""&&s.push(d)}return s}}),nt=Gt(),T=Object.freeze({getForInstance:nt.getForInstance,getByType:nt.getByType,define(i,t){return t=t||{},t.type=i,nt.register(t),i},assignAspect(i,t){if(!t){i.aspectType=g.content;return}switch(i.sourceAspect=t,t[0]){case":":i.targetAspect=t.substring(1),i.aspectType=i.targetAspect==="classList"?g.tokenList:g.property;break;case"?":i.targetAspect=t.substring(1),i.aspectType=g.booleanAttribute;break;case"@":i.targetAspect=t.substring(1),i.aspectType=g.event;break;default:i.targetAspect=t,i.aspectType=g.attribute;break}}});class Zt{constructor(t){this.options=t}createHTML(t){return pt.attribute(t(this))}createBehavior(){return this}}E(Zt);class te extends Error{constructor(t,e,s){super(t),this.factories=e,this.node=s}}function bt(i){return i.nodeType===Node.COMMENT_NODE}function ee(i){return i.nodeType===Node.TEXT_NODE}function ie(i,t){const e=document.createRange();return e.setStart(i,0),e.setEnd(t,bt(t)||ee(t)?t.data.length:t.childNodes.length),e}function Be(i){return i instanceof DocumentFragment&&"mode"in i}function xe(i,t,e){const s=ie(i,t),n=s.commonAncestorContainer,r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return s.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),a={},c={};let d=r.currentNode=i;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{Ae(d,e,a);break}case Node.COMMENT_NODE:{Me(d,r,e,a,c);break}}d=r.nextNode()}return s.detach(),{targets:a,boundaries:c}}function Ae(i,t,e){var s;const n=(s=w.parseAttributeBinding(i))!==null&&s!==void 0?s:w.parseEnumeratedAttributeBinding(i);if(n!==null){for(const r of n){if(!t[r])throw new te(`HydrationView was unable to successfully target factory on ${i.nodeName} inside ${i.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,i);G(t[r],i,e)}i.removeAttribute(w.attributeMarkerName)}}function Me(i,t,e,s,n){if(w.isElementBoundaryStartMarker(i)){Ee(i,t);return}if(w.isContentBindingStartMarker(i.data)){const r=w.parseContentBindingStartMarker(i.data);if(r===null)return;const[a,c]=r,d=e[a],l=[];let o=t.nextSibling();i.data="";const h=o;for(;o!==null;){if(bt(o)){const u=w.parseContentBindingEndMarker(o.data);if(u&&u[1]===c)break}l.push(o),o=t.nextSibling()}if(o===null){const u=i.getRootNode();throw new Error(`Error hydrating Comment node inside "${Be(u)?u.host.nodeName:u.nodeName}".`)}if(o.data="",l.length===1&&ee(l[0]))G(d,l[0],s);else{o!==h&&o.previousSibling!==null&&(n[d.targetNodeId]={first:h,last:o.previousSibling});const u=o.parentNode.insertBefore(document.createTextNode(""),o);G(d,u,s)}}}function Ee(i,t){const e=w.parseElementBoundaryStartMarker(i.data);let s=t.nextSibling();for(;s!==null;){if(bt(s)){const n=w.parseElementBoundaryEndMarker(s.data);if(n&&n===e)break}s=t.nextSibling()}}function G(i,t,e){if(i.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[i.targetNodeId]=t}var se;function lt(i,t){const e=i.parentNode;let s=i,n;for(;s!==t;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(s),s=n}e.removeChild(t)}class ne{constructor(){this.index=0,this.length=0}get event(){return A.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class H extends ne{constructor(t,e,s){super(),this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Z.unknown,this.context=this,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 s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,n;for(;s!==e;)n=s.nextSibling,t.appendChild(s),s=n;t.appendChild(e)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let r=0,a=n.length;r<a;++r){const c=n[r].createBehavior();c.bind(this),s[r]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,r=s.length;n<r;++n)s[n].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){lt(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}E(H);p.defineProperty(H.prototype,"index");p.defineProperty(H.prototype,"length");const B={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Oe extends Error{constructor(t,e,s,n){super(t),this.factory=e,this.fragment=s,this.templateString=n}}class _e extends ne{constructor(t,e,s,n){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=s,this.hostBindingTarget=n,this[se]=Q,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Z.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=B.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=s.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let s=this.firstChild,n;for(;s!==e;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(s),s=n}t.appendChild(e)}bind(t,e=this){var s;if(this.hydrationStage!==B.hydrated&&(this._hydrationStage=B.hydrating),this.source===t)return;let n=this.behaviors;if(n===null){this.source=t,this.context=e;try{const{targets:a,boundaries:c}=xe(this.firstChild,this.lastChild,this.factories);this._targets=a,this._bindingViewBoundaries=c}catch(a){if(a instanceof te){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),a.templateString=c}throw a}this.behaviors=n=new Array(this.factories.length);const r=this.factories;for(let a=0,c=r.length;a<c;++a){const d=r[a];if(d.targetNodeId==="h"&&this.hostBindingTarget&&G(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),n[a]=l}else{let l=this.sourceTemplate.html;typeof l!="string"&&(l=l.innerHTML);const o=((s=this.firstChild)===null||s===void 0?void 0:s.getRootNode()).host,h=o?.nodeName||"unknown",u=d,b=[`HydrationView was unable to successfully target bindings inside "<${h.toLowerCase()}>".`,`
|
|
2
|
+
Mismatch Details:`,` - Expected target node ID: "${d.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw d.targetTagName&&b.push(` - Expected tag name: "${d.targetTagName}"`),u.sourceAspect&&b.push(` - Source aspect: "${u.sourceAspect}"`),u.aspectType!==void 0&&b.push(` - Aspect type: ${u.aspectType}`),b.push(`
|
|
3
|
+
This usually means:`," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`
|
|
4
|
+
Template: ${l.slice(0,200)}${l.length>200?"...":""}`),new Oe(b.join(`
|
|
5
|
+
`),d,ie(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let r=0,a=n.length;r<a;++r)n[r].bind(this)}this.isBound=!0,this._hydrationStage=B.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}}se=Q;E(_e);function Re(i){return i.create!==void 0}function Le(i,t,e,s){if(e==null&&(e=""),Re(e)){i.textContent="";let n=i.$fastView;if(n===void 0)if(V(s)&&V(e)&&s.bindingViewBoundaries[this.targetNodeId]!==void 0&&s.hydrationStage!==B.hydrated){const r=s.bindingViewBoundaries[this.targetNodeId];n=e.hydrate(r.first,r.last)}else n=e.create();else i.$fastTemplate!==e&&(n.isComposed&&(n.remove(),n.unbind()),n=e.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(s.source,s.context)):(n.isComposed=!0,n.bind(s.source,s.context),n.insertBefore(i),i.$fastView=n,i.$fastTemplate=e)}else{const n=i.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),i.textContent=e}}function Ve(i,t,e){var s;const n=`${this.id}-t`,r=(s=i[n])!==null&&s!==void 0?s:i[n]={v:0,cv:Object.create(null)},a=r.cv;let c=r.v;const d=i[t];if(e!=null&&e.length){const l=e.split(/\s+/);for(let o=0,h=l.length;o<h;++o){const u=l[o];u!==""&&(a[u]=c,d.add(u))}}if(r.v=c+1,c!==0){c-=1;for(const l in a)a[l]===c&&d.remove(l)}}const je={[g.attribute]:C.setAttribute,[g.booleanAttribute]:C.setBooleanAttribute,[g.property]:(i,t,e)=>i[t]=e,[g.content]:Le,[g.tokenList]:Ve,[g.event]:()=>{}};class O{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=g.content}createHTML(t){return pt.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=je[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw y.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId],n=V(t)&&t.hydrationStage&&t.hydrationStage!==B.hydrated;switch(this.aspectType){case g.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case g.content:t.onUnbind(this);default:const r=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);if(r.target=s,r.controller=t,n&&(this.aspectType===g.attribute||this.aspectType===g.booleanAttribute)){r.bind(t);break}this.updateTarget(s,this.targetAspect,r.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){A.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);A.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,n=e.controller;this.updateTarget(s,this.targetAspect,e.bind(n),n)}}T.define(O,{aspected:!0});const re=(i,t)=>`${i}.${t}`,_t={},S={index:0,node:null};function Rt(i){i.startsWith("fast-")||y.warn(1204,{name:i})}const Fe=new Proxy(document.createElement("div"),{get(i,t){Rt(t);const e=Reflect.get(i,t);return M(e)?e.bind(i):e},set(i,t,e){return Rt(t),Reflect.set(i,t,e)}});class He{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,n,r){var a,c;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,n)),t.id=(a=t.id)!==null&&a!==void 0?a:j(),t.targetNodeId=s,t.targetTagName=r,t.policy=(c=t.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const n=this.descriptors;if(e==="r"||e==="h"||n[e])return;if(!n[t]){const a=t.lastIndexOf("."),c=t.substring(0,a),d=parseInt(t.substring(a+1));this.addTargetDescriptor(c,t,d)}let r=_t[e];if(!r){const a=`_${e}`;_t[e]=r={get(){var c;return(c=this[a])!==null&&c!==void 0?c:this[a]=this[t].childNodes[s]}}}n[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Fe;for(const n of this.nodeIds)s[n];return new H(e,this.factories,s)}}function oe(i,t,e,s,n,r=!1){const a=e.attributes,c=i.directives;for(let d=0,l=a.length;d<l;++d){const o=a[d],h=o.value,u=et.parse(h,c);let b=null;u===null?r&&(b=new O(ut(()=>h,i.policy)),T.assignAspect(b,o.name)):b=gt.aggregate(u,i.policy),b!==null&&(e.removeAttributeNode(o),d--,l--,i.addFactory(b,t,s,n,e.tagName))}}function Ie(i,t,e,s,n){const r=et.parse(t.textContent,i.directives);if(r===null)return S.node=t.nextSibling,S.index=n+1,S;let a,c=a=t;for(let d=0,l=r.length;d<l;++d){const o=r[d];d!==0&&(n++,s=re(e,n),a=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),N(o)?a.textContent=o:(a.textContent=" ",T.assignAspect(o),i.addFactory(o,e,s,n,null)),c=a}return S.index=n+1,S.node=c.nextSibling,S}function ae(i,t,e){let s=0,n=t.firstChild;for(;n;){const r=De(i,e,n,s);n=r.node,s=r.index}}function De(i,t,e,s){const n=re(t,s);switch(e.nodeType){case 1:oe(i,t,e,n,s),ae(i,e,n);break;case 3:return Ie(i,e,t,n,s);case 8:const r=et.parse(e.data,i.directives);r!==null&&i.addFactory(gt.aggregate(r),t,n,s,null);break}return S.index=s+1,S.node=e.nextSibling,S}function Pe(i,t){return i&&i.nodeType==8&&et.parse(i.data,t)!==null}const Lt="TEMPLATE",gt={compile(i,t,e=C.policy){let s;if(N(i)){s=document.createElement(Lt),s.innerHTML=e.createHTML(i);const a=s.content.firstElementChild;a!==null&&a.tagName===Lt&&(s=a)}else s=i;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const n=document.adoptNode(s.content),r=new He(n,t,e);return oe(r,"",s,"h",0,!0),(Pe(n.firstChild,t)||n.childNodes.length===1&&Object.keys(t).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),ae(r,n,"r"),S.node=null,r.freeze()},setDefaultStrategy(i){this.compile=i},aggregate(i,t=C.policy){if(i.length===1)return i[0];let e,s=!1,n;const r=i.length,a=i.map(l=>N(l)?()=>l:(e=l.sourceAspect||e,s=s||l.dataBinding.isVolatile,n=n||l.dataBinding.policy,l.dataBinding.evaluate)),c=(l,o)=>{let h="";for(let u=0;u<r;++u)h+=a[u](l,o);return h},d=new O(ht(c,n??t,s));return T.assignAspect(d,e),d}},ze=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Ue=Object.create(null);class F{constructor(t,e=Ue){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}F.empty=new F("");T.define(F);function We(i,t,e,s=T.getForInstance(i)){if(s.aspected){const n=ze.exec(t);n!==null&&T.assignAspect(i,n[2])}return i.createHTML(e)}class it{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=gt.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new F(N(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw y.error(1208);if(this.policy)throw y.error(1207);return this.policy=t,this}render(t,e,s){const n=this.create(s);return n.bind(t),n.appendTo(e),n}static create(t,e,s){let n="";const r=Object.create(null),a=c=>{var d;const l=(d=c.id)!==null&&d!==void 0?d:c.id=j();return r[l]=c,l};for(let c=0,d=t.length-1;c<d;++c){const l=t[c];let o=e[c],h;if(n+=l,M(o))o=new O(ht(o));else if(o instanceof tt)o=new O(o);else if(!(h=T.getForInstance(o))){const u=o;o=new O(ut(()=>u))}n+=We(o,l,a,h)}return new it(n+t[t.length-1],r,s)}}E(it);const yt=(i,...t)=>{if(Array.isArray(i)&&Array.isArray(i.raw))return it.create(i,t);throw y.error(1206)};yt.partial=i=>new F(i);const Vt="boolean",jt="reflect",le=Object.freeze({locate:Jt()}),qe={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}};function Ft(i){if(i==null)return null;const t=i*1;return isNaN(t)?null:t}const Qe={toView(i){const t=Ft(i);return t&&t.toString()},fromView:Ft};class J{constructor(t,e,s=e.toLowerCase(),n=jt,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=n,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,n===Vt&&r===void 0&&(this.converter=qe)}setValue(t,e){const s=t[this.fieldName],n=this.converter;n!==void 0&&(e=n.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return p.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,s=this.guards;s.has(t)||e==="fromView"||dt.enqueue(()=>{s.add(t);const n=t[this.fieldName];switch(e){case jt:const r=this.converter;C.setAttribute(t,this.attribute,r!==void 0?r.toView(n):n);break;case Vt:C.setBooleanAttribute(t,this.attribute,n);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(le.locate(t));for(let n=0,r=e.length;n<r;++n){const a=e[n];if(a!==void 0)for(let c=0,d=a.length;c<d;++c){const l=a[c];N(l)?s.push(new J(t,l)):s.push(new J(t,l.property,l.attribute,l.mode,l.converter))}}return s}}function ce(i,t){let e;function s(n,r){arguments.length>1&&(e.property=r),le.locate(n.constructor).push(e)}if(arguments.length>1){e={},s(i,t);return}return e=i===void 0?{}:i,s}var Ge=function(i,t,e,s){function n(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(o){try{l(s.next(o))}catch(h){a(h)}}function d(o){try{l(s.throw(o))}catch(h){a(h)}}function l(o){o.done?r(o.value):n(o.value).then(c,d)}l((s=s.apply(i,t||[])).next())})};const Ht={mode:"open"},It={},rt=new Set,R=y.getById(x.elementRegistry,()=>Gt()),Je={deferAndHydrate:"defer-and-hydrate"};class f{constructor(t,e=t.definition){var s;this.platformDefined=!1,N(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.templateOptions=e.templateOptions,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const n=t.prototype,r=J.collect(t,e.attributes),a=new Array(r.length),c={},d={};for(let l=0,o=r.length;l<o;++l){const h=r[l];a[l]=h.attribute,c[h.name]=h,d[h.attribute]=h,p.defineProperty(n,h)}Reflect.defineProperty(t,"observedAttributes",{value:a,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=d,this.shadowOptions=e.shadowOptions===void 0?Ht:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ht),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?It:Object.assign(Object.assign({},It),e.elementOptions),this.styles=m.normalize(e.styles),R.register(this),p.defineProperty(f.isRegistered,this.name),f.isRegistered[this.name]=this.type}get isDefined(){return this.platformDefined}define(t=this.registry){var e,s;const n=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,n,this.elementOptions),(s=(e=this.lifecycleCallbacks)===null||e===void 0?void 0:e.elementDidDefine)===null||s===void 0||s.call(e,this.name)),this}static compose(t,e){return rt.has(t)||R.getByType(t)?new f(class extends t{},e):new f(t,e)}static registerBaseType(t){rt.add(t)}static composeAsync(t,e){return new Promise(s=>{(rt.has(t)||R.getByType(t))&&s(new f(class extends t{},e));const n=new f(t,e);p.getNotifier(n).subscribe({handleChange:()=>{var r,a;(a=(r=n.lifecycleCallbacks)===null||r===void 0?void 0:r.templateDidUpdate)===null||a===void 0||a.call(r,n.name),s(n)}},"template")})}}f.isRegistered={};f.getByType=R.getByType;f.getForInstance=R.getForInstance;f.registerAsync=i=>Ge(void 0,void 0,void 0,function*(){return new Promise(t=>{f.isRegistered[i]&&t(f.isRegistered[i]),p.getNotifier(f.isRegistered).subscribe({handleChange:()=>t(f.isRegistered[i])},i)})});p.defineProperty(f.prototype,"template");class Ke extends MutationObserver{constructor(t){function e(s){this.callback.call(null,s.filter(n=>this.observedNodes.has(n.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}const Xe=Object.freeze({create(i){const t=[],e={};let s=null,n=!1;return{source:i,context:A.default,targets:e,get isBound(){return n},addBehaviorFactory(r,a){var c,d,l,o;const h=r;h.id=(c=h.id)!==null&&c!==void 0?c:j(),h.targetNodeId=(d=h.targetNodeId)!==null&&d!==void 0?d:j(),h.targetTagName=(l=a.tagName)!==null&&l!==void 0?l:null,h.policy=(o=h.policy)!==null&&o!==void 0?o:C.policy,this.addTarget(h.targetNodeId,a),this.addBehavior(h.createBehavior())},addTarget(r,a){e[r]=a},addBehavior(r){t.push(r),n&&r.bind(this)},onUnbind(r){s===null&&(s=[]),s.push(r)},connectedCallback(r){n||(n=!0,t.forEach(a=>a.bind(this)))},disconnectedCallback(r){n&&(n=!1,s!==null&&s.forEach(a=>a.unbind(this)))}}}}),Ye={bubbles:!0,composed:!0,cancelable:!0},W="isConnected",de=new WeakMap;function L(i){var t,e;return(e=(t=i.shadowRoot)!==null&&t!==void 0?t:de.get(i))!==null&&e!==void 0?e:null}let Dt;class $ extends Kt{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e,this.shadowOptions=e.shadowOptions;const s=p.getAccessors(t);if(s.length>0){const n=this.boundObservables=Object.create(null);for(let r=0,a=s.length;r<a;++r){const c=s[r].name,d=t[c];d!==void 0&&(delete t[c],n[c]=d)}}}get isConnected(){return p.track(this,W),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:A.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(t){if(this._shadowRootOptions===void 0&&t!==void 0){this._shadowRootOptions=t;let e=this.source.shadowRoot;e?this.hasExistingShadowRoot=!0:(e=this.source.attachShadow(t),t.mode==="closed"&&de.set(this.source,e))}}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const n=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=n.get(t))!==null&&s!==void 0?s:0;r===0?(n.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):n.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const n=s.get(t);n!==void 0&&(n===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,n-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=L(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const n=t.behaviors;if(t.addStylesTo(s),n!==null)for(let r=0,a=n.length;r<a;++r)this.addBehavior(n[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=L(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const n=t.behaviors;if(t.removeStylesFrom(s),n!==null)for(let r=0,a=n.length;r<a;++r)this.removeBehavior(n[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,p.notify(this,W))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,s=Object.keys(e);for(let n=0,r=s.length;n<r;++n){const a=s[n];t[a]=e[a]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,p.notify(this,W),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,s){const n=this.definition.attributeLookup[t];n!==void 0&&n.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Ye),s))):!1}renderTemplate(t){var e;const s=this.source,n=(e=L(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=n.firstChild;r!==null;r=n.firstChild)n.removeChild(r)}t&&(this.view=t.render(s,n,s),this.view.sourceLifetime=Z.coupled)}static forCustomElement(t,e=!1){const s=t.$fastController;if(s!==void 0&&!e)return s;const n=f.getForInstance(t);if(n===void 0)throw y.error(1401);return p.getNotifier(n).subscribe({handleChange:()=>{$.forCustomElement(t,!0),t.$fastController.connect()}},"template"),p.getNotifier(n).subscribe({handleChange:()=>{$.forCustomElement(t,!0),t.$fastController.connect()}},"shadowOptions"),t.$fastController=new Dt(t,n)}static setStrategy(t){Dt=t}}E($);$.setStrategy($);function K(i){var t;return"adoptedStyleSheets"in i?i:(t=L(i))!==null&&t!==void 0?t:i.getRootNode()}class st{constructor(t){const e=st.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let n=e.get(s);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(s),e.set(s,n)),n})}addStylesTo(t){he(K(t),this.sheets)}removeStylesFrom(t){ue(K(t),this.sheets)}}st.styleSheetCache=new Map;let Ze=0;const ti=()=>`fast-${++Ze}`;function Pt(i){return i===document?document.body:i}class ei{constructor(t){this.styles=t,this.styleClass=ti()}addStylesTo(t){t=Pt(K(t));const e=this.styles,s=this.styleClass;for(let n=0;n<e.length;n++){const r=document.createElement("style");r.innerHTML=e[n],r.className=s,t.append(r)}}removeStylesFrom(t){t=Pt(K(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,n=e.length;s<n;++s)t.removeChild(e[s])}}let he=(i,t)=>{i.adoptedStyleSheets=[...i.adoptedStyleSheets,...t]},ue=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),he=(i,t)=>{i.adoptedStyleSheets.push(...t)},ue=(i,t)=>{for(const e of t){const s=i.adoptedStyleSheets.indexOf(e);s!==-1&&i.adoptedStyleSheets.splice(s,1)}}}catch{}m.setDefaultStrategy(st)}else m.setDefaultStrategy(ei);const ot="defer-hydration",I="needs-hydration";class v extends ${static config(t){return v.lifecycleCallbacks=t,this}static hydrationObserverHandler(t){for(const e of t)v.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}static checkHydrationComplete(){var t,e;document.querySelector(`[${I}]`)||(e=(t=v.lifecycleCallbacks)===null||t===void 0?void 0:t.hydrationComplete)===null||e===void 0||e.call(t)}static forCustomElement(t,e){const s=f.getForInstance(t);return s?.templateOptions===Je.deferAndHydrate&&!s.template&&(t.toggleAttribute(ot,!0),t.toggleAttribute(I,!0)),super.forCustomElement(t,e)}connect(){var t,e,s,n,r,a;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(I)!==null),this.source.hasAttribute(ot)){v.hydrationObserver.observe(this.source,{attributeFilter:[ot]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;(e=(t=v.lifecycleCallbacks)===null||t===void 0?void 0:t.elementWillHydrate)===null||e===void 0||e.call(t,this.definition.name),this.stage=0,this.bindObservables(),this.connectBehaviors();const c=this.source,d=(s=L(c))!==null&&s!==void 0?s:c;if(this.template)if(V(this.template)){let l=d.firstChild,o=d.lastChild;c.shadowRoot===null&&(w.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),w.isElementBoundaryEndMarker(o)&&(o.data="",o=o.previousSibling)),this.view=this.template.hydrate(l,o,c),(n=this.view)===null||n===void 0||n.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(I),this.needsInitialization=this.needsHydration=!1,p.notify(this,W),(a=(r=v.lifecycleCallbacks)===null||r===void 0?void 0:r.elementDidHydrate)===null||a===void 0||a.call(r,this.definition.name),v.checkHydrationComplete()}disconnect(){super.disconnect(),v.hydrationObserver.unobserve(this.source)}static install(){$.setStrategy(v)}}v.hydrationObserver=new Ke(v.hydrationObserverHandler);var ii=function(i,t,e,s){function n(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(o){try{l(s.next(o))}catch(h){a(h)}}function d(o){try{l(s.throw(o))}catch(h){a(h)}}function l(o){o.done?r(o.value):n(o.value).then(c,d)}l((s=s.apply(i,t||[])).next())})};function fe(i){const t=class extends i{constructor(){super(),$.forCustomElement(this)}$emit(e,s,n){return this.$fastController.emit(e,s,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,n){this.$fastController.onAttributeChangedCallback(e,s,n)}};return f.registerBaseType(t),t}function si(i,t){return M(i)?f.compose(i,t):f.compose(this,i)}function ni(i,t){return ii(this,void 0,void 0,function*(){return M(i)?(yield f.composeAsync(i,t)).define().type:(yield f.composeAsync(this,i)).define().type})}function ri(i,t){return M(i)?f.compose(i,t).define().type:f.compose(this,i).define().type}function oi(i){return fe(i)}const ai=Object.assign(fe(HTMLElement),{from:oi,define:ri,compose:si,defineAsync:ni});function li(i,t){return i instanceof Function?i(t):i}const zt=new Set,at=new Map,ci=i=>(t="vwc")=>{const e=n=>`${t}-${n}`,s=n=>{const r=e(n.name);let a=n.type;if(a.componentName=n.name,zt.has(r))return;at.has(a)&&at.get(a)!==r&&(a=class extends a{}),zt.add(r),at.set(a,r);for(const o of n.dependencies)s(o);const c=new Map([[n.type,r],...n.dependencies.map(o=>[o.type,e(o.name)])]),l={tagFor:(o,h)=>{if(!c.has(o))throw new Error(`Could not get tag for ${o.name} as it is not a dependency of ${n.name}.`);const u=c.get(o);return h?u:yt.partial(u)},tagForNonDependency(o){return e(o)}};f.compose(a,{...n.options,template:li(n.template,l),name:`${t}-${n.name}`}).define()};s(i)},di=(i,t,e,s,n)=>({name:i,type:t,template:e,dependencies:s,options:n}),Ut=new WeakMap,pe=i=>{let t=Ut.get(i);return t||(t=[],Ut.set(i,t)),t},hi=(i,t)=>{pe(i).push(t)},ui=(i,t)=>{pe(i).forEach(e=>e(i,t))},fi=i=>i==="delegate",Wt=i=>`vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`,be=(i,t)=>{if(fi(i._vividAriaBehaviour)){const e=i[t];i[`_${t}`]=null,i.removeAttribute(Y(t)),i[`_${t}`]=e,i[t]!==null?i.dataset[Wt(t)]=i[t]:delete i.dataset[Wt(t)]}else C.setAttribute(i,Y(t),i[t])},X=new WeakMap,pi=(i,t)=>{const e=X.get(i);e?e.add(t):X.set(i,new Set([t]))},bi=(i,t)=>{i.isConnected?be(i,t):pi(i,t)},gi=i=>{const t=X.get(i);if(t){for(const e of t)be(i,e);X.delete(i)}},ct=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","ariaRelevant"],Y=i=>i.replace("aria","aria-").toLowerCase(),yi=i=>{class t extends i{constructor(...s){super(...s),this._vividAriaBehaviour="default";for(const n of ct)this[`_${n}`]=null}connectedCallback(){super.connectedCallback(),gi(this)}}for(const e of ct)ce({attribute:Y(e),mode:"fromView"})(t.prototype,e),t.prototype[`${e}Changed`]=function(){bi(this,e),this._vividAriaBehaviour!=="default"&&ui(this,e)};return t};function vi(){const i=new WeakMap;return t=>(i.has(t)||i.set(t,[]),i.get(t))}const ge=vi(),mi=i=>(t,e)=>{ge(t.constructor).push({newPropertyName:e,...i})},wi=i=>{class t extends i{#t(s){let n=!1,r=!1;const a=o=>r&&s.fromDeprecated(o[s.deprecatedPropertyName])===o[s.newPropertyName],c=o=>n&&s.toDeprecated&&s.toDeprecated(o[s.newPropertyName])===o[s.deprecatedPropertyName],d={handleChange(o,h){if(h===s.newPropertyName){if(n=!0,!s.toDeprecated||a(o))return;o[s.deprecatedPropertyName]=s.toDeprecated(o[s.newPropertyName])}if(h===s.deprecatedPropertyName){if(r=!0,c(o))return;o[s.newPropertyName]=s.fromDeprecated(o[s.deprecatedPropertyName])}}},l=p.getNotifier(this);l.subscribe(d,s.newPropertyName),l.subscribe(d,s.deprecatedPropertyName)}constructor(...s){super(...s);for(const n of ge(this.constructor))this.#t(n)}}return t};class Si extends yi(wi(ai)){static{this.VIVID_VERSION="5.5.0"}connectedCallback(){super.connectedCallback();const t=this.constructor.componentName;this.setAttribute("data-vvd-component",t)}}exports.Binding=tt;exports.DOM=C;exports.ElementStyles=m;exports.ExecutionContext=A;exports.HTMLDirective=T;exports.HTMLView=H;exports.HydrationMarkup=w;exports.HydrationStage=B;exports.Markup=pt;exports.Observable=p;exports.StatelessAttachedAttributeDirective=Zt;exports.SubscriberSet=q;exports.Updates=dt;exports.ViewBehaviorOrchestrator=Xe;exports.VividElement=Si;exports.ariaAttributeName=Y;exports.ariaMixinProperties=ct;exports.attr=ce;exports.commonjsGlobal=P;exports.createRegisterFunction=ci;exports.defineVividComponent=di;exports.emptyArray=me;exports.getAugmentedNamespace=ve;exports.getDefaultExportFromCjs=ye;exports.html=yt;exports.isFunction=M;exports.isHydratable=V;exports.isString=N;exports.noop=qt;exports.nullableNumberConverter=Qe;exports.observable=Ce;exports.oneTime=ut;exports.oneWay=ht;exports.replaces=mi;exports.subscribeToAriaPropertyChanges=hi;exports.volatile=Te;
|