@micro-lc/preview 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +29 -18
- package/dist/index.js +11 -6
- package/package.json +1 -1
- package/website/assets/{index-6ec597d3.js → index-c49f9fe6.js} +8 -8
- package/website/development/assets/{index-b0710783.js → index-f8e4061b.js} +36 -34
- package/website/development/index.html +1 -1
- package/website/development/manifest.json +1 -1
- package/website/index.html +1 -1
- package/website/manifest.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## [0.2.0] - 2023-02-08
|
|
11
|
+
|
|
12
|
+
### Breaking
|
|
13
|
+
|
|
14
|
+
- No URL query parameter is parsed. Init options have their own dedicated postMessage message type.
|
|
15
|
+
|
|
10
16
|
## [0.1.0] - 2023-02-07
|
|
11
17
|
|
|
12
18
|
- preliminary release
|
package/dist/index.d.ts
CHANGED
|
@@ -6,18 +6,26 @@ interface TagInfo {
|
|
|
6
6
|
properties?: Manifest['properties'];
|
|
7
7
|
type?: Manifest['type'];
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type OverlayMode = 0 | 'interact' | 'select';
|
|
10
|
+
interface InfoEntry {
|
|
11
11
|
info: TagInfo;
|
|
12
12
|
tag: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
interface ElementContent {
|
|
15
15
|
ids: string[];
|
|
16
16
|
selectors: string[];
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
interface StyledElementContent extends ElementContent {
|
|
19
19
|
style: Partial<CSSStyleDeclaration>;
|
|
20
20
|
}
|
|
21
|
+
interface OptionMessage {
|
|
22
|
+
content: {
|
|
23
|
+
disableOverlay?: boolean;
|
|
24
|
+
instance?: string;
|
|
25
|
+
redirectTo?: string;
|
|
26
|
+
};
|
|
27
|
+
type: 'options';
|
|
28
|
+
}
|
|
21
29
|
type RegisteredElementMessages = {
|
|
22
30
|
content: ElementContent | undefined;
|
|
23
31
|
type: 'click-element';
|
|
@@ -25,7 +33,7 @@ type RegisteredElementMessages = {
|
|
|
25
33
|
content: StyledElementContent | undefined;
|
|
26
34
|
type: 'focus-element';
|
|
27
35
|
};
|
|
28
|
-
|
|
36
|
+
interface NewConfigurationMessage {
|
|
29
37
|
content: {
|
|
30
38
|
configuration: PluginConfiguration;
|
|
31
39
|
contexts: Map<string, Component[]>;
|
|
@@ -33,16 +41,16 @@ export interface NewConfigurationMessage {
|
|
|
33
41
|
};
|
|
34
42
|
type: 'new-configuration';
|
|
35
43
|
}
|
|
36
|
-
|
|
44
|
+
interface UpdateConfigurationMessage {
|
|
37
45
|
content: {
|
|
38
46
|
configuration: PluginConfiguration;
|
|
39
47
|
context: Component;
|
|
40
48
|
};
|
|
41
49
|
type: 'update';
|
|
42
50
|
}
|
|
43
|
-
|
|
51
|
+
type RegisteredConfigMessages = NewConfigurationMessage | UpdateConfigurationMessage;
|
|
44
52
|
type ReducedMouseEvent = Pick<MouseEvent, 'bubbles' | 'cancelable' | 'clientX' | 'clientY'>;
|
|
45
|
-
|
|
53
|
+
type RegisteredMessages = {
|
|
46
54
|
content: ReducedMouseEvent;
|
|
47
55
|
type: 'mousedown' | 'mousemove';
|
|
48
56
|
} | {
|
|
@@ -56,14 +64,14 @@ export type RegisteredMessages = {
|
|
|
56
64
|
} | {
|
|
57
65
|
content: InfoEntry[];
|
|
58
66
|
type: 'tag-info';
|
|
59
|
-
} | RegisteredConfigMessages | RegisteredElementMessages;
|
|
60
|
-
|
|
67
|
+
} | RegisteredConfigMessages | RegisteredElementMessages | OptionMessage;
|
|
68
|
+
interface NotifyProps extends Record<string, unknown> {
|
|
61
69
|
data?: Record<string, string>;
|
|
62
70
|
description: string;
|
|
63
71
|
message: string;
|
|
64
72
|
status: 'info' | 'error' | 'default' | 'success' | 'processing' | 'warning' | undefined;
|
|
65
73
|
}
|
|
66
|
-
|
|
74
|
+
interface Reset {
|
|
67
75
|
configuration: PluginConfiguration;
|
|
68
76
|
contexts: Map<string, Component[]>;
|
|
69
77
|
tags: string[];
|
|
@@ -74,21 +82,24 @@ interface SingleUpdate {
|
|
|
74
82
|
context: Component;
|
|
75
83
|
type: 'update';
|
|
76
84
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
85
|
+
type Update = Reset | SingleUpdate;
|
|
86
|
+
declare const MIA_PREVIEW_ID = "__mia_preview_id";
|
|
87
|
+
declare const OVERLAY_Z_INDEX = 1000000;
|
|
88
|
+
declare const DEFAULT_MODE = "select";
|
|
89
|
+
declare function isRegisteredMessage(input: unknown): input is RegisteredMessages;
|
|
90
|
+
declare class PostChannel {
|
|
80
91
|
private __instance;
|
|
81
92
|
private __handler;
|
|
82
93
|
private __window;
|
|
83
94
|
private __randomColor;
|
|
84
95
|
private postMessage;
|
|
85
|
-
constructor(handler: (message: RegisteredMessages) => void);
|
|
96
|
+
constructor(handler: (this: PostChannel, message: RegisteredMessages) => void);
|
|
86
97
|
set instance(str: string);
|
|
98
|
+
get window(): Window;
|
|
87
99
|
set window(win: Window);
|
|
88
100
|
send(to: Window, message: RegisteredMessages, origin?: string): void;
|
|
89
101
|
recv(window: Window): () => void;
|
|
90
102
|
}
|
|
91
|
-
export
|
|
92
|
-
export
|
|
93
|
-
export declare const DEFAULT_MODE = "select";
|
|
103
|
+
export type { OverlayMode, InfoEntry, ElementContent, StyledElementContent, NewConfigurationMessage, UpdateConfigurationMessage, RegisteredConfigMessages, RegisteredMessages, OptionMessage, NotifyProps, Reset, Update, };
|
|
104
|
+
export { MIA_PREVIEW_ID, OVERLAY_Z_INDEX, DEFAULT_MODE, isRegisteredMessage, PostChannel, };
|
|
94
105
|
export * from './handlebars';
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,9 @@ var DebugMessage;
|
|
|
3
3
|
DebugMessage[DebugMessage["Default"] = 0] = "Default";
|
|
4
4
|
DebugMessage[DebugMessage["Skip"] = 1] = "Skip";
|
|
5
5
|
})(DebugMessage || (DebugMessage = {}));
|
|
6
|
+
const MIA_PREVIEW_ID = '__mia_preview_id';
|
|
7
|
+
const OVERLAY_Z_INDEX = 1_000_000;
|
|
8
|
+
const DEFAULT_MODE = 'select';
|
|
6
9
|
const keys = {
|
|
7
10
|
'click-element': DebugMessage.Default,
|
|
8
11
|
'ctrl-space': DebugMessage.Default,
|
|
@@ -11,11 +14,12 @@ const keys = {
|
|
|
11
14
|
mousemove: DebugMessage.Skip,
|
|
12
15
|
'new-configuration': DebugMessage.Default,
|
|
13
16
|
notification: DebugMessage.Default,
|
|
17
|
+
options: DebugMessage.Default,
|
|
14
18
|
'tag-info': DebugMessage.Default,
|
|
15
19
|
update: DebugMessage.Default,
|
|
16
20
|
};
|
|
17
21
|
const isValidKey = (type) => Object.keys(keys).includes(type);
|
|
18
|
-
|
|
22
|
+
function isRegisteredMessage(input) {
|
|
19
23
|
if (input === null) {
|
|
20
24
|
return false;
|
|
21
25
|
}
|
|
@@ -62,7 +66,7 @@ const generateDarkColorHex = () => {
|
|
|
62
66
|
}
|
|
63
67
|
return color;
|
|
64
68
|
};
|
|
65
|
-
|
|
69
|
+
class PostChannel {
|
|
66
70
|
__instance;
|
|
67
71
|
__handler;
|
|
68
72
|
__window;
|
|
@@ -92,10 +96,13 @@ export class PostChannel {
|
|
|
92
96
|
set instance(str) {
|
|
93
97
|
this.__instance = str;
|
|
94
98
|
}
|
|
99
|
+
get window() {
|
|
100
|
+
return this.__window;
|
|
101
|
+
}
|
|
95
102
|
set window(win) {
|
|
96
103
|
this.__window = win;
|
|
97
104
|
}
|
|
98
|
-
send(to, message, origin =
|
|
105
|
+
send(to, message, origin = '*') {
|
|
99
106
|
this.__window !== to && this.postMessage(to, message, origin);
|
|
100
107
|
}
|
|
101
108
|
recv(window) {
|
|
@@ -109,7 +116,5 @@ export class PostChannel {
|
|
|
109
116
|
return () => window.removeEventListener('message', listener);
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
|
-
export
|
|
113
|
-
export const OVERLAY_Z_INDEX = 1_000_000;
|
|
114
|
-
export const DEFAULT_MODE = 'select';
|
|
119
|
+
export { MIA_PREVIEW_ID, OVERLAY_Z_INDEX, DEFAULT_MODE, isRegisteredMessage, PostChannel, };
|
|
115
120
|
export * from './handlebars';
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){const n=typeof window<"u",e=typeof document<"u",t=()=>{},r=e?document.querySelector("script[type=esms-options]"):void 0,s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let o=e?!!s.shimMode:!0;const c=F(o&&s.onimport),h=F(o&&s.resolve);let m=s.fetch?F(s.fetch):fetch;const b=s.meta?F(o&&s.meta):t,$=s.mapOverrides;let k=s.nonce;if(!k&&e){const l=document.querySelector("script[nonce]");l&&(k=l.nonce||l.getAttribute("nonce"))}const S=F(s.onerror||t),C=s.onpolyfill?F(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:j,noLoadEventRetriggers:I,enforceIntegrity:J}=s;function F(l){return typeof l=="string"?self[l]:l}const R=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[],U=R.includes("css-modules"),N=R.includes("json-modules"),oe=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),Q=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,q=(l,f="text/javascript")=>URL.createObjectURL(new Blob([l],{type:f}));let{skip:pe}=s;if(Array.isArray(pe)){const l=pe.map(f=>new URL(f,Q).href);pe=f=>l.some(v=>v[v.length-1]==="/"&&f.startsWith(v)||f===v)}else if(typeof pe=="string"){const l=new RegExp(pe);pe=f=>l.test(f)}const Dr=l=>setTimeout(()=>{throw l}),xt=l=>{(self.reportError||n&&window.safari&&console.error||Dr)(l),S(l)};function He(l){return l?` imported from ${l}`:""}let at=!1;function qr(){at=!0}if(!o)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)o=!0;else{let l=!1;for(const f of document.querySelectorAll("script[type=module],script[type=importmap]"))if(!l)f.type==="module"&&!f.ep&&(l=!0);else if(f.type==="importmap"&&l){at=!0;break}}const Vr=/\\/g;function Et(l){if(l.indexOf(":")===-1)return!1;try{return new URL(l),!0}catch{return!1}}function un(l,f){return Se(l,f)||(Et(l)?l:Se("./"+l,f))}function Se(l,f){const v=f.indexOf("#"),A=f.indexOf("?");if(v+A>-2&&(f=f.slice(0,v===-1?A:A===-1||A>v?v:A)),l.indexOf("\\")!==-1&&(l=l.replace(Vr,"/")),l[0]==="/"&&l[1]==="/")return f.slice(0,f.indexOf(":")+1)+l;if(l[0]==="."&&(l[1]==="/"||l[1]==="."&&(l[2]==="/"||l.length===2&&(l+="/"))||l.length===1&&(l+="/"))||l[0]==="/"){const g=f.slice(0,f.indexOf(":")+1);let w;if(f[g.length+1]==="/"?g!=="file:"?(w=f.slice(g.length+2),w=w.slice(w.indexOf("/")+1)):w=f.slice(8):w=f.slice(g.length+(f[g.length]==="/")),l[0]==="/")return f.slice(0,f.length-w.length-1)+l;const x=w.slice(0,w.lastIndexOf("/")+1)+l,O=[];let L=-1;for(let E=0;E<x.length;E++){if(L!==-1){x[E]==="/"&&(O.push(x.slice(L,E+1)),L=-1);continue}else if(x[E]==="."){if(x[E+1]==="."&&(x[E+2]==="/"||E+2===x.length)){O.pop(),E+=2;continue}else if(x[E+1]==="/"||E+1===x.length){E+=1;continue}}for(;x[E]==="/";)E++;L=E}return L!==-1&&O.push(x.slice(L)),f.slice(0,f.length-w.length)+O.join("")}}function fn(l,f,v){const A={imports:Object.assign({},v.imports),scopes:Object.assign({},v.scopes)};if(l.imports&&dn(l.imports,A.imports,f,v),l.scopes)for(let g in l.scopes){const w=un(g,f);dn(l.scopes[g],A.scopes[w]||(A.scopes[w]={}),f,v)}return A}function Ot(l,f){if(f[l])return l;let v=l.length;do{const A=l.slice(0,v+1);if(A in f)return A}while((v=l.lastIndexOf("/",v-1))!==-1)}function hn(l,f){const v=Ot(l,f);if(v){const A=f[v];return A===null?void 0:A+l.slice(v.length)}}function It(l,f,v){let A=v&&Ot(v,l.scopes);for(;A;){const g=hn(f,l.scopes[A]);if(g)return g;A=Ot(A.slice(0,A.lastIndexOf("/")),l.scopes)}return hn(f,l.imports)||f.indexOf(":")!==-1&&f}function dn(l,f,v,A){for(let g in l){const w=Se(g,v)||g;if((!o||!$)&&f[w]&&f[w]!==l[w])throw Error(`Rejected map override "${w}" from ${f[w]} to ${l[w]}.`);let x=l[g];if(typeof x!="string")continue;const O=It(A,Se(x,v)||x,v);if(O){f[w]=O;continue}console.warn(`Mapping "${g}" -> "${l[g]}" does not resolve`)}}let ae=!e&&(0,eval)("u=>import(u)"),ct;const Gr=e&&new Promise(l=>{const f=Object.assign(document.createElement("script"),{src:q("self._d=u=>import(u)"),ep:!0});f.setAttribute("nonce",k),f.addEventListener("load",()=>{if(!(ct=!!(ae=self._d))){let v;window.addEventListener("error",A=>v=A),ae=(A,g)=>new Promise((w,x)=>{const O=Object.assign(document.createElement("script"),{type:"module",src:q(`import*as m from'${A}';self._esmsi=m`)});v=void 0,O.ep=!0,k&&O.setAttribute("nonce",k),O.addEventListener("error",L),O.addEventListener("load",L);function L(E){document.head.removeChild(O),self._esmsi?(w(self._esmsi,Q),self._esmsi=void 0):(x(!(E instanceof Event)&&E||v&&v.error||new Error(`Error loading ${g&&g.errUrl||A} (${O.src}).`)),v=void 0)}document.head.appendChild(O)})}document.head.removeChild(f),delete self._d,l()}),document.head.appendChild(f)});let lt=!1,ut=!1,me=e&&HTMLScriptElement.supports?HTMLScriptElement.supports("importmap"):!1,ft=me;const pn="import.meta",mn='import"x"assert{type:"css"}',zr='import"x"assert{type:"json"}',Yr=Promise.resolve(Gr).then(()=>{if(!(!ct||me&&!U&&!N))return e?new Promise(l=>{const f=document.createElement("iframe");f.style.display="none",f.setAttribute("nonce",k);function v({data:[g,w,x,O]}){me=g,ft=w,ut=x,lt=O,l(),document.head.removeChild(f),window.removeEventListener("message",v,!1)}window.addEventListener("message",v,!1);const A=`<script nonce=${k||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${k}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${me?"true,true":`'x',b('${pn}')`}, ${U?`b('${mn}'.replace('x',b('','text/css')))`:"false"}, ${N?`b('${zr}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(a,'*'))<\/script>`;f.onload=()=>{const g=f.contentDocument;if(g&&g.head.childNodes.length===0){const w=g.createElement("script");k&&w.setAttribute("nonce",k),w.innerHTML=A.slice(15+(k?k.length:0),-9),g.head.appendChild(w)}},document.head.appendChild(f),"srcdoc"in f?f.srcdoc=A:f.contentDocument.write(A)}):Promise.all([me||ae(q(pn)).then(()=>ft=!0,t),U&&ae(q(mn.replace("x",q("","text/css")))).then(()=>ut=!0,t),N&&ae(q(jsonModulescheck.replace("x",q("{}","text/json")))).then(()=>lt=!0,t)])});let W,ht,Ct,Fe=2<<19;const bn=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(l,f){const v=l.length;let A=0;for(;A<v;)f[A]=l.charCodeAt(A++)}:function(l,f){const v=l.length;let A=0;for(;A<v;){const g=l.charCodeAt(A);f[A++]=(255&g)<<8|g>>>8}},Jr="xportmportlassetafromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let B,vn,H;function Kr(l,f="@"){B=l,vn=f;const v=2*B.length+(2<<18);if(v>Fe||!W){for(;v>Fe;)Fe*=2;ht=new ArrayBuffer(Fe),bn(Jr,new Uint16Array(ht,16,106)),W=function(x,O,L){var E=new x.Int8Array(L),_=new x.Int16Array(L),a=new x.Int32Array(L),ne=new x.Uint8Array(L),ce=new x.Uint16Array(L),ee=1024;function z(){var i=0,u=0,d=0,y=0,p=0,T=0,_e=0;_e=ee,ee=ee+10240|0,E[795]=1,_[395]=0,_[396]=0,a[67]=a[2],E[796]=0,a[66]=0,E[794]=0,a[68]=_e+2048,a[69]=_e,E[797]=0,i=(a[3]|0)+-2|0,a[70]=i,u=i+(a[64]<<1)|0,a[71]=u;e:for(;;){if(d=i+2|0,a[70]=d,i>>>0>=u>>>0){p=18;break}n:do switch(_[d>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(_[396]|0)&&ge(d)|0&&!(K(i+4|0,16,10)|0)&&(Ee(),(E[795]|0)==0)){p=9;break e}else p=17;break}case 105:{ge(d)|0&&!(K(i+4|0,26,10)|0)&&Ge(),p=17;break}case 59:{p=17;break}case 47:switch(_[i+4>>1]|0){case 47:{qt();break n}case 42:{Wt(1);break n}default:{p=16;break e}}default:{p=16;break e}}while(0);(p|0)==17&&(p=0,a[67]=a[70]),i=a[70]|0,u=a[71]|0}(p|0)==9?(i=a[70]|0,a[67]=i,p=19):(p|0)==16?(E[795]=0,a[70]=i,p=19):(p|0)==18&&(E[794]|0?i=0:(i=d,p=19));do if((p|0)==19){e:for(;;){if(u=i+2|0,a[70]=u,y=u,i>>>0>=(a[71]|0)>>>0){p=82;break}n:do switch(_[u>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(_[396]|0)&&ge(u)|0&&!(K(i+4|0,16,10)|0)&&Ee(),p=81;break}case 105:{ge(u)|0&&!(K(i+4|0,26,10)|0)&&Ge(),p=81;break}case 99:{ge(u)|0&&!(K(i+4|0,36,8)|0)&&Je(_[i+12>>1]|0)|0&&(E[797]=1),p=81;break}case 40:{y=a[68]|0,u=_[396]|0,p=u&65535,a[y+(p<<3)>>2]=1,d=a[67]|0,_[396]=u+1<<16>>16,a[y+(p<<3)+4>>2]=d,p=81;break}case 41:{if(u=_[396]|0,!(u<<16>>16)){p=36;break e}u=u+-1<<16>>16,_[396]=u,d=_[395]|0,d<<16>>16&&(T=a[(a[69]|0)+((d&65535)+-1<<2)>>2]|0,(a[T+20>>2]|0)==(a[(a[68]|0)+((u&65535)<<3)+4>>2]|0))&&(u=T+4|0,a[u>>2]|0||(a[u>>2]=y),a[T+12>>2]=i+4,_[395]=d+-1<<16>>16),p=81;break}case 123:{p=a[67]|0,y=a[61]|0,i=p;do if((_[p>>1]|0)==41&(y|0)!=0&&(a[y+4>>2]|0)==(p|0))if(u=a[62]|0,a[61]=u,u){a[u+28>>2]=0;break}else{a[57]=0;break}while(0);y=a[68]|0,d=_[396]|0,p=d&65535,a[y+(p<<3)>>2]=E[797]|0?6:2,_[396]=d+1<<16>>16,a[y+(p<<3)+4>>2]=i,E[797]=0,p=81;break}case 125:{if(i=_[396]|0,!(i<<16>>16)){p=49;break e}y=a[68]|0,p=i+-1<<16>>16,_[396]=p,(a[y+((p&65535)<<3)>>2]|0)==4&&Ce(),p=81;break}case 39:{X(39),p=81;break}case 34:{X(34),p=81;break}case 47:switch(_[i+4>>1]|0){case 47:{qt();break n}case 42:{Wt(1);break n}default:{i=a[67]|0,y=_[i>>1]|0;t:do if(ci(y)|0)switch(y<<16>>16){case 46:if(((_[i+-2>>1]|0)+-48&65535)<10){p=66;break t}else{p=69;break t}case 43:if((_[i+-2>>1]|0)==43){p=66;break t}else{p=69;break t}case 45:if((_[i+-2>>1]|0)==45){p=66;break t}else{p=69;break t}default:{p=69;break t}}else{switch(y<<16>>16){case 41:if(hi(a[(a[68]|0)+(ce[396]<<3)+4>>2]|0)|0){p=69;break t}else{p=66;break t}case 125:break;default:{p=66;break t}}u=a[68]|0,d=ce[396]|0,!(ai(a[u+(d<<3)+4>>2]|0)|0)&&(a[u+(d<<3)>>2]|0)!=6?p=66:p=69}while(0);t:do if((p|0)==66)if(p=0,ve(i)|0)p=69;else{switch(y<<16>>16){case 0:{p=69;break t}case 47:{if(E[796]|0){p=69;break t}break}default:}d=a[3]|0,u=y;do{if(i>>>0<=d>>>0)break;i=i+-2|0,a[67]=i,u=_[i>>1]|0}while(!(Ye(u)|0));if(mt(u)|0){do{if(i>>>0<=d>>>0)break;i=i+-2|0,a[67]=i}while(mt(_[i>>1]|0)|0);if(ui(i)|0){Un(),E[796]=0,p=81;break n}else i=1}else i=1}while(0);(p|0)==69&&(Un(),i=0),E[796]=i,p=81;break n}}case 96:{y=a[68]|0,d=_[396]|0,p=d&65535,a[y+(p<<3)+4>>2]=a[67],_[396]=d+1<<16>>16,a[y+(p<<3)>>2]=3,Ce(),p=81;break}default:p=81}while(0);(p|0)==81&&(p=0,a[67]=a[70]),i=a[70]|0}if((p|0)==36){Z(),i=0;break}else if((p|0)==49){Z(),i=0;break}else if((p|0)==82){i=E[794]|0?0:(_[395]|_[396])<<16>>16==0;break}}while(0);return ee=_e,i|0}function Ee(){var i=0,u=0,d=0,y=0,p=0,T=0,_e=0,M=0,D=0;p=a[70]|0,T=a[63]|0,D=p+12|0,a[70]=D,d=P(1)|0,i=a[70]|0,(i|0)==(D|0)&&!(Dt(d)|0)||(M=3);e:do if((M|0)==3){n:do switch(d<<16>>16){case 123:{for(a[70]=i+2,i=P(1)|0,d=a[70]|0;;){if(Ke(i)|0?(X(i),i=(a[70]|0)+2|0,a[70]=i):(ue(i)|0,i=a[70]|0),P(1)|0,i=Fn(d,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=P(1)|0),u=d,d=a[70]|0,i<<16>>16==125){M=15;break}if((d|0)==(u|0)){M=12;break}if(d>>>0>(a[71]|0)>>>0){M=14;break}}if((M|0)==12){Z();break e}else if((M|0)==14){Z();break e}else if((M|0)==15){a[70]=d+2;break n}break}case 42:{a[70]=i+2,P(1)|0,D=a[70]|0,Fn(D,D)|0;break}default:{switch(E[795]=0,d<<16>>16){case 100:{p=i+14|0,a[70]=p,u=P(1)|0,u<<16>>16==97?(u=a[70]|0,ge(u)|0&&!(K(u+2|0,58,8)|0)&&(y=u+10|0,mt(_[y>>1]|0)|0)?(a[70]=y,u=P(0)|0,M=23):(u=97,M=32)):M=23;t:do if((M|0)==23){if(u<<16>>16==102){if(u=a[70]|0,!(ge(u)|0)){u=102,M=32;break}if(K(u+2|0,66,14)|0){u=102,M=32;break}if(d=u+16|0,u=_[d>>1]|0,!(Je(u)|0))switch(u<<16>>16){case 40:case 42:break;default:{u=102,M=32;break t}}if(a[70]=d,u=P(1)|0,u<<16>>16==42&&(a[70]=(a[70]|0)+2,u=P(1)|0),u<<16>>16==40){ye(i,p,0,0),a[70]=i+12;break e}else y=1}else y=0;d=a[70]|0;do if(u<<16>>16==99)if(ge(d)|0&&!(K(d+2|0,36,8)|0)&&(_e=d+10|0,D=_[_e>>1]|0,Je(D)|0|D<<16>>16==123))if(a[70]=_e,u=P(1)|0,u<<16>>16==123){ye(i,p,0,0),a[70]=i+12;break e}else{d=a[70]|0,ue(u)|0;break}else u=99,M=40;else M=40;while(0);if((M|0)==40&&(ue(u)|0,!y)){M=43;break}u=a[70]|0,u>>>0>d>>>0?(ye(i,p,d,u),i=(a[70]|0)+-2|0):M=43}while(0);(M|0)==32&&(ue(u)|0,M=43),(M|0)==43&&(ye(i,p,0,0),i=i+12|0),a[70]=i;break e}case 97:{a[70]=i+10,P(1)|0,i=a[70]|0,M=46;break}case 102:{M=46;break}case 99:{if(!(K(i+2|0,36,8)|0)&&(u=i+10|0,Ye(_[u>>1]|0)|0)){a[70]=u,D=P(1)|0,M=a[70]|0,ue(D)|0,D=a[70]|0,ye(M,D,M,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i;break}case 108:case 118:break;default:break e}if((M|0)==46){a[70]=i+16,i=P(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=P(1)|0),M=a[70]|0,ue(i)|0,D=a[70]|0,ye(M,D,M,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,E[795]=0;t:for(;;){switch(a[70]=i+2,D=P(1)|0,i=a[70]|0,(ue(D)|0)<<16>>16){case 91:case 123:break t;default:}if(u=a[70]|0,(u|0)==(i|0))break e;if(ye(i,u,i,u),(P(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(D=(P(1)|0)<<16>>16==102,i=a[70]|0,D&&!(K(i+2|0,52,6)|0))for(a[70]=i+8,le(p,P(1)|0),i=T|0?T+16|0:232;;){if(i=a[i>>2]|0,!i)break e;a[i+12>>2]=0,a[i+8>>2]=0,i=i+16|0}a[70]=i+-2}while(0)}function Ge(){var i=0,u=0,d=0,y=0,p=0,T=0;p=a[70]|0,u=p+12|0,a[70]=u;e:do switch((P(1)|0)<<16>>16){case 40:{if(u=a[68]|0,T=_[396]|0,d=T&65535,a[u+(d<<3)>>2]=5,i=a[70]|0,_[396]=T+1<<16>>16,a[u+(d<<3)+4>>2]=i,(_[a[67]>>1]|0)!=46){switch(a[70]=i+2,T=P(1)|0,Bt(p,a[70]|0,0,i),u=a[61]|0,d=a[69]|0,p=_[395]|0,_[395]=p+1<<16>>16,a[d+((p&65535)<<2)>>2]=u,T<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(P(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,P(1)|0,p=a[61]|0,a[p+4>>2]=i,T=a[70]|0,a[p+16>>2]=T,E[p+24>>0]=1,a[70]=T+-2;break e}case 41:{_[396]=(_[396]|0)+-1<<16>>16,T=a[61]|0,a[T+4>>2]=i,a[T+12>>2]=(a[70]|0)+2,E[T+24>>0]=1,_[395]=(_[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==109&&(i=a[70]|0,(K(i+2|0,44,6)|0)==0)&&(_[a[67]>>1]|0)!=46&&Bt(p,p,i+8|0,2);break}case 42:case 39:case 34:{y=17;break}case 123:{if(i=a[70]|0,_[396]|0){a[70]=i+-2;break e}for(;!(i>>>0>=(a[71]|0)>>>0);){if(i=P(1)|0,Ke(i)|0)X(i);else if(i<<16>>16==125){y=32;break}i=(a[70]|0)+2|0,a[70]=i}if((y|0)==32&&(a[70]=(a[70]|0)+2),P(1)|0,i=a[70]|0,K(i,50,8)|0){Z();break e}if(a[70]=i+8,i=P(1)|0,Ke(i)|0){le(p,i);break e}else{Z();break e}}default:(a[70]|0)==(u|0)?a[70]=p+10:y=17}while(0);do if((y|0)==17){if(_[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,u=a[70]|0;;){if(u>>>0>=i>>>0){y=24;break}if(d=_[u>>1]|0,Ke(d)|0){y=22;break}T=u+2|0,a[70]=T,u=T}if((y|0)==22){le(p,d);break}else if((y|0)==24){Z();break}}while(0)}function ve(i){i=i|0;e:do switch(_[i>>1]|0){case 100:switch(_[i+-2>>1]|0){case 105:{i=V(i+-4|0,90,2)|0;break e}case 108:{i=V(i+-4|0,94,3)|0;break e}default:{i=0;break e}}case 101:switch(_[i+-2>>1]|0){case 115:switch(_[i+-4>>1]|0){case 108:{i=ze(i+-6|0,101)|0;break e}case 97:{i=ze(i+-6|0,99)|0;break e}default:{i=0;break e}}case 116:{i=V(i+-4|0,100,4)|0;break e}case 117:{i=V(i+-4|0,108,6)|0;break e}default:{i=0;break e}}case 102:{if((_[i+-2>>1]|0)==111&&(_[i+-4>>1]|0)==101)switch(_[i+-6>>1]|0){case 99:{i=V(i+-8|0,120,6)|0;break e}case 112:{i=V(i+-8|0,132,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=V(i+-2|0,136,4)|0;break}case 110:{i=i+-2|0,ze(i,105)|0?i=1:i=V(i,144,5)|0;break}case 111:{i=ze(i+-2|0,100)|0;break}case 114:{i=V(i+-2|0,154,7)|0;break}case 116:{i=V(i+-2|0,168,4)|0;break}case 119:switch(_[i+-2>>1]|0){case 101:{i=ze(i+-4|0,110)|0;break e}case 111:{i=V(i+-4|0,176,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function le(i,u){i=i|0,u=u|0;var d=0,y=0;switch(d=(a[70]|0)+2|0,u<<16>>16){case 39:{X(39),y=5;break}case 34:{X(34),y=5;break}default:Z()}do if((y|0)==5){if(Bt(i,d,a[70]|0,1),a[70]=(a[70]|0)+2,y=(P(0)|0)<<16>>16==97,u=a[70]|0,y&&!(K(u+2|0,80,10)|0)){if(a[70]=u+12,(P(1)|0)<<16>>16!=123){a[70]=u;break}i=a[70]|0,d=i;e:for(;;){switch(a[70]=d+2,d=P(1)|0,d<<16>>16){case 39:{X(39),a[70]=(a[70]|0)+2,d=P(1)|0;break}case 34:{X(34),a[70]=(a[70]|0)+2,d=P(1)|0;break}default:d=ue(d)|0}if(d<<16>>16!=58){y=16;break}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{y=20;break e}}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 125:{y=25;break e}case 44:break;default:{y=24;break e}}if(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==125){y=25;break}d=a[70]|0}if((y|0)==16){a[70]=u;break}else if((y|0)==20){a[70]=u;break}else if((y|0)==24){a[70]=u;break}else if((y|0)==25){y=a[61]|0,a[y+16>>2]=i,a[y+12>>2]=(a[70]|0)+2;break}}a[70]=u+-2}while(0)}function Ce(){var i=0,u=0,d=0,y=0;u=a[71]|0,d=a[70]|0;e:for(;;){if(i=d+2|0,d>>>0>=u>>>0){u=10;break}switch(_[i>>1]|0){case 96:{u=7;break e}case 36:{if((_[d+4>>1]|0)==123){u=6;break e}break}case 92:{i=d+4|0;break}default:}d=i}(u|0)==6?(i=d+4|0,a[70]=i,u=a[68]|0,y=_[396]|0,d=y&65535,a[u+(d<<3)>>2]=4,_[396]=y+1<<16>>16,a[u+(d<<3)+4>>2]=i):(u|0)==7?(a[70]=i,d=a[68]|0,y=(_[396]|0)+-1<<16>>16,_[396]=y,(a[d+((y&65535)<<3)>>2]|0)!=3&&Z()):(u|0)==10&&(a[70]=i,Z())}function P(i){i=i|0;var u=0,d=0,y=0;d=a[70]|0;e:do{u=_[d>>1]|0;n:do if(u<<16>>16!=47)if(i){if(Je(u)|0)break;break e}else{if(mt(u)|0)break;break e}else switch(_[d+2>>1]|0){case 47:{qt();break n}case 42:{Wt(i);break n}default:{u=47;break e}}while(0);y=a[70]|0,d=y+2|0,a[70]=d}while(y>>>0<(a[71]|0)>>>0);return u|0}function X(i){i=i|0;var u=0,d=0,y=0,p=0;for(p=a[71]|0,u=a[70]|0;;){if(y=u+2|0,u>>>0>=p>>>0){u=9;break}if(d=_[y>>1]|0,d<<16>>16==i<<16>>16){u=10;break}if(d<<16>>16==92)d=u+4|0,(_[d>>1]|0)==13?(u=u+6|0,u=(_[u>>1]|0)==10?u:d):u=d;else if(Bn(d)|0){u=9;break}else u=y}(u|0)==9?(a[70]=y,Z()):(u|0)==10&&(a[70]=y)}function Fn(i,u){i=i|0,u=u|0;var d=0,y=0,p=0,T=0;return d=a[70]|0,y=_[d>>1]|0,T=(i|0)==(u|0),p=T?0:i,T=T?0:u,y<<16>>16==97&&(a[70]=d+4,d=P(1)|0,i=a[70]|0,Ke(d)|0?(X(d),u=(a[70]|0)+2|0,a[70]=u):(ue(d)|0,u=a[70]|0),y=P(1)|0,d=a[70]|0),(d|0)!=(i|0)&&ye(i,u,p,T),y|0}function Bt(i,u,d,y){i=i|0,u=u|0,d=d|0,y=y|0;var p=0,T=0;p=a[65]|0,a[65]=p+32,T=a[61]|0,a[(T|0?T+28|0:228)>>2]=p,a[62]=T,a[61]=p,a[p+8>>2]=i,(y|0)==2?i=d:i=(y|0)==1?d+2|0:0,a[p+12>>2]=i,a[p>>2]=u,a[p+4>>2]=d,a[p+16>>2]=0,a[p+20>>2]=y,E[p+24>>0]=(y|0)==1&1,a[p+28>>2]=0}function oi(){var i=0,u=0,d=0;d=a[71]|0,u=a[70]|0;e:for(;;){if(i=u+2|0,u>>>0>=d>>>0){u=6;break}switch(_[i>>1]|0){case 13:case 10:{u=6;break e}case 93:{u=7;break e}case 92:{i=u+4|0;break}default:}u=i}return(u|0)==6?(a[70]=i,Z(),i=0):(u|0)==7&&(a[70]=i,i=93),i|0}function Un(){var i=0,u=0,d=0;e:for(;;){if(i=a[70]|0,u=i+2|0,a[70]=u,i>>>0>=(a[71]|0)>>>0){d=7;break}switch(_[u>>1]|0){case 13:case 10:{d=7;break e}case 47:break e;case 91:{oi()|0;break}case 92:{a[70]=i+4;break}default:}}(d|0)==7&&Z()}function ai(i){switch(i=i|0,_[i>>1]|0){case 62:{i=(_[i+-2>>1]|0)==61;break}case 41:case 59:{i=1;break}case 104:{i=V(i+-2|0,202,4)|0;break}case 121:{i=V(i+-2|0,210,6)|0;break}case 101:{i=V(i+-2|0,222,3)|0;break}default:i=0}return i|0}function Wt(i){i=i|0;var u=0,d=0,y=0,p=0,T=0;for(p=(a[70]|0)+2|0,a[70]=p,d=a[71]|0;u=p+2|0,!(p>>>0>=d>>>0||(y=_[u>>1]|0,!i&&Bn(y)|0));){if(y<<16>>16==42&&(_[p+4>>1]|0)==47){T=8;break}p=u}(T|0)==8&&(a[70]=u,u=p+4|0),a[70]=u}function K(i,u,d){i=i|0,u=u|0,d=d|0;var y=0,p=0;e:do if(!d)i=0;else{for(;y=E[i>>0]|0,p=E[u>>0]|0,y<<24>>24==p<<24>>24;)if(d=d+-1|0,d)i=i+1|0,u=u+1|0;else{i=0;break e}i=(y&255)-(p&255)|0}while(0);return i|0}function Dt(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:{i=1;break}default:if((i&-8)<<16>>16==40|(i+-58&65535)<6)i=1;else{switch(i<<16>>16){case 91:case 93:case 94:{i=1;break e}default:}i=(i+-123&65535)<4}}while(0);return i|0}function ci(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:break;default:if(!((i+-58&65535)<6|(i+-40&65535)<7&i<<16>>16!=41)){switch(i<<16>>16){case 91:case 94:break e;default:}return i<<16>>16!=125&(i+-123&65535)<4|0}}while(0);return 1}function li(i){i=i|0;var u=0,d=0,y=0,p=0;return d=ee,ee=ee+16|0,y=d,a[y>>2]=0,a[64]=i,u=a[3]|0,p=u+(i<<1)|0,i=p+2|0,_[p>>1]=0,a[y>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,ee=d,u|0}function V(i,u,d){i=i|0,u=u|0,d=d|0;var y=0,p=0;return y=i+(0-d<<1)|0,p=y+2|0,i=a[3]|0,p>>>0>=i>>>0&&!(K(p,u,d<<1)|0)?(p|0)==(i|0)?i=1:i=Ye(_[y>>1]|0)|0:i=0,i|0}function ye(i,u,d,y){i=i|0,u=u|0,d=d|0,y=y|0;var p=0,T=0;p=a[65]|0,a[65]=p+20,T=a[63]|0,a[(T|0?T+16|0:232)>>2]=p,a[63]=p,a[p>>2]=i,a[p+4>>2]=u,a[p+8>>2]=d,a[p+12>>2]=y,a[p+16>>2]=0}function ui(i){switch(i=i|0,_[i>>1]|0){case 107:{i=V(i+-2|0,136,4)|0;break}case 101:{(_[i+-2>>1]|0)==117?i=V(i+-4|0,108,6)|0:i=0;break}default:i=0}return i|0}function ze(i,u){i=i|0,u=u|0;var d=0;return d=a[3]|0,d>>>0<=i>>>0&&(_[i>>1]|0)==u<<16>>16?(d|0)==(i|0)?d=1:d=Ye(_[i+-2>>1]|0)|0:d=0,d|0}function Ye(i){i=i|0;e:do if((i+-9&65535)<5)i=1;else{switch(i<<16>>16){case 32:case 160:{i=1;break e}default:}i=i<<16>>16!=46&(Dt(i)|0)}while(0);return i|0}function qt(){var i=0,u=0,d=0;i=a[71]|0,d=a[70]|0;e:for(;u=d+2|0,!(d>>>0>=i>>>0);)switch(_[u>>1]|0){case 13:case 10:break e;default:d=u}a[70]=u}function ue(i){for(i=i|0;!(Je(i)|0||Dt(i)|0);)if(i=(a[70]|0)+2|0,a[70]=i,i=_[i>>1]|0,!(i<<16>>16)){i=0;break}return i|0}function fi(){var i=0;switch(i=a[(a[59]|0)+20>>2]|0,i|0){case 1:{i=-1;break}case 2:{i=-2;break}default:i=i-(a[3]|0)>>1}return i|0}function hi(i){return i=i|0,!(V(i,182,5)|0)&&!(V(i,192,3)|0)?i=V(i,198,2)|0:i=1,i|0}function mt(i){switch(i=i|0,i<<16>>16){case 160:case 32:case 12:case 11:case 9:{i=1;break}default:i=0}return i|0}function ge(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=Ye(_[i+-2>>1]|0)|0,i|0}function di(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function pi(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function mi(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function bi(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function vi(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function yi(){var i=0;return i=a[59]|0,i=a[(i|0?i+28|0:228)>>2]|0,a[59]=i,(i|0)!=0|0}function gi(){var i=0;return i=a[60]|0,i=a[(i|0?i+16|0:232)>>2]|0,a[60]=i,(i|0)!=0|0}function Z(){E[794]=1,a[66]=(a[70]|0)-(a[3]|0)>>1,a[70]=(a[71]|0)+2}function Je(i){return i=i|0,(i|128)<<16>>16==160|(i+-9&65535)<5|0}function Ke(i){return i=i|0,i<<16>>16==39|i<<16>>16==34|0}function _i(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function wi(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function Bn(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function ki(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function $i(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function Ai(){return ne[(a[59]|0)+24>>0]|0|0}function Si(i){i=i|0,a[3]=i}function xi(){return(E[795]|0)!=0|0}function Ei(){return a[66]|0}function Oi(i){return i=i|0,ee=i+992+15&-16,992}return{su:Oi,ai:bi,e:Ei,ee:wi,ele:di,els:mi,es:$i,f:xi,id:fi,ie:vi,ip:Ai,is:ki,p:z,re:gi,ri:yi,sa:li,se:pi,ses:Si,ss:_i}}(typeof self<"u"?self:Ii,{},ht),Ct=W.su(Fe-(2<<17))}const A=B.length+1;W.ses(Ct),W.sa(A-1),bn(B,new Uint16Array(ht,Ct,A)),W.p()||(H=W.e(),be());const g=[],w=[];for(;W.ri();){const x=W.is(),O=W.ie(),L=W.ai(),E=W.id(),_=W.ss(),a=W.se();let ne;W.ip()&&(ne=Tt(E===-1?x:x+1,B.charCodeAt(E===-1?x-1:x))),g.push({n:ne,s:x,e:O,ss:_,se:a,d:E,a:L})}for(;W.re();){const x=W.es(),O=W.ee(),L=W.els(),E=W.ele(),_=B.charCodeAt(x),a=L>=0?B.charCodeAt(L):-1;w.push({s:x,e:O,ls:L,le:E,n:_===34||_===39?Tt(x+1,_):B.slice(x,O),ln:L<0?void 0:a===34||a===39?Tt(L+1,a):B.slice(L,E)})}return[g,w,!!W.f()]}function Tt(l,f){H=l;let v="",A=H;for(;;){H>=B.length&&be();const g=B.charCodeAt(H);if(g===f)break;g===92?(v+=B.slice(A,H),v+=Qr(),A=H):(g===8232||g===8233||yn(g)&&be(),++H)}return v+=B.slice(A,H++),v}function Qr(){let l=B.charCodeAt(++H);switch(++H,l){case 110:return`
|
|
2
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Lt(2));case 117:return function(){let f;return B.charCodeAt(H)===123?(++H,f=Lt(B.indexOf("}",H)-H),++H,f>1114111&&
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){const n=typeof window<"u",e=typeof document<"u",t=()=>{},r=e?document.querySelector("script[type=esms-options]"):void 0,s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let o=e?!!s.shimMode:!0;const c=F(o&&s.onimport),h=F(o&&s.resolve);let m=s.fetch?F(s.fetch):fetch;const b=s.meta?F(o&&s.meta):t,$=s.mapOverrides;let k=s.nonce;if(!k&&e){const l=document.querySelector("script[nonce]");l&&(k=l.nonce||l.getAttribute("nonce"))}const S=F(s.onerror||t),C=s.onpolyfill?F(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:j,noLoadEventRetriggers:I,enforceIntegrity:J}=s;function F(l){return typeof l=="string"?self[l]:l}const R=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[],U=R.includes("css-modules"),N=R.includes("json-modules"),oe=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),Q=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,q=(l,f="text/javascript")=>URL.createObjectURL(new Blob([l],{type:f}));let{skip:de}=s;if(Array.isArray(de)){const l=de.map(f=>new URL(f,Q).href);de=f=>l.some(v=>v[v.length-1]==="/"&&f.startsWith(v)||f===v)}else if(typeof de=="string"){const l=new RegExp(de);de=f=>l.test(f)}const Dr=l=>setTimeout(()=>{throw l}),xt=l=>{(self.reportError||n&&window.safari&&console.error||Dr)(l),S(l)};function He(l){return l?` imported from ${l}`:""}let at=!1;function qr(){at=!0}if(!o)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)o=!0;else{let l=!1;for(const f of document.querySelectorAll("script[type=module],script[type=importmap]"))if(!l)f.type==="module"&&!f.ep&&(l=!0);else if(f.type==="importmap"&&l){at=!0;break}}const Vr=/\\/g;function Et(l){if(l.indexOf(":")===-1)return!1;try{return new URL(l),!0}catch{return!1}}function un(l,f){return Se(l,f)||(Et(l)?l:Se("./"+l,f))}function Se(l,f){const v=f.indexOf("#"),A=f.indexOf("?");if(v+A>-2&&(f=f.slice(0,v===-1?A:A===-1||A>v?v:A)),l.indexOf("\\")!==-1&&(l=l.replace(Vr,"/")),l[0]==="/"&&l[1]==="/")return f.slice(0,f.indexOf(":")+1)+l;if(l[0]==="."&&(l[1]==="/"||l[1]==="."&&(l[2]==="/"||l.length===2&&(l+="/"))||l.length===1&&(l+="/"))||l[0]==="/"){const g=f.slice(0,f.indexOf(":")+1);let w;if(f[g.length+1]==="/"?g!=="file:"?(w=f.slice(g.length+2),w=w.slice(w.indexOf("/")+1)):w=f.slice(8):w=f.slice(g.length+(f[g.length]==="/")),l[0]==="/")return f.slice(0,f.length-w.length-1)+l;const x=w.slice(0,w.lastIndexOf("/")+1)+l,O=[];let L=-1;for(let E=0;E<x.length;E++){if(L!==-1){x[E]==="/"&&(O.push(x.slice(L,E+1)),L=-1);continue}else if(x[E]==="."){if(x[E+1]==="."&&(x[E+2]==="/"||E+2===x.length)){O.pop(),E+=2;continue}else if(x[E+1]==="/"||E+1===x.length){E+=1;continue}}for(;x[E]==="/";)E++;L=E}return L!==-1&&O.push(x.slice(L)),f.slice(0,f.length-w.length)+O.join("")}}function fn(l,f,v){const A={imports:Object.assign({},v.imports),scopes:Object.assign({},v.scopes)};if(l.imports&&dn(l.imports,A.imports,f,v),l.scopes)for(let g in l.scopes){const w=un(g,f);dn(l.scopes[g],A.scopes[w]||(A.scopes[w]={}),f,v)}return A}function Ot(l,f){if(f[l])return l;let v=l.length;do{const A=l.slice(0,v+1);if(A in f)return A}while((v=l.lastIndexOf("/",v-1))!==-1)}function hn(l,f){const v=Ot(l,f);if(v){const A=f[v];return A===null?void 0:A+l.slice(v.length)}}function It(l,f,v){let A=v&&Ot(v,l.scopes);for(;A;){const g=hn(f,l.scopes[A]);if(g)return g;A=Ot(A.slice(0,A.lastIndexOf("/")),l.scopes)}return hn(f,l.imports)||f.indexOf(":")!==-1&&f}function dn(l,f,v,A){for(let g in l){const w=Se(g,v)||g;if((!o||!$)&&f[w]&&f[w]!==l[w])throw Error(`Rejected map override "${w}" from ${f[w]} to ${l[w]}.`);let x=l[g];if(typeof x!="string")continue;const O=It(A,Se(x,v)||x,v);if(O){f[w]=O;continue}console.warn(`Mapping "${g}" -> "${l[g]}" does not resolve`)}}let ae=!e&&(0,eval)("u=>import(u)"),ct;const Gr=e&&new Promise(l=>{const f=Object.assign(document.createElement("script"),{src:q("self._d=u=>import(u)"),ep:!0});f.setAttribute("nonce",k),f.addEventListener("load",()=>{if(!(ct=!!(ae=self._d))){let v;window.addEventListener("error",A=>v=A),ae=(A,g)=>new Promise((w,x)=>{const O=Object.assign(document.createElement("script"),{type:"module",src:q(`import*as m from'${A}';self._esmsi=m`)});v=void 0,O.ep=!0,k&&O.setAttribute("nonce",k),O.addEventListener("error",L),O.addEventListener("load",L);function L(E){document.head.removeChild(O),self._esmsi?(w(self._esmsi,Q),self._esmsi=void 0):(x(!(E instanceof Event)&&E||v&&v.error||new Error(`Error loading ${g&&g.errUrl||A} (${O.src}).`)),v=void 0)}document.head.appendChild(O)})}document.head.removeChild(f),delete self._d,l()}),document.head.appendChild(f)});let lt=!1,ut=!1,pe=e&&HTMLScriptElement.supports?HTMLScriptElement.supports("importmap"):!1,ft=pe;const pn="import.meta",mn='import"x"assert{type:"css"}',Yr='import"x"assert{type:"json"}',zr=Promise.resolve(Gr).then(()=>{if(!(!ct||pe&&!U&&!N))return e?new Promise(l=>{const f=document.createElement("iframe");f.style.display="none",f.setAttribute("nonce",k);function v({data:[g,w,x,O]}){pe=g,ft=w,ut=x,lt=O,l(),document.head.removeChild(f),window.removeEventListener("message",v,!1)}window.addEventListener("message",v,!1);const A=`<script nonce=${k||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${k}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${pe?"true,true":`'x',b('${pn}')`}, ${U?`b('${mn}'.replace('x',b('','text/css')))`:"false"}, ${N?`b('${Yr}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(a,'*'))<\/script>`;f.onload=()=>{const g=f.contentDocument;if(g&&g.head.childNodes.length===0){const w=g.createElement("script");k&&w.setAttribute("nonce",k),w.innerHTML=A.slice(15+(k?k.length:0),-9),g.head.appendChild(w)}},document.head.appendChild(f),"srcdoc"in f?f.srcdoc=A:f.contentDocument.write(A)}):Promise.all([pe||ae(q(pn)).then(()=>ft=!0,t),U&&ae(q(mn.replace("x",q("","text/css")))).then(()=>ut=!0,t),N&&ae(q(jsonModulescheck.replace("x",q("{}","text/json")))).then(()=>lt=!0,t)])});let W,ht,Ct,Fe=2<<19;const bn=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(l,f){const v=l.length;let A=0;for(;A<v;)f[A]=l.charCodeAt(A++)}:function(l,f){const v=l.length;let A=0;for(;A<v;){const g=l.charCodeAt(A);f[A++]=(255&g)<<8|g>>>8}},Jr="xportmportlassetafromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let B,vn,H;function Kr(l,f="@"){B=l,vn=f;const v=2*B.length+(2<<18);if(v>Fe||!W){for(;v>Fe;)Fe*=2;ht=new ArrayBuffer(Fe),bn(Jr,new Uint16Array(ht,16,106)),W=function(x,O,L){var E=new x.Int8Array(L),_=new x.Int16Array(L),a=new x.Int32Array(L),re=new x.Uint8Array(L),ce=new x.Uint16Array(L),ee=1024;function Y(){var i=0,u=0,d=0,y=0,p=0,T=0,ge=0;ge=ee,ee=ee+10240|0,E[795]=1,_[395]=0,_[396]=0,a[67]=a[2],E[796]=0,a[66]=0,E[794]=0,a[68]=ge+2048,a[69]=ge,E[797]=0,i=(a[3]|0)+-2|0,a[70]=i,u=i+(a[64]<<1)|0,a[71]=u;e:for(;;){if(d=i+2|0,a[70]=d,i>>>0>=u>>>0){p=18;break}n:do switch(_[d>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(_[396]|0)&&ye(d)|0&&!(K(i+4|0,16,10)|0)&&(Ee(),(E[795]|0)==0)){p=9;break e}else p=17;break}case 105:{ye(d)|0&&!(K(i+4|0,26,10)|0)&&Ge(),p=17;break}case 59:{p=17;break}case 47:switch(_[i+4>>1]|0){case 47:{qt();break n}case 42:{Wt(1);break n}default:{p=16;break e}}default:{p=16;break e}}while(0);(p|0)==17&&(p=0,a[67]=a[70]),i=a[70]|0,u=a[71]|0}(p|0)==9?(i=a[70]|0,a[67]=i,p=19):(p|0)==16?(E[795]=0,a[70]=i,p=19):(p|0)==18&&(E[794]|0?i=0:(i=d,p=19));do if((p|0)==19){e:for(;;){if(u=i+2|0,a[70]=u,y=u,i>>>0>=(a[71]|0)>>>0){p=82;break}n:do switch(_[u>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(_[396]|0)&&ye(u)|0&&!(K(i+4|0,16,10)|0)&&Ee(),p=81;break}case 105:{ye(u)|0&&!(K(i+4|0,26,10)|0)&&Ge(),p=81;break}case 99:{ye(u)|0&&!(K(i+4|0,36,8)|0)&&Je(_[i+12>>1]|0)|0&&(E[797]=1),p=81;break}case 40:{y=a[68]|0,u=_[396]|0,p=u&65535,a[y+(p<<3)>>2]=1,d=a[67]|0,_[396]=u+1<<16>>16,a[y+(p<<3)+4>>2]=d,p=81;break}case 41:{if(u=_[396]|0,!(u<<16>>16)){p=36;break e}u=u+-1<<16>>16,_[396]=u,d=_[395]|0,d<<16>>16&&(T=a[(a[69]|0)+((d&65535)+-1<<2)>>2]|0,(a[T+20>>2]|0)==(a[(a[68]|0)+((u&65535)<<3)+4>>2]|0))&&(u=T+4|0,a[u>>2]|0||(a[u>>2]=y),a[T+12>>2]=i+4,_[395]=d+-1<<16>>16),p=81;break}case 123:{p=a[67]|0,y=a[61]|0,i=p;do if((_[p>>1]|0)==41&(y|0)!=0&&(a[y+4>>2]|0)==(p|0))if(u=a[62]|0,a[61]=u,u){a[u+28>>2]=0;break}else{a[57]=0;break}while(0);y=a[68]|0,d=_[396]|0,p=d&65535,a[y+(p<<3)>>2]=E[797]|0?6:2,_[396]=d+1<<16>>16,a[y+(p<<3)+4>>2]=i,E[797]=0,p=81;break}case 125:{if(i=_[396]|0,!(i<<16>>16)){p=49;break e}y=a[68]|0,p=i+-1<<16>>16,_[396]=p,(a[y+((p&65535)<<3)>>2]|0)==4&&Ce(),p=81;break}case 39:{X(39),p=81;break}case 34:{X(34),p=81;break}case 47:switch(_[i+4>>1]|0){case 47:{qt();break n}case 42:{Wt(1);break n}default:{i=a[67]|0,y=_[i>>1]|0;t:do if(ci(y)|0)switch(y<<16>>16){case 46:if(((_[i+-2>>1]|0)+-48&65535)<10){p=66;break t}else{p=69;break t}case 43:if((_[i+-2>>1]|0)==43){p=66;break t}else{p=69;break t}case 45:if((_[i+-2>>1]|0)==45){p=66;break t}else{p=69;break t}default:{p=69;break t}}else{switch(y<<16>>16){case 41:if(hi(a[(a[68]|0)+(ce[396]<<3)+4>>2]|0)|0){p=69;break t}else{p=66;break t}case 125:break;default:{p=66;break t}}u=a[68]|0,d=ce[396]|0,!(ai(a[u+(d<<3)+4>>2]|0)|0)&&(a[u+(d<<3)>>2]|0)!=6?p=66:p=69}while(0);t:do if((p|0)==66)if(p=0,be(i)|0)p=69;else{switch(y<<16>>16){case 0:{p=69;break t}case 47:{if(E[796]|0){p=69;break t}break}default:}d=a[3]|0,u=y;do{if(i>>>0<=d>>>0)break;i=i+-2|0,a[67]=i,u=_[i>>1]|0}while(!(ze(u)|0));if(mt(u)|0){do{if(i>>>0<=d>>>0)break;i=i+-2|0,a[67]=i}while(mt(_[i>>1]|0)|0);if(ui(i)|0){Un(),E[796]=0,p=81;break n}else i=1}else i=1}while(0);(p|0)==69&&(Un(),i=0),E[796]=i,p=81;break n}}case 96:{y=a[68]|0,d=_[396]|0,p=d&65535,a[y+(p<<3)+4>>2]=a[67],_[396]=d+1<<16>>16,a[y+(p<<3)>>2]=3,Ce(),p=81;break}default:p=81}while(0);(p|0)==81&&(p=0,a[67]=a[70]),i=a[70]|0}if((p|0)==36){Z(),i=0;break}else if((p|0)==49){Z(),i=0;break}else if((p|0)==82){i=E[794]|0?0:(_[395]|_[396])<<16>>16==0;break}}while(0);return ee=ge,i|0}function Ee(){var i=0,u=0,d=0,y=0,p=0,T=0,ge=0,M=0,D=0;p=a[70]|0,T=a[63]|0,D=p+12|0,a[70]=D,d=P(1)|0,i=a[70]|0,(i|0)==(D|0)&&!(Dt(d)|0)||(M=3);e:do if((M|0)==3){n:do switch(d<<16>>16){case 123:{for(a[70]=i+2,i=P(1)|0,d=a[70]|0;;){if(Ke(i)|0?(X(i),i=(a[70]|0)+2|0,a[70]=i):(ue(i)|0,i=a[70]|0),P(1)|0,i=Fn(d,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=P(1)|0),u=d,d=a[70]|0,i<<16>>16==125){M=15;break}if((d|0)==(u|0)){M=12;break}if(d>>>0>(a[71]|0)>>>0){M=14;break}}if((M|0)==12){Z();break e}else if((M|0)==14){Z();break e}else if((M|0)==15){a[70]=d+2;break n}break}case 42:{a[70]=i+2,P(1)|0,D=a[70]|0,Fn(D,D)|0;break}default:{switch(E[795]=0,d<<16>>16){case 100:{p=i+14|0,a[70]=p,u=P(1)|0,u<<16>>16==97?(u=a[70]|0,ye(u)|0&&!(K(u+2|0,58,8)|0)&&(y=u+10|0,mt(_[y>>1]|0)|0)?(a[70]=y,u=P(0)|0,M=23):(u=97,M=32)):M=23;t:do if((M|0)==23){if(u<<16>>16==102){if(u=a[70]|0,!(ye(u)|0)){u=102,M=32;break}if(K(u+2|0,66,14)|0){u=102,M=32;break}if(d=u+16|0,u=_[d>>1]|0,!(Je(u)|0))switch(u<<16>>16){case 40:case 42:break;default:{u=102,M=32;break t}}if(a[70]=d,u=P(1)|0,u<<16>>16==42&&(a[70]=(a[70]|0)+2,u=P(1)|0),u<<16>>16==40){ve(i,p,0,0),a[70]=i+12;break e}else y=1}else y=0;d=a[70]|0;do if(u<<16>>16==99)if(ye(d)|0&&!(K(d+2|0,36,8)|0)&&(ge=d+10|0,D=_[ge>>1]|0,Je(D)|0|D<<16>>16==123))if(a[70]=ge,u=P(1)|0,u<<16>>16==123){ve(i,p,0,0),a[70]=i+12;break e}else{d=a[70]|0,ue(u)|0;break}else u=99,M=40;else M=40;while(0);if((M|0)==40&&(ue(u)|0,!y)){M=43;break}u=a[70]|0,u>>>0>d>>>0?(ve(i,p,d,u),i=(a[70]|0)+-2|0):M=43}while(0);(M|0)==32&&(ue(u)|0,M=43),(M|0)==43&&(ve(i,p,0,0),i=i+12|0),a[70]=i;break e}case 97:{a[70]=i+10,P(1)|0,i=a[70]|0,M=46;break}case 102:{M=46;break}case 99:{if(!(K(i+2|0,36,8)|0)&&(u=i+10|0,ze(_[u>>1]|0)|0)){a[70]=u,D=P(1)|0,M=a[70]|0,ue(D)|0,D=a[70]|0,ve(M,D,M,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i;break}case 108:case 118:break;default:break e}if((M|0)==46){a[70]=i+16,i=P(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=P(1)|0),M=a[70]|0,ue(i)|0,D=a[70]|0,ve(M,D,M,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,E[795]=0;t:for(;;){switch(a[70]=i+2,D=P(1)|0,i=a[70]|0,(ue(D)|0)<<16>>16){case 91:case 123:break t;default:}if(u=a[70]|0,(u|0)==(i|0))break e;if(ve(i,u,i,u),(P(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(D=(P(1)|0)<<16>>16==102,i=a[70]|0,D&&!(K(i+2|0,52,6)|0))for(a[70]=i+8,le(p,P(1)|0),i=T|0?T+16|0:232;;){if(i=a[i>>2]|0,!i)break e;a[i+12>>2]=0,a[i+8>>2]=0,i=i+16|0}a[70]=i+-2}while(0)}function Ge(){var i=0,u=0,d=0,y=0,p=0,T=0;p=a[70]|0,u=p+12|0,a[70]=u;e:do switch((P(1)|0)<<16>>16){case 40:{if(u=a[68]|0,T=_[396]|0,d=T&65535,a[u+(d<<3)>>2]=5,i=a[70]|0,_[396]=T+1<<16>>16,a[u+(d<<3)+4>>2]=i,(_[a[67]>>1]|0)!=46){switch(a[70]=i+2,T=P(1)|0,Bt(p,a[70]|0,0,i),u=a[61]|0,d=a[69]|0,p=_[395]|0,_[395]=p+1<<16>>16,a[d+((p&65535)<<2)>>2]=u,T<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(P(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,P(1)|0,p=a[61]|0,a[p+4>>2]=i,T=a[70]|0,a[p+16>>2]=T,E[p+24>>0]=1,a[70]=T+-2;break e}case 41:{_[396]=(_[396]|0)+-1<<16>>16,T=a[61]|0,a[T+4>>2]=i,a[T+12>>2]=(a[70]|0)+2,E[T+24>>0]=1,_[395]=(_[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==109&&(i=a[70]|0,(K(i+2|0,44,6)|0)==0)&&(_[a[67]>>1]|0)!=46&&Bt(p,p,i+8|0,2);break}case 42:case 39:case 34:{y=17;break}case 123:{if(i=a[70]|0,_[396]|0){a[70]=i+-2;break e}for(;!(i>>>0>=(a[71]|0)>>>0);){if(i=P(1)|0,Ke(i)|0)X(i);else if(i<<16>>16==125){y=32;break}i=(a[70]|0)+2|0,a[70]=i}if((y|0)==32&&(a[70]=(a[70]|0)+2),P(1)|0,i=a[70]|0,K(i,50,8)|0){Z();break e}if(a[70]=i+8,i=P(1)|0,Ke(i)|0){le(p,i);break e}else{Z();break e}}default:(a[70]|0)==(u|0)?a[70]=p+10:y=17}while(0);do if((y|0)==17){if(_[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,u=a[70]|0;;){if(u>>>0>=i>>>0){y=24;break}if(d=_[u>>1]|0,Ke(d)|0){y=22;break}T=u+2|0,a[70]=T,u=T}if((y|0)==22){le(p,d);break}else if((y|0)==24){Z();break}}while(0)}function be(i){i=i|0;e:do switch(_[i>>1]|0){case 100:switch(_[i+-2>>1]|0){case 105:{i=V(i+-4|0,90,2)|0;break e}case 108:{i=V(i+-4|0,94,3)|0;break e}default:{i=0;break e}}case 101:switch(_[i+-2>>1]|0){case 115:switch(_[i+-4>>1]|0){case 108:{i=Ye(i+-6|0,101)|0;break e}case 97:{i=Ye(i+-6|0,99)|0;break e}default:{i=0;break e}}case 116:{i=V(i+-4|0,100,4)|0;break e}case 117:{i=V(i+-4|0,108,6)|0;break e}default:{i=0;break e}}case 102:{if((_[i+-2>>1]|0)==111&&(_[i+-4>>1]|0)==101)switch(_[i+-6>>1]|0){case 99:{i=V(i+-8|0,120,6)|0;break e}case 112:{i=V(i+-8|0,132,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=V(i+-2|0,136,4)|0;break}case 110:{i=i+-2|0,Ye(i,105)|0?i=1:i=V(i,144,5)|0;break}case 111:{i=Ye(i+-2|0,100)|0;break}case 114:{i=V(i+-2|0,154,7)|0;break}case 116:{i=V(i+-2|0,168,4)|0;break}case 119:switch(_[i+-2>>1]|0){case 101:{i=Ye(i+-4|0,110)|0;break e}case 111:{i=V(i+-4|0,176,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function le(i,u){i=i|0,u=u|0;var d=0,y=0;switch(d=(a[70]|0)+2|0,u<<16>>16){case 39:{X(39),y=5;break}case 34:{X(34),y=5;break}default:Z()}do if((y|0)==5){if(Bt(i,d,a[70]|0,1),a[70]=(a[70]|0)+2,y=(P(0)|0)<<16>>16==97,u=a[70]|0,y&&!(K(u+2|0,80,10)|0)){if(a[70]=u+12,(P(1)|0)<<16>>16!=123){a[70]=u;break}i=a[70]|0,d=i;e:for(;;){switch(a[70]=d+2,d=P(1)|0,d<<16>>16){case 39:{X(39),a[70]=(a[70]|0)+2,d=P(1)|0;break}case 34:{X(34),a[70]=(a[70]|0)+2,d=P(1)|0;break}default:d=ue(d)|0}if(d<<16>>16!=58){y=16;break}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{y=20;break e}}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 125:{y=25;break e}case 44:break;default:{y=24;break e}}if(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==125){y=25;break}d=a[70]|0}if((y|0)==16){a[70]=u;break}else if((y|0)==20){a[70]=u;break}else if((y|0)==24){a[70]=u;break}else if((y|0)==25){y=a[61]|0,a[y+16>>2]=i,a[y+12>>2]=(a[70]|0)+2;break}}a[70]=u+-2}while(0)}function Ce(){var i=0,u=0,d=0,y=0;u=a[71]|0,d=a[70]|0;e:for(;;){if(i=d+2|0,d>>>0>=u>>>0){u=10;break}switch(_[i>>1]|0){case 96:{u=7;break e}case 36:{if((_[d+4>>1]|0)==123){u=6;break e}break}case 92:{i=d+4|0;break}default:}d=i}(u|0)==6?(i=d+4|0,a[70]=i,u=a[68]|0,y=_[396]|0,d=y&65535,a[u+(d<<3)>>2]=4,_[396]=y+1<<16>>16,a[u+(d<<3)+4>>2]=i):(u|0)==7?(a[70]=i,d=a[68]|0,y=(_[396]|0)+-1<<16>>16,_[396]=y,(a[d+((y&65535)<<3)>>2]|0)!=3&&Z()):(u|0)==10&&(a[70]=i,Z())}function P(i){i=i|0;var u=0,d=0,y=0;d=a[70]|0;e:do{u=_[d>>1]|0;n:do if(u<<16>>16!=47)if(i){if(Je(u)|0)break;break e}else{if(mt(u)|0)break;break e}else switch(_[d+2>>1]|0){case 47:{qt();break n}case 42:{Wt(i);break n}default:{u=47;break e}}while(0);y=a[70]|0,d=y+2|0,a[70]=d}while(y>>>0<(a[71]|0)>>>0);return u|0}function X(i){i=i|0;var u=0,d=0,y=0,p=0;for(p=a[71]|0,u=a[70]|0;;){if(y=u+2|0,u>>>0>=p>>>0){u=9;break}if(d=_[y>>1]|0,d<<16>>16==i<<16>>16){u=10;break}if(d<<16>>16==92)d=u+4|0,(_[d>>1]|0)==13?(u=u+6|0,u=(_[u>>1]|0)==10?u:d):u=d;else if(Bn(d)|0){u=9;break}else u=y}(u|0)==9?(a[70]=y,Z()):(u|0)==10&&(a[70]=y)}function Fn(i,u){i=i|0,u=u|0;var d=0,y=0,p=0,T=0;return d=a[70]|0,y=_[d>>1]|0,T=(i|0)==(u|0),p=T?0:i,T=T?0:u,y<<16>>16==97&&(a[70]=d+4,d=P(1)|0,i=a[70]|0,Ke(d)|0?(X(d),u=(a[70]|0)+2|0,a[70]=u):(ue(d)|0,u=a[70]|0),y=P(1)|0,d=a[70]|0),(d|0)!=(i|0)&&ve(i,u,p,T),y|0}function Bt(i,u,d,y){i=i|0,u=u|0,d=d|0,y=y|0;var p=0,T=0;p=a[65]|0,a[65]=p+32,T=a[61]|0,a[(T|0?T+28|0:228)>>2]=p,a[62]=T,a[61]=p,a[p+8>>2]=i,(y|0)==2?i=d:i=(y|0)==1?d+2|0:0,a[p+12>>2]=i,a[p>>2]=u,a[p+4>>2]=d,a[p+16>>2]=0,a[p+20>>2]=y,E[p+24>>0]=(y|0)==1&1,a[p+28>>2]=0}function oi(){var i=0,u=0,d=0;d=a[71]|0,u=a[70]|0;e:for(;;){if(i=u+2|0,u>>>0>=d>>>0){u=6;break}switch(_[i>>1]|0){case 13:case 10:{u=6;break e}case 93:{u=7;break e}case 92:{i=u+4|0;break}default:}u=i}return(u|0)==6?(a[70]=i,Z(),i=0):(u|0)==7&&(a[70]=i,i=93),i|0}function Un(){var i=0,u=0,d=0;e:for(;;){if(i=a[70]|0,u=i+2|0,a[70]=u,i>>>0>=(a[71]|0)>>>0){d=7;break}switch(_[u>>1]|0){case 13:case 10:{d=7;break e}case 47:break e;case 91:{oi()|0;break}case 92:{a[70]=i+4;break}default:}}(d|0)==7&&Z()}function ai(i){switch(i=i|0,_[i>>1]|0){case 62:{i=(_[i+-2>>1]|0)==61;break}case 41:case 59:{i=1;break}case 104:{i=V(i+-2|0,202,4)|0;break}case 121:{i=V(i+-2|0,210,6)|0;break}case 101:{i=V(i+-2|0,222,3)|0;break}default:i=0}return i|0}function Wt(i){i=i|0;var u=0,d=0,y=0,p=0,T=0;for(p=(a[70]|0)+2|0,a[70]=p,d=a[71]|0;u=p+2|0,!(p>>>0>=d>>>0||(y=_[u>>1]|0,!i&&Bn(y)|0));){if(y<<16>>16==42&&(_[p+4>>1]|0)==47){T=8;break}p=u}(T|0)==8&&(a[70]=u,u=p+4|0),a[70]=u}function K(i,u,d){i=i|0,u=u|0,d=d|0;var y=0,p=0;e:do if(!d)i=0;else{for(;y=E[i>>0]|0,p=E[u>>0]|0,y<<24>>24==p<<24>>24;)if(d=d+-1|0,d)i=i+1|0,u=u+1|0;else{i=0;break e}i=(y&255)-(p&255)|0}while(0);return i|0}function Dt(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:{i=1;break}default:if((i&-8)<<16>>16==40|(i+-58&65535)<6)i=1;else{switch(i<<16>>16){case 91:case 93:case 94:{i=1;break e}default:}i=(i+-123&65535)<4}}while(0);return i|0}function ci(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:break;default:if(!((i+-58&65535)<6|(i+-40&65535)<7&i<<16>>16!=41)){switch(i<<16>>16){case 91:case 94:break e;default:}return i<<16>>16!=125&(i+-123&65535)<4|0}}while(0);return 1}function li(i){i=i|0;var u=0,d=0,y=0,p=0;return d=ee,ee=ee+16|0,y=d,a[y>>2]=0,a[64]=i,u=a[3]|0,p=u+(i<<1)|0,i=p+2|0,_[p>>1]=0,a[y>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,ee=d,u|0}function V(i,u,d){i=i|0,u=u|0,d=d|0;var y=0,p=0;return y=i+(0-d<<1)|0,p=y+2|0,i=a[3]|0,p>>>0>=i>>>0&&!(K(p,u,d<<1)|0)?(p|0)==(i|0)?i=1:i=ze(_[y>>1]|0)|0:i=0,i|0}function ve(i,u,d,y){i=i|0,u=u|0,d=d|0,y=y|0;var p=0,T=0;p=a[65]|0,a[65]=p+20,T=a[63]|0,a[(T|0?T+16|0:232)>>2]=p,a[63]=p,a[p>>2]=i,a[p+4>>2]=u,a[p+8>>2]=d,a[p+12>>2]=y,a[p+16>>2]=0}function ui(i){switch(i=i|0,_[i>>1]|0){case 107:{i=V(i+-2|0,136,4)|0;break}case 101:{(_[i+-2>>1]|0)==117?i=V(i+-4|0,108,6)|0:i=0;break}default:i=0}return i|0}function Ye(i,u){i=i|0,u=u|0;var d=0;return d=a[3]|0,d>>>0<=i>>>0&&(_[i>>1]|0)==u<<16>>16?(d|0)==(i|0)?d=1:d=ze(_[i+-2>>1]|0)|0:d=0,d|0}function ze(i){i=i|0;e:do if((i+-9&65535)<5)i=1;else{switch(i<<16>>16){case 32:case 160:{i=1;break e}default:}i=i<<16>>16!=46&(Dt(i)|0)}while(0);return i|0}function qt(){var i=0,u=0,d=0;i=a[71]|0,d=a[70]|0;e:for(;u=d+2|0,!(d>>>0>=i>>>0);)switch(_[u>>1]|0){case 13:case 10:break e;default:d=u}a[70]=u}function ue(i){for(i=i|0;!(Je(i)|0||Dt(i)|0);)if(i=(a[70]|0)+2|0,a[70]=i,i=_[i>>1]|0,!(i<<16>>16)){i=0;break}return i|0}function fi(){var i=0;switch(i=a[(a[59]|0)+20>>2]|0,i|0){case 1:{i=-1;break}case 2:{i=-2;break}default:i=i-(a[3]|0)>>1}return i|0}function hi(i){return i=i|0,!(V(i,182,5)|0)&&!(V(i,192,3)|0)?i=V(i,198,2)|0:i=1,i|0}function mt(i){switch(i=i|0,i<<16>>16){case 160:case 32:case 12:case 11:case 9:{i=1;break}default:i=0}return i|0}function ye(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=ze(_[i+-2>>1]|0)|0,i|0}function di(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function pi(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function mi(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function bi(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function vi(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function yi(){var i=0;return i=a[59]|0,i=a[(i|0?i+28|0:228)>>2]|0,a[59]=i,(i|0)!=0|0}function gi(){var i=0;return i=a[60]|0,i=a[(i|0?i+16|0:232)>>2]|0,a[60]=i,(i|0)!=0|0}function Z(){E[794]=1,a[66]=(a[70]|0)-(a[3]|0)>>1,a[70]=(a[71]|0)+2}function Je(i){return i=i|0,(i|128)<<16>>16==160|(i+-9&65535)<5|0}function Ke(i){return i=i|0,i<<16>>16==39|i<<16>>16==34|0}function _i(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function wi(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function Bn(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function ki(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function $i(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function Ai(){return re[(a[59]|0)+24>>0]|0|0}function Si(i){i=i|0,a[3]=i}function xi(){return(E[795]|0)!=0|0}function Ei(){return a[66]|0}function Oi(i){return i=i|0,ee=i+992+15&-16,992}return{su:Oi,ai:bi,e:Ei,ee:wi,ele:di,els:mi,es:$i,f:xi,id:fi,ie:vi,ip:Ai,is:ki,p:Y,re:gi,ri:yi,sa:li,se:pi,ses:Si,ss:_i}}(typeof self<"u"?self:Ii,{},ht),Ct=W.su(Fe-(2<<17))}const A=B.length+1;W.ses(Ct),W.sa(A-1),bn(B,new Uint16Array(ht,Ct,A)),W.p()||(H=W.e(),me());const g=[],w=[];for(;W.ri();){const x=W.is(),O=W.ie(),L=W.ai(),E=W.id(),_=W.ss(),a=W.se();let re;W.ip()&&(re=Tt(E===-1?x:x+1,B.charCodeAt(E===-1?x-1:x))),g.push({n:re,s:x,e:O,ss:_,se:a,d:E,a:L})}for(;W.re();){const x=W.es(),O=W.ee(),L=W.els(),E=W.ele(),_=B.charCodeAt(x),a=L>=0?B.charCodeAt(L):-1;w.push({s:x,e:O,ls:L,le:E,n:_===34||_===39?Tt(x+1,_):B.slice(x,O),ln:L<0?void 0:a===34||a===39?Tt(L+1,a):B.slice(L,E)})}return[g,w,!!W.f()]}function Tt(l,f){H=l;let v="",A=H;for(;;){H>=B.length&&me();const g=B.charCodeAt(H);if(g===f)break;g===92?(v+=B.slice(A,H),v+=Qr(),A=H):(g===8232||g===8233||yn(g)&&me(),++H)}return v+=B.slice(A,H++),v}function Qr(){let l=B.charCodeAt(++H);switch(++H,l){case 110:return`
|
|
2
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(Lt(2));case 117:return function(){let f;return B.charCodeAt(H)===123?(++H,f=Lt(B.indexOf("}",H)-H),++H,f>1114111&&me()):f=Lt(4),f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode(55296+(f>>10),56320+(1023&f)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:B.charCodeAt(H)===10&&++H;case 10:return"";case 56:case 57:me();default:if(l>=48&&l<=55){let f=B.substr(H-1,3).match(/^[0-7]+/)[0],v=parseInt(f,8);return v>255&&(f=f.slice(0,-1),v=parseInt(f,8)),H+=f.length-1,l=B.charCodeAt(H),f==="0"&&l!==56&&l!==57||me(),String.fromCharCode(v)}return yn(l)?"":String.fromCharCode(l)}}function Lt(l){const f=H;let v=0,A=0;for(let g=0;g<l;++g,++H){let w,x=B.charCodeAt(H);if(x!==95){if(x>=97)w=x-97+10;else if(x>=65)w=x-65+10;else{if(!(x>=48&&x<=57))break;w=x-48}if(w>=16)break;A=x,v=16*v+w}else A!==95&&g!==0||me(),A=x}return A!==95&&H-f===l||me(),v}function yn(l){return l===13||l===10}function me(){throw Object.assign(Error(`Parse error ${vn}:${B.slice(0,H).split(`
|
|
3
3
|
`).length}:${H-B.lastIndexOf(`
|
|
4
|
-
`,H-1)}`),{idx:H})}async function gn(l,f){const v=Se(l,f);return{r:It(xe,v||l,f)||wn(l,f),b:!v&&!Et(l)}}const _n=h?async(l,f)=>{let v=h(l,f,Pt);return v&&v.then&&(v=await v),v?{r:v,b:!Se(l,f)&&!Et(l)}:gn(l,f)}:gn;async function Ue(l,...f){let v=f[f.length-1];return typeof v!="string"&&(v=Q),await De,c&&await c(l,typeof f[1]!="string"?f[1]:{},v),(qe||o||!We)&&(e&&Rt(!0),o||(qe=!1)),await dt,Sn((await _n(l,v)).r,{credentials:"same-origin"})}self.importShim=Ue;function Pt(l,f){return It(xe,Se(l,f)||l,f)||wn(l,f)}function wn(l,f){throw Error(`Unable to resolve specifier '${l}'${He(f)}`)}const kn=(l,f=Q)=>{f=`${f}`;const v=h&&h(l,f,Pt);return v&&!v.then?v:Pt(l,f)};function Xr(l,f=this.url){return kn(l,f)}Ue.resolve=kn,Ue.getImportMap=()=>JSON.parse(JSON.stringify(xe)),Ue.addImportMap=l=>{if(!o)throw new Error("Unsupported in polyfill mode.");xe=fn(l,Q,xe)};const Be=Ue._r={};async function $n(l,f){l.b||f[l.u]||(f[l.u]=1,await l.L,await Promise.all(l.d.map(v=>$n(v,f))),l.n||(l.n=l.d.some(v=>v.n)))}let xe={imports:{},scopes:{}},We;const De=
|
|
5
|
-
//# sourceURL=${
|
|
6
|
-
;import{u$_}from'${l.s}';try{u$_({${A.filter(a=>a.ln).map(({s:a,e:
|
|
4
|
+
`,H-1)}`),{idx:H})}async function gn(l,f){const v=Se(l,f);return{r:It(xe,v||l,f)||wn(l,f),b:!v&&!Et(l)}}const _n=h?async(l,f)=>{let v=h(l,f,Pt);return v&&v.then&&(v=await v),v?{r:v,b:!Se(l,f)&&!Et(l)}:gn(l,f)}:gn;async function Ue(l,...f){let v=f[f.length-1];return typeof v!="string"&&(v=Q),await De,c&&await c(l,typeof f[1]!="string"?f[1]:{},v),(qe||o||!We)&&(e&&Rt(!0),o||(qe=!1)),await dt,Sn((await _n(l,v)).r,{credentials:"same-origin"})}self.importShim=Ue;function Pt(l,f){return It(xe,Se(l,f)||l,f)||wn(l,f)}function wn(l,f){throw Error(`Unable to resolve specifier '${l}'${He(f)}`)}const kn=(l,f=Q)=>{f=`${f}`;const v=h&&h(l,f,Pt);return v&&!v.then?v:Pt(l,f)};function Xr(l,f=this.url){return kn(l,f)}Ue.resolve=kn,Ue.getImportMap=()=>JSON.parse(JSON.stringify(xe)),Ue.addImportMap=l=>{if(!o)throw new Error("Unsupported in polyfill mode.");xe=fn(l,Q,xe)};const Be=Ue._r={};async function $n(l,f){l.b||f[l.u]||(f[l.u]=1,await l.L,await Promise.all(l.d.map(v=>$n(v,f))),l.n||(l.n=l.d.some(v=>v.n)))}let xe={imports:{},scopes:{}},We;const De=zr.then(()=>{if(We=s.polyfillEnable!==!0&&ct&&ft&&pe&&(!N||lt)&&(!U||ut)&&!at&&!0,e){if(!pe){const l=HTMLScriptElement.supports||(f=>f==="classic"||f==="module");HTMLScriptElement.supports=f=>f==="importmap"||l(f)}if(o||!We)if(new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const v of f.addedNodes)v.tagName==="SCRIPT"?(v.type===(o?"module-shim":"module")&&Nn(v,!0),v.type===(o?"importmap-shim":"importmap")&&Rn(v,!0)):v.tagName==="LINK"&&v.rel===(o?"modulepreload-shim":"modulepreload")&&Hn(v)}).observe(document,{childList:!0,subtree:!0}),Rt(),document.readyState==="complete")Ft();else{async function l(){await De,Rt(),document.readyState==="complete"&&(Ft(),document.removeEventListener("readystatechange",l))}document.addEventListener("readystatechange",l)}}});let dt=De,An=!0,qe=!0;async function Sn(l,f,v,A,g){if(o||(qe=!1),await De,await dt,c&&await c(l,typeof f!="string"?f:{},""),!o&&We)return A?null:(await g,ae(v?q(v):l,{errUrl:l||v}));const w=Tn(l,f,null,v),x={};if(await $n(w,x),pt=void 0,En(w,x),await g,v&&!o&&!w.n){const L=await ae(q(v),{errUrl:v});return j&&xn(Object.keys(x)),L}An&&!o&&w.n&&A&&(C(),An=!1);const O=await ae(!o&&!w.n&&A?w.u:w.b,{errUrl:w.u});return w.s&&(await ae(w.s)).u$_(O),j&&xn(Object.keys(x)),O}function xn(l){let f=0;const v=l.length,A=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;A(g);function g(){const w=f*100;if(!(w>v)){for(const x of l.slice(w,w+100)){const O=Be[x];O&&URL.revokeObjectURL(O.b)}f++,A(g)}}}function jt(l){return`'${l.replace(/'/g,"\\'")}'`}let pt;function En(l,f){if(l.b||!f[l.u])return;f[l.u]=0;for(const O of l.d)En(O,f);const[v,A]=l.a,g=l.S;let w=oe&&pt?`import '${pt}';`:"";if(!v.length)w+=g;else{let _=function(a){for(;E[E.length-1]<a;){const re=E.pop();w+=`${g.slice(O,re)}, ${jt(l.r)}`,O=re}w+=g.slice(O,a),O=a},O=0,L=0,E=[];for(const{s:a,ss:re,se:ce,d:ee}of v)if(ee===-1){let Y=l.d[L++],Ee=Y.b,Ge=!Ee;Ge&&((Ee=Y.s)||(Ee=Y.s=q(`export function u$_(m){${Y.a[1].map(({s:be,e:le},Ce)=>{const P=Y.S[be]==='"'||Y.S[be]==="'";return`e$_${Ce}=m${P?"[":"."}${Y.S.slice(be,le)}${P?"]":""}`}).join(",")}}${Y.a[1].length?`let ${Y.a[1].map((be,le)=>`e$_${le}`).join(",")};`:""}export {${Y.a[1].map(({s:be,e:le},Ce)=>`e$_${Ce} as ${Y.S.slice(be,le)}`).join(",")}}
|
|
5
|
+
//# sourceURL=${Y.r}?cycle`))),_(a-1),w+=`/*${g.slice(a-1,ce)}*/${jt(Ee)}`,!Ge&&Y.s&&(w+=`;import*as m$_${L} from'${Y.b}';import{u$_ as u$_${L}}from'${Y.s}';u$_${L}(m$_${L})`,Y.s=void 0),O=ce}else ee===-2?(l.m={url:l.r,resolve:Xr},b(l.m,l.u),_(a),w+=`importShim._r[${jt(l.u)}].m`,O=ce):(_(re+6),w+="Shim(",E.push(ce-1),O=a);l.s&&(w+=`
|
|
6
|
+
;import{u$_}from'${l.s}';try{u$_({${A.filter(a=>a.ln).map(({s:a,e:re,ln:ce})=>`${g.slice(a,re)}:${ce}`).join(",")}})}catch(_){};
|
|
7
7
|
`),_(g.length)}let x=!1;w=w.replace(Zr,(O,L,E)=>(x=!L,O.replace(E,()=>new URL(E,l.r)))),x||(w+=`
|
|
8
8
|
//# sourceURL=`+l.r),l.b=pt=q(w),l.S=void 0}const Zr=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/,ei=/^(text|application)\/(x-)?javascript(;|$)/,ti=/^(text|application)\/json(;|$)/,ni=/^(text|application)\/css(;|$)/,ri=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Mt=[],On=0;function ii(){if(++On>100)return new Promise(l=>Mt.push(l))}function si(){On--,Mt.length&&Mt.shift()()}async function In(l,f,v){if(J&&!f.integrity)throw Error(`No integrity for ${l}${He(v)}.`);const A=ii();A&&await A;try{var g=await m(l,f)}catch(w){throw w.message=`Unable to fetch ${l}${He(v)} - see network log for details.
|
|
9
|
-
`+w.message,w}finally{si()}if(!g.ok)throw Error(`${g.status} ${g.statusText} ${g.url}${He(v)}`);return g}async function Cn(l,f,v){const A=await In(l,f,v),g=A.headers.get("content-type");if(ei.test(g))return{r:A.url,s:await A.text(),t:"js"};if(ti.test(g))return{r:A.url,s:`export default ${await A.text()}`,t:"json"};if(ni.test(g))return{r:A.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await A.text()).replace(ri,(w,x="",O,L)=>`url(${x}${un(O||L,l)}${x})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${g}" loading ${l}${He(v)}. Modules must be served with a valid MIME type like application/javascript.`)}function Tn(l,f,v,A){let g=Be[l];if(g&&!A)return g;if(g={u:l,r:A?l:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null,m:null},Be[l]){let w=0;for(;Be[g.u+ ++w];);g.u+=w}return Be[g.u]=g,g.f=(async()=>{if(!A){let w;if({r:g.r,s:A,t:w}=await(Ut[l]||Cn(l,f,v)),w&&!o){if(w==="css"&&!U||w==="json"&&!N)throw Error(`${w}-modules require <script type="esms-options">{ "polyfillEnable": ["${w}-modules"] }<\/script>`);(w==="css"&&!ut||w==="json"&&!lt)&&(g.n=!0)}}try{g.a=Kr(A,g.u)}catch(w){xt(w),g.a=[[],[],!1]}return g.S=A,g})(),g.L=g.f.then(async()=>{let w=f;g.d=(await Promise.all(g.a[0].map(async({n:x,d:O})=>{if((O>=0&&!ct||O===-2&&!ft)&&(g.n=!0),O!==-1||!x)return;const{r:L,b:E}=await _n(x,g.r||g.u);if(E&&(!
|
|
9
|
+
`+w.message,w}finally{si()}if(!g.ok)throw Error(`${g.status} ${g.statusText} ${g.url}${He(v)}`);return g}async function Cn(l,f,v){const A=await In(l,f,v),g=A.headers.get("content-type");if(ei.test(g))return{r:A.url,s:await A.text(),t:"js"};if(ti.test(g))return{r:A.url,s:`export default ${await A.text()}`,t:"json"};if(ni.test(g))return{r:A.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await A.text()).replace(ri,(w,x="",O,L)=>`url(${x}${un(O||L,l)}${x})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${g}" loading ${l}${He(v)}. Modules must be served with a valid MIME type like application/javascript.`)}function Tn(l,f,v,A){let g=Be[l];if(g&&!A)return g;if(g={u:l,r:A?l:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null,m:null},Be[l]){let w=0;for(;Be[g.u+ ++w];);g.u+=w}return Be[g.u]=g,g.f=(async()=>{if(!A){let w;if({r:g.r,s:A,t:w}=await(Ut[l]||Cn(l,f,v)),w&&!o){if(w==="css"&&!U||w==="json"&&!N)throw Error(`${w}-modules require <script type="esms-options">{ "polyfillEnable": ["${w}-modules"] }<\/script>`);(w==="css"&&!ut||w==="json"&&!lt)&&(g.n=!0)}}try{g.a=Kr(A,g.u)}catch(w){xt(w),g.a=[[],[],!1]}return g.S=A,g})(),g.L=g.f.then(async()=>{let w=f;g.d=(await Promise.all(g.a[0].map(async({n:x,d:O})=>{if((O>=0&&!ct||O===-2&&!ft)&&(g.n=!0),O!==-1||!x)return;const{r:L,b:E}=await _n(x,g.r||g.u);if(E&&(!pe||at)&&(g.n=!0),O===-1)return de&&de(L)?{b:L}:(w.integrity&&(w=Object.assign({},w,{integrity:void 0})),Tn(L,w,g.r).f)}))).filter(x=>x)}),g}function Rt(l=!1){if(!l)for(const f of document.querySelectorAll(o?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))Hn(f);for(const f of document.querySelectorAll(o?"script[type=importmap-shim]":"script[type=importmap]"))Rn(f);if(!l)for(const f of document.querySelectorAll(o?"script[type=module-shim]":"script[type=module]"))Nn(f)}function Nt(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerpolicy&&(f.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?f.credentials="include":l.crossorigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}let Ln=Promise.resolve(),Ht=1;function Pn(){--Ht===0&&!I&&document.dispatchEvent(new Event("DOMContentLoaded"))}e&&document.addEventListener("DOMContentLoaded",async()=>{await De,(o||!We)&&Pn()});let Ve=1;function Ft(){--Ve===0&&!I&&document.dispatchEvent(new Event("readystatechange"))}const jn=l=>l.nextSibling||l.parentNode&&jn(l.parentNode),Mn=(l,f)=>l.ep||!f&&(!l.src&&!l.innerHTML||!jn(l))||l.getAttribute("noshim")!==null||!(l.ep=!0);function Rn(l,f=Ve>0){if(!Mn(l,f)){if(l.src){if(!o)return;qr()}qe&&(dt=dt.then(async()=>{xe=fn(l.src?await(await In(l.src,Nt(l))).json():JSON.parse(l.innerHTML),l.src||Q,xe)}).catch(v=>{console.log(v),v instanceof SyntaxError&&(v=new Error(`Unable to parse import map ${v.message} in: ${l.src||l.innerHTML}`)),xt(v)}),o||(qe=!1))}}function Nn(l,f=Ve>0){if(Mn(l,f))return;const v=l.getAttribute("async")===null&&Ve>0,A=Ht>0;v&&Ve++,A&&Ht++;const g=Sn(l.src||Q,Nt(l),!l.src&&l.innerHTML,!o,v&&Ln).catch(xt);v&&(Ln=g.then(Ft)),A&&g.then(Pn)}const Ut={};function Hn(l){l.ep||(l.ep=!0,!Ut[l.href]&&(Ut[l.href]=Cn(l.href,Nt(l))))}})();var Kt=function(n,e){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},Kt(n,e)};function se(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kt(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ci(n,e,t,r){function s(o){return o instanceof t?o:new t(function(c){c(o)})}return new(t||(t=Promise))(function(o,c){function h($){try{b(r.next($))}catch(k){c(k)}}function m($){try{b(r.throw($))}catch(k){c(k)}}function b($){$.done?o($.value):s($.value).then(h,m)}b((r=r.apply(n,e||[])).next())})}function lr(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,c;return c={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function h(b){return function($){return m([b,$])}}function m(b){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,b[0]&&(t=0)),t;)try{if(r=1,s&&(o=b[0]&2?s.return:b[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,b[1])).done)return o;switch(s=0,o&&(b=[b[0]&2,o.value]),b[0]){case 0:case 1:o=b;break;case 4:return t.label++,{value:b[1],done:!1};case 5:t.label++,s=b[1],b=[0];continue;case 7:b=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(b[0]===6||b[0]===2)){t=0;continue}if(b[0]===3&&(!o||b[1]>o[0]&&b[1]<o[3])){t.label=b[1];break}if(b[0]===6&&t.label<o[1]){t.label=o[1],o=b;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(b);break}o[2]&&t.ops.pop(),t.trys.pop();continue}b=e.call(n,t)}catch($){b=[6,$],s=0}finally{r=o=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}function Ie(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),s,o=[],c;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(h){c={error:h}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return o}function je(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function Te(n){return this instanceof Te?(this.v=n,this):new Te(n)}function Ti(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),s,o=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(S){r[S]&&(s[S]=function(C){return new Promise(function(j,I){o.push([S,C,j,I])>1||h(S,C)})})}function h(S,C){try{m(r[S](C))}catch(j){k(o[0][3],j)}}function m(S){S.value instanceof Te?Promise.resolve(S.value.v).then(b,$):k(o[0][2],S)}function b(S){h("next",S)}function $(S){h("throw",S)}function k(S,C){S(C),o.shift(),o.length&&h(o[0][0],o[0][1])}}function Li(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Ie=="function"?Ie(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=n[o]&&function(c){return new Promise(function(h,m){c=n[o](c),s(h,m,c.done,c.value)})}}function s(o,c,h,m){Promise.resolve(m).then(function(b){o({value:b,done:h})},c)}}function G(n){return typeof n=="function"}function nn(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Vt=nn(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
10
10
|
`+t.map(function(r,s){return s+1+") "+r.toString()}).join(`
|
|
11
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ze(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var de=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,s,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var h=Ie(c),m=h.next();!m.done;m=h.next()){var b=m.value;b.remove(this)}}catch(I){e={error:I}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}else c.remove(this);var $=this.initialTeardown;if(G($))try{$()}catch(I){o=I instanceof Vt?I.errors:[I]}var k=this._finalizers;if(k){this._finalizers=null;try{for(var S=Ie(k),C=S.next();!C.done;C=S.next()){var j=C.value;try{Wn(j)}catch(I){o=o??[],I instanceof Vt?o=je(je([],Pe(o)),Pe(I.errors)):o.push(I)}}}catch(I){r={error:I}}finally{try{C&&!C.done&&(s=S.return)&&s.call(S)}finally{if(r)throw r.error}}}if(o)throw new Vt(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Wn(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ze(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Ze(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),ur=de.EMPTY;function fr(n){return n instanceof de||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function Wn(n){G(n)?n():n.unsubscribe()}var rn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qt={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=Qt.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,je([n,e],Pe(t))):setTimeout.apply(void 0,je([n,e],Pe(t)))},clearTimeout:function(n){var e=Qt.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function hr(n){Qt.setTimeout(function(){throw n})}function Dn(){}var bt=null;function gt(n){if(rn.useDeprecatedSynchronousErrorHandling){var e=!bt;if(e&&(bt={errorThrown:!1,error:null}),n(),e){var t=bt,r=t.errorThrown,s=t.error;if(bt=null,r)throw s}}else n()}var sn=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,fr(t)&&t.add(r)):r.destination=Ri,r}return e.create=function(t,r,s){return new Xt(t,r,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(de),Pi=Function.prototype.bind;function Gt(n,e){return Pi.call(n,e)}var ji=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){vt(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){vt(r)}else vt(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){vt(t)}},n}(),Xt=function(n){se(e,n);function e(t,r,s){var o=n.call(this)||this,c;if(G(t)||!t)c={next:t??void 0,error:r??void 0,complete:s??void 0};else{var h;o&&rn.useDeprecatedNextContext?(h=Object.create(t),h.unsubscribe=function(){return o.unsubscribe()},c={next:t.next&&Gt(t.next,h),error:t.error&&Gt(t.error,h),complete:t.complete&&Gt(t.complete,h)}):c=t}return o.destination=new ji(c),o}return e}(sn);function vt(n){hr(n)}function Mi(n){throw n}var Ri={closed:!0,next:Dn,error:Mi,complete:Dn},on=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ni(n){return n}function Hi(n){return n.length===0?Ni:n.length===1?n[0]:function(t){return n.reduce(function(r,s){return s(r)},t)}}var te=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var s=this,o=Ui(e)?e:new Xt(e,t,r);return gt(function(){var c=s,h=c.operator,m=c.source;o.add(h?h.call(o,m):m?s._subscribe(o):s._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=qn(t),new t(function(s,o){var c=new Xt({next:function(h){try{e(h)}catch(m){o(m),c.unsubscribe()}},error:o,complete:s});r.subscribe(c)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[on]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Hi(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=qn(e),new e(function(r,s){var o;t.subscribe(function(c){return o=c},function(c){return s(c)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function qn(n){var e;return(e=n??rn.Promise)!==null&&e!==void 0?e:Promise}function Fi(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function Ui(n){return n&&n instanceof sn||Fi(n)&&fr(n)}function Bi(n){return G(n==null?void 0:n.lift)}function Ae(n){return function(e){if(Bi(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(n,e,t,r,s){return new Wi(n,e,t,r,s)}var Wi=function(n){se(e,n);function e(t,r,s,o,c,h){var m=n.call(this,t)||this;return m.onFinalize=c,m.shouldUnsubscribe=h,m._next=r?function(b){try{r(b)}catch($){t.error($)}}:n.prototype._next,m._error=o?function(b){try{o(b)}catch($){t.error($)}finally{this.unsubscribe()}}:n.prototype._error,m._complete=s?function(){try{s()}catch(b){t.error(b)}finally{this.unsubscribe()}}:n.prototype._complete,m}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(sn),Di=nn(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),an=function(n){se(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Vn(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Di},e.prototype.next=function(t){var r=this;gt(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Ie(r.currentObservers),h=c.next();!h.done;h=c.next()){var m=h.value;m.next(t)}}catch(b){s={error:b}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var r=this;gt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var s=r.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;gt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,s=this,o=s.hasError,c=s.isStopped,h=s.observers;return o||c?ur:(this.currentObservers=null,h.push(t),new de(function(){r.currentObservers=null,Ze(h,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,s=r.hasError,o=r.thrownError,c=r.isStopped;s?t.error(o):c&&t.complete()},e.prototype.asObservable=function(){var t=new te;return t.source=this,t},e.create=function(t,r){return new Vn(t,r)},e}(te),Vn=function(n){se(e,n);function e(t,r){var s=n.call(this)||this;return s.destination=t,s.source=r,s}return e.prototype.next=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,t)},e.prototype.error=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&s!==void 0?s:ur},e}(an),Gn=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,s=t.thrownError,o=t._value;if(r)throw s;return this._throwIfClosed(),o},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(an),cn={now:function(){return(cn.delegate||Date).now()},delegate:void 0},Xe=function(n){se(e,n);function e(t,r,s){t===void 0&&(t=1/0),r===void 0&&(r=1/0),s===void 0&&(s=cn);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,s=r.isStopped,o=r._buffer,c=r._infiniteTimeWindow,h=r._timestampProvider,m=r._windowTime;s||(o.push(t),!c&&o.push(h.now()+m)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,c=s._buffer,h=c.slice(),m=0;m<h.length&&!t.closed;m+=o?1:2)t.next(h[m]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,s=t._timestampProvider,o=t._buffer,c=t._infiniteTimeWindow,h=(c?1:2)*r;if(r<1/0&&h<o.length&&o.splice(0,o.length-h),!c){for(var m=s.now(),b=0,$=1;$<o.length&&o[$]<=m;$+=2)b=$;b&&o.splice(0,b+1)}},e}(an),qi=function(n){se(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(de),_t={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=_t.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,je([n,e],Pe(t))):setInterval.apply(void 0,je([n,e],Pe(t)))},clearInterval:function(n){var e=_t.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},Vi=function(n){se(e,n);function e(t,r){var s=n.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.pending=!1,s}return e.prototype.schedule=function(t,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,c=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(c,o,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(t,r,s){return s===void 0&&(s=0),_t.setInterval(t.flush.bind(t,this),s)},e.prototype.recycleAsyncId=function(t,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&_t.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(t,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var s=!1,o;try{this.work(t)}catch(c){s=!0,o=c||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,s=t.scheduler,o=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ze(o,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(qi),zn=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=cn.now,n}(),Gi=function(n){se(e,n);function e(t,r){r===void 0&&(r=zn.now);var s=n.call(this,t,r)||this;return s.actions=[],s._active=!1,s}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var s;this._active=!0;do if(s=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,s){for(;t=r.shift();)t.unsubscribe();throw s}},e}(zn),zi=new Gi(Vi),Yi=new te(function(n){return n.complete()});function Ji(n){return n&&G(n.schedule)}function Ki(n){return n[n.length-1]}function dr(n){return Ji(Ki(n))?n.pop():void 0}var pr=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function mr(n){return G(n==null?void 0:n.then)}function br(n){return G(n[on])}function vr(n){return Symbol.asyncIterator&&G(n==null?void 0:n[Symbol.asyncIterator])}function yr(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Qi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gr=Qi();function _r(n){return G(n==null?void 0:n[gr])}function wr(n){return Ti(this,arguments,function(){var t,r,s,o;return lr(this,function(c){switch(c.label){case 0:t=n.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,Te(t.read())];case 3:return r=c.sent(),s=r.value,o=r.done,o?[4,Te(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,Te(s)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function kr(n){return G(n==null?void 0:n.getReader)}function st(n){if(n instanceof te)return n;if(n!=null){if(br(n))return Xi(n);if(pr(n))return Zi(n);if(mr(n))return es(n);if(vr(n))return $r(n);if(_r(n))return ts(n);if(kr(n))return ns(n)}throw yr(n)}function Xi(n){return new te(function(e){var t=n[on]();if(G(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zi(n){return new te(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function es(n){return new te(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,hr)})}function ts(n){return new te(function(e){var t,r;try{for(var s=Ie(n),o=s.next();!o.done;o=s.next()){var c=o.value;if(e.next(c),e.closed)return}}catch(h){t={error:h}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}e.complete()})}function $r(n){return new te(function(e){rs(n,e).catch(function(t){return e.error(t)})})}function ns(n){return $r(wr(n))}function rs(n,e){var t,r,s,o;return Ci(this,void 0,void 0,function(){var c,h;return lr(this,function(m){switch(m.label){case 0:m.trys.push([0,5,6,11]),t=Li(n),m.label=1;case 1:return[4,t.next()];case 2:if(r=m.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),e.closed)return[2];m.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=m.sent(),s={error:h},[3,11];case 6:return m.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:m.sent(),m.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ie(n,e,t,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var o=e.schedule(function(){t(),s?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!s)return o}function Ar(n,e){return e===void 0&&(e=0),Ae(function(t,r){t.subscribe($e(r,function(s){return ie(r,n,function(){return r.next(s)},e)},function(){return ie(r,n,function(){return r.complete()},e)},function(s){return ie(r,n,function(){return r.error(s)},e)}))})}function Sr(n,e){return e===void 0&&(e=0),Ae(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function is(n,e){return st(n).pipe(Sr(e),Ar(e))}function ss(n,e){return st(n).pipe(Sr(e),Ar(e))}function os(n,e){return new te(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function as(n,e){return new te(function(t){var r;return ie(t,e,function(){r=n[gr](),ie(t,e,function(){var s,o,c;try{s=r.next(),o=s.value,c=s.done}catch(h){t.error(h);return}c?t.complete():t.next(o)},0,!0)}),function(){return G(r==null?void 0:r.return)&&r.return()}})}function xr(n,e){if(!n)throw new Error("Iterable cannot be null");return new te(function(t){ie(t,e,function(){var r=n[Symbol.asyncIterator]();ie(t,e,function(){r.next().then(function(s){s.done?t.complete():t.next(s.value)})},0,!0)})})}function cs(n,e){return xr(wr(n),e)}function ls(n,e){if(n!=null){if(br(n))return is(n,e);if(pr(n))return os(n,e);if(mr(n))return ss(n,e);if(vr(n))return xr(n,e);if(_r(n))return as(n,e);if(kr(n))return cs(n,e)}throw yr(n)}function At(n,e){return e?ls(n,e):st(n)}function us(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=dr(n);return At(n,t)}var fs=nn(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function Yn(n,e){var t=typeof e=="object";return new Promise(function(r,s){var o=!1,c;n.subscribe({next:function(h){c=h,o=!0},error:s,complete:function(){o?r(c):t?r(e.defaultValue):s(new fs)}})})}function Er(n,e){return Ae(function(t,r){var s=0;t.subscribe($e(r,function(o){r.next(n.call(e,o,s++))}))})}function hs(n,e,t,r,s,o,c,h){var m=[],b=0,$=0,k=!1,S=function(){k&&!m.length&&!b&&e.complete()},C=function(I){return b<r?j(I):m.push(I)},j=function(I){o&&e.next(I),b++;var J=!1;st(t(I,$++)).subscribe($e(e,function(F){s==null||s(F),o?C(F):e.next(F)},function(){J=!0},void 0,function(){if(J)try{b--;for(var F=function(){var R=m.shift();c?ie(e,c,function(){return j(R)}):j(R)};m.length&&b<r;)F();S()}catch(R){e.error(R)}}))};return n.subscribe($e(e,C,function(){k=!0,S()})),function(){h==null||h()}}function wt(n,e,t){return t===void 0&&(t=1/0),G(e)?wt(function(r,s){return Er(function(o,c){return e(r,o,s,c)})(st(n(r,s)))},t):(typeof e=="number"&&(t=e),Ae(function(r,s){return hs(r,s,n,t)}))}function kt(n,e){return Ae(function(t,r){var s=0;t.subscribe($e(r,function(o){return n.call(e,o,s++)&&r.next(o)}))})}function ds(n){for(var e,t,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var o=(e=dr(r))!==null&&e!==void 0?e:zi,c=(t=r[0])!==null&&t!==void 0?t:null,h=r[1]||1/0;return Ae(function(m,b){var $=[],k=!1,S=function(I){var J=I.buffer,F=I.subs;F.unsubscribe(),Ze($,I),b.next(J),k&&C()},C=function(){if($){var I=new de;b.add(I);var J=[],F={buffer:J,subs:I};$.push(F),ie(I,o,function(){return S(F)},n)}};c!==null&&c>=0?ie(b,o,C,c,!0):k=!0,C();var j=$e(b,function(I){var J,F,R=$.slice();try{for(var U=Ie(R),N=U.next();!N.done;N=U.next()){var oe=N.value,Q=oe.buffer;Q.push(I),h<=Q.length&&S(oe)}}catch(q){J={error:q}}finally{try{N&&!N.done&&(F=U.return)&&F.call(U)}finally{if(J)throw J.error}}},function(){for(;$!=null&&$.length;)b.next($.shift().buffer);j==null||j.unsubscribe(),b.complete(),b.unsubscribe()},void 0,function(){return $=null});m.subscribe(j)})}function Zt(n){return n<=0?function(){return Yi}:Ae(function(e,t){var r=0;e.subscribe($e(t,function(s){++r<=n&&(t.next(s),n<=r&&t.complete())}))})}function ps(){return Ae(function(n,e){var t,r=!1;n.subscribe($e(e,function(s){var o=t;t=s,r&&e.next([o,s]),r=!0}))})}const ms=(n,e,t=0)=>{const{selectors:r}=e;return n.querySelector(r[t])};function bs(n){return document.querySelector(n)}const vs=(n,e)=>{const t=e.get(n);if(t){const{css:r,rest:s,subscription:o}=t;s.forEach(c=>{var h;return(h=c.__unfocus_handler)==null?void 0:h.call(c)}),o.unsubscribe(),Object.assign(t.elementToFocus.style,r)}e.delete(n)};function ys(n,e,t){const r=new Map,s=bs.bind(n),o=e.pipe(ps()).subscribe(([c,h])=>{var m,b,$;if(!(c!==void 0&&h!==void 0&&c.ids[0]===h.ids[0])){if(c!==void 0){const k=ms(n,c);k!==null&&((m=k.__unfocus_handler)==null||m.call(k),vs(k,r))}if(h!==void 0){const[k,...S]=h.selectors,C=S.reduce((N,oe)=>{var Q;const q=s(oe);return q&&N.push(q),(Q=q==null?void 0:q.__focus_handler)==null||Q.call(q),N},[]),j=s(k),I=($=(b=j.__focus_handler)==null?void 0:b.call(j))!=null?$:j,J=Object.keys(h.style),F=new de,R={css:{},elementToFocus:I,rest:C,subscription:F},U=J.reduce((N,oe)=>(Object.assign(N.css,{[oe]:I.style[oe]}),N),R);F.add(t.pipe(kt(N=>N==="select"),Zt(1)).subscribe(()=>{Object.assign(I.style,h.style)})),r.set(j,U)}}});return()=>o.unsubscribe()}var gs=Object.defineProperty,_s=(n,e,t)=>e in n?gs(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,we=(n,e,t)=>(_s(n,typeof e!="symbol"?e+"":e,t),t);let ws=class{constructor(e){we(this,"_input"),we(this,"_length"),we(this,"_idx",0),we(this,"_mode",0),we(this,"_literals",[]),we(this,"_variables",[]),we(this,"_braketCount",0),we(this,"_done",!1),this._input=e,this._length=e.length}concatToLastLiteral(e){this._literals.push(this._literals.pop().concat(e))}concatToLastVariable(e){this._variables.push(this._variables.pop().concat(e))}get(){const e=[...this._literals],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._variables}}run(){for(this._length===0&&this._literals.push("");this._idx<this._length;){const e=this._input.charAt(this._idx);switch(this._mode){case 0:{this._literals.length===0&&this._literals.push(""),e==="{"&&this._idx+1!==this._length&&this._input.charAt(this._idx+1)==="{"?(this._literals.push(""),this._variables.push(""),this._mode=1,this._idx+=1):this.concatToLastLiteral(e);break}case 1:e==="}"&&this._input.charAt(this._idx+1)==="}"?(this._mode=0,this._idx+=1):this.concatToLastVariable(e);break}this._idx+=1}this._mode===1&&(this._literals.pop(),this.concatToLastLiteral(`{{${this._variables.pop()}`)),this._done=!0}};const ks=n=>{const e=n.trim();if(!(e.startsWith("[")&&e.endsWith("]")))return!1;const t=e.slice(1).slice(0,-1).trim();return Number.parseInt(t).toString(10)===t},$s=n=>Number.parseInt(n.trim().slice(1).slice(0,-1).trim());function As(n,e,t){if(!e.trim())return t?`{{${e}}}`:"";const r=e.trim().split(".").reduce((s,o)=>{if(Array.isArray(s)&&ks(o))return s[$s(o)];if(typeof s=="object"&&s!==null&&o in s)return s[o]},{...n});return typeof r=="string"?r:t?`{{${e}}}`:""}function Ss(n,e,t=!1){const r=new ws(n);r.run();const s=r.get();let[o]=s.literals;for(let c=0;c<s.variables.length;c++)o=o.concat(As(e,s.variables[c],t)).concat(s.literals[c+1]);return o}const xs=(n,e)=>Object.fromEntries(Object.entries(n).map(([t,r])=>[t,Ss(r,e)]));var Es=Object.defineProperty,Os=(n,e,t)=>e in n?Es(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,yt=(n,e,t)=>(Os(n,typeof e!="symbol"?e+"":e,t),t);const Or={"click-element":0,"ctrl-space":0,"focus-element":0,mousedown:0,mousemove:1,"new-configuration":0,notification:0,"tag-info":0,update:0},Is=n=>Object.keys(Or).includes(n);function Cs(n,e){if(n===null||typeof n!="object"||!("type"in n)||typeof n.type!="string")return!1;const{type:t}=n;if(!t.startsWith(e))return!1;const r=t.substring(e.length);return!!Is(r)}const Ts=(n,e)=>({...e,type:`${n}${e.type}`}),Ls=(n,e)=>{let{type:t}=e;return t.startsWith(n)&&(t=t.substring(n.length)),{...e,type:t}},Ps=()=>{let n="#";for(let e=0;e<3;e++)n+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return n};class js{constructor(e){yt(this,"__instance"),yt(this,"__handler"),yt(this,"__window"),yt(this,"__randomColor"),this.__instance="",this.__handler=e,this.__window=window,this.__randomColor=Ps()}postMessage(e,t,r){if(this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&console.assert(e!==this.__window),this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&Or[t.type]!==1){const s=this.__randomColor,c={background:`${s}22`,color:s},h=this.__window.top!==this.__window;console.groupCollapsed(`%c Msg from ${this.__window.origin} ${h?"(inner)":"(top)"} `,Object.entries(c).map(([m,b])=>`${m}: ${b}`).join("; ")),console.info(`window '${this.__window.origin}' is sending a message of type %c ${t.type} `,"background: lightgreen; color: darkgreen"),console.log(t.content),console.groupEnd()}e.postMessage(Ts(this.__instance,t),r)}set instance(e){this.__instance=e}set window(e){this.__window=e}send(e,t,r=window.location.origin){this.__window!==e&&this.postMessage(e,t,r)}recv(e){const t=({data:r})=>{if(Cs(r,this.__instance)){const s=Ls(this.__instance,r);this.__handler(s)}};return e.addEventListener("message",t),()=>e.removeEventListener("message",t)}}const en="__mia_preview_id",Ms=1e6;var zt;const $t=window,Me=$t.trustedTypes,Jn=Me?Me.createPolicy("lit-html",{createHTML:n=>n}):void 0,ke=`lit$${(Math.random()+"").slice(9)}$`,Ir="?"+ke,Rs=`<${Ir}>`,Re=document,et=(n="")=>Re.createComment(n),tt=n=>n===null||typeof n!="object"&&typeof n!="function",Cr=Array.isArray,Ns=n=>Cr(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kn=/-->/g,Qn=/>/g,Oe=RegExp(`>|[
|
|
11
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ze(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var he=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,s,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var h=Ie(c),m=h.next();!m.done;m=h.next()){var b=m.value;b.remove(this)}}catch(I){e={error:I}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}else c.remove(this);var $=this.initialTeardown;if(G($))try{$()}catch(I){o=I instanceof Vt?I.errors:[I]}var k=this._finalizers;if(k){this._finalizers=null;try{for(var S=Ie(k),C=S.next();!C.done;C=S.next()){var j=C.value;try{Wn(j)}catch(I){o=o??[],I instanceof Vt?o=je(je([],Pe(o)),Pe(I.errors)):o.push(I)}}}catch(I){r={error:I}}finally{try{C&&!C.done&&(s=S.return)&&s.call(S)}finally{if(r)throw r.error}}}if(o)throw new Vt(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Wn(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ze(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Ze(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),ur=he.EMPTY;function fr(n){return n instanceof he||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function Wn(n){G(n)?n():n.unsubscribe()}var rn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qt={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=Qt.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,je([n,e],Pe(t))):setTimeout.apply(void 0,je([n,e],Pe(t)))},clearTimeout:function(n){var e=Qt.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function hr(n){Qt.setTimeout(function(){throw n})}function Dn(){}var bt=null;function gt(n){if(rn.useDeprecatedSynchronousErrorHandling){var e=!bt;if(e&&(bt={errorThrown:!1,error:null}),n(),e){var t=bt,r=t.errorThrown,s=t.error;if(bt=null,r)throw s}}else n()}var sn=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,fr(t)&&t.add(r)):r.destination=Ri,r}return e.create=function(t,r,s){return new Xt(t,r,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(he),Pi=Function.prototype.bind;function Gt(n,e){return Pi.call(n,e)}var ji=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){vt(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){vt(r)}else vt(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){vt(t)}},n}(),Xt=function(n){se(e,n);function e(t,r,s){var o=n.call(this)||this,c;if(G(t)||!t)c={next:t??void 0,error:r??void 0,complete:s??void 0};else{var h;o&&rn.useDeprecatedNextContext?(h=Object.create(t),h.unsubscribe=function(){return o.unsubscribe()},c={next:t.next&&Gt(t.next,h),error:t.error&&Gt(t.error,h),complete:t.complete&&Gt(t.complete,h)}):c=t}return o.destination=new ji(c),o}return e}(sn);function vt(n){hr(n)}function Mi(n){throw n}var Ri={closed:!0,next:Dn,error:Mi,complete:Dn},on=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ni(n){return n}function Hi(n){return n.length===0?Ni:n.length===1?n[0]:function(t){return n.reduce(function(r,s){return s(r)},t)}}var ne=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var s=this,o=Ui(e)?e:new Xt(e,t,r);return gt(function(){var c=s,h=c.operator,m=c.source;o.add(h?h.call(o,m):m?s._subscribe(o):s._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=qn(t),new t(function(s,o){var c=new Xt({next:function(h){try{e(h)}catch(m){o(m),c.unsubscribe()}},error:o,complete:s});r.subscribe(c)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[on]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Hi(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=qn(e),new e(function(r,s){var o;t.subscribe(function(c){return o=c},function(c){return s(c)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function qn(n){var e;return(e=n??rn.Promise)!==null&&e!==void 0?e:Promise}function Fi(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function Ui(n){return n&&n instanceof sn||Fi(n)&&fr(n)}function Bi(n){return G(n==null?void 0:n.lift)}function Ae(n){return function(e){if(Bi(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(n,e,t,r,s){return new Wi(n,e,t,r,s)}var Wi=function(n){se(e,n);function e(t,r,s,o,c,h){var m=n.call(this,t)||this;return m.onFinalize=c,m.shouldUnsubscribe=h,m._next=r?function(b){try{r(b)}catch($){t.error($)}}:n.prototype._next,m._error=o?function(b){try{o(b)}catch($){t.error($)}finally{this.unsubscribe()}}:n.prototype._error,m._complete=s?function(){try{s()}catch(b){t.error(b)}finally{this.unsubscribe()}}:n.prototype._complete,m}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(sn),Di=nn(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),an=function(n){se(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Vn(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Di},e.prototype.next=function(t){var r=this;gt(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Ie(r.currentObservers),h=c.next();!h.done;h=c.next()){var m=h.value;m.next(t)}}catch(b){s={error:b}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var r=this;gt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var s=r.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;gt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,s=this,o=s.hasError,c=s.isStopped,h=s.observers;return o||c?ur:(this.currentObservers=null,h.push(t),new he(function(){r.currentObservers=null,Ze(h,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,s=r.hasError,o=r.thrownError,c=r.isStopped;s?t.error(o):c&&t.complete()},e.prototype.asObservable=function(){var t=new ne;return t.source=this,t},e.create=function(t,r){return new Vn(t,r)},e}(ne),Vn=function(n){se(e,n);function e(t,r){var s=n.call(this)||this;return s.destination=t,s.source=r,s}return e.prototype.next=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,t)},e.prototype.error=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&s!==void 0?s:ur},e}(an),Gn=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,s=t.thrownError,o=t._value;if(r)throw s;return this._throwIfClosed(),o},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(an),cn={now:function(){return(cn.delegate||Date).now()},delegate:void 0},Xe=function(n){se(e,n);function e(t,r,s){t===void 0&&(t=1/0),r===void 0&&(r=1/0),s===void 0&&(s=cn);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,s=r.isStopped,o=r._buffer,c=r._infiniteTimeWindow,h=r._timestampProvider,m=r._windowTime;s||(o.push(t),!c&&o.push(h.now()+m)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,c=s._buffer,h=c.slice(),m=0;m<h.length&&!t.closed;m+=o?1:2)t.next(h[m]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,s=t._timestampProvider,o=t._buffer,c=t._infiniteTimeWindow,h=(c?1:2)*r;if(r<1/0&&h<o.length&&o.splice(0,o.length-h),!c){for(var m=s.now(),b=0,$=1;$<o.length&&o[$]<=m;$+=2)b=$;b&&o.splice(0,b+1)}},e}(an),qi=function(n){se(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(he),_t={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=_t.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,je([n,e],Pe(t))):setInterval.apply(void 0,je([n,e],Pe(t)))},clearInterval:function(n){var e=_t.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},Vi=function(n){se(e,n);function e(t,r){var s=n.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.pending=!1,s}return e.prototype.schedule=function(t,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,c=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(c,o,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(t,r,s){return s===void 0&&(s=0),_t.setInterval(t.flush.bind(t,this),s)},e.prototype.recycleAsyncId=function(t,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&_t.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(t,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var s=!1,o;try{this.work(t)}catch(c){s=!0,o=c||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,s=t.scheduler,o=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ze(o,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(qi),Yn=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=cn.now,n}(),Gi=function(n){se(e,n);function e(t,r){r===void 0&&(r=Yn.now);var s=n.call(this,t,r)||this;return s.actions=[],s._active=!1,s}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var s;this._active=!0;do if(s=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,s){for(;t=r.shift();)t.unsubscribe();throw s}},e}(Yn),Yi=new Gi(Vi),zi=new ne(function(n){return n.complete()});function Ji(n){return n&&G(n.schedule)}function Ki(n){return n[n.length-1]}function dr(n){return Ji(Ki(n))?n.pop():void 0}var pr=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function mr(n){return G(n==null?void 0:n.then)}function br(n){return G(n[on])}function vr(n){return Symbol.asyncIterator&&G(n==null?void 0:n[Symbol.asyncIterator])}function yr(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Qi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gr=Qi();function _r(n){return G(n==null?void 0:n[gr])}function wr(n){return Ti(this,arguments,function(){var t,r,s,o;return lr(this,function(c){switch(c.label){case 0:t=n.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,Te(t.read())];case 3:return r=c.sent(),s=r.value,o=r.done,o?[4,Te(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,Te(s)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function kr(n){return G(n==null?void 0:n.getReader)}function st(n){if(n instanceof ne)return n;if(n!=null){if(br(n))return Xi(n);if(pr(n))return Zi(n);if(mr(n))return es(n);if(vr(n))return $r(n);if(_r(n))return ts(n);if(kr(n))return ns(n)}throw yr(n)}function Xi(n){return new ne(function(e){var t=n[on]();if(G(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zi(n){return new ne(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function es(n){return new ne(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,hr)})}function ts(n){return new ne(function(e){var t,r;try{for(var s=Ie(n),o=s.next();!o.done;o=s.next()){var c=o.value;if(e.next(c),e.closed)return}}catch(h){t={error:h}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}e.complete()})}function $r(n){return new ne(function(e){rs(n,e).catch(function(t){return e.error(t)})})}function ns(n){return $r(wr(n))}function rs(n,e){var t,r,s,o;return Ci(this,void 0,void 0,function(){var c,h;return lr(this,function(m){switch(m.label){case 0:m.trys.push([0,5,6,11]),t=Li(n),m.label=1;case 1:return[4,t.next()];case 2:if(r=m.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),e.closed)return[2];m.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=m.sent(),s={error:h},[3,11];case 6:return m.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:m.sent(),m.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ie(n,e,t,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var o=e.schedule(function(){t(),s?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!s)return o}function Ar(n,e){return e===void 0&&(e=0),Ae(function(t,r){t.subscribe($e(r,function(s){return ie(r,n,function(){return r.next(s)},e)},function(){return ie(r,n,function(){return r.complete()},e)},function(s){return ie(r,n,function(){return r.error(s)},e)}))})}function Sr(n,e){return e===void 0&&(e=0),Ae(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function is(n,e){return st(n).pipe(Sr(e),Ar(e))}function ss(n,e){return st(n).pipe(Sr(e),Ar(e))}function os(n,e){return new ne(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function as(n,e){return new ne(function(t){var r;return ie(t,e,function(){r=n[gr](),ie(t,e,function(){var s,o,c;try{s=r.next(),o=s.value,c=s.done}catch(h){t.error(h);return}c?t.complete():t.next(o)},0,!0)}),function(){return G(r==null?void 0:r.return)&&r.return()}})}function xr(n,e){if(!n)throw new Error("Iterable cannot be null");return new ne(function(t){ie(t,e,function(){var r=n[Symbol.asyncIterator]();ie(t,e,function(){r.next().then(function(s){s.done?t.complete():t.next(s.value)})},0,!0)})})}function cs(n,e){return xr(wr(n),e)}function ls(n,e){if(n!=null){if(br(n))return is(n,e);if(pr(n))return os(n,e);if(mr(n))return ss(n,e);if(vr(n))return xr(n,e);if(_r(n))return as(n,e);if(kr(n))return cs(n,e)}throw yr(n)}function At(n,e){return e?ls(n,e):st(n)}function us(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=dr(n);return At(n,t)}var fs=nn(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function zn(n,e){var t=typeof e=="object";return new Promise(function(r,s){var o=!1,c;n.subscribe({next:function(h){c=h,o=!0},error:s,complete:function(){o?r(c):t?r(e.defaultValue):s(new fs)}})})}function Er(n,e){return Ae(function(t,r){var s=0;t.subscribe($e(r,function(o){r.next(n.call(e,o,s++))}))})}function hs(n,e,t,r,s,o,c,h){var m=[],b=0,$=0,k=!1,S=function(){k&&!m.length&&!b&&e.complete()},C=function(I){return b<r?j(I):m.push(I)},j=function(I){o&&e.next(I),b++;var J=!1;st(t(I,$++)).subscribe($e(e,function(F){s==null||s(F),o?C(F):e.next(F)},function(){J=!0},void 0,function(){if(J)try{b--;for(var F=function(){var R=m.shift();c?ie(e,c,function(){return j(R)}):j(R)};m.length&&b<r;)F();S()}catch(R){e.error(R)}}))};return n.subscribe($e(e,C,function(){k=!0,S()})),function(){h==null||h()}}function wt(n,e,t){return t===void 0&&(t=1/0),G(e)?wt(function(r,s){return Er(function(o,c){return e(r,o,s,c)})(st(n(r,s)))},t):(typeof e=="number"&&(t=e),Ae(function(r,s){return hs(r,s,n,t)}))}function et(n,e){return Ae(function(t,r){var s=0;t.subscribe($e(r,function(o){return n.call(e,o,s++)&&r.next(o)}))})}function ds(n){for(var e,t,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var o=(e=dr(r))!==null&&e!==void 0?e:Yi,c=(t=r[0])!==null&&t!==void 0?t:null,h=r[1]||1/0;return Ae(function(m,b){var $=[],k=!1,S=function(I){var J=I.buffer,F=I.subs;F.unsubscribe(),Ze($,I),b.next(J),k&&C()},C=function(){if($){var I=new he;b.add(I);var J=[],F={buffer:J,subs:I};$.push(F),ie(I,o,function(){return S(F)},n)}};c!==null&&c>=0?ie(b,o,C,c,!0):k=!0,C();var j=$e(b,function(I){var J,F,R=$.slice();try{for(var U=Ie(R),N=U.next();!N.done;N=U.next()){var oe=N.value,Q=oe.buffer;Q.push(I),h<=Q.length&&S(oe)}}catch(q){J={error:q}}finally{try{N&&!N.done&&(F=U.return)&&F.call(U)}finally{if(J)throw J.error}}},function(){for(;$!=null&&$.length;)b.next($.shift().buffer);j==null||j.unsubscribe(),b.complete(),b.unsubscribe()},void 0,function(){return $=null});m.subscribe(j)})}function Zt(n){return n<=0?function(){return zi}:Ae(function(e,t){var r=0;e.subscribe($e(t,function(s){++r<=n&&(t.next(s),n<=r&&t.complete())}))})}function ps(){return Ae(function(n,e){var t,r=!1;n.subscribe($e(e,function(s){var o=t;t=s,r&&e.next([o,s]),r=!0}))})}const ms=(n,e,t=0)=>{const{selectors:r}=e;return n.querySelector(r[t])};function bs(n){return document.querySelector(n)}const vs=(n,e)=>{const t=e.get(n);if(t){const{css:r,rest:s,subscription:o}=t;s.forEach(c=>{var h;return(h=c.__unfocus_handler)==null?void 0:h.call(c)}),o.unsubscribe(),Object.assign(t.elementToFocus.style,r)}e.delete(n)};function ys(n,e,t){const r=new Map,s=bs.bind(n),o=e.pipe(ps()).subscribe(([c,h])=>{var m,b,$;if(!(c!==void 0&&h!==void 0&&c.ids[0]===h.ids[0])){if(c!==void 0){const k=ms(n,c);k!==null&&((m=k.__unfocus_handler)==null||m.call(k),vs(k,r))}if(h!==void 0){const[k,...S]=h.selectors,C=S.reduce((N,oe)=>{var Q;const q=s(oe);return q&&N.push(q),(Q=q==null?void 0:q.__focus_handler)==null||Q.call(q),N},[]),j=s(k),I=($=(b=j.__focus_handler)==null?void 0:b.call(j))!=null?$:j,J=Object.keys(h.style),F=new he,R={css:{},elementToFocus:I,rest:C,subscription:F},U=J.reduce((N,oe)=>(Object.assign(N.css,{[oe]:I.style[oe]}),N),R);F.add(t.pipe(et(N=>N==="select"),Zt(1)).subscribe(()=>{Object.assign(I.style,h.style)})),r.set(j,U)}}});return()=>o.unsubscribe()}var gs=Object.defineProperty,_s=(n,e,t)=>e in n?gs(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,_e=(n,e,t)=>(_s(n,typeof e!="symbol"?e+"":e,t),t);let ws=class{constructor(e){_e(this,"_input"),_e(this,"_length"),_e(this,"_idx",0),_e(this,"_mode",0),_e(this,"_literals",[]),_e(this,"_variables",[]),_e(this,"_braketCount",0),_e(this,"_done",!1),this._input=e,this._length=e.length}concatToLastLiteral(e){this._literals.push(this._literals.pop().concat(e))}concatToLastVariable(e){this._variables.push(this._variables.pop().concat(e))}get(){const e=[...this._literals],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._variables}}run(){for(this._length===0&&this._literals.push("");this._idx<this._length;){const e=this._input.charAt(this._idx);switch(this._mode){case 0:{this._literals.length===0&&this._literals.push(""),e==="{"&&this._idx+1!==this._length&&this._input.charAt(this._idx+1)==="{"?(this._literals.push(""),this._variables.push(""),this._mode=1,this._idx+=1):this.concatToLastLiteral(e);break}case 1:e==="}"&&this._input.charAt(this._idx+1)==="}"?(this._mode=0,this._idx+=1):this.concatToLastVariable(e);break}this._idx+=1}this._mode===1&&(this._literals.pop(),this.concatToLastLiteral(`{{${this._variables.pop()}`)),this._done=!0}};const ks=n=>{const e=n.trim();if(!(e.startsWith("[")&&e.endsWith("]")))return!1;const t=e.slice(1).slice(0,-1).trim();return Number.parseInt(t).toString(10)===t},$s=n=>Number.parseInt(n.trim().slice(1).slice(0,-1).trim());function As(n,e,t){if(!e.trim())return t?`{{${e}}}`:"";const r=e.trim().split(".").reduce((s,o)=>{if(Array.isArray(s)&&ks(o))return s[$s(o)];if(typeof s=="object"&&s!==null&&o in s)return s[o]},{...n});return typeof r=="string"?r:t?`{{${e}}}`:""}function Ss(n,e,t=!1){const r=new ws(n);r.run();const s=r.get();let[o]=s.literals;for(let c=0;c<s.variables.length;c++)o=o.concat(As(e,s.variables[c],t)).concat(s.literals[c+1]);return o}const xs=(n,e)=>Object.fromEntries(Object.entries(n).map(([t,r])=>[t,Ss(r,e)]));var Es=Object.defineProperty,Os=(n,e,t)=>e in n?Es(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,yt=(n,e,t)=>(Os(n,typeof e!="symbol"?e+"":e,t),t);const en="__mia_preview_id",Is=1e6,Or={"click-element":0,"ctrl-space":0,"focus-element":0,mousedown:0,mousemove:1,"new-configuration":0,notification:0,options:0,"tag-info":0,update:0},Cs=n=>Object.keys(Or).includes(n);function Ts(n,e){if(n===null||typeof n!="object"||!("type"in n)||typeof n.type!="string")return!1;const{type:t}=n;if(!t.startsWith(e))return!1;const r=t.substring(e.length);return!!Cs(r)}const Ls=(n,e)=>({...e,type:`${n}${e.type}`}),Ps=(n,e)=>{let{type:t}=e;return t.startsWith(n)&&(t=t.substring(n.length)),{...e,type:t}},js=()=>{let n="#";for(let e=0;e<3;e++)n+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return n};class Ms{constructor(e){yt(this,"__instance"),yt(this,"__handler"),yt(this,"__window"),yt(this,"__randomColor"),this.__instance="",this.__handler=e,this.__window=window,this.__randomColor=js()}postMessage(e,t,r){if(this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&console.assert(e!==this.__window),this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&Or[t.type]!==1){const s=this.__randomColor,c={background:`${s}22`,color:s},h=this.__window.top!==this.__window;console.groupCollapsed(`%c Msg from ${this.__window.origin} ${h?"(inner)":"(top)"} `,Object.entries(c).map(([m,b])=>`${m}: ${b}`).join("; ")),console.info(`window '${this.__window.origin}' is sending a message of type %c ${t.type} `,"background: lightgreen; color: darkgreen"),console.log(t.content),console.groupEnd()}e.postMessage(Ls(this.__instance,t),r)}set instance(e){this.__instance=e}get window(){return this.__window}set window(e){this.__window=e}send(e,t,r="*"){this.__window!==e&&this.postMessage(e,t,r)}recv(e){const t=({data:r})=>{if(Ts(r,this.__instance)){const s=Ps(this.__instance,r);this.__handler(s)}};return e.addEventListener("message",t),()=>e.removeEventListener("message",t)}}var Yt;const kt=window,Me=kt.trustedTypes,Jn=Me?Me.createPolicy("lit-html",{createHTML:n=>n}):void 0,we=`lit$${(Math.random()+"").slice(9)}$`,Ir="?"+we,Rs=`<${Ir}>`,Re=document,tt=(n="")=>Re.createComment(n),nt=n=>n===null||typeof n!="object"&&typeof n!="function",Cr=Array.isArray,Ns=n=>Cr(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kn=/-->/g,Qn=/>/g,Oe=RegExp(`>|[
|
|
12
12
|
\f\r](?:([^\\s"'>=/]+)([
|
|
13
13
|
\f\r]*=[
|
|
14
14
|
\f\r]*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xn=/'/g,Zn=/"/g,Tr=/^(?:script|style|textarea|title)$/i,Hs=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Fs=Hs(1),nt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),er=new WeakMap,Le=Re.createTreeWalker(Re,129,null,!1),Us=(n,e)=>{const t=n.length-1,r=[];let s,o=e===2?"<svg>":"",c=Qe;for(let m=0;m<t;m++){const b=n[m];let $,k,S=-1,C=0;for(;C<b.length&&(c.lastIndex=C,k=c.exec(b),k!==null);)C=c.lastIndex,c===Qe?k[1]==="!--"?c=Kn:k[1]!==void 0?c=Qn:k[2]!==void 0?(Tr.test(k[2])&&(s=RegExp("</"+k[2],"g")),c=Oe):k[3]!==void 0&&(c=Oe):c===Oe?k[0]===">"?(c=s??Qe,S=-1):k[1]===void 0?S=-2:(S=c.lastIndex-k[2].length,$=k[1],c=k[3]===void 0?Oe:k[3]==='"'?Zn:Xn):c===Zn||c===Xn?c=Oe:c===Kn||c===Qn?c=Qe:(c=Oe,s=void 0);const j=c===Oe&&n[m+1].startsWith("/>")?" ":"";o+=c===Qe?b+Rs:S>=0?(r.push($),b.slice(0,S)+"$lit$"+b.slice(S)+ke+j):b+ke+(S===-2?(r.push(void 0),m):j)}const h=o+(n[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Jn!==void 0?Jn.createHTML(h):h,r]};class rt{constructor({strings:e,_$litType$:t},r){let s;this.parts=[];let o=0,c=0;const h=e.length-1,m=this.parts,[b,$]=Us(e,t);if(this.el=rt.createElement(b,r),Le.currentNode=this.el.content,t===2){const k=this.el.content,S=k.firstChild;S.remove(),k.append(...S.childNodes)}for(;(s=Le.nextNode())!==null&&m.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const k=[];for(const S of s.getAttributeNames())if(S.endsWith("$lit$")||S.startsWith(ke)){const C=$[c++];if(k.push(S),C!==void 0){const j=s.getAttribute(C.toLowerCase()+"$lit$").split(ke),I=/([.?@])?(.*)/.exec(C);m.push({type:1,index:o,name:I[2],strings:j,ctor:I[1]==="."?Ws:I[1]==="?"?qs:I[1]==="@"?Vs:St})}else m.push({type:6,index:o})}for(const S of k)s.removeAttribute(S)}if(Tr.test(s.tagName)){const k=s.textContent.split(ke),S=k.length-1;if(S>0){s.textContent=Me?Me.emptyScript:"";for(let C=0;C<S;C++)s.append(k[C],et()),Le.nextNode(),m.push({type:2,index:++o});s.append(k[S],et())}}}else if(s.nodeType===8)if(s.data===Ir)m.push({type:2,index:o});else{let k=-1;for(;(k=s.data.indexOf(ke,k+1))!==-1;)m.push({type:7,index:o}),k+=ke.length-1}o++}}static createElement(e,t){const r=Re.createElement("template");return r.innerHTML=e,r}}function Ne(n,e,t=n,r){var s,o,c,h;if(e===nt)return e;let m=r!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[r]:t._$Cl;const b=tt(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((o=m==null?void 0:m._$AO)===null||o===void 0||o.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,t,r)),r!==void 0?((c=(h=t)._$Co)!==null&&c!==void 0?c:h._$Co=[])[r]=m:t._$Cl=m),m!==void 0&&(e=Ne(n,m._$AS(n,e.values),m,r)),e}class Bs{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:r},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Re).importNode(r,!0);Le.currentNode=o;let c=Le.nextNode(),h=0,m=0,b=s[0];for(;b!==void 0;){if(h===b.index){let $;b.type===2?$=new ot(c,c.nextSibling,this,e):b.type===1?$=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&($=new Gs(c,this,e)),this.u.push($),b=s[++m]}h!==(b==null?void 0:b.index)&&(c=Le.nextNode(),h++)}return o}p(e){let t=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ot{constructor(e,t,r,s){var o;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=s,this._$Cm=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ne(this,e,t),tt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==nt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ns(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Y&&tt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Re.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=rt.createElement(s.h,this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.p(r);else{const c=new Bs(o,this),h=c.v(this.options);c.p(r),this.T(h),this._$AH=c}}_$AC(e){let t=er.get(e.strings);return t===void 0&&er.set(e.strings,t=new rt(e)),t}k(e){Cr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,s=0;for(const o of e)s===t.length?t.push(r=new ot(this.O(et()),this.O(et()),this,this.options)):r=t[s],r._$AI(o),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class St{constructor(e,t,r,s,o){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,s){const o=this.strings;let c=!1;if(o===void 0)e=Ne(this,e,t,0),c=!tt(e)||e!==this._$AH&&e!==nt,c&&(this._$AH=e);else{const h=e;let m,b;for(e=o[0],m=0;m<o.length-1;m++)b=Ne(this,h[r+m],t,m),b===nt&&(b=this._$AH[m]),c||(c=!tt(b)||b!==this._$AH[m]),b===Y?e=Y:e!==Y&&(e+=(b??"")+o[m+1]),this._$AH[m]=b}c&&!s&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ws extends St{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}const Ds=Me?Me.emptyScript:"";class qs extends St{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Y?this.element.setAttribute(this.name,Ds):this.element.removeAttribute(this.name)}}class Vs extends St{constructor(e,t,r,s,o){super(e,t,r,s,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ne(this,e,t,0))!==null&&r!==void 0?r:Y)===nt)return;const s=this._$AH,o=e===Y&&s!==Y||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,c=e!==Y&&(s===Y||o);o&&this.element.removeEventListener(this.name,this,s),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Gs{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ne(this,e)}}const tr=$t.litHtmlPolyfillSupport;tr==null||tr(rt,ot),((zt=$t.litHtmlVersions)!==null&&zt!==void 0?zt:$t.litHtmlVersions=[]).push("2.6.1");const zs=(n,e,t)=>{var r,s;const o=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:e;let c=o._$litPart$;if(c===void 0){const h=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=c=new ot(e.insertBefore(et(),h),h,void 0,t??{})}return c._$AI(n),c};const Ys=n=>{const e=n.charAt(0);return!(e!==n.charAt(n.length-1)||e!=="'"&&e!=='"')};function Js(n){const e=n.match(/([^.]+)/g);return t=>e.reduce((r,s)=>{let o=s;if(s.startsWith("[")&&s.endsWith("]")){const c=s.slice(1,-1),h=Number.parseInt(c);!Number.isNaN(h)&&h.toString()===c?o=h:(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(o=c.slice(1,-1))}if(o==="")throw new TypeError("42",{cause:n});return typeof r=="object"&&r!==null?r[o]:void 0},t)}function Ks(n,e={}){return n.reduce((t,r,s)=>{const o=r.trim(),c=Number.parseInt(o),h=Number.parseFloat(o);if(o==="")t[s]=o;else if(Ys(o))t[s]=o.slice(1,-1);else if(["true","false"].includes(o))t[s]=o==="true";else if(!Number.isNaN(c)&&c.toString()===o)t[s]=c;else if(!Number.isNaN(h)&&h.toString()===o)t[s]=h;else if(o.startsWith("{")||o.startsWith("["))try{t[s]=JSON.parse(o)}catch(m){if(m instanceof SyntaxError)throw new TypeError("43",{cause:m.message})}else t[s]=Js(o)(e);return t},[])}function Lr(n){return Array.isArray(n)?n:[n]}function Qs(n){const e=typeof n=="string"?[n]:n;return Array.isArray(e)?e:Lr(e.uris)}const Xs=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Zs(n){return Xs.includes(n.tag)}function eo(n){return Array.isArray(n)?n:[n]}function Pr(n,e,t){if(typeof e!="object"){n.push(`${e}`);return}eo(e).forEach(r=>{if(typeof r!="object"){n.push(`${r}`);return}const{tag:s,attributes:o={},booleanAttributes:c=[],properties:h={}}=r,m=Zs(r),b=`<${s}`,$=m?"/>":">",k=`</${s}>`,S=Object.entries(o).reduce((R,[U,N])=>(R.push(`${U}="${N}"`),R),[]),C=Lr(c),{override:j,props:I}=Object.entries(h).reduce((R,[U,N])=>(t.has(U)?typeof N=="string"&&(R.override[U]=N):R.props[U]=N,R),{override:{},props:{}}),J=Array.from(t.keys()).map(R=>{var U;return`.${R}=\${${(U=j[R])!=null?U:R}}`}),F=Object.entries(I).reduce((R,[U,N])=>{switch(typeof N){case"object":case"number":case"boolean":R.push(`.${U}=\${${JSON.stringify(N)}}`);break;case"string":R.push(`.${U}=\${"${N}"}`);break}return R},[]);if(n.push([b,S.join(" "),C.join(" "),J.join(" "),F.join(" "),$].join(" ")),!m){const{content:R}=r;R!==void 0&&Pr(n,R,t),n.push(k)}})}function to(n,e=new Set){const t=[];return Pr(t,n,e),t.join(" ")}const no="modulepreload",ro=function(n,e){return new URL(n,e).href},nr={},io=function(e,t,r){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=ro(o,r),o in nr)return;nr[o]=!0;const c=o.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!r)for(let $=s.length-1;$>=0;$--){const k=s[$];if(k.href===o&&(!c||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${h}`))return;const b=document.createElement("link");if(b.rel=c?"stylesheet":no,c||(b.as="script",b.crossOrigin=""),b.href=o,document.head.appendChild(b),c)return new Promise(($,k)=>{b.addEventListener("load",$),b.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};function jr(n,...e){io(()=>import("./errors-af3a2945.js"),[],import.meta.url).then(({default:t})=>{const r=t[n];r?console.error(r(...e)):console.error(...e)}).catch(t=>{console.error(`[micro-lc][composer]: Dynamic import error while importing logger utils - ${t.message}`)})}function so(n){return e=>{jr("0",n,e.message)}}const oo=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:so,error:jr},Symbol.toStringTag,{value:"Module"}));var rr=oo;var ao=Object.defineProperty,co=(n,e,t)=>e in n?ao(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fe=(n,e,t)=>(co(n,typeof e!="symbol"?e+"":e,t),t);class lo{constructor(e){fe(this,"_i",0),fe(this,"_s"),fe(this,"_l"),fe(this,"_d",!1),fe(this,"_m",0),fe(this,"_st",[]),fe(this,"_n",0),fe(this,"_li",[]),fe(this,"_v",[]),this._s=e,this._l=e.length,e.length===0&&(this._d=!0)}_sw(e){this._m=e}_fst(){this._st=[]}_fn(){this._v.push(this._st.join("")),this._fst()}_fs(){this._li.push(this._st.join("")),this._fst()}_fpn(){this._li.push(this._st.slice(0,-1).join("")),this._fst()}_nx(){const e=this._s.charAt(this._i);switch(this._m){case 1:{e==="{"?(this._n+=1,this._st.push(e)):e==="}"&&this._n===0?(this._fn(),this._sw(0)):e==="}"&&this._n>0?(this._st.push(e),this._n-=1):this._st.push(e);break}case 2:{e==="{"?(this._fpn(),this._sw(1)):(this._sw(0),this._st.push(e));break}case 0:default:{e==="$"&&this._sw(2),this._st.push(e);break}}if(this._i+=1,this._i===this._l){if(this._m===2)this._sw(0);else if(this._m===1)throw new TypeError("41",{cause:`${this._i}`});this._fs(),this._d=!0}}_c(){const e=[...this._li],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._v}}run(){for(;!this._d;)this._nx();return this._c()}}const uo=async(n,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(n)),Yt=new Map;async function fo(n){const e=await uo(n).catch(t=>{rr.error("40",n,t.message)});if(!e||!Yt.has(e)){let t;try{t=new lo(n).run(),e&&Yt.set(e,t)}catch(r){r instanceof TypeError&&rr.error(r.message,n,r.cause);const s=[];Object.defineProperty(s,"raw",{value:s,writable:!1}),t={literals:s,variables:[]}}return t}return Yt.get(e)}class Jt extends Xe{}function ho(){const n=[],e=new Proxy({},{get(t,r,s){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=new Jt),Reflect.get(t,r,s)}});return new Proxy(new Jt,{get(t,r,s){if(r==="pool")return e;const o=typeof r=="string"?Number.parseInt(r,10):Number.NaN;return Number.isNaN(o)?Reflect.get(t,r,s):(n.at(o)===void 0&&(n[o]=new Jt),n[o])}})}async function po(n,{extraProperties:e,context:t={}}={}){const r=Array.isArray(e)?new Set(e):e,s=to(n,r),o=await fo(s),c=Ks(o.variables,t),h=Fs(o.literals,...c);return(m,b)=>zs(h,m,b)}async function mo(n,e=window,t=console.error){var r;let s=[],o;if(n.sources){const{sources:c}=n;o=!Array.isArray(c)&&typeof c!="string"?(r=c.importmap)!=null?r:{}:{};try{e.importShim.addImportMap(o)}catch(h){t(h)}s=Qs(c),s.length>0&&await Promise.all(s.map(h=>e.importShim(h).catch(t)))}return Promise.resolve({...n,sources:{importmap:o,uris:s}})}async function bo(n,e,t={}){return po(n.content,{context:t,extraProperties:new Set(Object.keys(t))}).then(s=>(s(e),null))}function vo(){return{configuration:new Xe,focus:new Gn(void 0),infos:new Xe,mocks:new Xe,mode:new Gn("select"),notification:new Xe,uppercaseTags:new Set}}const Mr=n=>{let e=0;const t=n.getValue();return t==="interact"?e="select":t==="select"&&(e="interact"),n.next(e),e},re=vo(),yo=n=>{switch(n.type){case"ctrl-space":Mr(re.mode);break;case"new-configuration":re.configuration.next({...n.content,type:"reset"});break;case"update":re.configuration.next({...n.content,type:"update"});break;case"focus-element":re.focus.next(n.content);break}},he=new js(yo),go=n=>{var e;return{data:{message:n.message,name:n.name,stack:(e=n.stack)!=null?e:""},description:"notifications.error.description",message:"notifications.error.message",status:"error"}},Rr=(n,e)=>he.send(n.parent,{content:go(e),type:"notification"}),Nr=n=>"clientX"in n&&"clientY"in n;function ir(n,e){return t=>{Nr(t)&&he.send(n.parent,{content:{bubbles:!0,cancelable:!1,clientX:t.clientX,clientY:t.clientY},type:e})}}const _o=(n,e)=>n.has(e.tagName)&&e.hasAttribute(en),wo=(n,e)=>{const{document:t}=n;return r=>{let s;if(Nr(r)){const{clientX:o,clientY:c}=r;s=t.elementsFromPoint(o,c).reduce((h,m)=>{if(_o(e.uppercaseTags,m)){const b=m.getAttribute(en);h.ids.push(b),h.selectors.push(`[${en}="${b}"]`)}return h},{ids:[],selectors:[]})}(e.mode.getValue()==="select"||s===void 0)&&he.send(n.parent,{content:s&&(s.ids.length>0?s:void 0),type:"click-element"})}},ko=n=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),Mr(n.mode),n.focus.next(void 0))},$o="en",Ao=(n,e=$o)=>typeof n=="string"?n:n==null?void 0:n[e];function So(n){return Object.entries(n).reduce((e,[t,r])=>(e[t]=Ao(r),e),{})}const it=(...n)=>{},xo=n=>Array.isArray(n)?n:[n],Hr=({document:{baseURI:n},location:{href:e}})=>t=>new URL(t,new URL(n,e)),Fr=(n,e)=>{let t=e;return e instanceof URL||(t=n(typeof e=="string"?e:e.url)),t},Eo=(n,e)=>{const{href:t,origin:r}=e;return n===r?t.substring(n.length):t},Oo=([n,e])=>At(e.then(t=>[n,t])),Io=([n,e])=>{const t={label:n,properties:{},type:"layout"},{__manifest:r=Promise.resolve(t)}=e,s=r.then(o=>[e,{__manifest:{...t,...o},tag:n}]).catch(()=>[e,{__manifest:t,tag:n}]);return At(s)},Co=(n,e)=>At(e.map(t=>[t,n.whenDefined(t)])).pipe(wt(Oo),wt(Io)),To=500;function ln(n){n instanceof Error&&Rr(this,n)}function Lo(n,e){const t=ln.bind(this);return n.pipe(wt(([,{__manifest:{label:r,description:s,...o},tag:c}])=>(delete o.mocks,us({info:{...So({description:s,label:r}),...o},tag:c}))),ds(To),kt(r=>r.length>0)).subscribe({error:t,next:r=>e(r)})}function Po(n){const e=ln.bind(this);return n.pipe(Er(([,{__manifest:{mocks:t={}},tag:r}])=>[r,t])).subscribe({error:e,next:t=>{re.mocks.next(t)}})}async function Ur(n,{addInfo:e,tags:t}){const{subscription:r}=this,s=ln.bind(this);if(n){const o=Co(this.customElements,t);return mo(n,this,s).then(()=>{r.add(Lo.call(this,o,e)),r.add(Po.call(this,o))})}}const Br=(n,e)=>{const{document:t}=n;let r=e.firstElementChild;return r===null&&(r=t.createElement("div"),r.style.height="inherit",r.style.display="flex",e.appendChild(r)),r};async function tn(n,e){const t=ho(),{proxyWindow:r=this}=this;return bo({content:n,sources:{importmap:{},uris:[]}},Br(this,e),{eventBus:t,proxyWindow:r})}function Wr(n){Br(this,n).remove()}var jo=Object.defineProperty,Mo=(n,e,t)=>e in n?jo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ro=(n,e,t)=>(Mo(n,typeof e!="symbol"?e+"":e,t),t);const sr=(n,e,t)=>{const{properties:r,attributes:s,booleanAttributes:o=[]}=n,c=Object.assign(Object.fromEntries(xo(o).map(m=>[m,!0])),{...s,...r});return e(c).map(({url:m,method:b="GET",handler:$=()=>Promise.resolve(new Response)})=>{var k;const S=xs({...m,method:b},c);return[new URL(S.pathname,(k=S.origin)!=null?k:t).href,b,(j,I)=>$(j,I)]})},No=(n,e)=>{const{href:t,search:r}=n;return t.replace(/\?$/,"").substring(0,t.length-r.length).match(new RegExp(`^${e}$`))!==null},Ho=(n,e)=>{const{href:t}=n;return t.match(new RegExp(`^${e.replace(/\/$/,"")}/`))!==null};class Fo extends Map{constructor(){super(...arguments),Ro(this,"__urlMap",new Map)}add(e,t){var r,s;const{method:o,url:c}=e,h=(r=this.get(o))!=null?r:new Map,m=(s=this.__urlMap.get(o))!=null?s:[];h.set(c,t),m.push(c),this.set(o,h),this.__urlMap.set(o,m)}match(e){var t;const{method:r,url:s}=e,o=this.__urlMap.get(r);if(o===void 0)return;const c=o.reduce((h,m,b,$)=>{if(No(s,m)||Ho(s,m)){if(h===void 0)return b;if($[h].length<m.length)return b}return h},void 0);if(c!==void 0)return(t=this.get(r))==null?void 0:t.get(o[c])}}const Uo=n=>([e,t,r])=>n.add({method:t,url:e},r);async function or(n,e,t,r){const s=Uo(n);return Array.isArray(e)?Promise.all(e.map(o=>sr(o,t,r)).flat().map(s)).then(it):Promise.all(sr(e,t,r).map(s)).then(it)}async function Bo(n,e=[]){const{location:{href:t}}=this,r=Hr(this),s=new Fo;await Promise.all(e.map(async c=>{var h;const[,{fetch:m=()=>[]}]=await Yn(re.mocks.pipe(kt(([$])=>$===c),Zt(1))),b=(h=n.get(c))!=null?h:[];return or(s,b,m,t)})).catch(c=>c instanceof Error&&Rr(this,c));const o=async(c,h)=>{var m;const b=Fr(r,c),$=s.match({method:(m=h==null?void 0:h.method)!=null?m:"GET",url:b});return $!==void 0?$(b,h).then(k=>k):this.fetch(c,h)};this.proxyWindow&&(this.proxyWindow.fetch=Object.assign(o,{update:async c=>{const[,{fetch:h=()=>[]}]=await Yn(re.mocks.pipe(kt(([m])=>m===c.tag),Zt(1)));return or(s,c,h,t)}}))}function Wo(n,e){const{href:t,origin:r,pathname:s}=new URL(n??"",this.location.href);let o=t;return r===this.location.origin&&(o=`{ your domain }${s}`),this.notify({data:{nextUrl:o,target:e??"[undefined]"},description:"notifications.navigation-event.description.open",message:"notifications.navigation-event.message",status:"default"}),this}function Do(n,e,t){const{href:r,origin:s,pathname:o}=new URL(t);let c=r;s===this.location.origin&&(c=`${o}`),this.notify({data:{nextUrl:c},description:"notifications.navigation-event.description.pushState",message:"notifications.navigation-event.message",status:"default"})}function qo(n,e,t){const{href:r,origin:s,pathname:o,search:c}=new URL(t);let h=r;s===this.location.origin&&(h=`${o}${c}`),this.notify({data:{nextUrl:h},description:"notifications.navigation-event.description.replaceState",message:"notifications.navigation-event.message",status:"info"})}function Vo(n){return new Proxy(n,{get:(e,t)=>t==="pushState"?(r,s,o)=>{Do.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:t==="replaceState"?(r,s,o)=>{qo.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:e[t]})}class ar extends Map{get length(){return this.size}clear(){super.clear()}getItem(e){var t;return(t=super.get(e))!=null?t:null}key(){return null}removeItem(e){super.delete(e)}setItem(e,t){super.set(e,t)}}const Go=n=>n.tagName==="A";function zo(n){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,s){const o=e.call(this,r,s);if(Go(o)){const c=()=>{var h;return n.notify({data:{href:Eo(n.location.origin,new URL(o.href,n.location.href)),target:(h=o.getAttribute("target"))!=null?h:"_self"},description:"notifications.anchor.description",message:"notifications.anchor.message",status:"info"})};Object.defineProperty(o,"click",{get(){return c},set:it})}return o},()=>{Document.prototype.createElement=e}}function Yo(n,e){let t=n.fetch.bind(n);const r={notify:$=>e.next($)},s=new ar,o=new ar,c=Object.assign(n,r),h=new Proxy(c,{get($,k,S){if(k==="fetch")return t;if(k==="history")return Vo.call($,$.history);if(k==="open")return Wo.bind($);if(k==="localStorage")return s;if(k==="sessionStorage")return o;const C=Reflect.get($,k);return typeof C!="function"?C:function(...I){return Reflect.apply(C,this===S?n:this,I)}},set($,k,S){return k==="fetch"?(t=S,!0):Reflect.set($,k,S)}}),m=Object.assign(c,{proxyWindow:h}),b=zo(m);return{sandbox:m,unpatch:b}}var Jo=Object.defineProperty,Ko=(n,e,t)=>e in n?Jo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,cr=(n,e,t)=>(Ko(n,typeof e!="symbol"?e+"":e,t),t);function Qo(n,e){const{document:t}=n,r=t.createElement("div"),s="";r.style.display=s,r.style.position="fixed",r.style.width="100vw",r.style.height="100%",r.style.backgroundColor="rgba(10, 10, 10, 0.2)",r.style.zIndex=`${Ms}`;const o=()=>r.style.display===s,c=()=>o()?r.style.display="none":r.style.display=s,h=e.subscribe(m=>{switch(m){case"interact":n.dispatchEvent(new Event("mousedown")),r.style.display="none";break;case"select":r.style.display=s;break;case 0:default:c();break}});return t.body.appendChild(r),{cleanup:()=>h.unsubscribe(),overlay:r}}const Xo=n=>{const e=n.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.height="inherit",n.body.appendChild(e),e};function Zo(n){const e=n;return Object.assign(n,{bootstrap:Ur.bind(e),mocks:{fetch:new Map},subscription:new de,unmount:Wr.bind(e),update:tn.bind(e)})}class ea{constructor(){cr(this,"_results",new Map),cr(this,"_queue",Promise.resolve())}add(e){const r=[...e].map(s=>{let o,c;const h=new Promise((m,b)=>{o=m,c=b});return this._queue=this._queue.then(()=>s()).then(m=>{o(m)}).catch(m=>c(m)),h});return Promise.allSettled(r)}get(e){return this._results.get(e)}}const ta=n=>e=>{e.forEach(t=>{t.status==="rejected"&&n.next({data:{reason:t.reason},description:"notifications.lifecycle.description",message:"notifications.lifecycle.message",status:"error"})})},na=n=>e=>{n.infos.next(e),e.forEach(({tag:t})=>n.uppercaseTags.add(t.toUpperCase()))},ra=(n,e,t)=>{const r=new ea,s=t.configuration.subscribe(o=>{const{configuration:c}=o,{content:h}=c;let m;if(o.type==="reset"){const{contexts:b,tags:$}=o;m=r.add([()=>Wr.call(n,e),()=>Ur.call(n,c,{addInfo:na(t),tags:$}),()=>Bo.call(n,b,o.tags),()=>tn.call(n,h,e)])}else{const{context:b}=o;m=r.add([()=>{var $,k,S;return(S=($=n.proxyWindow)==null?void 0:(k=$.fetch).update)==null?void 0:S.call(k,b)},()=>tn.call(n,h,e)])}m.then(ta(t.notification)).catch(it)});return()=>s.unsubscribe()},ia=n=>{const{body:e}=n;e.style.height="100%",e.style.padding="0",e.style.margin="0"},sa=(n,e)=>{const{location:{origin:t,port:r,protocol:s}}=n;return!(t!==e.origin||r!==e.port||s!==e.protocol)},oa=(n,e)=>{const t=Hr(n),{document:r,parent:s}=n;if(s===n)return;const o=n.fetch.bind(n);n.fetch=(c,h)=>{var m;const b=Fr(t,c);return sa(r,b)&&e.next({data:{method:(m=h==null?void 0:h.method)!=null?m:"GET",url:b.href.substring(b.origin.length)},description:"notifications.fetch-event.description",message:"notifications.fetch-event.message",status:"info"}),o(c,h)}};function aa(n,e,t){ia(n.document),oa(n,e.notification);let r=it;t.disableOverlay||(r=Qo(n,e.mode.asObservable()).cleanup);const s=ys(n.document,e.focus.asObservable(),e.mode.asObservable()),o=Xo(n.document),c=Zo(n),{sandbox:h,unpatch:m}=Yo(c,e.notification),b=ra(h,o,e);return{cleanup:()=>{b(),m(),s(),r()},sandboxedWindow:h}}const ca=n=>!(n===null||n!==""&&n!=="true"),la=(n,e)=>e!==null&&n.history.pushState(n.history.state,"",e),ua=n=>{var e;const{location:t}=n,r=(e=new URL(t.href).searchParams.get("_id"))!=null?e:"",s=ca(new URL(t.href).searchParams.get("disableOverlay"));return he.instance=r,he.window=n,la(n,new URL(t.href).searchParams.get("redirectTo")),{disableOverlay:s,instance:r}};function fa(n){const e=new de;return e.add(n.infos.subscribe(t=>{he.send(window.parent,{content:t,type:"tag-info"})})),e.add(n.notification.subscribe(t=>{he.send(window.parent,{content:t,type:"notification"})})),e.add(n.mode.subscribe(t=>{he.send(window.parent,{content:{mode:t},type:"ctrl-space"})})),()=>e.unsubscribe()}function ha(n,...e){const t=e.map(({type:r,handler:s})=>(n.addEventListener(r,s),()=>n.removeEventListener(r,s)));return()=>{t.forEach(r=>r())}}function da(n,e){n.addEventListener("unload",()=>{n.subscription.unsubscribe(),e.forEach(t=>t())})}(n=>{const e=ua(n),t=he.recv(n),r=fa(re),s=ha(n,{handler:ko(re),type:"keydown"},{handler:ir(n,"mousemove"),type:"mousemove"},{handler:ir(n,"mousedown"),type:"mousedown"},{handler:wo(n,re),type:"mousedown"}),{cleanup:o,sandboxedWindow:c}=aa(n,re,e);da(c,[o,s,r,t])})(window);
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xn=/'/g,Zn=/"/g,Tr=/^(?:script|style|textarea|title)$/i,Hs=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Fs=Hs(1),rt=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),er=new WeakMap,Le=Re.createTreeWalker(Re,129,null,!1),Us=(n,e)=>{const t=n.length-1,r=[];let s,o=e===2?"<svg>":"",c=Qe;for(let m=0;m<t;m++){const b=n[m];let $,k,S=-1,C=0;for(;C<b.length&&(c.lastIndex=C,k=c.exec(b),k!==null);)C=c.lastIndex,c===Qe?k[1]==="!--"?c=Kn:k[1]!==void 0?c=Qn:k[2]!==void 0?(Tr.test(k[2])&&(s=RegExp("</"+k[2],"g")),c=Oe):k[3]!==void 0&&(c=Oe):c===Oe?k[0]===">"?(c=s??Qe,S=-1):k[1]===void 0?S=-2:(S=c.lastIndex-k[2].length,$=k[1],c=k[3]===void 0?Oe:k[3]==='"'?Zn:Xn):c===Zn||c===Xn?c=Oe:c===Kn||c===Qn?c=Qe:(c=Oe,s=void 0);const j=c===Oe&&n[m+1].startsWith("/>")?" ":"";o+=c===Qe?b+Rs:S>=0?(r.push($),b.slice(0,S)+"$lit$"+b.slice(S)+we+j):b+we+(S===-2?(r.push(void 0),m):j)}const h=o+(n[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Jn!==void 0?Jn.createHTML(h):h,r]};class it{constructor({strings:e,_$litType$:t},r){let s;this.parts=[];let o=0,c=0;const h=e.length-1,m=this.parts,[b,$]=Us(e,t);if(this.el=it.createElement(b,r),Le.currentNode=this.el.content,t===2){const k=this.el.content,S=k.firstChild;S.remove(),k.append(...S.childNodes)}for(;(s=Le.nextNode())!==null&&m.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const k=[];for(const S of s.getAttributeNames())if(S.endsWith("$lit$")||S.startsWith(we)){const C=$[c++];if(k.push(S),C!==void 0){const j=s.getAttribute(C.toLowerCase()+"$lit$").split(we),I=/([.?@])?(.*)/.exec(C);m.push({type:1,index:o,name:I[2],strings:j,ctor:I[1]==="."?Ws:I[1]==="?"?qs:I[1]==="@"?Vs:St})}else m.push({type:6,index:o})}for(const S of k)s.removeAttribute(S)}if(Tr.test(s.tagName)){const k=s.textContent.split(we),S=k.length-1;if(S>0){s.textContent=Me?Me.emptyScript:"";for(let C=0;C<S;C++)s.append(k[C],tt()),Le.nextNode(),m.push({type:2,index:++o});s.append(k[S],tt())}}}else if(s.nodeType===8)if(s.data===Ir)m.push({type:2,index:o});else{let k=-1;for(;(k=s.data.indexOf(we,k+1))!==-1;)m.push({type:7,index:o}),k+=we.length-1}o++}}static createElement(e,t){const r=Re.createElement("template");return r.innerHTML=e,r}}function Ne(n,e,t=n,r){var s,o,c,h;if(e===rt)return e;let m=r!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[r]:t._$Cl;const b=nt(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==b&&((o=m==null?void 0:m._$AO)===null||o===void 0||o.call(m,!1),b===void 0?m=void 0:(m=new b(n),m._$AT(n,t,r)),r!==void 0?((c=(h=t)._$Co)!==null&&c!==void 0?c:h._$Co=[])[r]=m:t._$Cl=m),m!==void 0&&(e=Ne(n,m._$AS(n,e.values),m,r)),e}class Bs{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:r},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Re).importNode(r,!0);Le.currentNode=o;let c=Le.nextNode(),h=0,m=0,b=s[0];for(;b!==void 0;){if(h===b.index){let $;b.type===2?$=new ot(c,c.nextSibling,this,e):b.type===1?$=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&($=new Gs(c,this,e)),this.u.push($),b=s[++m]}h!==(b==null?void 0:b.index)&&(c=Le.nextNode(),h++)}return o}p(e){let t=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ot{constructor(e,t,r,s){var o;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=s,this._$Cm=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ne(this,e,t),nt(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==rt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ns(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==z&&nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Re.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=it.createElement(s.h,this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.p(r);else{const c=new Bs(o,this),h=c.v(this.options);c.p(r),this.T(h),this._$AH=c}}_$AC(e){let t=er.get(e.strings);return t===void 0&&er.set(e.strings,t=new it(e)),t}k(e){Cr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,s=0;for(const o of e)s===t.length?t.push(r=new ot(this.O(tt()),this.O(tt()),this,this.options)):r=t[s],r._$AI(o),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class St{constructor(e,t,r,s,o){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,s){const o=this.strings;let c=!1;if(o===void 0)e=Ne(this,e,t,0),c=!nt(e)||e!==this._$AH&&e!==rt,c&&(this._$AH=e);else{const h=e;let m,b;for(e=o[0],m=0;m<o.length-1;m++)b=Ne(this,h[r+m],t,m),b===rt&&(b=this._$AH[m]),c||(c=!nt(b)||b!==this._$AH[m]),b===z?e=z:e!==z&&(e+=(b??"")+o[m+1]),this._$AH[m]=b}c&&!s&&this.j(e)}j(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ws extends St{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===z?void 0:e}}const Ds=Me?Me.emptyScript:"";class qs extends St{constructor(){super(...arguments),this.type=4}j(e){e&&e!==z?this.element.setAttribute(this.name,Ds):this.element.removeAttribute(this.name)}}class Vs extends St{constructor(e,t,r,s,o){super(e,t,r,s,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ne(this,e,t,0))!==null&&r!==void 0?r:z)===rt)return;const s=this._$AH,o=e===z&&s!==z||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,c=e!==z&&(s===z||o);o&&this.element.removeEventListener(this.name,this,s),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Gs{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ne(this,e)}}const tr=kt.litHtmlPolyfillSupport;tr==null||tr(it,ot),((Yt=kt.litHtmlVersions)!==null&&Yt!==void 0?Yt:kt.litHtmlVersions=[]).push("2.6.1");const Ys=(n,e,t)=>{var r,s;const o=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:e;let c=o._$litPart$;if(c===void 0){const h=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=c=new ot(e.insertBefore(tt(),h),h,void 0,t??{})}return c._$AI(n),c};const zs=n=>{const e=n.charAt(0);return!(e!==n.charAt(n.length-1)||e!=="'"&&e!=='"')};function Js(n){const e=n.match(/([^.]+)/g);return t=>e.reduce((r,s)=>{let o=s;if(s.startsWith("[")&&s.endsWith("]")){const c=s.slice(1,-1),h=Number.parseInt(c);!Number.isNaN(h)&&h.toString()===c?o=h:(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(o=c.slice(1,-1))}if(o==="")throw new TypeError("42",{cause:n});return typeof r=="object"&&r!==null?r[o]:void 0},t)}function Ks(n,e={}){return n.reduce((t,r,s)=>{const o=r.trim(),c=Number.parseInt(o),h=Number.parseFloat(o);if(o==="")t[s]=o;else if(zs(o))t[s]=o.slice(1,-1);else if(["true","false"].includes(o))t[s]=o==="true";else if(!Number.isNaN(c)&&c.toString()===o)t[s]=c;else if(!Number.isNaN(h)&&h.toString()===o)t[s]=h;else if(o.startsWith("{")||o.startsWith("["))try{t[s]=JSON.parse(o)}catch(m){if(m instanceof SyntaxError)throw new TypeError("43",{cause:m.message})}else t[s]=Js(o)(e);return t},[])}function Lr(n){return Array.isArray(n)?n:[n]}function Qs(n){const e=typeof n=="string"?[n]:n;return Array.isArray(e)?e:Lr(e.uris)}const Xs=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Zs(n){return Xs.includes(n.tag)}function eo(n){return Array.isArray(n)?n:[n]}function Pr(n,e,t){if(typeof e!="object"){n.push(`${e}`);return}eo(e).forEach(r=>{if(typeof r!="object"){n.push(`${r}`);return}const{tag:s,attributes:o={},booleanAttributes:c=[],properties:h={}}=r,m=Zs(r),b=`<${s}`,$=m?"/>":">",k=`</${s}>`,S=Object.entries(o).reduce((R,[U,N])=>(R.push(`${U}="${N}"`),R),[]),C=Lr(c),{override:j,props:I}=Object.entries(h).reduce((R,[U,N])=>(t.has(U)?typeof N=="string"&&(R.override[U]=N):R.props[U]=N,R),{override:{},props:{}}),J=Array.from(t.keys()).map(R=>{var U;return`.${R}=\${${(U=j[R])!=null?U:R}}`}),F=Object.entries(I).reduce((R,[U,N])=>{switch(typeof N){case"object":case"number":case"boolean":R.push(`.${U}=\${${JSON.stringify(N)}}`);break;case"string":R.push(`.${U}=\${"${N}"}`);break}return R},[]);if(n.push([b,S.join(" "),C.join(" "),J.join(" "),F.join(" "),$].join(" ")),!m){const{content:R}=r;R!==void 0&&Pr(n,R,t),n.push(k)}})}function to(n,e=new Set){const t=[];return Pr(t,n,e),t.join(" ")}const no="modulepreload",ro=function(n,e){return new URL(n,e).href},nr={},io=function(e,t,r){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=ro(o,r),o in nr)return;nr[o]=!0;const c=o.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!r)for(let $=s.length-1;$>=0;$--){const k=s[$];if(k.href===o&&(!c||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${h}`))return;const b=document.createElement("link");if(b.rel=c?"stylesheet":no,c||(b.as="script",b.crossOrigin=""),b.href=o,document.head.appendChild(b),c)return new Promise(($,k)=>{b.addEventListener("load",$),b.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};function jr(n,...e){io(()=>import("./errors-af3a2945.js"),[],import.meta.url).then(({default:t})=>{const r=t[n];r?console.error(r(...e)):console.error(...e)}).catch(t=>{console.error(`[micro-lc][composer]: Dynamic import error while importing logger utils - ${t.message}`)})}function so(n){return e=>{jr("0",n,e.message)}}const oo=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:so,error:jr},Symbol.toStringTag,{value:"Module"}));var rr=oo;var ao=Object.defineProperty,co=(n,e,t)=>e in n?ao(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fe=(n,e,t)=>(co(n,typeof e!="symbol"?e+"":e,t),t);class lo{constructor(e){fe(this,"_i",0),fe(this,"_s"),fe(this,"_l"),fe(this,"_d",!1),fe(this,"_m",0),fe(this,"_st",[]),fe(this,"_n",0),fe(this,"_li",[]),fe(this,"_v",[]),this._s=e,this._l=e.length,e.length===0&&(this._d=!0)}_sw(e){this._m=e}_fst(){this._st=[]}_fn(){this._v.push(this._st.join("")),this._fst()}_fs(){this._li.push(this._st.join("")),this._fst()}_fpn(){this._li.push(this._st.slice(0,-1).join("")),this._fst()}_nx(){const e=this._s.charAt(this._i);switch(this._m){case 1:{e==="{"?(this._n+=1,this._st.push(e)):e==="}"&&this._n===0?(this._fn(),this._sw(0)):e==="}"&&this._n>0?(this._st.push(e),this._n-=1):this._st.push(e);break}case 2:{e==="{"?(this._fpn(),this._sw(1)):(this._sw(0),this._st.push(e));break}case 0:default:{e==="$"&&this._sw(2),this._st.push(e);break}}if(this._i+=1,this._i===this._l){if(this._m===2)this._sw(0);else if(this._m===1)throw new TypeError("41",{cause:`${this._i}`});this._fs(),this._d=!0}}_c(){const e=[...this._li],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._v}}run(){for(;!this._d;)this._nx();return this._c()}}const uo=async(n,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(n)),zt=new Map;async function fo(n){const e=await uo(n).catch(t=>{rr.error("40",n,t.message)});if(!e||!zt.has(e)){let t;try{t=new lo(n).run(),e&&zt.set(e,t)}catch(r){r instanceof TypeError&&rr.error(r.message,n,r.cause);const s=[];Object.defineProperty(s,"raw",{value:s,writable:!1}),t={literals:s,variables:[]}}return t}return zt.get(e)}class Jt extends Xe{}function ho(){const n=[],e=new Proxy({},{get(t,r,s){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=new Jt),Reflect.get(t,r,s)}});return new Proxy(new Jt,{get(t,r,s){if(r==="pool")return e;const o=typeof r=="string"?Number.parseInt(r,10):Number.NaN;return Number.isNaN(o)?Reflect.get(t,r,s):(n.at(o)===void 0&&(n[o]=new Jt),n[o])}})}async function po(n,{extraProperties:e,context:t={}}={}){const r=Array.isArray(e)?new Set(e):e,s=to(n,r),o=await fo(s),c=Ks(o.variables,t),h=Fs(o.literals,...c);return(m,b)=>Ys(h,m,b)}async function mo(n,e=window,t=console.error){var r;let s=[],o;if(n.sources){const{sources:c}=n;o=!Array.isArray(c)&&typeof c!="string"?(r=c.importmap)!=null?r:{}:{};try{e.importShim.addImportMap(o)}catch(h){t(h)}s=Qs(c),s.length>0&&await Promise.all(s.map(h=>e.importShim(h).catch(t)))}return Promise.resolve({...n,sources:{importmap:o,uris:s}})}async function bo(n,e,t={}){return po(n.content,{context:t,extraProperties:new Set(Object.keys(t))}).then(s=>(s(e),null))}function vo(){return{configuration:new Xe,focus:new Gn(void 0),infos:new Xe,mocks:new Xe,mode:new Gn("select"),notification:new Xe,uppercaseTags:new Set}}const Mr=n=>{let e=0;const t=n.getValue();return t==="interact"?e="select":t==="select"&&(e="interact"),n.next(e),e},te=vo();function yo(n){switch(n.type){case"options":{const{content:{disableOverlay:e,instance:t,redirectTo:r}}=n;e&&(Object.defineProperty(this.window,"__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__",{value:!0}),te.mode.next("interact")),t&&(this.instance=t);const{window:{history:s}}=this;r&&s.pushState(s.state,"",r);break}case"ctrl-space":Mr(te.mode);break;case"new-configuration":te.configuration.next({...n.content,type:"reset"});break;case"update":te.configuration.next({...n.content,type:"update"});break;case"focus-element":te.focus.next(n.content);break}}const ke=new Ms(yo),go=n=>{var e;return{data:{message:n.message,name:n.name,stack:(e=n.stack)!=null?e:""},description:"notifications.error.description",message:"notifications.error.message",status:"error"}},Rr=(n,e)=>ke.send(n.parent,{content:go(e),type:"notification"}),Nr=n=>"clientX"in n&&"clientY"in n;function ir(n,e){return t=>{Nr(t)&&ke.send(n.parent,{content:{bubbles:!0,cancelable:!1,clientX:t.clientX,clientY:t.clientY},type:e})}}const _o=(n,e)=>n.has(e.tagName)&&e.hasAttribute(en),wo=(n,e)=>{const{document:t}=n;return r=>{let s;if(Nr(r)){const{clientX:o,clientY:c}=r;s=t.elementsFromPoint(o,c).reduce((h,m)=>{if(_o(e.uppercaseTags,m)){const b=m.getAttribute(en);h.ids.push(b),h.selectors.push(`[${en}="${b}"]`)}return h},{ids:[],selectors:[]})}(e.mode.getValue()==="select"||s===void 0)&&ke.send(n.parent,{content:s&&(s.ids.length>0?s:void 0),type:"click-element"})}},ko=n=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),Mr(n.mode),n.focus.next(void 0))},$o="en",Ao=(n,e=$o)=>typeof n=="string"?n:n==null?void 0:n[e];function So(n){return Object.entries(n).reduce((e,[t,r])=>(e[t]=Ao(r),e),{})}const $t=(...n)=>{},xo=n=>Array.isArray(n)?n:[n],Hr=({document:{baseURI:n},location:{href:e}})=>t=>new URL(t,new URL(n,e)),Fr=(n,e)=>{let t=e;return e instanceof URL||(t=n(typeof e=="string"?e:e.url)),t},Eo=(n,e)=>{const{href:t,origin:r}=e;return n===r?t.substring(n.length):t},Oo=([n,e])=>At(e.then(t=>[n,t])),Io=([n,e])=>{const t={label:n,properties:{},type:"layout"},{__manifest:r=Promise.resolve(t)}=e,s=r.then(o=>[e,{__manifest:{...t,...o},tag:n}]).catch(()=>[e,{__manifest:t,tag:n}]);return At(s)},Co=(n,e)=>At(e.map(t=>[t,n.whenDefined(t)])).pipe(wt(Oo),wt(Io)),To=500;function ln(n){n instanceof Error&&Rr(this,n)}function Lo(n,e){const t=ln.bind(this);return n.pipe(wt(([,{__manifest:{label:r,description:s,...o},tag:c}])=>(delete o.mocks,us({info:{...So({description:s,label:r}),...o},tag:c}))),ds(To),et(r=>r.length>0)).subscribe({error:t,next:r=>e(r)})}function Po(n){const e=ln.bind(this);return n.pipe(Er(([,{__manifest:{mocks:t={}},tag:r}])=>[r,t])).subscribe({error:e,next:t=>{te.mocks.next(t)}})}async function Ur(n,{addInfo:e,tags:t}){const{subscription:r}=this,s=ln.bind(this);if(n){const o=Co(this.customElements,t);return mo(n,this,s).then(()=>{r.add(Lo.call(this,o,e)),r.add(Po.call(this,o))})}}const Br=(n,e)=>{const{document:t}=n;let r=e.firstElementChild;return r===null&&(r=t.createElement("div"),r.style.height="inherit",r.style.display="flex",e.appendChild(r)),r};async function tn(n,e){const t=ho(),{proxyWindow:r=this}=this;return bo({content:n,sources:{importmap:{},uris:[]}},Br(this,e),{eventBus:t,proxyWindow:r})}function Wr(n){Br(this,n).remove()}var jo=Object.defineProperty,Mo=(n,e,t)=>e in n?jo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ro=(n,e,t)=>(Mo(n,typeof e!="symbol"?e+"":e,t),t);const sr=(n,e,t)=>{const{properties:r,attributes:s,booleanAttributes:o=[]}=n,c=Object.assign(Object.fromEntries(xo(o).map(m=>[m,!0])),{...s,...r});return e(c).map(({url:m,method:b="GET",handler:$=()=>Promise.resolve(new Response)})=>{var k;const S=xs({...m,method:b},c);return[new URL(S.pathname,(k=S.origin)!=null?k:t).href,b,(j,I)=>$(j,I)]})},No=(n,e)=>{const{href:t,search:r}=n;return t.replace(/\?$/,"").substring(0,t.length-r.length).match(new RegExp(`^${e}$`))!==null},Ho=(n,e)=>{const{href:t}=n;return t.match(new RegExp(`^${e.replace(/\/$/,"")}/`))!==null};class Fo extends Map{constructor(){super(...arguments),Ro(this,"__urlMap",new Map)}add(e,t){var r,s;const{method:o,url:c}=e,h=(r=this.get(o))!=null?r:new Map,m=(s=this.__urlMap.get(o))!=null?s:[];h.set(c,t),m.push(c),this.set(o,h),this.__urlMap.set(o,m)}match(e){var t;const{method:r,url:s}=e,o=this.__urlMap.get(r);if(o===void 0)return;const c=o.reduce((h,m,b,$)=>{if(No(s,m)||Ho(s,m)){if(h===void 0)return b;if($[h].length<m.length)return b}return h},void 0);if(c!==void 0)return(t=this.get(r))==null?void 0:t.get(o[c])}}const Uo=n=>([e,t,r])=>n.add({method:t,url:e},r);async function or(n,e,t,r){const s=Uo(n);return Array.isArray(e)?Promise.all(e.map(o=>sr(o,t,r)).flat().map(s)).then($t):Promise.all(sr(e,t,r).map(s)).then($t)}async function Bo(n,e=[]){const{location:{href:t}}=this,r=Hr(this),s=new Fo;await Promise.all(e.map(async c=>{var h;const[,{fetch:m=()=>[]}]=await zn(te.mocks.pipe(et(([$])=>$===c),Zt(1))),b=(h=n.get(c))!=null?h:[];return or(s,b,m,t)})).catch(c=>c instanceof Error&&Rr(this,c));const o=async(c,h)=>{var m;const b=Fr(r,c),$=s.match({method:(m=h==null?void 0:h.method)!=null?m:"GET",url:b});return $!==void 0?$(b,h).then(k=>k):this.fetch(c,h)};this.proxyWindow&&(this.proxyWindow.fetch=Object.assign(o,{update:async c=>{const[,{fetch:h=()=>[]}]=await zn(te.mocks.pipe(et(([m])=>m===c.tag),Zt(1)));return or(s,c,h,t)}}))}function Wo(n,e){const{href:t,origin:r,pathname:s}=new URL(n??"",this.location.href);let o=t;return r===this.location.origin&&(o=`{ your domain }${s}`),this.notify({data:{nextUrl:o,target:e??"[undefined]"},description:"notifications.navigation-event.description.open",message:"notifications.navigation-event.message",status:"default"}),this}function Do(n,e,t){const{href:r,origin:s,pathname:o}=new URL(t);let c=r;s===this.location.origin&&(c=`${o}`),this.notify({data:{nextUrl:c},description:"notifications.navigation-event.description.pushState",message:"notifications.navigation-event.message",status:"default"})}function qo(n,e,t){const{href:r,origin:s,pathname:o,search:c}=new URL(t);let h=r;s===this.location.origin&&(h=`${o}${c}`),this.notify({data:{nextUrl:h},description:"notifications.navigation-event.description.replaceState",message:"notifications.navigation-event.message",status:"info"})}function Vo(n){return new Proxy(n,{get:(e,t)=>t==="pushState"?(r,s,o)=>{Do.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:t==="replaceState"?(r,s,o)=>{qo.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:e[t]})}class ar extends Map{get length(){return this.size}clear(){super.clear()}getItem(e){var t;return(t=super.get(e))!=null?t:null}key(){return null}removeItem(e){super.delete(e)}setItem(e,t){super.set(e,t)}}const Go=n=>n.tagName==="A";function Yo(n){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,s){const o=e.call(this,r,s);if(Go(o)){const c=()=>{var h;return n.notify({data:{href:Eo(n.location.origin,new URL(o.href,n.location.href)),target:(h=o.getAttribute("target"))!=null?h:"_self"},description:"notifications.anchor.description",message:"notifications.anchor.message",status:"info"})};Object.defineProperty(o,"click",{get(){return c},set:$t})}return o},()=>{Document.prototype.createElement=e}}function zo(n,e){let t=n.fetch.bind(n);const r={notify:$=>e.next($)},s=new ar,o=new ar,c=Object.assign(n,r),h=new Proxy(c,{get($,k,S){if(k==="fetch")return t;if(k==="history")return Vo.call($,$.history);if(k==="open")return Wo.bind($);if(k==="localStorage")return s;if(k==="sessionStorage")return o;const C=Reflect.get($,k);return typeof C!="function"?C:function(...I){return Reflect.apply(C,this===S?n:this,I)}},set($,k,S){return k==="fetch"?(t=S,!0):Reflect.set($,k,S)}}),m=Object.assign(c,{proxyWindow:h}),b=Yo(m);return{sandbox:m,unpatch:b}}var Jo=Object.defineProperty,Ko=(n,e,t)=>e in n?Jo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,cr=(n,e,t)=>(Ko(n,typeof e!="symbol"?e+"":e,t),t);function Qo(n,e){const{document:t}=n,r=t.createElement("div"),s="";r.style.display=s,r.style.position="fixed",r.style.width="100vw",r.style.height="100%",r.style.backgroundColor="rgba(10, 10, 10, 0.2)",r.style.zIndex=`${Is}`;const o=()=>r.style.display===s,c=()=>o()?r.style.display="none":r.style.display=s,h=e.pipe(et(m=>n.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__?m==="interact":!0)).subscribe(m=>{switch(m){case"interact":n.dispatchEvent(new Event("mousedown")),r.style.display="none";break;case"select":r.style.display=s;break;case 0:default:c();break}});return t.body.appendChild(r),{cleanup:()=>h.unsubscribe(),overlay:r}}const Xo=n=>{const e=n.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.height="inherit",n.body.appendChild(e),e};function Zo(n){const e=n;return Object.assign(n,{bootstrap:Ur.bind(e),mocks:{fetch:new Map},subscription:new he,unmount:Wr.bind(e),update:tn.bind(e)})}class ea{constructor(){cr(this,"_results",new Map),cr(this,"_queue",Promise.resolve())}add(e){const r=[...e].map(s=>{let o,c;const h=new Promise((m,b)=>{o=m,c=b});return this._queue=this._queue.then(()=>s()).then(m=>{o(m)}).catch(m=>c(m)),h});return Promise.allSettled(r)}get(e){return this._results.get(e)}}const ta=n=>e=>{e.forEach(t=>{t.status==="rejected"&&n.next({data:{reason:t.reason},description:"notifications.lifecycle.description",message:"notifications.lifecycle.message",status:"error"})})},na=n=>e=>{n.infos.next(e),e.forEach(({tag:t})=>n.uppercaseTags.add(t.toUpperCase()))},ra=(n,e,t)=>{const r=new ea,s=t.configuration.subscribe(o=>{const{configuration:c}=o,{content:h}=c;let m;if(o.type==="reset"){const{contexts:b,tags:$}=o;m=r.add([()=>Wr.call(n,e),()=>Ur.call(n,c,{addInfo:na(t),tags:$}),()=>Bo.call(n,b,o.tags),()=>tn.call(n,h,e)])}else{const{context:b}=o;m=r.add([()=>{var $,k,S;return(S=($=n.proxyWindow)==null?void 0:(k=$.fetch).update)==null?void 0:S.call(k,b)},()=>tn.call(n,h,e)])}m.then(ta(t.notification)).catch($t)});return()=>s.unsubscribe()},ia=n=>{const{body:e}=n;e.style.height="100%",e.style.padding="0",e.style.margin="0"},sa=(n,e)=>{const{location:{origin:t,port:r,protocol:s}}=n;return!(t!==e.origin||r!==e.port||s!==e.protocol)},oa=(n,e)=>{const t=Hr(n),{document:r,parent:s}=n;if(s===n)return;const o=n.fetch.bind(n);n.fetch=(c,h)=>{var m;const b=Fr(t,c);return sa(r,b)&&e.next({data:{method:(m=h==null?void 0:h.method)!=null?m:"GET",url:b.href.substring(b.origin.length)},description:"notifications.fetch-event.description",message:"notifications.fetch-event.message",status:"info"}),o(c,h)}};function aa(n,e){ia(n.document),oa(n,e.notification);const{cleanup:t}=Qo(n,e.mode.asObservable()),r=ys(n.document,e.focus.asObservable(),e.mode.asObservable()),s=Xo(n.document),o=Zo(n),{sandbox:c,unpatch:h}=zo(o,e.notification),m=ra(c,s,e);return{cleanup:()=>{m(),h(),r(),t()},sandboxedWindow:c}}const ca=n=>{ke.window=n};function la(n){const e=new he;return e.add(n.infos.subscribe(t=>{ke.send(window.parent,{content:t,type:"tag-info"})})),e.add(n.notification.subscribe(t=>{ke.send(window.parent,{content:t,type:"notification"})})),e.add(n.mode.subscribe(t=>{ke.send(window.parent,{content:{mode:t},type:"ctrl-space"})})),()=>e.unsubscribe()}function ua(n,...e){const t=e.map(({type:r,handler:s})=>(n.addEventListener(r,s),()=>n.removeEventListener(r,s)));return()=>{t.forEach(r=>r())}}function fa(n,e){n.addEventListener("unload",()=>{n.subscription.unsubscribe(),e.forEach(t=>t())})}(n=>{ca(n);const e=ke.recv(n),t=la(te),r=ua(n,{handler:ko(te),type:"keydown"},{handler:ir(n,"mousemove"),type:"mousemove"},{handler:ir(n,"mousedown"),type:"mousedown"},{handler:wo(n,te),type:"mousedown"}),{cleanup:s,sandboxedWindow:o}=aa(n,te);fa(o,[s,r,t,e])})(window);
|
|
@@ -4634,6 +4634,8 @@ var __publicField$3 = (obj, key, value) => {
|
|
|
4634
4634
|
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4635
4635
|
return value;
|
|
4636
4636
|
};
|
|
4637
|
+
const MIA_PREVIEW_ID = "__mia_preview_id";
|
|
4638
|
+
const OVERLAY_Z_INDEX = 1e6;
|
|
4637
4639
|
const keys = {
|
|
4638
4640
|
"click-element": 0,
|
|
4639
4641
|
"ctrl-space": 0,
|
|
@@ -4642,6 +4644,7 @@ const keys = {
|
|
|
4642
4644
|
mousemove: 1,
|
|
4643
4645
|
"new-configuration": 0,
|
|
4644
4646
|
notification: 0,
|
|
4647
|
+
options: 0,
|
|
4645
4648
|
"tag-info": 0,
|
|
4646
4649
|
update: 0
|
|
4647
4650
|
/* Default */
|
|
@@ -4712,10 +4715,13 @@ class PostChannel {
|
|
|
4712
4715
|
set instance(str) {
|
|
4713
4716
|
this.__instance = str;
|
|
4714
4717
|
}
|
|
4718
|
+
get window() {
|
|
4719
|
+
return this.__window;
|
|
4720
|
+
}
|
|
4715
4721
|
set window(win) {
|
|
4716
4722
|
this.__window = win;
|
|
4717
4723
|
}
|
|
4718
|
-
send(to, message, origin =
|
|
4724
|
+
send(to, message, origin = "*") {
|
|
4719
4725
|
this.__window !== to && this.postMessage(to, message, origin);
|
|
4720
4726
|
}
|
|
4721
4727
|
recv(window2) {
|
|
@@ -4729,8 +4735,6 @@ class PostChannel {
|
|
|
4729
4735
|
return () => window2.removeEventListener("message", listener2);
|
|
4730
4736
|
}
|
|
4731
4737
|
}
|
|
4732
|
-
const MIA_PREVIEW_ID = "__mia_preview_id";
|
|
4733
|
-
const OVERLAY_Z_INDEX = 1e6;
|
|
4734
4738
|
var t;
|
|
4735
4739
|
const i = window, s = i.trustedTypes, e = s ? s.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o = `lit$${(Math.random() + "").slice(9)}$`, n = "?" + o, l = `<${n}>`, h = document, r = (t2 = "") => h.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u = Array.isArray, c = (t2) => u(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a = /-->/g, f = />/g, _ = RegExp(`>|[
|
|
4736
4740
|
\f\r](?:([^\\s"'>=/]+)([
|
|
@@ -5454,8 +5458,19 @@ const nextMode = (mode) => {
|
|
|
5454
5458
|
return next;
|
|
5455
5459
|
};
|
|
5456
5460
|
const subjects = registerChannels();
|
|
5457
|
-
|
|
5461
|
+
function listener(message) {
|
|
5458
5462
|
switch (message.type) {
|
|
5463
|
+
case "options": {
|
|
5464
|
+
const { content: { disableOverlay, instance, redirectTo } } = message;
|
|
5465
|
+
if (disableOverlay) {
|
|
5466
|
+
Object.defineProperty(this.window, "__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__", { value: true });
|
|
5467
|
+
subjects.mode.next("interact");
|
|
5468
|
+
}
|
|
5469
|
+
instance && (this.instance = instance);
|
|
5470
|
+
const { window: { history } } = this;
|
|
5471
|
+
redirectTo && history.pushState(history.state, "", redirectTo);
|
|
5472
|
+
break;
|
|
5473
|
+
}
|
|
5459
5474
|
case "ctrl-space":
|
|
5460
5475
|
nextMode(subjects.mode);
|
|
5461
5476
|
break;
|
|
@@ -5469,7 +5484,7 @@ const listener = (message) => {
|
|
|
5469
5484
|
subjects.focus.next(message.content);
|
|
5470
5485
|
break;
|
|
5471
5486
|
}
|
|
5472
|
-
}
|
|
5487
|
+
}
|
|
5473
5488
|
const postChannel = new PostChannel(listener);
|
|
5474
5489
|
const fromErrorToNotification = (error2) => {
|
|
5475
5490
|
var _a;
|
|
@@ -5480,7 +5495,7 @@ const fromErrorToNotification = (error2) => {
|
|
|
5480
5495
|
status: "error"
|
|
5481
5496
|
};
|
|
5482
5497
|
};
|
|
5483
|
-
const errorHandler = (
|
|
5498
|
+
const errorHandler = (self2, error2) => postChannel.send(self2.parent, {
|
|
5484
5499
|
content: fromErrorToNotification(error2),
|
|
5485
5500
|
type: "notification"
|
|
5486
5501
|
});
|
|
@@ -5502,8 +5517,8 @@ function mouseEventFactory(self2, type) {
|
|
|
5502
5517
|
};
|
|
5503
5518
|
}
|
|
5504
5519
|
const isControlledElement = (tags, element) => tags.has(element.tagName) && element.hasAttribute(MIA_PREVIEW_ID);
|
|
5505
|
-
const mouseOnElementFactory = (
|
|
5506
|
-
const { document: document2 } =
|
|
5520
|
+
const mouseOnElementFactory = (self2, channels) => {
|
|
5521
|
+
const { document: document2 } = self2;
|
|
5507
5522
|
return (event) => {
|
|
5508
5523
|
let content;
|
|
5509
5524
|
if (isRealMouseEvent(event)) {
|
|
@@ -5518,7 +5533,7 @@ const mouseOnElementFactory = (window2, channels) => {
|
|
|
5518
5533
|
}, { ids: [], selectors: [] });
|
|
5519
5534
|
}
|
|
5520
5535
|
if (channels.mode.getValue() === "select" || content === void 0) {
|
|
5521
|
-
postChannel.send(
|
|
5536
|
+
postChannel.send(self2.parent, {
|
|
5522
5537
|
content: content && (content.ids.length > 0 ? content : void 0),
|
|
5523
5538
|
type: "click-element"
|
|
5524
5539
|
});
|
|
@@ -5961,7 +5976,14 @@ function appendOverlay(self2, mode$) {
|
|
|
5961
5976
|
overlay.style.zIndex = `${OVERLAY_Z_INDEX}`;
|
|
5962
5977
|
const isVisible = () => overlay.style.display === visibleOverlayDisplay;
|
|
5963
5978
|
const swap = () => isVisible() ? overlay.style.display = "none" : overlay.style.display = visibleOverlayDisplay;
|
|
5964
|
-
const subscription = mode$.
|
|
5979
|
+
const subscription = mode$.pipe(
|
|
5980
|
+
filter((next) => {
|
|
5981
|
+
if (self2.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__) {
|
|
5982
|
+
return next === "interact";
|
|
5983
|
+
}
|
|
5984
|
+
return true;
|
|
5985
|
+
})
|
|
5986
|
+
).subscribe((next) => {
|
|
5965
5987
|
switch (next) {
|
|
5966
5988
|
case "interact":
|
|
5967
5989
|
self2.dispatchEvent(new Event("mousedown"));
|
|
@@ -6106,13 +6128,10 @@ const interceptCORSFetch = (self2, notification) => {
|
|
|
6106
6128
|
return originalFetch(input, init2);
|
|
6107
6129
|
};
|
|
6108
6130
|
};
|
|
6109
|
-
function createComposerApplication(self2, channels
|
|
6131
|
+
function createComposerApplication(self2, channels) {
|
|
6110
6132
|
applyBodyStyle(self2.document);
|
|
6111
6133
|
interceptCORSFetch(self2, channels.notification);
|
|
6112
|
-
|
|
6113
|
-
if (!opts.disableOverlay) {
|
|
6114
|
-
overlayDisplaySubscriptionCleanup = appendOverlay(self2, channels.mode.asObservable()).cleanup;
|
|
6115
|
-
}
|
|
6134
|
+
const { cleanup: overlayDisplaySubscriptionCleanup } = appendOverlay(self2, channels.mode.asObservable());
|
|
6116
6135
|
const focusCleanup = focus(self2.document, channels.focus.asObservable(), channels.mode.asObservable());
|
|
6117
6136
|
const renderRoot = appendRenderRoot(self2.document);
|
|
6118
6137
|
const frame = createLifecycle(self2);
|
|
@@ -6128,25 +6147,8 @@ function createComposerApplication(self2, channels, opts) {
|
|
|
6128
6147
|
sandboxedWindow
|
|
6129
6148
|
};
|
|
6130
6149
|
}
|
|
6131
|
-
const getDisableOverlayAsBoolean = (input) => {
|
|
6132
|
-
if (input === null || input !== "" && input !== "true") {
|
|
6133
|
-
return false;
|
|
6134
|
-
}
|
|
6135
|
-
return true;
|
|
6136
|
-
};
|
|
6137
|
-
const redirect = (self2, input) => input !== null && self2.history.pushState(self2.history.state, "", input);
|
|
6138
6150
|
const init = (self2) => {
|
|
6139
|
-
var _a;
|
|
6140
|
-
const { location: location2 } = self2;
|
|
6141
|
-
const instance = (_a = new URL(location2.href).searchParams.get("_id")) != null ? _a : "";
|
|
6142
|
-
const disableOverlay = getDisableOverlayAsBoolean(new URL(location2.href).searchParams.get("disableOverlay"));
|
|
6143
|
-
postChannel.instance = instance;
|
|
6144
6151
|
postChannel.window = self2;
|
|
6145
|
-
redirect(self2, new URL(location2.href).searchParams.get("redirectTo"));
|
|
6146
|
-
return {
|
|
6147
|
-
disableOverlay,
|
|
6148
|
-
instance
|
|
6149
|
-
};
|
|
6150
6152
|
};
|
|
6151
6153
|
function registerSenders(chs) {
|
|
6152
6154
|
const subscription = new Subscription();
|
|
@@ -6198,7 +6200,7 @@ function registerCleanups(window2, fns) {
|
|
|
6198
6200
|
});
|
|
6199
6201
|
}
|
|
6200
6202
|
((self2) => {
|
|
6201
|
-
|
|
6203
|
+
init(self2);
|
|
6202
6204
|
const postChannelCleanup = postChannel.recv(self2);
|
|
6203
6205
|
const senderCleanup = registerSenders(subjects);
|
|
6204
6206
|
const listenerCleanup = registerEventListeners(
|
|
@@ -6211,7 +6213,7 @@ function registerCleanups(window2, fns) {
|
|
|
6211
6213
|
const {
|
|
6212
6214
|
cleanup: composerApplicationCleanup,
|
|
6213
6215
|
sandboxedWindow
|
|
6214
|
-
} = createComposerApplication(self2, subjects
|
|
6216
|
+
} = createComposerApplication(self2, subjects);
|
|
6215
6217
|
registerCleanups(
|
|
6216
6218
|
sandboxedWindow,
|
|
6217
6219
|
[
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dynamicImports": [
|
|
9
9
|
"../../.yarn/__virtual__/@micro-lc-composer-virtual-beb3920358/0/cache/@micro-lc-composer-npm-2.0.1-a61cc48378-15a765f5a0.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
|
|
10
10
|
],
|
|
11
|
-
"file": "assets/index-
|
|
11
|
+
"file": "assets/index-f8e4061b.js",
|
|
12
12
|
"isEntry": true,
|
|
13
13
|
"src": "index.html"
|
|
14
14
|
}
|
package/website/index.html
CHANGED
package/website/manifest.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dynamicImports": [
|
|
9
9
|
"../../.yarn/__virtual__/@micro-lc-composer-virtual-beb3920358/0/cache/@micro-lc-composer-npm-2.0.1-a61cc48378-15a765f5a0.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
|
|
10
10
|
],
|
|
11
|
-
"file": "assets/index-
|
|
11
|
+
"file": "assets/index-c49f9fe6.js",
|
|
12
12
|
"isEntry": true,
|
|
13
13
|
"src": "index.html"
|
|
14
14
|
}
|