jails-js 5.0.0-beta.8 → 5.0.1

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.
@@ -0,0 +1,311 @@
1
+ export default function Element(module: any, dependencies: any, templates: any, components: any): {
2
+ new (): {
3
+ base: any;
4
+ options: any;
5
+ __events: any;
6
+ connectedCallback(): void;
7
+ disconnectedCallback(): void;
8
+ attributeChangedCallback(): void;
9
+ accessKey: string;
10
+ readonly accessKeyLabel: string;
11
+ autocapitalize: string;
12
+ dir: string;
13
+ draggable: boolean;
14
+ hidden: boolean;
15
+ innerText: string;
16
+ lang: string;
17
+ readonly offsetHeight: number;
18
+ readonly offsetLeft: number;
19
+ readonly offsetParent: Element;
20
+ readonly offsetTop: number;
21
+ readonly offsetWidth: number;
22
+ outerText: string;
23
+ spellcheck: boolean;
24
+ title: string;
25
+ translate: boolean;
26
+ attachInternals(): ElementInternals;
27
+ click(): void;
28
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
30
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
31
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
32
+ readonly attributes: NamedNodeMap;
33
+ readonly classList: DOMTokenList;
34
+ className: string;
35
+ readonly clientHeight: number;
36
+ readonly clientLeft: number;
37
+ readonly clientTop: number;
38
+ readonly clientWidth: number;
39
+ id: string;
40
+ readonly localName: string;
41
+ readonly namespaceURI: string;
42
+ onfullscreenchange: (this: Element, ev: Event) => any;
43
+ onfullscreenerror: (this: Element, ev: Event) => any;
44
+ outerHTML: string;
45
+ readonly ownerDocument: Document;
46
+ readonly part: DOMTokenList;
47
+ readonly prefix: string;
48
+ readonly scrollHeight: number;
49
+ scrollLeft: number;
50
+ scrollTop: number;
51
+ readonly scrollWidth: number;
52
+ readonly shadowRoot: ShadowRoot;
53
+ slot: string;
54
+ readonly tagName: string;
55
+ attachShadow(init: ShadowRootInit): ShadowRoot;
56
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
57
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
58
+ closest<E extends Element = Element>(selectors: string): E;
59
+ getAttribute(qualifiedName: string): string;
60
+ getAttributeNS(namespace: string, localName: string): string;
61
+ getAttributeNames(): string[];
62
+ getAttributeNode(qualifiedName: string): Attr;
63
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
64
+ getBoundingClientRect(): DOMRect;
65
+ getClientRects(): DOMRectList;
66
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
67
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
68
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
69
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
70
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
71
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
72
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
73
+ hasAttribute(qualifiedName: string): boolean;
74
+ hasAttributeNS(namespace: string, localName: string): boolean;
75
+ hasAttributes(): boolean;
76
+ hasPointerCapture(pointerId: number): boolean;
77
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
78
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
79
+ insertAdjacentText(where: InsertPosition, data: string): void;
80
+ matches(selectors: string): boolean;
81
+ releasePointerCapture(pointerId: number): void;
82
+ removeAttribute(qualifiedName: string): void;
83
+ removeAttributeNS(namespace: string, localName: string): void;
84
+ removeAttributeNode(attr: Attr): Attr;
85
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
86
+ requestPointerLock(): void;
87
+ scroll(options?: ScrollToOptions): void;
88
+ scroll(x: number, y: number): void;
89
+ scrollBy(options?: ScrollToOptions): void;
90
+ scrollBy(x: number, y: number): void;
91
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
92
+ scrollTo(options?: ScrollToOptions): void;
93
+ scrollTo(x: number, y: number): void;
94
+ setAttribute(qualifiedName: string, value: string): void;
95
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
96
+ setAttributeNode(attr: Attr): Attr;
97
+ setAttributeNodeNS(attr: Attr): Attr;
98
+ setPointerCapture(pointerId: number): void;
99
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
100
+ webkitMatchesSelector(selectors: string): boolean;
101
+ readonly baseURI: string;
102
+ readonly childNodes: NodeListOf<ChildNode>;
103
+ readonly firstChild: ChildNode;
104
+ readonly isConnected: boolean;
105
+ readonly lastChild: ChildNode;
106
+ readonly nextSibling: ChildNode;
107
+ readonly nodeName: string;
108
+ readonly nodeType: number;
109
+ nodeValue: string;
110
+ readonly parentElement: HTMLElement;
111
+ readonly parentNode: ParentNode;
112
+ readonly previousSibling: ChildNode;
113
+ textContent: string;
114
+ appendChild<T extends Node>(node: T): T;
115
+ cloneNode(deep?: boolean): Node;
116
+ compareDocumentPosition(other: Node): number;
117
+ contains(other: Node): boolean;
118
+ getRootNode(options?: GetRootNodeOptions): Node;
119
+ hasChildNodes(): boolean;
120
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
121
+ isDefaultNamespace(namespace: string): boolean;
122
+ isEqualNode(otherNode: Node): boolean;
123
+ isSameNode(otherNode: Node): boolean;
124
+ lookupNamespaceURI(prefix: string): string;
125
+ lookupPrefix(namespace: string): string;
126
+ normalize(): void;
127
+ removeChild<T_2 extends Node>(child: T_2): T_2;
128
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
129
+ readonly ATTRIBUTE_NODE: number;
130
+ readonly CDATA_SECTION_NODE: number;
131
+ readonly COMMENT_NODE: number;
132
+ readonly DOCUMENT_FRAGMENT_NODE: number;
133
+ readonly DOCUMENT_NODE: number;
134
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
135
+ readonly DOCUMENT_POSITION_CONTAINS: number;
136
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
137
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
138
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
139
+ readonly DOCUMENT_POSITION_PRECEDING: number;
140
+ readonly DOCUMENT_TYPE_NODE: number;
141
+ readonly ELEMENT_NODE: number;
142
+ readonly ENTITY_NODE: number;
143
+ readonly ENTITY_REFERENCE_NODE: number;
144
+ readonly NOTATION_NODE: number;
145
+ readonly PROCESSING_INSTRUCTION_NODE: number;
146
+ readonly TEXT_NODE: number;
147
+ dispatchEvent(event: Event): boolean;
148
+ ariaAtomic: string;
149
+ ariaAutoComplete: string;
150
+ ariaBusy: string;
151
+ ariaChecked: string;
152
+ ariaColCount: string;
153
+ ariaColIndex: string;
154
+ ariaColSpan: string;
155
+ ariaCurrent: string;
156
+ ariaDisabled: string;
157
+ ariaExpanded: string;
158
+ ariaHasPopup: string;
159
+ ariaHidden: string;
160
+ ariaKeyShortcuts: string;
161
+ ariaLabel: string;
162
+ ariaLevel: string;
163
+ ariaLive: string;
164
+ ariaModal: string;
165
+ ariaMultiLine: string;
166
+ ariaMultiSelectable: string;
167
+ ariaOrientation: string;
168
+ ariaPlaceholder: string;
169
+ ariaPosInSet: string;
170
+ ariaPressed: string;
171
+ ariaReadOnly: string;
172
+ ariaRequired: string;
173
+ ariaRoleDescription: string;
174
+ ariaRowCount: string;
175
+ ariaRowIndex: string;
176
+ ariaRowSpan: string;
177
+ ariaSelected: string;
178
+ ariaSetSize: string;
179
+ ariaSort: string;
180
+ ariaValueMax: string;
181
+ ariaValueMin: string;
182
+ ariaValueNow: string;
183
+ ariaValueText: string;
184
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
185
+ getAnimations(options?: GetAnimationsOptions): Animation[];
186
+ after(...nodes: (string | Node)[]): void;
187
+ before(...nodes: (string | Node)[]): void;
188
+ remove(): void;
189
+ replaceWith(...nodes: (string | Node)[]): void;
190
+ innerHTML: string;
191
+ readonly nextElementSibling: Element;
192
+ readonly previousElementSibling: Element;
193
+ readonly childElementCount: number;
194
+ readonly children: HTMLCollection;
195
+ readonly firstElementChild: Element;
196
+ readonly lastElementChild: Element;
197
+ append(...nodes: (string | Node)[]): void;
198
+ prepend(...nodes: (string | Node)[]): void;
199
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
200
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
201
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
202
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
203
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
204
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
205
+ replaceChildren(...nodes: (string | Node)[]): void;
206
+ readonly assignedSlot: HTMLSlotElement;
207
+ oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
208
+ oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
209
+ onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
210
+ readonly style: CSSStyleDeclaration;
211
+ contentEditable: string;
212
+ enterKeyHint: string;
213
+ inputMode: string;
214
+ readonly isContentEditable: boolean;
215
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
216
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
217
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
218
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
219
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
220
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
221
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
222
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
223
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
224
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
225
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
226
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
227
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
228
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
229
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
230
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
231
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
232
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
233
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
234
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
235
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
236
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
237
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
238
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
239
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
240
+ onerror: OnErrorEventHandlerNonNull;
241
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
242
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
243
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
244
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
245
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
246
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
247
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
248
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
249
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
250
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
251
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
252
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
253
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
254
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
255
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
256
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
257
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
258
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
259
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
260
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
261
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
262
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
263
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
264
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
265
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
266
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
267
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
268
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
269
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
270
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
271
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
272
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
273
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
274
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
275
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
276
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
277
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
278
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
279
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
280
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
281
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
282
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
283
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
284
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
285
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
286
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
287
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
288
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
289
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
290
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
291
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
292
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
293
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
294
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
295
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
296
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
297
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
298
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
299
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
300
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
301
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
302
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
303
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
304
+ autofocus: boolean;
305
+ readonly dataset: DOMStringMap;
306
+ nonce?: string;
307
+ tabIndex: number;
308
+ blur(): void;
309
+ focus(options?: FocusOptions): void;
310
+ };
311
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ register(name: string, module: any, dependencies?: object): void;
3
+ start(): void;
4
+ templateConfig( options: any ): void;
5
+ };
6
+ export default _default;
package/types/index.ts ADDED
@@ -0,0 +1,41 @@
1
+ export type Component = {
2
+
3
+ elm: HTMLElement
4
+ dependencies: object
5
+
6
+ state : {
7
+ set( data: object ) : void
8
+ set( callback: ( state: object ) => any ) : void
9
+ get() : object
10
+ }
11
+
12
+ main( mainArgs: ( t: any ) => Array<Function> ): void
13
+
14
+ publish( name: string, value: any ) : void
15
+
16
+ subscribe( name: string, value: Function ) : Function
17
+
18
+ template( data: object ) : void
19
+
20
+ unmount( callback: () => void ) : void
21
+
22
+ onupdate( callback: () => void ) : void
23
+
24
+ on( eventName: string, selector: string, callback: () => void ): void
25
+
26
+ on( eventName: string, callback: () => void ): void
27
+
28
+ emit( eventName: string, data: any ) : void
29
+
30
+ off( eventName: string, callback: () => void ): void
31
+
32
+ trigger( eventName: string, selector :string, data: any ): void
33
+
34
+ render( data: object ) : void
35
+ }
36
+
37
+ export type Model = {
38
+ [key: string] : object
39
+ }
40
+
41
+ export type View = ( state: object ) => object
@@ -0,0 +1 @@
1
+ export default function templateSystem(element: any): (data: any) => string;
@@ -0,0 +1,3 @@
1
+ export declare const on: (node: any, ev: any, selectorOrCallback: any, callback: any) => void;
2
+ export declare const off: (node: any, ev: any, fn: any) => void;
3
+ export declare const trigger: (node: any, name: any, args: any) => void;
@@ -0,0 +1,8 @@
1
+ /// <reference types="node" />
2
+ export declare const rAF: (fn: any) => number | NodeJS.Timeout;
3
+ export declare const uuid: () => string;
4
+ export declare const stripTemplateTag: (element: any) => void;
5
+ export declare const dup: (o: any) => any;
6
+ export declare const createTemplateId: (element: any, templates: any) => void;
7
+ export declare const buildtemplates: (target: any, components: any, templates: any) => unknown[];
8
+ export declare const decodeHtmlEntities: (str: any) => string;
@@ -0,0 +1,2 @@
1
+ export declare const publish: (name: any, params: any) => void;
2
+ export declare const subscribe: (name: any, method: any) => () => void;
package/webpack.config.js CHANGED
@@ -9,27 +9,27 @@ module.exports = {
9
9
  },
