proto-float-wc 0.1.0 → 0.1.84
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/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-B_zXFQfG.js +1383 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/proto-float-wc.cjs.js +15 -13
- package/dist/cjs/proto-floater-demo.cjs.entry.js +1586 -0
- package/dist/collection/collection-manifest.json +3 -4
- package/dist/collection/components/proto-floater-demo/proto-floater-demo.css +27 -24
- package/dist/collection/components/proto-floater-demo/proto-floater-demo.js +134 -11
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/proto-floater-demo.js +1 -53
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-DN_GSREz.js +1377 -0
- package/dist/esm/loader.js +6 -4
- package/dist/esm/proto-float-wc.js +15 -12
- package/dist/esm/proto-floater-demo.entry.js +1584 -0
- package/dist/proto-float-wc/p-44c23264.entry.js +1 -0
- package/dist/proto-float-wc/p-DN_GSREz.js +2 -0
- package/dist/proto-float-wc/p-DQuL1Twl.js +1 -0
- package/dist/proto-float-wc/proto-float-wc.esm.js +1 -1
- package/dist/types/components/proto-floater-demo/proto-floater-demo.d.ts +20 -2
- package/dist/types/components.d.ts +21 -20
- package/dist/types/stencil-public-runtime.d.ts +199 -18
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +24 -19
- package/dist/cjs/index-95c398a6.js +0 -1762
- package/dist/cjs/proto-floater-demo_2.cjs.entry.js +0 -146
- package/dist/collection/components/proto-floater-demo/proto-360.js +0 -10
- package/dist/collection/components/proto-player/proto-player.css +0 -60
- package/dist/collection/components/proto-player/proto-player.js +0 -166
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/types.js +0 -1
- package/dist/components/proto-player.d.ts +0 -11
- package/dist/components/proto-player.js +0 -138
- package/dist/esm/index-6a814d4f.js +0 -1736
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/proto-floater-demo_2.entry.js +0 -141
- package/dist/proto-float-wc/p-5ef8cd91.js +0 -2
- package/dist/proto-float-wc/p-e4a96884.entry.js +0 -1
- package/dist/types/components/proto-floater-demo/proto-360.d.ts +0 -5
- package/dist/types/components/proto-player/proto-player.d.ts +0 -24
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/types.d.ts +0 -8
- package/loader/package.json +0 -11
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"components/proto-floater-demo/proto-floater-demo.js"
|
|
4
|
-
"components/proto-player/proto-player.js"
|
|
3
|
+
"components/proto-floater-demo/proto-floater-demo.js"
|
|
5
4
|
],
|
|
6
5
|
"compiler": {
|
|
7
6
|
"name": "@stencil/core",
|
|
8
|
-
"version": "4.
|
|
9
|
-
"typescriptVersion": "5.
|
|
7
|
+
"version": "4.42.0",
|
|
8
|
+
"typescriptVersion": "5.8.3"
|
|
10
9
|
},
|
|
11
10
|
"collections": [],
|
|
12
11
|
"bundles": []
|
|
@@ -22,39 +22,42 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
#target {
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
width: 24px;
|
|
26
|
+
height: 24px;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
text-align: center;
|
|
29
|
+
border-radius: 12px;
|
|
30
|
+
background: var(--clrs-blue);
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
font-size: 120%;
|
|
29
33
|
color: var(--clrs-white);
|
|
30
34
|
cursor: pointer;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
margin-top: 4px;
|
|
35
|
-
margin-left: 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
#overlay {
|
|
37
|
+
#tooltip {
|
|
39
38
|
display: none;
|
|
40
39
|
position: absolute;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
min-height: 18px;
|
|
41
|
+
background: var(--clrs-navy);
|
|
42
|
+
color: var(--clrs-white);
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
padding-right: 10px;
|
|
46
|
+
padding-left: 10px;
|
|
47
|
+
border-radius: 4px;
|
|
48
|
+
font-size: 90%;
|
|
49
|
+
pointer-events: none;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
#
|
|
52
|
+
#arrow {
|
|
51
53
|
position: absolute;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
background: var(--clrs-navy);
|
|
55
|
+
width: 8px;
|
|
56
|
+
height: 8px;
|
|
57
|
+
transform: rotate(45deg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#content {
|
|
55
61
|
display: none;
|
|
56
|
-
width: 0;
|
|
57
|
-
height: 0;
|
|
58
62
|
border: none;
|
|
59
|
-
z-index: 1100;
|
|
60
63
|
}
|
|
@@ -1,16 +1,127 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { computePosition, flip, shift, offset, arrow } from "@floating-ui/dom";
|
|
3
|
+
import { nanoid } from "nanoid";
|
|
4
|
+
const CHECK = 'Checking...';
|
|
5
|
+
const FAILED = 'Content Failed to Load...';
|
|
3
6
|
export class ProtoFloaterDemo {
|
|
4
7
|
constructor() {
|
|
5
|
-
this.
|
|
8
|
+
this.vin = undefined;
|
|
9
|
+
this.snapshot = undefined;
|
|
10
|
+
this.label = CHECK;
|
|
11
|
+
this.failed = true;
|
|
12
|
+
this.loaded = false;
|
|
13
|
+
this.time = undefined;
|
|
14
|
+
this.eventBus = window['eventBus'];
|
|
15
|
+
this.message = undefined;
|
|
16
|
+
this.nanoId = nanoid();
|
|
17
|
+
this.messageHandler = event => {
|
|
18
|
+
const { origin, data } = event;
|
|
19
|
+
const { targetId } = data;
|
|
20
|
+
console.log('-- messageHandler:', data, origin);
|
|
21
|
+
if (origin !== 'http://localhost:3000')
|
|
22
|
+
return;
|
|
23
|
+
if (targetId !== this.nanoId)
|
|
24
|
+
return;
|
|
25
|
+
if (this.message === undefined) {
|
|
26
|
+
if (data.type && data.type === 'resize-iframe') {
|
|
27
|
+
this.iframe.style.width = data.payload.width + 'px';
|
|
28
|
+
this.iframe.style.height = data.payload.height + 'px';
|
|
29
|
+
this.iframe.style.display = 'block';
|
|
30
|
+
this.loaded = true;
|
|
31
|
+
this.label = '';
|
|
32
|
+
this.message = data;
|
|
33
|
+
const { vin, snapshot } = this;
|
|
34
|
+
const payload = {
|
|
35
|
+
targetId: this.nanoId,
|
|
36
|
+
type: 'data-payload',
|
|
37
|
+
payload: { vin, snapshot },
|
|
38
|
+
};
|
|
39
|
+
if (this.iframe) {
|
|
40
|
+
this.iframe.contentWindow.postMessage(payload, '*');
|
|
41
|
+
}
|
|
42
|
+
this.update();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.hideTooltip();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
this.register = () => {
|
|
50
|
+
this.eventBus.emit('activate', this.nanoId);
|
|
51
|
+
window.addEventListener('message', this.messageHandler, false);
|
|
52
|
+
};
|
|
53
|
+
this.unregister = () => {
|
|
54
|
+
window.removeEventListener('message', this.messageHandler);
|
|
55
|
+
};
|
|
56
|
+
this.update = () => {
|
|
57
|
+
const { target, tooltip, arrowEl } = this;
|
|
58
|
+
computePosition(target, tooltip, {
|
|
59
|
+
placement: 'right',
|
|
60
|
+
middleware: [offset(6), flip(), shift({ padding: 5 }), arrow({ element: arrowEl })],
|
|
61
|
+
}).then(({ x, y, placement, middlewareData }) => {
|
|
62
|
+
Object.assign(tooltip.style, {
|
|
63
|
+
left: `${x}px`,
|
|
64
|
+
top: `${y}px`,
|
|
65
|
+
});
|
|
66
|
+
// Accessing the data
|
|
67
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
68
|
+
const staticSide = {
|
|
69
|
+
top: 'bottom',
|
|
70
|
+
right: 'left',
|
|
71
|
+
bottom: 'top',
|
|
72
|
+
left: 'right',
|
|
73
|
+
}[placement.split('-')[0]];
|
|
74
|
+
Object.assign(arrowEl.style, {
|
|
75
|
+
left: arrowX != null ? `${arrowX}px` : '',
|
|
76
|
+
top: arrowY != null ? `${arrowY}px` : '',
|
|
77
|
+
right: '',
|
|
78
|
+
bottom: '',
|
|
79
|
+
[staticSide]: '-4px',
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
this.onIframeLoad = _event => {
|
|
84
|
+
this.update();
|
|
85
|
+
setTimeout(() => {
|
|
86
|
+
if (!this.loaded) {
|
|
87
|
+
this.label = FAILED;
|
|
88
|
+
}
|
|
89
|
+
}, 3000);
|
|
90
|
+
};
|
|
91
|
+
this.hideTooltip = () => {
|
|
92
|
+
this.iframe.style.display = '';
|
|
93
|
+
this.tooltip.style.display = '';
|
|
94
|
+
this.message = undefined;
|
|
95
|
+
this.unregister();
|
|
96
|
+
};
|
|
97
|
+
this.showTooltip = () => {
|
|
98
|
+
this.register();
|
|
99
|
+
this.loaded = false;
|
|
100
|
+
this.label = CHECK;
|
|
101
|
+
this.loaded = false;
|
|
102
|
+
this.time = Date.now();
|
|
103
|
+
this.tooltip.style.display = 'block';
|
|
104
|
+
this.update();
|
|
105
|
+
};
|
|
6
106
|
this.clickHandler = () => {
|
|
7
|
-
this.
|
|
107
|
+
const visible = this.tooltip.style.display === 'block';
|
|
108
|
+
visible ? this.hideTooltip() : this.showTooltip();
|
|
8
109
|
};
|
|
9
|
-
|
|
10
|
-
|
|
110
|
+
}
|
|
111
|
+
componentDidLoad() {
|
|
112
|
+
this.eventBus.on('activate', nanoId => {
|
|
113
|
+
if (this.nanoId !== nanoId) {
|
|
114
|
+
const visible = this.tooltip.style.display === 'block';
|
|
115
|
+
if (this.message !== undefined || visible) {
|
|
116
|
+
this.hideTooltip();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
this.update();
|
|
11
121
|
}
|
|
12
122
|
render() {
|
|
13
|
-
|
|
123
|
+
const url = `http://localhost:3000/demo_iframe.html?q=${this.time}&nid=${this.nanoId}`;
|
|
124
|
+
return (h("div", { key: '1da684903d9253b204641b4184bc5e1f79326405', id: "root" }, h("div", { key: '84665f15de5991870ad2a16f42f1984789f4631f', id: "target", ref: el => (this.target = el), onClick: () => this.clickHandler() }, "i"), h("div", { key: '178c42dc946b455c8873e06d481a93d095a2e752', id: "tooltip", role: "tooltip", ref: el => (this.tooltip = el) }, h("div", { key: '75921e81ce12a64df3500d1492b6d782ff2881e3' }, this.label), this.time ? (h("iframe", { id: "content", src: url, ref: el => (this.iframe = el), onLoad: ev => this.onIframeLoad(ev) })) : (''), h("div", { key: '99722c505d254559b6a89a3d173c0925b12e53be', id: "arrow", ref: el => (this.arrowEl = el) }))));
|
|
14
125
|
}
|
|
15
126
|
static get is() { return "proto-floater-demo"; }
|
|
16
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,11 +151,13 @@ export class ProtoFloaterDemo {
|
|
|
40
151
|
"tags": [],
|
|
41
152
|
"text": ""
|
|
42
153
|
},
|
|
43
|
-
"
|
|
154
|
+
"getter": false,
|
|
155
|
+
"setter": false,
|
|
44
156
|
"reflect": false,
|
|
157
|
+
"attribute": "vin",
|
|
45
158
|
"defaultValue": "undefined"
|
|
46
159
|
},
|
|
47
|
-
"
|
|
160
|
+
"snapshot": {
|
|
48
161
|
"type": "string",
|
|
49
162
|
"mutable": false,
|
|
50
163
|
"complexType": {
|
|
@@ -53,15 +166,25 @@ export class ProtoFloaterDemo {
|
|
|
53
166
|
"references": {}
|
|
54
167
|
},
|
|
55
168
|
"required": false,
|
|
56
|
-
"optional":
|
|
169
|
+
"optional": false,
|
|
57
170
|
"docs": {
|
|
58
171
|
"tags": [],
|
|
59
172
|
"text": ""
|
|
60
173
|
},
|
|
61
|
-
"
|
|
174
|
+
"getter": false,
|
|
175
|
+
"setter": false,
|
|
62
176
|
"reflect": false,
|
|
63
|
-
"
|
|
177
|
+
"attribute": "snapshot",
|
|
178
|
+
"defaultValue": "undefined"
|
|
64
179
|
}
|
|
65
180
|
};
|
|
66
181
|
}
|
|
182
|
+
static get states() {
|
|
183
|
+
return {
|
|
184
|
+
"label": {},
|
|
185
|
+
"failed": {},
|
|
186
|
+
"loaded": {},
|
|
187
|
+
"time": {}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
67
190
|
}
|
|
@@ -31,3 +31,5 @@ export interface SetPlatformOptions {
|
|
|
31
31
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
32
|
}
|
|
33
33
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
34
|
+
|
|
35
|
+
export * from '../types';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{getAssetPath,render,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const Proto360 = props => {
|
|
4
|
-
const hex = props.hex || 'currentColor';
|
|
5
|
-
const klass = props.class;
|
|
6
|
-
const label = props.label || '360';
|
|
7
|
-
const size = props.size || 24;
|
|
8
|
-
return (h("svg", { class: klass, width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "title" },
|
|
9
|
-
h("title", null, label),
|
|
10
|
-
h("g", { fill: hex },
|
|
11
|
-
h("path", { "fill-rule": "evenodd", d: "M354.622 52.365c-.157.254-1.59.435-3.446.435-1.851 0-3.176.167-3.176.4 0 .22-.72.4-1.6.4-.88 0-1.6.18-1.6.4 0 .22-.439.4-.976.4-.537 0-1.088.18-1.224.4-.136.22-.582.4-.99.4-.409 0-.803.135-.877.3-.073.165-1.213.833-2.533 1.485-1.32.651-2.691 1.506-3.047 1.9-.356.393-.854.715-1.107.715-.532 0-5.646 5.012-5.646 5.533 0 .192-.54.913-1.2 1.604-.66.691-1.2 1.527-1.2 1.859 0 .332-.148.604-.33.604-.181 0-.824 1.125-1.429 2.5-.604 1.375-1.266 2.813-1.47 3.195-.204.382-.371 1.021-.371 1.42s-.162.896-.359 1.105c-1.293 1.368-1.292 17.607.001 18.406.197.122.358.65.358 1.174 0 .524.18 1.064.4 1.2.22.136.4.518.4.848 0 .767 2.027 5.108 2.468 5.285.183.074.332.386.332.693 0 .308.495 1.126 1.1 1.817 2.069 2.365 6.483 6.757 6.792 6.758.169 0 .938.54 1.708 1.199s1.625 1.199 1.9 1.199c.275.001.5.147.5.326 0 .179.63.573 1.4.875.77.302 1.4.696 1.4.875 0 .179.439.325.976.325.537 0 1.088.18 1.224.4.136.22.597.4 1.024.4.427 0 .776.18.776.4 0 .22.72.4 1.6.4.88 0 1.6.18 1.6.4 0 .235 1.389.4 3.367.4 2.319 0 3.429.156 3.568.5.161.4.208.4.233 0 .023-.358.996-.5 3.432-.5 2 0 3.4-.165 3.4-.4 0-.22.619-.4 1.376-.4.757 0 1.488-.18 1.624-.4.136-.22.597-.4 1.024-.4.427 0 .776-.18.776-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.36-.4.8-.4.44 0 .8-.158.8-.351 0-.194.54-.576 1.2-.849.66-.273 1.2-.655 1.2-.849 0-.193.264-.351.586-.351 1.226 0 8.453-7.178 9.782-9.716.312-.596.717-1.084.9-1.084.182 0 .332-.36.332-.8 0-.44.18-.8.4-.8.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.99.4-2.2 0-1.21.18-2.2.4-2.2.237 0 .4-1.459.4-3.576 0-1.967-.18-3.688-.4-3.824-.22-.136-.4-1.126-.4-2.2 0-1.074-.18-2.064-.4-2.2-.22-.136-.4-.777-.4-1.424 0-.647-.18-1.176-.4-1.176-.22 0-.4-.343-.4-.762 0-.816-1.601-4.15-2.1-4.371-.165-.074-.3-.479-.3-.9 0-.422-.15-.767-.332-.767-.183 0-.587-.495-.898-1.1-.31-.605-.844-1.37-1.186-1.7-.342-.33-1.053-1.23-1.579-2s-1.397-1.76-1.934-2.2c-.538-.44-1.677-1.464-2.532-2.276-.854-.811-2.405-1.891-3.446-2.4-1.041-.508-1.953-1.059-2.026-1.224-.074-.165-.479-.3-.9-.3-.422 0-.767-.147-.767-.328 0-.18-.9-.572-2-.872-1.1-.3-2-.692-2-.872 0-.181-.619-.328-1.376-.328-.757 0-1.488-.18-1.624-.4-.136-.22-1.641-.4-3.344-.4-1.703 0-3.292-.196-3.531-.435-.313-.313-.51-.313-.703 0m6.018 23.203c1.819.879 4.56 3.26 4.56 3.96 0 .26.18.472.4.472.22 0 .4.36.4.8 0 .44.18.8.4.8.22 0 .4.54.4 1.2 0 .66.18 1.2.4 1.2.225 0 .4 1.125.4 2.576 0 1.417-.18 2.688-.4 2.824-.22.136-.4.561-.4.944 0 .875-.899 2.849-1.3 2.853-.165.002-.3.255-.3.563 0 .728-2.712 3.44-3.44 3.44-.308 0-.56.18-.56.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .243-1.8.4-4.6.4s-4.6-.157-4.6-.4c0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.276-.4-.613-.4-.338 0-1.222-.608-1.965-1.351-6.085-6.085-4.654-16.478 2.778-20.167 2.311-1.148 9.357-1.217 11.64-.114M99.6 123.609c-.55.178-2.395.639-4.1 1.024-1.705.386-3.1.851-3.1 1.034 0 .183-.45.333-1 .333s-1 .18-1 .4c0 .22-.27.4-.6.4-.33 0-.6.136-.6.302 0 .167-.585.561-1.3.876-1.264.557-7.891 6.836-7.909 7.493-.005.181-.361.779-.791 1.329-.43.55-.786 1.315-.791 1.7-.005.385-.189.7-.409.7-.22 0-.4.36-.4.8 0 .44-.18.8-.4.8-.22 0-.4.72-.4 1.6 0 .88-.18 1.6-.4 1.6-.242 0-.4 1.733-.4 4.4 0 2.667.158 4.4.4 4.4.22 0 .4.278.4.618 0 .8 1.782 2.582 2.582 2.582.34 0 .618.18.618.4 0 .22.9.4 2 .4s2 .18 2 .4c0 .222 1.067.4 2.4.4s2.4-.178 2.4-.4c0-.22.715-.4 1.588-.4 3.819 0 6.812-3.273 6.812-7.451 0-1.188.159-2.472.353-2.854.195-.382.562-1.145.816-1.695.65-1.405 2.955-2.8 4.625-2.8.773 0 1.406-.18 1.406-.4 0-.241 1.667-.4 4.2-.4 2.533 0 4.2.159 4.2.4 0 .22.549.4 1.221.4 2.468 0 5.979 3.037 5.979 5.171 0 .43.18.893.4 1.029.231.142.4 2.271.4 5.024 0 2.917-.156 4.776-.4 4.776-.22 0-.4.54-.4 1.2 0 .66-.18 1.2-.4 1.2-.22 0-.4.278-.4.617 0 .654-.527 1.412-1.745 2.511-.409.37-.981.897-1.271 1.172-.29.275-.99.5-1.555.5-.566 0-1.029.18-1.029.4 0 .23-1.24.4-2.92.4-2.719 0-5.07.602-5.077 1.3-.002.165-.228.303-.503.307-1.026.015-2.3 3.667-2.3 6.593s1.274 6.578 2.3 6.593c.275.004.501.142.503.307.008.728 2.416 1.3 5.477 1.3 1.947 0 3.32.165 3.32.4 0 .22.535.4 1.188.4 2.357 0 5.28 2.234 6.862 5.246 1.062 2.021 1.372 14.11.415 16.158a791 791 0 0 0-.9 1.935c-.682 1.472-2.193 3.061-2.912 3.061-.359 0-.653.18-.653.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.709.4-1.576.4-.867 0-1.688.18-1.824.4-.138.223-1.996.4-4.2.4s-4.062-.177-4.2-.4c-.136-.22-1.047-.4-2.024-.4-.977 0-1.776-.18-1.776-.4 0-.22-.436-.4-.968-.4-1.294 0-4.632-3.321-4.632-4.608 0-.52-.18-1.056-.4-1.192-.22-.136-.4-1.229-.4-2.429 0-2.568-1.146-4.971-2.371-4.971-.236 0-.429-.18-.429-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.246-2-.4-5.2-.4s-5.2.154-5.2.4c0 .22-.476.4-1.057.4-1.175 0-3.13 1.789-3.757 3.437-.893 2.348.002 11.396 1.259 12.743.195.209.355.704.355 1.1 0 .396.18.72.4.72.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.183.4.407 0 .649 5.121 5.593 5.793 5.593.334 0 .607.145.607.321 0 .421 3.817 2.479 4.597 2.479.332 0 .603.141.603.313 0 .172.855.544 1.9.826 1.045.283 2.213.682 2.595.888.382.205 1.226.373 1.876.373.65 0 1.293.18 1.429.4.136.22 1.486.4 3 .4s2.864.18 3 .4c.137.221 1.937.4 4.024.4 2.251 0 3.776-.162 3.776-.4 0-.231 1.259-.4 2.976-.4 1.637 0 3.088-.18 3.224-.4.136-.22.946-.4 1.8-.4.854 0 1.664-.18 1.8-.4.136-.22.777-.4 1.424-.4.647 0 1.176-.18 1.176-.4 0-.22.252-.4.56-.4.837 0 5.794-2.183 6.679-2.941.424-.362.939-.659 1.146-.659.561 0 6.415-5.96 6.415-6.531 0-.271.36-.752.8-1.069.44-.317.8-.897.8-1.288 0-.392.135-.714.3-.715.165-.002.631-1.127 1.036-2.5.405-1.374.889-2.857 1.075-3.297.941-2.22 1.62-18.329.807-19.142-.23-.23-.418-.82-.418-1.312 0-1.11-1.978-5.746-2.452-5.746-.192 0-.348-.241-.348-.536 0-.725-3.38-4.264-4.072-4.264-.303 0-.811-.36-1.128-.8-.317-.44-.897-.8-1.288-.8-.392 0-.713-.135-.715-.3-.003-.314-1.903-1.3-2.505-1.3-1.12 0-1.59-1.25-.76-2.023.459-.427.946-.777 1.082-.777.495 0 5.386-5.309 5.386-5.846 0-.305.18-.554.4-.554.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.45.4-1s.18-1 .4-1c.22 0 .4-.45.4-1s.18-1 .4-1c.22 0 .4-.619.4-1.376 0-.757.18-1.488.4-1.624.243-.15.4-3.137.4-7.624 0-4.651-.148-7.376-.4-7.376-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.45-.4-1s-.18-1-.4-1c-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.274-.4-.61 0-.687-5.707-6.59-6.371-6.59-.236 0-.429-.18-.429-.4 0-.22-.27-.4-.6-.4-.33 0-.6-.18-.6-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.16-.8-.355 0-.195-.495-.456-1.1-.581-.605-.125-2.09-.43-3.3-.676-1.21-.247-2.753-.615-3.428-.819-1.492-.448-17.968-.415-19.372.04m91.8-.038c-.44.176-1.832.447-3.094.603-1.261.155-2.397.449-2.523.654-.127.205-.76.372-1.407.372s-1.176.18-1.176.4c0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.234.4-.52.4-.736 0-2.673.941-2.677 1.3-.002.165-.323.3-.715.3-.391 0-.971.36-1.288.8-.317.44-.767.8-1 .8-.954 0-7 7.231-7 8.372 0 .235-.135.429-.3.431-.406.004-1.3 1.983-1.3 2.877 0 .396-.18.72-.4.72-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-.22.136-.4.856-.4 1.6 0 .744-.18 1.464-.4 1.6-.22.136-.4 1.317-.4 2.624 0 1.317-.178 2.376-.4 2.376-.262 0-.4 8.192-.4 23.776 0 15.42.141 23.864.4 24.024.22.136.4 1.407.4 2.824 0 1.451.175 2.576.4 2.576.22 0 .4.72.4 1.6 0 .88.18 1.6.4 1.6.22 0 .4.335.4.744 0 .802 2.405 5.769 2.9 5.989.165.074.3.383.3.687 0 1.025 6.812 8.18 7.788 8.18.336 0 .612.145.612.323 0 .178.765.642 1.7 1.031l2.7 1.124c.55.228 1.313.574 1.695.769a3.88 3.88 0 0 0 1.476.353c.43 0 .881.161 1.003.358.265.428 2.583.819 6.526 1.099 1.595.113 2.9.372 2.9.575 0 .202 1.8.368 4 .368s4-.166 4-.368c0-.203 1.305-.462 2.9-.575 3.943-.28 6.261-.671 6.526-1.099.122-.197.573-.358 1.003-.358a3.88 3.88 0 0 0 1.476-.353c.382-.195 1.235-.58 1.895-.856 2.567-1.076 4.006-1.803 4.133-2.091.074-.165.399-.3.722-.3.862 0 6.328-5.684 7.373-7.666.27-.514.602-1.024.737-1.134.135-.11.668-1.1 1.184-2.2a127.05 127.05 0 0 1 1.295-2.695 3.846 3.846 0 0 0 .356-1.476c0-.43.18-.893.4-1.029.22-.136.4-.957.4-1.824 0-.867.18-1.576.4-1.576.237 0 .4-1.459.4-3.576 0-1.967.18-3.688.4-3.824.22-.136.4-1.126.4-2.2 0-1.074-.18-2.064-.4-2.2-.22-.136-.4-1.767-.4-3.624 0-1.984-.165-3.376-.4-3.376-.22 0-.4-.72-.4-1.6 0-.88-.18-1.6-.4-1.6-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.268-.4-.595 0-1.418-6.387-7.805-7.805-7.805-.327 0-.596-.135-.598-.3-.004-.359-1.941-1.3-2.677-1.3-.286 0-.52-.18-.52-.4 0-.22-.439-.4-.976-.4-.537 0-1.088-.18-1.224-.4-.136-.22-.777-.4-1.424-.4-.647 0-1.176-.18-1.176-.4 0-.222-1.059-.4-2.376-.4-1.307 0-2.488-.18-2.624-.4-.14-.227-2.137-.4-4.624-.4-2.651 0-4.376.158-4.376.4 0 .22-.9.4-2 .4s-2 .18-2 .4c0 .22-.452.4-1.005.4-.553 0-1.318.159-1.7.353-.382.195-1.176.578-1.764.851-.588.274-1.913 1.195-2.944 2.047-3.433 2.837-3.387 2.944-3.387-7.851 0-6 .145-9.4.4-9.4.22 0 .4-.619.4-1.376 0-.757.18-1.488.4-1.624.22-.136.4-.557.4-.935 0-.379.36-.948.8-1.265.44-.317.8-.767.8-1 0-.233.377-.688.837-1.012a27.315 27.315 0 0 0 1.663-1.29c1.458-1.238 3.808-1.572 10.088-1.433l6.046.135 2.288 1.388c1.321.801 2.497 1.858 2.781 2.5.271.611.628 1.112.795 1.112.166 0 .302 1.069.302 2.376s.18 2.488.4 2.624c.22.136.4.629.4 1.096 0 1.138 3.425 4.304 4.656 4.304.519 0 .944.18.944.4 0 .245 1.933.4 5 .4s5-.155 5-.4c0-.22.36-.4.8-.4.44 0 .8-.18.8-.4 0-.22.36-.4.8-.4.44 0 .8-.236.8-.525 0-.288.36-.911.8-1.383.522-.561.8-1.411.8-2.452 0-.876.18-1.704.4-1.84.22-.136.4-.597.4-1.024 0-.427-.18-.776-.4-.776-.222 0-.4-1.067-.4-2.4s-.178-2.4-.4-2.4c-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.265-.4-.588 0-.532-.495-1.544-2.062-4.22-.536-.913-2.409-3.087-5.207-6.041-.807-.853-1.713-1.551-2.011-1.551-.299 0-.803-.36-1.12-.8-.317-.44-.897-.8-1.288-.8-.392 0-.712-.18-.712-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.16-.8-.356 0-.196-.585-.452-1.3-.569-1.732-.284-5.007-1.037-6.528-1.5-1.485-.453-17.242-.456-18.372-.004m90.088-.125c-.135.135-1.56.501-3.167.813-4.821.936-5.121 1.018-5.121 1.386 0 .195-.36.355-.8.355-.44 0-.8.18-.8.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.32.4-.712.4-.391 0-.971.36-1.288.8-.317.44-.786.8-1.042.8-.593 0-5.758 4.995-5.758 5.569 0 .237-.18.431-.4.431-.22 0-.4.27-.4.6 0 .33-.18.6-.4.6-.22 0-.4.27-.4.6 0 .33-.136.6-.302.6-.167 0-.539.585-.827 1.3-.288.715-.782 1.891-1.097 2.614-.316.722-.574 1.631-.574 2.02 0 .388-.162.877-.359 1.086-1.546 1.636-2.403 59.178-.904 60.677.255.255.463.899.463 1.431 0 1.137 2.062 7.411 2.5 7.605.165.074.3.439.3.812 0 .373.36.938.8 1.255.44.317.8.818.8 1.113 0 .69 6.702 7.287 7.403 7.287.292 0 .59.135.664.3.194.438 4.573 2.5 5.308 2.5.344 0 .625.18.625.4 0 .22.54.4 1.2.4.66 0 1.2.162 1.2.36 0 .198.855.472 1.9.609s3.25.435 4.9.663c4.952.682 10.053.875 10.53.398.237-.237 1.643-.43 3.126-.43 1.483 0 2.808-.18 2.944-.4.136-.22.946-.4 1.8-.4.854 0 1.664-.18 1.8-.4.136-.22.676-.4 1.2-.4.524 0 1.064-.18 1.2-.4.136-.22.687-.4 1.224-.4.537 0 .976-.18.976-.4 0-.22.274-.4.608-.4.334 0 1.321-.45 2.192-1 .871-.55 1.728-1 1.904-1 .176 0 .579-.36.896-.8.317-.44.762-.804.988-.809.548-.013 3.412-2.608 3.412-3.092 0-.209.54-.945 1.2-1.636.66-.691 1.2-1.445 1.2-1.676 0-.231.36-.807.8-1.279.44-.472.8-1.185.8-1.583 0-.399.18-.725.4-.725.22 0 .4-.349.4-.776 0-.427.18-.888.4-1.024.22-.136.4-.687.4-1.224 0-.537.155-.976.344-.976.189 0 .464-.945.61-2.1.146-1.155.428-3.09.626-4.3.199-1.21.362-13 .362-26.2s-.163-24.99-.362-26.2c-.198-1.21-.48-3.145-.626-4.3-.146-1.155-.421-2.1-.61-2.1s-.344-.54-.344-1.2c0-.66-.18-1.2-.4-1.2-.22 0-.4-.36-.4-.8 0-.44-.146-.8-.325-.8-.179 0-.573-.63-.875-1.4-.302-.77-.696-1.4-.875-1.4-.179 0-.325-.275-.325-.611 0-.789-7.411-8.189-8.201-8.189-.329 0-.599-.146-.599-.325 0-.179-.63-.573-1.4-.875-.77-.302-1.4-.696-1.4-.875 0-.179-.36-.325-.8-.325-.44 0-.8-.16-.8-.356 0-.196-.585-.449-1.3-.561a45.33 45.33 0 0 1-3.1-.653 227.74 227.74 0 0 0-3.506-.839c-1.843-.423-17.802-.55-18.206-.145m16.228 19.397c1.938.97 4.284 3.071 4.284 3.835 0 .287.18.522.4.522.22 0 .4.349.4.776 0 .427.18.888.4 1.024.22.136.4.676.4 1.2 0 .524.18 1.064.4 1.2.26.161.4 8.996.4 25.2s-.14 25.039-.4 25.2c-.22.136-.4.777-.4 1.424 0 .647-.18 1.176-.4 1.176-.22 0-.4.331-.4.736 0 .803-3.248 4.464-3.96 4.464-.242 0-.44.18-.44.4 0 .22-.349.4-.776.4-.427 0-.888.18-1.024.4-.136.22-.766.4-1.4.4-.634 0-1.264.18-1.4.4-.136.22-1.666.4-3.4.4s-3.264-.18-3.4-.4c-.136-.22-.867-.4-1.624-.4-.757 0-1.376-.18-1.376-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.278-.4-.618-.4-1.183 0-3.033-2.472-4.49-6-1.178-2.853-1.345-6.862-1.176-28.2.19-23.921.176-23.722 1.984-27.7.745-1.64 4.018-4.697 5.554-5.188 2.651-.847 12.155-.624 14.062.331M47.8 160c-.136.22-.743.4-1.348.4-.606 0-1.488.36-1.96.8-.472.44-1.136.8-1.475.8-.339 0-.617.18-.617.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.046.8-1.275.8a.41.41 0 0 0-.417.4c0 .22-.27.4-.6.4-.33 0-.6.18-.6.4 0 .22-.27.4-.6.4-.33 0-.6.15-.6.332 0 .183-.495.587-1.1.898-.605.31-1.391.881-1.747 1.267-.356.387-.816.703-1.022.703-.206 0-1.062.63-1.903 1.4-.841.77-1.658 1.4-1.817 1.4-.307 0-.944.516-4.345 3.517-3.475 3.066-5.792 5.384-7.009 7.013a32.29 32.29 0 0 1-2.5 2.886c-.746.747-1.357 1.451-1.357 1.566 0 .211-.975 1.459-1.9 2.434-.275.29-.5.68-.5.867 0 .187-.36.6-.8.917-.44.317-.8.897-.8 1.288 0 .392-.159.712-.354.712-.195 0-.668.675-1.052 1.5-1.551 3.339-3.095 6.756-3.48 7.7-.224.55-.566 1.313-.761 1.695-.194.382-.353 1.057-.353 1.5 0 .443-.16.805-.356.805-.34 0-.587 1.027-1.108 4.6-.128.88-.403 1.708-.611 1.84-.543.345-.501 16.344.045 16.89.237.237.43 1.114.43 1.95 0 .836.18 1.52.4 1.52.22 0 .403.405.406.9.007.976.876 3.715 1.32 4.159.151.151.274.694.274 1.208 0 .513.18.933.4.933.22 0 .4.259.4.576 0 .316.629 1.801 1.398 3.3.769 1.498 1.399 2.949 1.4 3.224.001.275.182.5.402.5.22 0 .4.32.4.712 0 .391.36.971.8 1.288.44.317.8.762.801.988 0 .227.54 1.042 1.199 1.812s1.199 1.54 1.199 1.711c.001.363.7 1.148 7.067 7.938 2.604 2.776 4.941 5.071 5.193 5.1.253.028 1.379.951 2.502 2.051 1.124 1.1 2.24 2 2.481 2 .24 0 .941.54 1.558 1.2.617.66 1.274 1.202 1.46 1.205.187.003.79.364 1.34.803 1.595 1.271 4.002 2.792 4.418 2.792.21 0 .382.158.382.351 0 .194.54.576 1.2.849.66.273 1.2.655 1.2.849 0 .193.236.351.525.351.288 0 .911.36 1.383.8.472.44 1.136.8 1.475.8.339 0 .617.18.617.4 0 .22.36.4.8.4.44 0 .8.159.8.353 0 .195.315.454.7.576.936.296 3.066 1.595 3.233 1.971.074.165.479.3.9.3.422 0 .767.18.767.4 0 .22.36.4.8.4.44 0 .8.18.8.4 0 .22.36.4.8.4.44 0 .8.136.8.302 0 .167.585.538 1.3.827.715.288 1.613.692 1.995.897.382.206.967.374 1.3.374.333 0 .605.18.605.4 0 .22.36.4.8.4.44 0 .8.18.8.4 0 .22.36.4.8.4.44 0 .8.143.8.317 0 .174.847.544 1.883.821 1.036.277 2.521.782 3.3 1.124.779.341 1.867.802 2.417 1.025.55.224 1.313.565 1.695.76.382.194 1.057.353 1.5.353.443 0 .805.18.805.4 0 .22.362.4.805.4.443 0 1.208.208 1.7.462 1.921.994 2.311 1.138 3.066 1.138.43 0 .893.18 1.029.4.136.22.676.4 1.2.4.524 0 1.064.18 1.2.4.136.22.676.4 1.2.4.524 0 1.064.18 1.2.4.136.22.777.4 1.424.4.647 0 1.176.18 1.176.4 0 .22.54.4 1.2.4.66 0 1.2.18 1.2.4 0 .22.529.4 1.176.4.647 0 1.288.18 1.424.4.136.22.867.4 1.624.4.757 0 1.376.18 1.376.4 0 .22.63.4 1.4.4.77 0 1.4.18 1.4.4 0 .22.63.4 1.4.4.77 0 1.4.18 1.4.4 0 .22.619.4 1.376.4.757 0 1.488.18 1.624.4.136.22.946.4 1.8.4.854 0 1.664.18 1.8.4.136.22.957.4 1.824.4.867 0 1.576.18 1.576.4 0 .22.81.4 1.8.4s1.8.18 1.8.4c0 .22.675.408 1.5.417.825.01 2.31.194 3.3.409.99.215 2.97.581 4.4.814 1.43.233 3.59.601 4.8.818 1.21.217 3.28.488 4.6.602 1.32.114 2.571.372 2.78.574.209.201 1.388.366 2.62.366 1.232 0 2.411.166 2.62.369.357.347 2.183.551 9.38 1.05 1.65.115 3.36.379 3.8.588.44.209 1.878.428 3.196.486 4.027.18 4.064.118-6.23 10.556-3.281 3.327-5.966 6.342-5.966 6.7 0 .358-.18.651-.4.651-.22 0-.4.54-.4 1.2 0 .66-.18 1.2-.4 1.2-.22 0-.4.709-.4 1.576 0 .867.18 1.688.4 1.824.22.136.4.561.4.944 0 .875.899 2.849 1.3 2.853.165.002.3.244.3.539 0 .732 2.238 2.673 4.341 3.764 1.849.959 7.659 1.339 7.659.5 0-.22.298-.4.662-.4 2.259 0 37.338-35.111 37.338-37.372 0-.345.18-.628.4-.628.526 0 .526-5.875 0-6.2-.22-.136-.4-.597-.4-1.024 0-.427-.18-.776-.4-.776-.22 0-.4-.266-.4-.59 0-.487-3.37-4.267-6.739-7.558-.795-.776-14.69-14.671-16.712-16.711-4.041-4.078-10.613-10.342-10.858-10.35-.16-.005-.741-.361-1.291-.791-.55-.43-1.495-.786-2.1-.791-.605-.005-1.1-.189-1.1-.409 0-.22-.709-.4-1.576-.4-.867 0-1.688.18-1.824.4-.136.22-.687.4-1.224.4-.537 0-.976.18-.976.4 0 .22-.315.404-.7.409-.884.012-4.9 4.057-4.9 4.936 0 .36-.18.655-.4.655-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-.22.136-.4.946-.4 1.8 0 .854.18 1.664.4 1.8.22.136.4.561.4.944 0 .875.899 2.849 1.3 2.853.165.002.3.186.3.409 0 .223 1.485 1.905 3.3 3.738 4.467 4.511 6.7 7 6.7 7.467 0 .923-10.663.099-21.4-1.654-1.32-.216-3.3-.491-4.4-.611-1.1-.121-2.171-.383-2.38-.583-.209-.2-1.244-.363-2.3-.363-1.056 0-1.92-.18-1.92-.4 0-.22-.774-.4-1.72-.4s-1.891-.162-2.1-.359c-.209-.197-1.145-.467-2.08-.6-4.199-.595-4.918-.747-5.126-1.083-.122-.197-.83-.358-1.574-.358-.744 0-1.464-.18-1.6-.4-.136-.22-.867-.4-1.624-.4-.757 0-1.376-.18-1.376-.4 0-.22-.72-.4-1.6-.4-.88 0-1.6-.18-1.6-.4 0-.22-.72-.4-1.6-.4-.88 0-1.6-.18-1.6-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.63-.4-1.4-.4-.77 0-1.4-.18-1.4-.4 0-.22-.529-.4-1.176-.4-.647 0-1.288-.18-1.424-.4-.136-.22-.687-.4-1.224-.4-.537 0-.976-.18-.976-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.362-.4-.805-.4-.443 0-1.118-.174-1.5-.387-.382-.213-1.505-.658-2.495-.987-3.25-1.083-4.781-1.674-5.059-1.952-.151-.151-.604-.274-1.008-.274-.403 0-.733-.18-.733-.4 0-.22-.315-.406-.7-.413-.385-.006-1.775-.546-3.09-1.2-1.314-.653-2.619-1.187-2.9-1.187-.28 0-.51-.18-.51-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.801-.135-.801-.3-.001-.165-.991-.75-2.199-1.3-1.208-.55-2.198-1.135-2.199-1.3 0-.165-.279-.3-.618-.3-.339 0-1.003-.36-1.475-.8-.472-.44-1.095-.8-1.383-.8-.289 0-.525-.18-.525-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.15-.8-.332 0-.183-.495-.588-1.1-.9-.605-.313-1.449-.883-1.875-1.268-.427-.385-1.012-.7-1.3-.7-.289 0-.525-.18-.525-.4 0-.22-.201-.4-.446-.4-.479 0-3.468-2.084-6.289-4.385-2.501-2.04-11.265-10.783-11.265-11.238 0-.211-.538-.947-1.195-1.635-1.285-1.344-4.805-8.127-4.805-9.257 0-.377-.18-.685-.4-.685-.22 0-.4-.619-.4-1.376 0-.757-.18-1.488-.4-1.624-.536-.331-.536-12.869 0-13.2.22-.136.4-.777.4-1.424 0-.647.18-1.176.4-1.176.22 0 .4-.362.4-.805 0-.443.163-1.118.363-1.5.2-.382 1.03-2.045 1.844-3.695.815-1.65 1.605-3.09 1.756-3.2.152-.11.715-.828 1.252-1.596 1.826-2.611 8.068-9.204 8.714-9.204.215 0 1.309-.9 2.432-2 1.124-1.1 2.182-2 2.353-2 .17 0 .569-.36.886-.8.317-.44.807-.8 1.088-.8.282 0 .512-.18.512-.4 0-.22.27-.4.6-.4.33 0 .6-.15.6-.332 0-.183.495-.588 1.1-.9.605-.313 1.449-.883 1.875-1.268.427-.385 1.012-.7 1.3-.7.289 0 .525-.18.525-.4 0-.22.236-.4.525-.4.288 0 .911-.36 1.383-.8.472-.44 1.052-.8 1.289-.8 1.755 0 5.182-5.911 5.197-8.965.017-3.461-3.964-9.835-6.142-9.835-.359 0-.652-.18-.652-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.709-.4-1.576-.4-.867 0-1.688.18-1.824.4m309.2 4.8c-.136.22-.682.4-1.213.4-1.582 0-6.187 2.899-6.187 3.895 0 .278-.18.505-.4.505-.22 0-.4.27-.4.6 0 .33-.18.6-.4.6-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-2.337 1.444 2.953 12.6 5.974 12.6.234 0 .426.18.426.4 0 .22.23.4.512.4.281 0 .771.36 1.088.8.317.44.722.8.899.8.177 0 1.132.81 2.122 1.8s1.978 1.8 2.196 1.8c.735 0 8.713 8.362 9.619 10.082.266.505.625 1.011.798 1.126.497.328 3.966 7.434 3.966 8.123 0 .342.18.733.4.869.22.136.4.777.4 1.424 0 .647.18 1.176.4 1.176.251 0 .4 2.467.4 6.6 0 4.133-.149 6.6-.4 6.6-.22 0-.4.72-.4 1.6 0 .88-.18 1.6-.4 1.6-.22 0-.4.362-.4.805 0 .805-.111 1.091-1.34 3.452-1.969 3.782-2.552 4.73-3.556 5.781-.607.635-1.104 1.325-1.104 1.533 0 .442-9.285 9.811-11.019 11.119-3.343 2.522-6.151 4.51-6.369 4.51-.135 0-.632.36-1.104.8-.472.44-1.095.8-1.383.8-.289 0-.525.18-.525.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.136.8-1.475.8-.339 0-.617.18-.617.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.136.8-1.475.8-.339 0-.618.135-.618.3-.001.165-.991.75-2.199 1.3-1.208.55-2.198 1.135-2.199 1.3 0 .165-.361.3-.801.3-.44 0-.8.18-.8.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.253.4-.562.4-.485 0-1.758.552-4.733 2.05-.382.193-.967.35-1.3.35-.333 0-.605.18-.605.4 0 .22-.216.4-.48.4-.521 0-7.682 2.623-8.815 3.229-.382.204-1.057.371-1.5.371-.443 0-.805.18-.805.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.63.4-1.4.4-.77 0-1.4.18-1.4.4 0 .22-.529.4-1.176.4-.647 0-1.288.18-1.424.4-.136.22-.867.4-1.624.4-.757 0-1.376.18-1.376.4 0 .22-.72.4-1.6.4-.88 0-1.6.18-1.6.4 0 .22-.619.4-1.376.4-.757 0-1.488.18-1.624.4-.136.22-.856.4-1.6.4-.744 0-1.464.18-1.6.4-.136.22-.946.4-1.8.4-.854 0-1.664.18-1.8.4-.136.22-.946.4-1.8.4-.854 0-1.664.18-1.8.4-.136.22-1.011.4-1.944.4s-1.867.163-2.076.361c-.209.199-1.19.46-2.18.581-.99.121-2.88.415-4.2.653-3.904.703-6.615 1.13-9.8 1.541-8.61 1.113-10.8 1.627-10.8 2.532 0 .182-.291.332-.646.332-.73 0-3.354 2.695-3.354 3.445 0 .269-.225.563-.5.655-.361.12-.5 1.429-.5 4.7s.139 4.58.5 4.7c.275.092.5.439.5.773 0 1.138 4.337 4.527 5.795 4.527.333 0 .605.18.605.4 0 .237 1.459.4 3.576.4 1.967 0 3.688-.18 3.824-.4.136-.22 1.371-.4 2.744-.4 1.373 0 2.667-.164 2.876-.365.209-.2 1.37-.46 2.58-.576 1.21-.116 3.19-.387 4.4-.603 1.21-.216 3.37-.583 4.8-.816 1.43-.233 3.41-.599 4.4-.814.99-.215 2.565-.399 3.5-.409.935-.009 1.7-.197 1.7-.417 0-.22.72-.4 1.6-.4.88 0 1.6-.18 1.6-.4 0-.22.9-.4 2-.4s2-.18 2-.4c0-.22.619-.4 1.376-.4.757 0 1.488-.18 1.624-.4.136-.22.867-.4 1.624-.4.757 0 1.376-.18 1.376-.4 0-.22.72-.4 1.6-.4.88 0 1.6-.18 1.6-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.136-.22.867-.4 1.624-.4.757 0 1.376-.18 1.376-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.136-.22.766-.4 1.4-.4.634 0 1.264-.18 1.4-.4.136-.22.687-.4 1.224-.4.537 0 .976-.18.976-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.147 1.2-.328 0-.18.9-.572 2-.872 1.1-.3 2-.692 2-.872 0-.181.525-.328 1.167-.328.641 0 1.226-.135 1.3-.3.133-.301 2.053-1.081 6.533-2.656 1.32-.464 2.46-.979 2.533-1.144.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.272-.4.605-.4.333 0 .918-.16 1.3-.356.382-.196 1.595-.781 2.695-1.3 1.1-.519 2.06-1.079 2.133-1.244.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.36-.4.8-.4.44 0 .8-.18.8-.4 0-.22.36-.4.8-.4.44 0 .8-.159.8-.353 0-.195.315-.454.7-.576.936-.296 3.066-1.595 3.233-1.971.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.278-.4.617-.4.339 0 1.003-.36 1.475-.8.472-.44 1.095-.8 1.383-.8.289 0 .525-.18.525-.4 0-.22.236-.4.525-.4.288 0 .883-.315 1.321-.7.882-.774 1.77-1.365 3.516-2.337.64-.357 1.529-.989 1.976-1.406.447-.416 1.009-.757 1.249-.757.24 0 .696-.36 1.013-.8.317-.44.775-.8 1.018-.8.242 0 1.404-.9 2.582-2s2.259-2 2.403-2c.356 0 10.797-10.463 10.797-10.82 0-.156.72-1.025 1.6-1.932.88-.907 1.6-1.879 1.6-2.16 0-.281.36-.771.8-1.088.44-.317.8-.857.8-1.2 0-.343.36-.883.8-1.2.44-.317.8-.882.8-1.255 0-.373.135-.738.3-.812.307-.136 2.29-4.071 3.494-6.933.37-.88.838-1.913 1.04-2.295.201-.382.366-1.046.366-1.476 0-.43.18-.893.4-1.029.22-.136.4-.766.4-1.4 0-.634.18-1.264.4-1.4.22-.136.4-.921.4-1.744s.186-1.682.414-1.91c.521-.521.567-16.584.049-16.914-.201-.127-.471-.952-.599-1.832-.521-3.573-.768-4.6-1.108-4.6-.196 0-.356-.362-.356-.805 0-.443-.159-1.118-.353-1.5a24.714 24.714 0 0 1-.752-1.695c-.953-2.389-4.262-9.012-4.564-9.133-.182-.074-.331-.439-.331-.812 0-.373-.36-.938-.8-1.255-.44-.317-.8-.719-.8-.892 0-.173-.54-.88-1.2-1.571-.66-.691-1.2-1.423-1.2-1.628 0-.204-.675-1.037-1.5-1.85-.825-.813-2.307-2.464-3.294-3.668-.987-1.205-2.21-2.525-2.717-2.933-.507-.408-1.859-1.622-3.005-2.699-3.259-3.06-3.697-3.431-4.691-3.963-.513-.274-1.359-.925-1.881-1.447-.521-.522-1.112-.949-1.312-.949-.2 0-.777-.405-1.282-.9s-1.413-1.155-2.018-1.468c-.605-.312-1.1-.717-1.1-.9 0-.182-.36-.332-.8-.332-.44 0-.8-.18-.8-.4 0-.22-.63-.4-1.4-.4-.77 0-1.4-.18-1.4-.4 0-.22-.439-.4-.976-.4-.537 0-1.088.18-1.224.4m-153.2 16.4c.136.22.777.4 1.424.4.647 0 1.176.18 1.176.4 0 .22.275.4.611.4 1.185 0 4.989 4.418 4.989 5.795 0 .333.18.605.4.605.22 0 .4.72.4 1.6 0 .88.18 1.6.4 1.6.246 0 .4 1.992.4 5.176 0 3.02-.167 5.28-.4 5.424-.22.136-.4.867-.4 1.624 0 .757-.18 1.376-.4 1.376-.22 0-.4.36-.4.8 0 .44-.18.8-.4.8-.22 0-.4.276-.4.613 0 1.709-5.021 4.987-7.638 4.987-.859 0-1.562.18-1.562.4 0 .222-1.067.4-2.4.4s-2.4-.178-2.4-.4c0-.22-.684-.4-1.52-.4-1.543 0-3.671-.752-3.677-1.3-.002-.165-.279-.3-.616-.3-1.479 0-4.987-4.952-4.987-7.038 0-.529-.18-.962-.4-.962-.25 0-.4-2.4-.4-6.4s.15-6.4.4-6.4c.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.36.4-.8 0-.44.136-.8.302-.8.167 0 .537-.53.824-1.177.286-.647 1.05-1.411 1.697-1.697.647-.287 1.177-.657 1.177-.824 0-.166.36-.302.8-.302.44 0 .8-.18.8-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.138-.223 1.996-.4 4.2-.4s4.062.177 4.2.4" }))));
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const protoFloaterDemoCss = "#root{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}#target{width:32px;height:32px;border-radius:8px;background:var(--clrs-navy);color:var(--clrs-white);cursor:pointer}.ikon{margin-top:4px;margin-left:4px}#overlay{display:none;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.68;z-index:1000;background-color:black}#frame{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:none;width:0;height:0;border:none;z-index:1100}";
|
|
15
|
-
|
|
16
|
-
const ProtoFloaterDemo$1 = /*@__PURE__*/ proxyCustomElement(class ProtoFloaterDemo extends HTMLElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super();
|
|
19
|
-
this.__registerHost();
|
|
20
|
-
this.__attachShadow();
|
|
21
|
-
this.eventBus = () => window[this.bus];
|
|
22
|
-
this.clickHandler = () => {
|
|
23
|
-
this.eventBus().emit('activate', this.vin);
|
|
24
|
-
};
|
|
25
|
-
this.vin = undefined;
|
|
26
|
-
this.bus = 'eventBus';
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
return (h("div", { id: "root" }, h("div", { id: "target", onClick: () => this.clickHandler() }, h(Proto360, { class: "ikon", label: `Take a Tour -- ${this.vin}` }))));
|
|
30
|
-
}
|
|
31
|
-
static get style() { return protoFloaterDemoCss; }
|
|
32
|
-
}, [1, "proto-floater-demo", {
|
|
33
|
-
"vin": [1],
|
|
34
|
-
"bus": [1]
|
|
35
|
-
}]);
|
|
36
|
-
function defineCustomElement$1() {
|
|
37
|
-
if (typeof customElements === "undefined") {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const components = ["proto-floater-demo"];
|
|
41
|
-
components.forEach(tagName => { switch (tagName) {
|
|
42
|
-
case "proto-floater-demo":
|
|
43
|
-
if (!customElements.get(tagName)) {
|
|
44
|
-
customElements.define(tagName, ProtoFloaterDemo$1);
|
|
45
|
-
}
|
|
46
|
-
break;
|
|
47
|
-
} });
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const ProtoFloaterDemo = ProtoFloaterDemo$1;
|
|
51
|
-
const defineCustomElement = defineCustomElement$1;
|
|
52
|
-
|
|
53
|
-
export { ProtoFloaterDemo, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,h as n,transformTag as o}from"@stencil/core/internal/client";const i=Math.min,r=Math.max,s=Math.round,a=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function f(t,e,n){return r(t,i(e,n))}function u(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}const y=new Set(["top","bottom"]);function g(t){return y.has(d(t))?"y":"x"}function w(t){return p(g(t))}function x(t){return t.replace(/start|end/g,(t=>c[t]))}const b=["left","right"],v=["right","left"],k=["top","bottom"],S=["bottom","top"];function A(t){return t.replace(/left|right|bottom|top/g,(t=>l[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function E(t,e,n){let{reference:o,floating:i}=t;const r=g(e),s=w(e),a=m(s),l=d(e),c="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;let y;switch(l){case"top":y={x:f,y:o.y-i.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:u};break;case"left":y={x:o.x-i.width,y:u};break;default:y={x:o.x,y:o.y}}switch(h(e)){case"start":y[s]-=p*(n&&c?-1:1);break;case"end":y[s]+=p*(n&&c?-1:1)}return y}async function L(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=u(e,t),m=C(p),y=a[h?"floating"===d?"reference":"floating":d],g=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(y)))||n?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),w="floating"===d?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},v=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:l}):w);return{top:(g.top-v.top+m.top)/b.y,bottom:(v.bottom-g.bottom+m.bottom)/b.y,left:(g.left-v.left+m.left)/b.x,right:(v.right-g.right+m.right)/b.x}}const R=new Set(["left","top"]);function F(){return"undefined"!=typeof window}function T(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function O(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(M(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function M(t){return!!F()&&(t instanceof Node||t instanceof O(t).Node)}function B(t){return!!F()&&(t instanceof Element||t instanceof O(t).Element)}function j(t){return!!F()&&(t instanceof HTMLElement||t instanceof O(t).HTMLElement)}function H(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof O(t).ShadowRoot)}const z=new Set(["inline","contents"]);function N(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!z.has(i)}const $=new Set(["table","td","th"]);function q(t){return $.has(T(t))}const I=[":popover-open",":modal"];function _(t){return I.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const U=["transform","translate","scale","rotate","perspective"],V=["transform","translate","scale","rotate","perspective","filter"],W=["paint","layout","strict","content"];function X(t){const e=Y(),n=B(t)?K(t):t;return U.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||V.some((t=>(n.willChange||"").includes(t)))||W.some((t=>(n.contain||"").includes(t)))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const G=new Set(["html","body","#document"]);function J(t){return G.has(T(t))}function K(t){return O(t).getComputedStyle(t)}function Q(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if("html"===T(t))return t;const e=t.assignedSlot||t.parentNode||H(t)&&t.host||P(t);return H(e)?e.host:e}function tt(t){const e=Z(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:j(e)&&N(e)?e:tt(e)}function et(t,e){var n;void 0===e&&(e=[]);const o=tt(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=O(o);return i?e.concat(r,r.visualViewport||[],N(o)?o:[],[]):e.concat(o,et(o,[]))}function nt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ot(t){const e=K(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=j(t),r=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=s(n)!==r||s(o)!==a;return l&&(n=r,o=a),{width:n,height:o,$:l}}function it(t){return B(t)?t:t.contextElement}function rt(t){const e=it(t);if(!j(e))return a(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=ot(e);let l=(r?s(n.width):n.width)/o,c=(r?s(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const st=a(0);function at(t){const e=O(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:st}function lt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=it(t);let s=a(1);e&&(o?B(o)&&(s=rt(o)):s=rt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==O(t))&&e}(r,n,o)?at(r):a(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const t=O(r),e=o&&B(o)?O(o):o;let n=t,i=nt(n);for(;i&&o&&e!==n;){const t=rt(i),e=i.getBoundingClientRect(),o=K(i);c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,f+=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y,n=O(i),i=nt(n)}}return D({width:u,height:d,x:c,y:f})}function ct(t,e){const n=Q(t).scrollLeft;return e?e.left+n:lt(P(t)).left+n}function ft(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-ct(t,n),y:n.top+e.scrollTop}}const ut=new Set(["absolute","fixed"]);function dt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=O(t),o=P(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const t=Y();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}const c=ct(o);if(c<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i=Math.abs(o.clientWidth-e.clientWidth-("CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0));i<=25&&(r-=i)}else c<=25&&(r+=c);return{width:r,height:s,x:a,y:l}}(t,n);else if("document"===e)o=function(t){const e=P(t),n=Q(t),o=t.ownerDocument.body,i=r(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=r(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ct(t);const l=-n.scrollTop;return"rtl"===K(o).direction&&(a+=r(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}(P(t));else if(B(e))o=function(t,e){const n=lt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=j(t)?rt(t):a(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=at(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(o)}function ht(t,e){const n=Z(t);return!(n===e||!B(n)||J(n))&&("fixed"===K(n).position||ht(n,e))}function pt(t,e,n){const o=j(e),i=P(e),r="fixed"===n,s=lt(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=a(0);function f(){c.x=ct(i)}if(o||!o&&!r)if(("body"!==T(e)||N(i))&&(l=Q(e)),o){const t=lt(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&f();r&&!o&&i&&f();const u=!i||o||r?a(0):ft(i,l);return{x:s.left+l.scrollLeft-c.x-u.x,y:s.top+l.scrollTop-c.y-u.y,width:s.width,height:s.height}}function mt(t){return"static"===K(t).position}function yt(t,e){if(!j(t)||"fixed"===K(t).position)return null;if(e)return e(t);let n=t.offsetParent;return P(t)===n&&(n=n.ownerDocument.body),n}function gt(t,e){const n=O(t);if(_(t))return n;if(!j(t)){let e=Z(t);for(;e&&!J(e);){if(B(e)&&!mt(e))return e;e=Z(e)}return n}let o=yt(t,e);for(;o&&q(o)&&mt(o);)o=yt(o,e);return o&&J(o)&&mt(o)&&!X(o)?n:o||function(t){let e=Z(t);for(;j(e)&&!J(e);){if(X(e))return e;if(_(e))return null;e=Z(e)}return null}(t)||n}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=P(o),l=!!e&&_(e.floating);if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=a(1);const u=a(0),d=j(o);if((d||!d&&!r)&&(("body"!==T(o)||N(s))&&(c=Q(o)),j(o))){const t=lt(o);f=rt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!s||d||r?a(0):ft(s,c);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-c.scrollTop*f.y+u.y+h.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const a=[..."clippingAncestors"===n?_(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=et(t,[]).filter((t=>B(t)&&"body"!==T(t))),i=null;const r="fixed"===K(t).position;let s=r?Z(t):t;for(;B(s)&&!J(s);){const e=K(s),n=X(s);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&ut.has(i.position)||N(s)&&!n&&ht(t,s))?o=o.filter((t=>t!==s)):i=e,s=Z(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=a.reduce(((t,n)=>{const o=dt(e,n,s);return t.top=r(o.top,t.top),t.right=i(o.right,t.right),t.bottom=i(o.bottom,t.bottom),t.left=r(o.left,t.left),t}),dt(e,a[0],s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:gt,getElementRects:async function(t){const e=this.getOffsetParent||gt,n=this.getDimensions,o=await n(t.floating);return{reference:pt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=ot(t);return{width:e,height:n}},getScale:rt,isElement:B,isRTL:function(t){return"rtl"===K(t).direction}},xt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=d(n),a=h(n),l="y"===g(n),c=R.has(s)?-1:1,f=r&&l?-1:1,p=u(e,t);let{mainAxis:m,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&"number"==typeof w&&(y="end"===a?-1*w:w),l?{x:y*f,y:m*c}:{x:m*c,y:y*f}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},bt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=u(t,e),h={x:n,y:o},m=await r.detectOverflow(e,c),y=g(d(i)),w=p(y);let x=h[w],b=h[y];s&&(x=f(x+m["y"===w?"top":"left"],x,x-m["y"===w?"bottom":"right"])),a&&(b=f(b+m["y"===y?"top":"left"],b,b-m["y"===y?"bottom":"right"]));const v=l.fn({...e,[w]:x,[y]:b});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[w]:s,[y]:a}}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:E=!0,...L}=u(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const R=d(i),F=g(a),T=d(a)===a,O=await(null==l.isRTL?void 0:l.isRTL(c.floating)),P=y||(T||!E?[A(a)]:function(t){const e=A(t);return[x(t),e,x(e)]}(a)),M="none"!==D;!y&&M&&P.push(...function(t,e,n,o){const i=h(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?v:b:e?b:v;case"left":case"right":return e?k:S;default:return[]}}(d(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(x)))),r}(a,E,D,O));const B=[a,...P],j=await l.detectOverflow(e,L),H=[];let z=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&H.push(j[R]),p){const t=function(t,e,n){void 0===n&&(n=!1);const o=h(t),i=w(t),r=m(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=A(s)),[s,A(s)]}(i,s,O);H.push(j[t[0]],j[t[1]])}if(z=[...z,{placement:i,overflows:H}],!H.every((t=>t<=0))){var N,$;const t=((null==(N=r.flip)?void 0:N.index)||0)+1,e=B[t];if(e&&("alignment"!==p||F===g(e)||z.every((t=>g(t.placement)!==F||t.overflows[0]>0))))return{data:{index:t,overflows:z},reset:{placement:e}};let n=null==($=z.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:$.placement;if(!n)switch(C){case"bestFit":{var q;const t=null==(q=z.filter((t=>{if(M){const e=g(t.placement);return e===F||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},kt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:s,platform:a,elements:l,middlewareData:c}=e,{element:d,padding:p=0}=u(t,e)||{};if(null==d)return{};const y=C(p),g={x:n,y:o},x=w(r),b=m(x),v=await a.getDimensions(d),k="y"===x,S=k?"top":"left",A=k?"bottom":"right",D=k?"clientHeight":"clientWidth",E=s.reference[b]+s.reference[x]-g[x]-s.floating[b],L=g[x]-s.reference[x],R=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let F=R?R[D]:0;F&&await(null==a.isElement?void 0:a.isElement(R))||(F=l.floating[D]||s.floating[b]);const T=E/2-L/2,O=F/2-v[b]/2-1,P=i(y[S],O),M=i(y[A],O),B=P,j=F-v[b]-M,H=F/2-v[b]/2+T,z=f(B,H,j),N=!c.arrow&&null!=h(r)&&H!==z&&s.reference[b]/2-(H<B?P:M)-v[b]/2<0,$=N?H<B?H-B:H-j:0;return{[x]:g[x]+$,data:{[x]:z,centerOffset:H-z-$,...N&&{alignmentOffset:$}},reset:N}}}),St="Checking...",At=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.vin=void 0,this.snapshot=void 0,this.label=St,this.failed=!0,this.loaded=!1,this.time=void 0,this.eventBus=window.eventBus,this.message=void 0,this.nanoId=((t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[t]];return e})(),this.messageHandler=t=>{const{origin:e,data:n}=t,{targetId:o}=n;if(console.log("-- messageHandler:",n,e),"http://localhost:3000"===e&&o===this.nanoId)if(void 0===this.message){if(n.type&&"resize-iframe"===n.type){this.iframe.style.width=n.payload.width+"px",this.iframe.style.height=n.payload.height+"px",this.iframe.style.display="block",this.loaded=!0,this.label="",this.message=n;const{vin:t,snapshot:e}=this;this.iframe&&this.iframe.contentWindow.postMessage({targetId:this.nanoId,type:"data-payload",payload:{vin:t,snapshot:e}},"*"),this.update()}}else this.hideTooltip()},this.register=()=>{this.eventBus.emit("activate",this.nanoId),window.addEventListener("message",this.messageHandler,!1)},this.unregister=()=>{window.removeEventListener("message",this.messageHandler)},this.update=()=>{const{target:t,tooltip:e,arrowEl:n}=this;((t,e,n)=>{const o=new Map,i={platform:wt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=E(c,o,l),d=o,h={},p=0;for(let n=0;n<a.length;n++){var m;const{name:r,fn:y}=a[n],{x:g,y:w,data:x,reset:b}=await y({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:c,platform:{...s,detectOverflow:null!=(m=s.detectOverflow)?m:L},elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=w?w:u,h={...h,[r]:{...h[r],...x}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:f,y:u}=E(c,d,l))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})})(t,e,{placement:"right",middleware:[xt(6),vt(),bt({padding:5}),kt({element:n})]}).then((({x:t,y:o,placement:i,middlewareData:r})=>{Object.assign(e.style,{left:t+"px",top:o+"px"});const{x:s,y:a}=r.arrow,l={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(n.style,{left:null!=s?s+"px":"",top:null!=a?a+"px":"",right:"",bottom:"",[l]:"-4px"})}))},this.onIframeLoad=()=>{this.update(),setTimeout((()=>{this.loaded||(this.label="Content Failed to Load...")}),3e3)},this.hideTooltip=()=>{this.iframe.style.display="",this.tooltip.style.display="",this.message=void 0,this.unregister()},this.showTooltip=()=>{this.register(),this.loaded=!1,this.label=St,this.loaded=!1,this.time=Date.now(),this.tooltip.style.display="block",this.update()},this.clickHandler=()=>{"block"===this.tooltip.style.display?this.hideTooltip():this.showTooltip()}}componentDidLoad(){this.eventBus.on("activate",(t=>{this.nanoId!==t&&(void 0!==this.message||"block"===this.tooltip.style.display)&&this.hideTooltip()})),this.update()}render(){const t=`http://localhost:3000/demo_iframe.html?q=${this.time}&nid=${this.nanoId}`;return n("div",{key:"1da684903d9253b204641b4184bc5e1f79326405",id:"root"},n("div",{key:"84665f15de5991870ad2a16f42f1984789f4631f",id:"target",ref:t=>this.target=t,onClick:()=>this.clickHandler()},"i"),n("div",{key:"178c42dc946b455c8873e06d481a93d095a2e752",id:"tooltip",role:"tooltip",ref:t=>this.tooltip=t},n("div",{key:"75921e81ce12a64df3500d1492b6d782ff2881e3"},this.label),this.time?n("iframe",{id:"content",src:t,ref:t=>this.iframe=t,onLoad:t=>this.onIframeLoad(t)}):"",n("div",{key:"99722c505d254559b6a89a3d173c0925b12e53be",id:"arrow",ref:t=>this.arrowEl=t})))}static get style(){return"#root{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}#target{width:24px;height:24px;line-height:24px;text-align:center;border-radius:12px;background:var(--clrs-blue);font-weight:bold;font-size:120%;color:var(--clrs-white);cursor:pointer}#tooltip{display:none;position:absolute;min-height:18px;background:var(--clrs-navy);color:var(--clrs-white);font-weight:bold;padding:5px;padding-right:10px;padding-left:10px;border-radius:4px;font-size:90%;pointer-events:none}#arrow{position:absolute;background:var(--clrs-navy);width:8px;height:8px;transform:rotate(45deg)}#content{display:none;border:none}"}},[1,"proto-floater-demo",{vin:[1],snapshot:[1],label:[32],failed:[32],loaded:[32],time:[32]}]),Ct=At,Dt=function(){"undefined"!=typeof customElements&&["proto-floater-demo"].forEach((t=>{"proto-floater-demo"===t&&(customElements.get(o(t))||customElements.define(o(t),At))}))};export{Ct as ProtoFloaterDemo,Dt as defineCustomElement}
|