10
10
 
11
11
  entry: {
12
- jails: './src/index.ts'
12
+ index: './src/index.ts'
13
13
  },
14
14
 
15
15
  module: {
16
- rules: [
17
- {
18
- test: /\.ts$/,
19
- exclude: [/node_modules/],
20
- loader: 'ts-loader',
16
+ rules: [
17
+ {
18
+ test: /\.ts$/,
19
+ exclude: [/node_modules/],
20
+ loader: 'ts-loader',
21
21
  options: {
22
22
  transpileOnly: true
23
23
  }
24
- }
25
- ]
26
- },
24
+ }
25
+ ]
26
+ },
27
27
 
28
28
  output: {
29
- path : path.resolve(__dirname, './dist'),
30
- filename : '[name].js',
31
- libraryTarget : 'umd',
32
- library : 'jails',
29
+ path: path.resolve(__dirname, './dist'),
30
+ filename: '[name].js',
31
+ libraryTarget: 'umd',
32
+ library: 'jails',
33
33
  umdNamedDefine: true
34
34
  }
35
35
  }
package/dist/jails.js DELETED
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("jails",[],t):"object"==typeof exports?exports.jails=t():e.jails=t()}(self,(function(){return(()=>{"use strict";var __webpack_modules__={676:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{let t7ctx;__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__}),t7ctx="undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:void 0;const Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:e=>"function"==typeof e,escape:(e="")=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),helperToSlices(e){const{quoteDoubleRexExp:t,quoteSingleRexExp:n}=Template7Utils,r=e.replace(/[{}#}]/g,"").trim().split(" "),i=[];let a,l,s;for(l=0;l<r.length;l+=1){let e,o,c=r[l];if(0===l)i.push(c);else if(0===c.indexOf('"')||0===c.indexOf("'"))if(e=0===c.indexOf('"')?t:n,o=0===c.indexOf('"')?'"':"'",2===c.match(e).length)i.push(c);else{for(a=0,s=l+1;s<r.length;s+=1)if(c+=` ${r[s]}`,r[s].indexOf(o)>=0){a=s,i.push(c);break}a&&(l=a)}else if(c.indexOf("=")>0){const p=c.split("="),u=p[0];let d=p[1];if(e||(e=0===d.indexOf('"')?t:n,o=0===d.indexOf('"')?'"':"'"),2!==d.match(e).length){for(a=0,s=l+1;s<r.length;s+=1)if(d+=` ${r[s]}`,r[s].indexOf(o)>=0){a=s;break}a&&(l=a)}const f=[u,d.replace(e,"")];i.push(f)}else i.push(c)}return i},stringToBlocks(e){const t=[];let n,r;if(!e)return[];const i=e.split(/({{[^{^}]*}})/);for(n=0;n<i.length;n+=1){let e=i[n];if(""!==e)if(e.indexOf("{{")<0)t.push({type:"plain",content:e});else{if(e.indexOf("{/")>=0)continue;if(e=e.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}"),e.indexOf("{#")<0&&e.indexOf(" ")<0&&e.indexOf("else")<0){t.push({type:"variable",contextName:e.replace(/[{}]/g,"")});continue}const a=Template7Utils.helperToSlices(e);let l=a[0];const s=">"===l,o=[],c={};for(r=1;r<a.length;r+=1){const e=a[r];Array.isArray(e)?c[e[0]]="false"!==e[1]&&e[1]:o.push(e)}if(e.indexOf("{#")>=0){let e,a="",s="",p=0,u=!1,d=!1,f=0;for(r=n+1;r<i.length;r+=1)if(i[r].indexOf("{{#")>=0&&(f+=1),i[r].indexOf("{{/")>=0&&(f-=1),i[r].indexOf(`{{#${l}`)>=0)a+=i[r],d&&(s+=i[r]),p+=1;else if(i[r].indexOf(`{{/${l}`)>=0){if(!(p>0)){e=r,u=!0;break}p-=1,a+=i[r],d&&(s+=i[r])}else i[r].indexOf("else")>=0&&0===f?d=!0:(d||(a+=i[r]),d&&(s+=i[r]));u&&(e&&(n=e),"raw"===l?t.push({type:"plain",content:a}):t.push({type:"helper",helperName:l,contextName:o,content:a,inverseContent:s,hash:c}))}else e.indexOf(" ")>0&&(s&&(l="_partial",o[0]&&(0===o[0].indexOf("[")?o[0]=o[0].replace(/[[\]]/g,""):o[0]=`"${o[0].replace(/"|'/g,"")}"`)),t.push({type:"helper",helperName:l,contextName:o,hash:c}))}}return t},parseJsVariable:(e,t,n)=>e.split(/([+ \-*/^()&=|<>!%:?])/g).reduce(((e,r)=>{if(!r)return e;if(r.indexOf(t)<0)return e.push(r),e;if(!n)return e.push(JSON.stringify("")),e;let i=n;return r.indexOf(`${t}.`)>=0&&r.split(`${t}.`)[1].split(".").forEach((e=>{i=e in i?i[e]:void 0})),("string"==typeof i||Array.isArray(i)||i.constructor&&i.constructor===Object)&&(i=JSON.stringify(i)),void 0===i&&(i="undefined"),e.push(i),e}),[]).join(""),parseJsParents:(e,t)=>e.split(/([+ \-*^()&=|<>!%:?])/g).reduce(((e,n)=>{if(!n)return e;if(n.indexOf("../")<0)return e.push(n),e;if(!t||0===t.length)return e.push(JSON.stringify("")),e;const r=n.split("../").length-1;let i=r>t.length?t[t.length-1]:t[r-1];return n.replace(/..\//g,"").split(".").forEach((e=>{i=void 0!==i[e]?i[e]:"undefined"})),!1===i||!0===i?(e.push(JSON.stringify(i)),e):null===i||"undefined"===i?(e.push(JSON.stringify("")),e):(e.push(JSON.stringify(i)),e)}),[]).join(""),getCompileVar(e,t,n="data_1"){let r,i,a=t,l=0;0===e.indexOf("../")?(l=e.split("../").length-1,i=a.split("_")[1]-l,a=`ctx_${i>=1?i:1}`,r=e.split("../")[l].split(".")):0===e.indexOf("@global")?(a="Template7.global",r=e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(a="root",r=e.split("@root.")[1].split(".")):r=e.split(".");for(let e=0;e<r.length;e+=1){const s=r[e];if(0===s.indexOf("@")){let t=n.split("_")[1];l>0&&(t=i),e>0?a+=`[(data_${t} && data_${t}.${s.replace("@","")})]`:a=`(data_${t} && data_${t}.${s.replace("@","")})`}else(Number.isFinite?Number.isFinite(s):Template7Context.isFinite(s))?a+=`[${s}]`:"this"===s||s.indexOf("this.")>=0||s.indexOf("this[")>=0||s.indexOf("this(")>=0?a=s.replace("this",t):a+=`.${s}`}return a},getCompiledArguments(e,t,n){const r=[];for(let i=0;i<e.length;i+=1)/^['"]/.test(e[i])||/^(true|false|\d+)$/.test(e[i])?r.push(e[i]):r.push(Template7Utils.getCompileVar(e[i],t,n));return r.join(", ")}},Template7Helpers={_partial(e,t){const n=this,r=Template7Class.partials[e];return!r||r&&!r.template?"":(r.compiled||(r.compiled=new Template7Class(r.template).compile()),Object.keys(t.hash).forEach((e=>{n[e]=t.hash[e]})),r.compiled(n,t.data,t.root))},escape(e){if(null==e)return"";if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if(e,t){let n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.fn(this,t.data):t.inverse(this,t.data)},unless(e,t){let n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.inverse(this,t.data):t.fn(this,t.data)},each(e,t){let n=e,r="",i=0;if(Template7Utils.isFunction(n)&&(n=n.call(this)),Array.isArray(n)){for(t.hash.reverse&&(n=n.reverse()),i=0;i<n.length;i+=1)r+=t.fn(n[i],{first:0===i,last:i===n.length-1,index:i});t.hash.reverse&&(n=n.reverse())}else for(const e in n)i+=1,r+=t.fn(n[e],{key:e});return i>0?r:t.inverse(this)},with(e,t){let n=e;return Template7Utils.isFunction(n)&&(n=e.call(this)),t.fn(n)},join(e,t){let n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n.join(t.hash.delimiter||t.hash.delimeter)},js(expression,options){const data=options.data;let func,execute=expression;return"index first last key".split(" ").forEach((e=>{if(void 0!==data[e]){const t=new RegExp(`this.@${e}`,"g"),n=new RegExp(`@${e}`,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?`(function(){${execute}})`:`(function(){return (${execute})})`,eval(func).call(this)},js_if(expression,options){const data=options.data;let func,execute=expression;"index first last key".split(" ").forEach((e=>{if(void 0!==data[e]){const t=new RegExp(`this.@${e}`,"g"),n=new RegExp(`@${e}`,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?`(function(){${execute}})`:`(function(){return (${execute})})`;const condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;const Template7Options={},Template7Partials={};class Template7Class{constructor(e){this.template=e}compile(template=this.template,depth=1){const t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");const{stringToBlocks,getCompileVar,getCompiledArguments}=Template7Utils,blocks=stringToBlocks(template),ctx=`ctx_${depth}`,data=`data_${depth}`;if(0===blocks.length)return function(){return""};function getCompileFn(e,n){return e.content?t.compile(e.content,n):function(){return""}}function getCompileInverse(e,n){return e.inverseContent?t.compile(e.inverseContent,n):function(){return""}}let resultString="",i;for(resultString+=1===depth?`(function (${ctx}, ${data}, root) {\n`:`(function (${ctx}, ${data}) {\n`,1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){const e=blocks[i];if("plain"===e.type){resultString+=`r +='${e.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")}';`;continue}let t,n;if("variable"===e.type&&(t=getCompileVar(e.contextName,ctx,data),resultString+=`r += c(${t}, ${ctx});`),"helper"===e.type){let r,i;if("ctx_1"!==ctx){const e=ctx.split("_")[1];let t="ctx_"+(e-1);for(let n=e-2;n>=1;n-=1)t+=`, ctx_${n}`;r=`[${t}]`}else r=`[${ctx}]`;if(0===e.helperName.indexOf("[")&&(e.helperName=getCompileVar(e.helperName.replace(/[[\]]/g,""),ctx,data),i=!0),i||e.helperName in Template7Helpers)n=getCompiledArguments(e.contextName,ctx,data),resultString+=`r += (Template7Helpers${i?`[${e.helperName}]`:`.${e.helperName}`}).call(${ctx}, ${n&&`${n}, `}{hash:${JSON.stringify(e.hash)}, data: ${data} || {}, fn: ${getCompileFn(e,depth+1)}, inverse: ${getCompileInverse(e,depth+1)}, root: root, parents: ${r}});`;else{if(e.contextName.length>0)throw new Error(`Template7: Missing helper: "${e.helperName}"`);t=getCompileVar(e.helperName,ctx,data),resultString+=`if (${t}) {`,resultString+=`if (isArray(${t})) {`,resultString+=`r += (Template7Helpers.each).call(${ctx}, ${t}, {hash:${JSON.stringify(e.hash)}, data: ${data} || {}, fn: ${getCompileFn(e,depth+1)}, inverse: ${getCompileInverse(e,depth+1)}, root: root, parents: ${r}});`,resultString+="}else {",resultString+=`r += (Template7Helpers.with).call(${ctx}, ${t}, {hash:${JSON.stringify(e.hash)}, data: ${data} || {}, fn: ${getCompileFn(e,depth+1)}, inverse: ${getCompileInverse(e,depth+1)}, root: root, parents: ${r}});`,resultString+="}}"}}}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString}static get options(){return Template7Options}static get partials(){return Template7Partials}static get helpers(){return Template7Helpers}}function Template7(...e){const[t,n]=e;if(2===e.length){let e=new Template7Class(t);const r=e.compile()(n);return e=null,r}return new Template7Class(t)}Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials;const __WEBPACK_DEFAULT_EXPORT__=Template7}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{components:()=>k,default:()=>U,templates:()=>E});var e=__webpack_require__(676);const t=e=>{const t=Array.from(e.querySelectorAll("[html-repeat],[html-if]")).reverse();return t.length&&t.forEach((e=>{if(e.getAttribute("html-repeat")){const t=e.getAttribute("html-repeat");e.removeAttribute("html-repeat"),e.setAttribute("scope","{{scope this}}");const n=document.createTextNode(`{{#each ${t}}}`),r=document.createTextNode("{{/each}}");e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(r,e.nextSibling)}else if(e.getAttribute("html-if")){const t=e.getAttribute("html-if");e.removeAttribute("html-if"),e.setAttribute("scope","{{scope this}}");const n=document.createTextNode(`{{#ifexp "${t}"}}`),r=document.createTextNode("{{/ifexp}}");e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(r,e.nextSibling)}})),e};e.Z.global={},e.Z.registerHelper("scope",((e,t)=>{const{data:n}=t,{first:r,index:i,last:a,root:l}=n,s=Object.assign(Object.assign({},e),{$first:r,$index:i,$last:a,$parent:l});return JSON.stringify(s).replace(/\"/g,"'")})),e.Z.registerHelper("ifexp",(function(e,t){const n=l(e),{root:r,data:i}=t;try{return new Function("root",`with(root){ return ${n} }`).call(r,r)?t.fn(this,i):t.inverse(this,i)}catch(e){return t.inverse(this,i)}}));const n=e=>{(requestAnimationFrame||setTimeout)(e,1e3/60)},r=e=>{Array.from(e.querySelectorAll("template")).forEach((e=>{e.parentNode.replaceChild(e.content,e),r(e.content)}))},i=e=>JSON.parse(JSON.stringify(e)),a=(n,i,a)=>Array.from(n.querySelectorAll("*")).filter((e=>e.tagName.toLocaleLowerCase()in i)).reverse().map((n=>(((n,i)=>{const a=n.getAttribute("tplid");if(!a){const a="xxxxxxxx".replace(/[xy]/g,(e=>{const t=8*Math.random()|0;return("x"==e?t:3&t|8).toString(8)}));return n.setAttribute("tplid",a),i[a]=function(n){const i=[t],a=n.cloneNode(!0);r(a);const l=i.reduce(((e,t)=>t(a)),a).outerHTML.replace(/html-/g,""),s=e.Z.compile(l);return e=>s(e)}(n),i[a]}i[a]})(n,a),n))),l=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},s="CustomEvent"in window&&"function"==typeof window.CustomEvent?(e,t)=>new CustomEvent(e,t):(e,t)=>{const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!0,!0,t),n},o=(e,t)=>function(n){const r=this,i=n.detail||{};e.__events[t].forEach((e=>{e.handler.apply(r,[n].concat(i.args))}))},c=(e,t)=>{e.__events[t]&&e.__events[t].listener&&(e.removeEventListener(t,e.__events[t].listener,"focus"==t||"blur"==t||"mouseenter"==t||"mouseleave"==t),delete e.__events[t])},p=(e,t,n)=>function(r){const i=this,a=r.detail||{};let l=r.target;for(;l&&(l.matches(t)&&(r.delegateTarget=l,n.apply(i,[r].concat(a.args))),l!==e);)l=l.parentNode},u=(e,t,n)=>{e.dispatchEvent(s(t,{bubbles:!0,detail:n}))},d={},f={},_=(e,t)=>{f[e]=Object.assign({},f[e],t),d[e]&&d[e].forEach((e=>e(t)))},h=(e,t)=>{d[e]=d[e]||[],d[e].push(t),e in f&&t(f[e])},m=e=>{d[e.name]=(d[e.name]||[]).filter((t=>t!=e.method)),d[e.name].length||(delete d[e.name],delete f[e.name])};var g,x="undefined"==typeof document?void 0:document,b=!!x&&"content"in x.createElement("template"),v=!!x&&x.createRange&&"createContextualFragment"in x.createRange();function T(e,t){var n,r,i=e.nodeName,a=t.nodeName;return i===a||(n=i.charCodeAt(0),r=a.charCodeAt(0),n<=90&&r>=97?i===a.toUpperCase():r<=90&&n>=97&&a===i.toUpperCase())}function y(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var N={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();"OPTGROUP"===r&&(r=(n=n.parentNode)&&n.nodeName.toUpperCase()),"SELECT"!==r||n.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}y(e,t,"selected")},INPUT:function(e,t){y(e,t,"checked"),y(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n,r,i=-1,a=0,l=e.firstChild;l;)if("OPTGROUP"===(r=l.nodeName&&l.nodeName.toUpperCase()))l=(n=l).firstChild;else{if("OPTION"===r){if(l.hasAttribute("selected")){i=a;break}a++}!(l=l.nextSibling)&&n&&(l=n.nextSibling,n=null)}e.selectedIndex=i}}};function O(){}function C(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}const A=function(e,t,n){if(n||(n={}),"string"==typeof t)if("#document"===e.nodeName||"HTML"===e.nodeName||"BODY"===e.nodeName){var r=t;(t=x.createElement("html")).innerHTML=r}else i=(i=t).trim(),t=b?function(e){var t=x.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(i):v?function(e){return g||(g=x.createRange()).selectNode(x.body),g.createContextualFragment(e).childNodes[0]}(i):function(e){var t=x.createElement("body");return t.innerHTML=e,t.childNodes[0]}(i);var i,a=n.getNodeKey||C,l=n.onBeforeNodeAdded||O,s=n.onNodeAdded||O,o=n.onBeforeElUpdated||O,c=n.onElUpdated||O,p=n.onBeforeNodeDiscarded||O,u=n.onNodeDiscarded||O,d=n.onBeforeElChildrenUpdated||O,f=!0===n.childrenOnly,_=Object.create(null),h=[];function m(e){h.push(e)}function y(e,t){if(1===e.nodeType)for(var n=e.firstChild;n;){var r=void 0;t&&(r=a(n))?m(r):(u(n),n.firstChild&&y(n,t)),n=n.nextSibling}}function A(e,t,n){!1!==p(e)&&(t&&t.removeChild(e),u(e),y(e,n))}function w(e){s(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=a(t);if(r){var i=_[r];i&&T(t,i)?(t.parentNode.replaceChild(i,t),S(i,t)):w(t)}else w(t);t=n}}function S(e,t,n){var r=a(t);if(r&&delete _[r],!n){if(!1===o(e,t))return;if(function(e,t){var n,r,i,a,l=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var s=l.length-1;s>=0;s--)r=(n=l[s]).name,i=n.namespaceURI,a=n.value,i?(r=n.localName||r,e.getAttributeNS(i,r)!==a&&("xmlns"===n.prefix&&(r=n.name),e.setAttributeNS(i,r,a))):e.getAttribute(r)!==a&&e.setAttribute(r,a);for(var o=e.attributes,c=o.length-1;c>=0;c--)r=(n=o[c]).name,(i=n.namespaceURI)?(r=n.localName||r,t.hasAttributeNS(i,r)||e.removeAttributeNS(i,r)):t.hasAttribute(r)||e.removeAttribute(r)}}(e,t),c(e),!1===d(e,t))return}"TEXTAREA"!==e.nodeName?function(e,t){var n,r,i,s,o,c=t.firstChild,p=e.firstChild;e:for(;c;){for(s=c.nextSibling,n=a(c);p;){if(i=p.nextSibling,c.isSameNode&&c.isSameNode(p)){c=s,p=i;continue e}r=a(p);var u=p.nodeType,d=void 0;if(u===c.nodeType&&(1===u?(n?n!==r&&((o=_[n])?i===o?d=!1:(e.insertBefore(o,p),r?m(r):A(p,e,!0),p=o):d=!1):r&&(d=!1),(d=!1!==d&&T(p,c))&&S(p,c)):3!==u&&8!=u||(d=!0,p.nodeValue!==c.nodeValue&&(p.nodeValue=c.nodeValue))),d){c=s,p=i;continue e}r?m(r):A(p,e,!0),p=i}if(n&&(o=_[n])&&T(o,c))e.appendChild(o),S(o,c);else{var f=l(c);!1!==f&&(f&&(c=f),c.actualize&&(c=c.actualize(e.ownerDocument||x)),e.appendChild(c),w(c))}c=s,p=i}!function(e,t,n){for(;t;){var r=t.nextSibling;(n=a(t))?m(n):A(t,e,!0),t=r}}(e,p,r);var h=N[e.nodeName];h&&h(e,t)}(e,t):N.TEXTAREA(e,t)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var n=t.firstChild;n;){var r=a(n);r&&(_[r]=n),e(n),n=n.nextSibling}}(e);var $,E,k=e,U=k.nodeType,j=t.nodeType;if(!f)if(1===U)1===j?T(e,t)||(u(e),k=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(e,($=t.nodeName,(E=t.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==E?x.createElementNS(E,$):x.createElement($)))):k=t;else if(3===U||8===U){if(j===U)return k.nodeValue!==t.nodeValue&&(k.nodeValue=t.nodeValue),k;k=t}if(k===t)u(e);else{if(t.isSameNode&&t.isSameNode(k))return;if(S(k,t,f),h)for(var q=0,J=h.length;q<J;q++){var P=_[h[q]];P&&A(P,P.parentNode,!1)}}return!f&&k!==e&&e.parentNode&&(k.actualize&&(k=k.actualize(e.ownerDocument||x)),e.parentNode.replaceChild(k,e)),k};const w=(e,t)=>({onNodeAdded:$(e),onElUpdated:$(e),onBeforeElChildrenUpdated:S,onBeforeElUpdated:S,getNodeKey:e=>!(1!==e.nodeType||!e.getAttribute("tplid"))&&(e.dataset.key||e.getAttribute("tplid"))}),S=e=>{if("static"in e.dataset)return!1},$=e=>t=>{if(1===t.nodeType&&t.getAttribute&&t.getAttribute("scope")){const n=JSON.parse(t.getAttribute("scope").replace(/\'/g,'"'));Array.from(t.querySelectorAll("*")).filter((e=>e.__internal__)).map((t=>{const r=Object.assign(t.__internal__.state,i(e.__internal__.state),n);t.__internal__.onupdate(r),t.base.render(r)})),t.removeAttribute("scope")}},E={},k={},U={register(e,t,n={}){k[e]={name:e,module:t,dependencies:n}},start(){const e=document.body;r(e),a(e,k,E),j()}},j=()=>{Object.values(k).forEach((({name:e,module:t,dependencies:r})=>{const l=function(e,t,r,l){return class extends HTMLElement{constructor(){super();let s=[];a(this,l,r);const d=this.getAttribute("tplid"),f=r[d];this.__internal__={main:()=>null,unmount:()=>null,onupdate:e=>e,view:e.view?e.view:e=>e,state:e.model?i(e.model):{}},this.base={template:f,dependencies:t,publish:_,subscribe:h,unsubscribe:m,elm:this,main:e=>{this.__internal__.main=e},unmount:e=>{this.__internal__.unmount=e},onupdate:e=>{this.__internal__.onupdate=e},render:(e=this.__internal__.state)=>{document.body.contains(this)&&(s.push(this.__internal__.view(e)),n((t=>{if(s.length){const t={};s.forEach((e=>Object.assign(t,e))),s=[],this.__internal__.state=Object.assign(this.__internal__.state,t);const r=i(this.__internal__.state),a=this.base.template(r);A(this,a,w(this,e)),Array.from(this.querySelectorAll("*")).filter((e=>e.__internal__)).map((e=>{n((t=>{e.__internal__.onupdate(r),e.base.render(r)}))}))}})))},state:{set:e=>{if(e.constructor===Function){const t=i(this.__internal__.state);e(t),this.base.render(t)}else this.base.render(e);return new Promise((e=>n((t=>n(e)))))},get:()=>i(this.__internal__.state)},on:(e,t,n)=>{((e,t,n,r)=>{if(e.__events=e.__events||{},e.__events[t]=e.__events[t]||[],!e.__events[t].length){const n=o(e,t);e.addEventListener(t,n,"focus"==t||"blur"==t||"mouseenter"==t||"mouseleave"==t),e.__events[t].listener=n}n.call?e.__events[t].push({handler:n,callback:n}):e.__events[t].push({handler:p(e,n,r),callback:r})})(this,e,t,n)},off:(e,t)=>{((e,t,n)=>{if(n&&e.__events[t]&&e.__events[t].length){var r=e.__events[t];e.__events[t]=e.__events[t].filter((function(e){return e.callback!=n})),e.__events[t].listener=r.listener,e.__events[t].length||c(e,t)}else c(e,t)})(this,e,t)},trigger:(e,t,n)=>{t.constructor===String?u(this.querySelector(t),e,{args:n}):u(this,e,{args:t})},emit:(...e)=>{u(this,e.shift(),{args:e})}},e.default(this.base)}connectedCallback(){this.base.render(),this.__internal__.main().forEach((e=>e(this.base)))}disconnectedCallback(){this.__internal__.unmount(this.base),delete this.__internal__,delete this.base,delete this.__events}attributeChangedCallback(){}}}(t,r,E,k);customElements.define(e,l)}))}})(),__webpack_exports__})()}));
2
- //# sourceMappingURL=jails.js.map
@@ -1,4 +0,0 @@
1
- /*!
2
- * mustache.js - Logic-less {{mustache}} templates with JavaScript
3
- * http://github.com/janl/mustache.js
4
- */