mihari 7.6.3 → 7.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -3
- data/lib/mihari/config.rb +4 -0
- data/lib/mihari/sidekiq/application.rb +1 -0
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/assets/index-HxkDEHGe.js +1577 -0
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +388 -388
- data/mihari.gemspec +13 -13
- metadata +30 -30
- data/lib/mihari/web/public/assets/index-FQP-p7mX.js +0 -1563
@@ -1,1563 +0,0 @@
|
|
1
|
-
var xp=Object.defineProperty;var Cp=(e,t,n)=>t in e?xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ne=(e,t,n)=>Cp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const d of r.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerPolicy&&(r.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?r.credentials="include":a.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(a){if(a.ep)return;a.ep=!0;const r=n(a);fetch(a.href,r)}})();const Ul=()=>{};let Wa={},Uu={},ju=null,Vu={mark:Ul,measure:Ul};try{typeof window<"u"&&(Wa=window),typeof document<"u"&&(Uu=document),typeof MutationObserver<"u"&&(ju=MutationObserver),typeof performance<"u"&&(Vu=performance)}catch{}const{userAgent:jl=""}=Wa.navigator||{},On=Wa,nt=Uu,Vl=ju,Gr=Vu;On.document;const vn=!!nt.documentElement&&!!nt.head&&typeof nt.addEventListener=="function"&&typeof nt.createElement=="function",Gu=~jl.indexOf("MSIE")||~jl.indexOf("Trident/");var st="classic",Ku="duotone",Mt="sharp",Ot="sharp-duotone",Ap=[st,Ku,Mt,Ot],kp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Gl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Ep=["kit"],Rp=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Tp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Lp={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Mp={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},Op={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},Ip={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},Np={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},Fp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Yu={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Dp=["solid","regular","light","thin","duotone","brands"],Zu=[1,2,3,4,5,6,7,8,9,10],Pp=Zu.concat([11,12,13,14,15,16,17,18,19,20]),Yi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Wp=[...Object.keys(Ip),...Dp,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Yi.GROUP,Yi.SWAP_OPACITY,Yi.PRIMARY,Yi.SECONDARY].concat(Zu.map(e=>"".concat(e,"x"))).concat(Pp.map(e=>"w-".concat(e))),Bp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Hp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},zp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Kl={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const pn="___FONT_AWESOME___",Uo=16,Xu="fa",qu="svg-inline--fa",ii="data-fa-i2svg",jo="data-fa-pseudo-element",Up="data-fa-pseudo-element-pending",Ba="data-prefix",Ha="data-icon",Yl="fontawesome-i2svg",jp="async",Vp=["HTML","HEAD","STYLE","SCRIPT"],Qu=(()=>{try{return!0}catch{return!1}})(),Ju=[st,Mt,Ot];function Mr(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[st]}})}const eh={...Yu};eh[st]={...Yu[st],...Gl.kit,...Gl["kit-duotone"]};const qn=Mr(eh),Vo={...Fp};Vo[st]={...Vo[st],...Kl.kit,...Kl["kit-duotone"]};const lr=Mr(Vo),Go={...Np};Go[st]={...Go[st],...zp.kit};const Qn=Mr(Go),Ko={...Op};Ko[st]={...Ko[st],...Hp.kit};const Gp=Mr(Ko),Kp=Rp,th="fa-layers-text",Yp=Tp,Zp={...kp};Mr(Zp);const Xp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],vo=Yi,Ai=new Set;Object.keys(lr[st]).map(Ai.add.bind(Ai));Object.keys(lr[Mt]).map(Ai.add.bind(Ai));Object.keys(lr[Ot]).map(Ai.add.bind(Ai));const qp=[...Ep,...Wp],Ji=On.FontAwesomeConfig||{};function Qp(e){var t=nt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Jp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}nt&&typeof nt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,i]=t;const a=Jp(Qp(n));a!=null&&(Ji[i]=a)});const nh={styleDefault:"solid",familyDefault:"classic",cssPrefix:Xu,replacementClass:qu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ji.familyPrefix&&(Ji.cssPrefix=Ji.familyPrefix);const ki={...nh,...Ji};ki.autoReplaceSvg||(ki.observeMutations=!1);const _e={};Object.keys(nh).forEach(e=>{Object.defineProperty(_e,e,{enumerable:!0,set:function(t){ki[e]=t,er.forEach(n=>n(_e))},get:function(){return ki[e]}})});Object.defineProperty(_e,"familyPrefix",{enumerable:!0,set:function(e){ki.cssPrefix=e,er.forEach(t=>t(_e))},get:function(){return ki.cssPrefix}});On.FontAwesomeConfig=_e;const er=[];function eg(e){return er.push(e),()=>{er.splice(er.indexOf(e),1)}}const _n=Uo,Qt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tg(e){if(!e||!vn)return;const t=nt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=nt.head.childNodes;let i=null;for(let a=n.length-1;a>-1;a--){const r=n[a],d=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=r)}return nt.head.insertBefore(t,i),e}const ng="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function cr(){let e=12,t="";for(;e-- >0;)t+=ng[Math.random()*62|0];return t}function Di(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function za(e){return e.classList?Di(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function ih(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ig(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(ih(e[n]),'" '),"").trim()}function Ns(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ua(e){return e.size!==Qt.size||e.x!==Qt.x||e.y!==Qt.y||e.rotate!==Qt.rotate||e.flipX||e.flipY}function rg(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const a={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(r," ").concat(d," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:a,inner:l,path:p}}function sg(e){let{transform:t,width:n=Uo,height:i=Uo,startCentered:a=!1}=e,r="";return a&&Gu?r+="translate(".concat(t.x/_n-n/2,"em, ").concat(t.y/_n-i/2,"em) "):a?r+="translate(calc(-50% + ".concat(t.x/_n,"em), calc(-50% + ").concat(t.y/_n,"em)) "):r+="translate(".concat(t.x/_n,"em, ").concat(t.y/_n,"em) "),r+="scale(".concat(t.size/_n*(t.flipX?-1:1),", ").concat(t.size/_n*(t.flipY?-1:1),") "),r+="rotate(".concat(t.rotate,"deg) "),r}var og=`:root, :host {
|
2
|
-
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
3
|
-
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
4
|
-
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
5
|
-
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
6
|
-
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
7
|
-
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
8
|
-
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
9
|
-
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
10
|
-
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
11
|
-
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
12
|
-
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
13
|
-
}
|
14
|
-
|
15
|
-
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
16
|
-
overflow: visible;
|
17
|
-
box-sizing: content-box;
|
18
|
-
}
|
19
|
-
|
20
|
-
.svg-inline--fa {
|
21
|
-
display: var(--fa-display, inline-block);
|
22
|
-
height: 1em;
|
23
|
-
overflow: visible;
|
24
|
-
vertical-align: -0.125em;
|
25
|
-
}
|
26
|
-
.svg-inline--fa.fa-2xs {
|
27
|
-
vertical-align: 0.1em;
|
28
|
-
}
|
29
|
-
.svg-inline--fa.fa-xs {
|
30
|
-
vertical-align: 0em;
|
31
|
-
}
|
32
|
-
.svg-inline--fa.fa-sm {
|
33
|
-
vertical-align: -0.0714285705em;
|
34
|
-
}
|
35
|
-
.svg-inline--fa.fa-lg {
|
36
|
-
vertical-align: -0.2em;
|
37
|
-
}
|
38
|
-
.svg-inline--fa.fa-xl {
|
39
|
-
vertical-align: -0.25em;
|
40
|
-
}
|
41
|
-
.svg-inline--fa.fa-2xl {
|
42
|
-
vertical-align: -0.3125em;
|
43
|
-
}
|
44
|
-
.svg-inline--fa.fa-pull-left {
|
45
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
46
|
-
width: auto;
|
47
|
-
}
|
48
|
-
.svg-inline--fa.fa-pull-right {
|
49
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
50
|
-
width: auto;
|
51
|
-
}
|
52
|
-
.svg-inline--fa.fa-li {
|
53
|
-
width: var(--fa-li-width, 2em);
|
54
|
-
top: 0.25em;
|
55
|
-
}
|
56
|
-
.svg-inline--fa.fa-fw {
|
57
|
-
width: var(--fa-fw-width, 1.25em);
|
58
|
-
}
|
59
|
-
|
60
|
-
.fa-layers svg.svg-inline--fa {
|
61
|
-
bottom: 0;
|
62
|
-
left: 0;
|
63
|
-
margin: auto;
|
64
|
-
position: absolute;
|
65
|
-
right: 0;
|
66
|
-
top: 0;
|
67
|
-
}
|
68
|
-
|
69
|
-
.fa-layers-counter, .fa-layers-text {
|
70
|
-
display: inline-block;
|
71
|
-
position: absolute;
|
72
|
-
text-align: center;
|
73
|
-
}
|
74
|
-
|
75
|
-
.fa-layers {
|
76
|
-
display: inline-block;
|
77
|
-
height: 1em;
|
78
|
-
position: relative;
|
79
|
-
text-align: center;
|
80
|
-
vertical-align: -0.125em;
|
81
|
-
width: 1em;
|
82
|
-
}
|
83
|
-
.fa-layers svg.svg-inline--fa {
|
84
|
-
transform-origin: center center;
|
85
|
-
}
|
86
|
-
|
87
|
-
.fa-layers-text {
|
88
|
-
left: 50%;
|
89
|
-
top: 50%;
|
90
|
-
transform: translate(-50%, -50%);
|
91
|
-
transform-origin: center center;
|
92
|
-
}
|
93
|
-
|
94
|
-
.fa-layers-counter {
|
95
|
-
background-color: var(--fa-counter-background-color, #ff253a);
|
96
|
-
border-radius: var(--fa-counter-border-radius, 1em);
|
97
|
-
box-sizing: border-box;
|
98
|
-
color: var(--fa-inverse, #fff);
|
99
|
-
line-height: var(--fa-counter-line-height, 1);
|
100
|
-
max-width: var(--fa-counter-max-width, 5em);
|
101
|
-
min-width: var(--fa-counter-min-width, 1.5em);
|
102
|
-
overflow: hidden;
|
103
|
-
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
104
|
-
right: var(--fa-right, 0);
|
105
|
-
text-overflow: ellipsis;
|
106
|
-
top: var(--fa-top, 0);
|
107
|
-
transform: scale(var(--fa-counter-scale, 0.25));
|
108
|
-
transform-origin: top right;
|
109
|
-
}
|
110
|
-
|
111
|
-
.fa-layers-bottom-right {
|
112
|
-
bottom: var(--fa-bottom, 0);
|
113
|
-
right: var(--fa-right, 0);
|
114
|
-
top: auto;
|
115
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
116
|
-
transform-origin: bottom right;
|
117
|
-
}
|
118
|
-
|
119
|
-
.fa-layers-bottom-left {
|
120
|
-
bottom: var(--fa-bottom, 0);
|
121
|
-
left: var(--fa-left, 0);
|
122
|
-
right: auto;
|
123
|
-
top: auto;
|
124
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
125
|
-
transform-origin: bottom left;
|
126
|
-
}
|
127
|
-
|
128
|
-
.fa-layers-top-right {
|
129
|
-
top: var(--fa-top, 0);
|
130
|
-
right: var(--fa-right, 0);
|
131
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
132
|
-
transform-origin: top right;
|
133
|
-
}
|
134
|
-
|
135
|
-
.fa-layers-top-left {
|
136
|
-
left: var(--fa-left, 0);
|
137
|
-
right: auto;
|
138
|
-
top: var(--fa-top, 0);
|
139
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
140
|
-
transform-origin: top left;
|
141
|
-
}
|
142
|
-
|
143
|
-
.fa-1x {
|
144
|
-
font-size: 1em;
|
145
|
-
}
|
146
|
-
|
147
|
-
.fa-2x {
|
148
|
-
font-size: 2em;
|
149
|
-
}
|
150
|
-
|
151
|
-
.fa-3x {
|
152
|
-
font-size: 3em;
|
153
|
-
}
|
154
|
-
|
155
|
-
.fa-4x {
|
156
|
-
font-size: 4em;
|
157
|
-
}
|
158
|
-
|
159
|
-
.fa-5x {
|
160
|
-
font-size: 5em;
|
161
|
-
}
|
162
|
-
|
163
|
-
.fa-6x {
|
164
|
-
font-size: 6em;
|
165
|
-
}
|
166
|
-
|
167
|
-
.fa-7x {
|
168
|
-
font-size: 7em;
|
169
|
-
}
|
170
|
-
|
171
|
-
.fa-8x {
|
172
|
-
font-size: 8em;
|
173
|
-
}
|
174
|
-
|
175
|
-
.fa-9x {
|
176
|
-
font-size: 9em;
|
177
|
-
}
|
178
|
-
|
179
|
-
.fa-10x {
|
180
|
-
font-size: 10em;
|
181
|
-
}
|
182
|
-
|
183
|
-
.fa-2xs {
|
184
|
-
font-size: 0.625em;
|
185
|
-
line-height: 0.1em;
|
186
|
-
vertical-align: 0.225em;
|
187
|
-
}
|
188
|
-
|
189
|
-
.fa-xs {
|
190
|
-
font-size: 0.75em;
|
191
|
-
line-height: 0.0833333337em;
|
192
|
-
vertical-align: 0.125em;
|
193
|
-
}
|
194
|
-
|
195
|
-
.fa-sm {
|
196
|
-
font-size: 0.875em;
|
197
|
-
line-height: 0.0714285718em;
|
198
|
-
vertical-align: 0.0535714295em;
|
199
|
-
}
|
200
|
-
|
201
|
-
.fa-lg {
|
202
|
-
font-size: 1.25em;
|
203
|
-
line-height: 0.05em;
|
204
|
-
vertical-align: -0.075em;
|
205
|
-
}
|
206
|
-
|
207
|
-
.fa-xl {
|
208
|
-
font-size: 1.5em;
|
209
|
-
line-height: 0.0416666682em;
|
210
|
-
vertical-align: -0.125em;
|
211
|
-
}
|
212
|
-
|
213
|
-
.fa-2xl {
|
214
|
-
font-size: 2em;
|
215
|
-
line-height: 0.03125em;
|
216
|
-
vertical-align: -0.1875em;
|
217
|
-
}
|
218
|
-
|
219
|
-
.fa-fw {
|
220
|
-
text-align: center;
|
221
|
-
width: 1.25em;
|
222
|
-
}
|
223
|
-
|
224
|
-
.fa-ul {
|
225
|
-
list-style-type: none;
|
226
|
-
margin-left: var(--fa-li-margin, 2.5em);
|
227
|
-
padding-left: 0;
|
228
|
-
}
|
229
|
-
.fa-ul > li {
|
230
|
-
position: relative;
|
231
|
-
}
|
232
|
-
|
233
|
-
.fa-li {
|
234
|
-
left: calc(-1 * var(--fa-li-width, 2em));
|
235
|
-
position: absolute;
|
236
|
-
text-align: center;
|
237
|
-
width: var(--fa-li-width, 2em);
|
238
|
-
line-height: inherit;
|
239
|
-
}
|
240
|
-
|
241
|
-
.fa-border {
|
242
|
-
border-color: var(--fa-border-color, #eee);
|
243
|
-
border-radius: var(--fa-border-radius, 0.1em);
|
244
|
-
border-style: var(--fa-border-style, solid);
|
245
|
-
border-width: var(--fa-border-width, 0.08em);
|
246
|
-
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
247
|
-
}
|
248
|
-
|
249
|
-
.fa-pull-left {
|
250
|
-
float: left;
|
251
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
252
|
-
}
|
253
|
-
|
254
|
-
.fa-pull-right {
|
255
|
-
float: right;
|
256
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
257
|
-
}
|
258
|
-
|
259
|
-
.fa-beat {
|
260
|
-
animation-name: fa-beat;
|
261
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
262
|
-
animation-direction: var(--fa-animation-direction, normal);
|
263
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
264
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
265
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
266
|
-
}
|
267
|
-
|
268
|
-
.fa-bounce {
|
269
|
-
animation-name: fa-bounce;
|
270
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
271
|
-
animation-direction: var(--fa-animation-direction, normal);
|
272
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
273
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
274
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
275
|
-
}
|
276
|
-
|
277
|
-
.fa-fade {
|
278
|
-
animation-name: fa-fade;
|
279
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
280
|
-
animation-direction: var(--fa-animation-direction, normal);
|
281
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
282
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
283
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
284
|
-
}
|
285
|
-
|
286
|
-
.fa-beat-fade {
|
287
|
-
animation-name: fa-beat-fade;
|
288
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
289
|
-
animation-direction: var(--fa-animation-direction, normal);
|
290
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
291
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
292
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
293
|
-
}
|
294
|
-
|
295
|
-
.fa-flip {
|
296
|
-
animation-name: fa-flip;
|
297
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
298
|
-
animation-direction: var(--fa-animation-direction, normal);
|
299
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
300
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
301
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
302
|
-
}
|
303
|
-
|
304
|
-
.fa-shake {
|
305
|
-
animation-name: fa-shake;
|
306
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
307
|
-
animation-direction: var(--fa-animation-direction, normal);
|
308
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
309
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
310
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
311
|
-
}
|
312
|
-
|
313
|
-
.fa-spin {
|
314
|
-
animation-name: fa-spin;
|
315
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
316
|
-
animation-direction: var(--fa-animation-direction, normal);
|
317
|
-
animation-duration: var(--fa-animation-duration, 2s);
|
318
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
319
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
320
|
-
}
|
321
|
-
|
322
|
-
.fa-spin-reverse {
|
323
|
-
--fa-animation-direction: reverse;
|
324
|
-
}
|
325
|
-
|
326
|
-
.fa-pulse,
|
327
|
-
.fa-spin-pulse {
|
328
|
-
animation-name: fa-spin;
|
329
|
-
animation-direction: var(--fa-animation-direction, normal);
|
330
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
331
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
332
|
-
animation-timing-function: var(--fa-animation-timing, steps(8));
|
333
|
-
}
|
334
|
-
|
335
|
-
@media (prefers-reduced-motion: reduce) {
|
336
|
-
.fa-beat,
|
337
|
-
.fa-bounce,
|
338
|
-
.fa-fade,
|
339
|
-
.fa-beat-fade,
|
340
|
-
.fa-flip,
|
341
|
-
.fa-pulse,
|
342
|
-
.fa-shake,
|
343
|
-
.fa-spin,
|
344
|
-
.fa-spin-pulse {
|
345
|
-
animation-delay: -1ms;
|
346
|
-
animation-duration: 1ms;
|
347
|
-
animation-iteration-count: 1;
|
348
|
-
transition-delay: 0s;
|
349
|
-
transition-duration: 0s;
|
350
|
-
}
|
351
|
-
}
|
352
|
-
@keyframes fa-beat {
|
353
|
-
0%, 90% {
|
354
|
-
transform: scale(1);
|
355
|
-
}
|
356
|
-
45% {
|
357
|
-
transform: scale(var(--fa-beat-scale, 1.25));
|
358
|
-
}
|
359
|
-
}
|
360
|
-
@keyframes fa-bounce {
|
361
|
-
0% {
|
362
|
-
transform: scale(1, 1) translateY(0);
|
363
|
-
}
|
364
|
-
10% {
|
365
|
-
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
366
|
-
}
|
367
|
-
30% {
|
368
|
-
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
369
|
-
}
|
370
|
-
50% {
|
371
|
-
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
372
|
-
}
|
373
|
-
57% {
|
374
|
-
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
375
|
-
}
|
376
|
-
64% {
|
377
|
-
transform: scale(1, 1) translateY(0);
|
378
|
-
}
|
379
|
-
100% {
|
380
|
-
transform: scale(1, 1) translateY(0);
|
381
|
-
}
|
382
|
-
}
|
383
|
-
@keyframes fa-fade {
|
384
|
-
50% {
|
385
|
-
opacity: var(--fa-fade-opacity, 0.4);
|
386
|
-
}
|
387
|
-
}
|
388
|
-
@keyframes fa-beat-fade {
|
389
|
-
0%, 100% {
|
390
|
-
opacity: var(--fa-beat-fade-opacity, 0.4);
|
391
|
-
transform: scale(1);
|
392
|
-
}
|
393
|
-
50% {
|
394
|
-
opacity: 1;
|
395
|
-
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
396
|
-
}
|
397
|
-
}
|
398
|
-
@keyframes fa-flip {
|
399
|
-
50% {
|
400
|
-
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
401
|
-
}
|
402
|
-
}
|
403
|
-
@keyframes fa-shake {
|
404
|
-
0% {
|
405
|
-
transform: rotate(-15deg);
|
406
|
-
}
|
407
|
-
4% {
|
408
|
-
transform: rotate(15deg);
|
409
|
-
}
|
410
|
-
8%, 24% {
|
411
|
-
transform: rotate(-18deg);
|
412
|
-
}
|
413
|
-
12%, 28% {
|
414
|
-
transform: rotate(18deg);
|
415
|
-
}
|
416
|
-
16% {
|
417
|
-
transform: rotate(-22deg);
|
418
|
-
}
|
419
|
-
20% {
|
420
|
-
transform: rotate(22deg);
|
421
|
-
}
|
422
|
-
32% {
|
423
|
-
transform: rotate(-12deg);
|
424
|
-
}
|
425
|
-
36% {
|
426
|
-
transform: rotate(12deg);
|
427
|
-
}
|
428
|
-
40%, 100% {
|
429
|
-
transform: rotate(0deg);
|
430
|
-
}
|
431
|
-
}
|
432
|
-
@keyframes fa-spin {
|
433
|
-
0% {
|
434
|
-
transform: rotate(0deg);
|
435
|
-
}
|
436
|
-
100% {
|
437
|
-
transform: rotate(360deg);
|
438
|
-
}
|
439
|
-
}
|
440
|
-
.fa-rotate-90 {
|
441
|
-
transform: rotate(90deg);
|
442
|
-
}
|
443
|
-
|
444
|
-
.fa-rotate-180 {
|
445
|
-
transform: rotate(180deg);
|
446
|
-
}
|
447
|
-
|
448
|
-
.fa-rotate-270 {
|
449
|
-
transform: rotate(270deg);
|
450
|
-
}
|
451
|
-
|
452
|
-
.fa-flip-horizontal {
|
453
|
-
transform: scale(-1, 1);
|
454
|
-
}
|
455
|
-
|
456
|
-
.fa-flip-vertical {
|
457
|
-
transform: scale(1, -1);
|
458
|
-
}
|
459
|
-
|
460
|
-
.fa-flip-both,
|
461
|
-
.fa-flip-horizontal.fa-flip-vertical {
|
462
|
-
transform: scale(-1, -1);
|
463
|
-
}
|
464
|
-
|
465
|
-
.fa-rotate-by {
|
466
|
-
transform: rotate(var(--fa-rotate-angle, 0));
|
467
|
-
}
|
468
|
-
|
469
|
-
.fa-stack {
|
470
|
-
display: inline-block;
|
471
|
-
vertical-align: middle;
|
472
|
-
height: 2em;
|
473
|
-
position: relative;
|
474
|
-
width: 2.5em;
|
475
|
-
}
|
476
|
-
|
477
|
-
.fa-stack-1x,
|
478
|
-
.fa-stack-2x {
|
479
|
-
bottom: 0;
|
480
|
-
left: 0;
|
481
|
-
margin: auto;
|
482
|
-
position: absolute;
|
483
|
-
right: 0;
|
484
|
-
top: 0;
|
485
|
-
z-index: var(--fa-stack-z-index, auto);
|
486
|
-
}
|
487
|
-
|
488
|
-
.svg-inline--fa.fa-stack-1x {
|
489
|
-
height: 1em;
|
490
|
-
width: 1.25em;
|
491
|
-
}
|
492
|
-
.svg-inline--fa.fa-stack-2x {
|
493
|
-
height: 2em;
|
494
|
-
width: 2.5em;
|
495
|
-
}
|
496
|
-
|
497
|
-
.fa-inverse {
|
498
|
-
color: var(--fa-inverse, #fff);
|
499
|
-
}
|
500
|
-
|
501
|
-
.sr-only,
|
502
|
-
.fa-sr-only {
|
503
|
-
position: absolute;
|
504
|
-
width: 1px;
|
505
|
-
height: 1px;
|
506
|
-
padding: 0;
|
507
|
-
margin: -1px;
|
508
|
-
overflow: hidden;
|
509
|
-
clip: rect(0, 0, 0, 0);
|
510
|
-
white-space: nowrap;
|
511
|
-
border-width: 0;
|
512
|
-
}
|
513
|
-
|
514
|
-
.sr-only-focusable:not(:focus),
|
515
|
-
.fa-sr-only-focusable:not(:focus) {
|
516
|
-
position: absolute;
|
517
|
-
width: 1px;
|
518
|
-
height: 1px;
|
519
|
-
padding: 0;
|
520
|
-
margin: -1px;
|
521
|
-
overflow: hidden;
|
522
|
-
clip: rect(0, 0, 0, 0);
|
523
|
-
white-space: nowrap;
|
524
|
-
border-width: 0;
|
525
|
-
}
|
526
|
-
|
527
|
-
.svg-inline--fa .fa-primary {
|
528
|
-
fill: var(--fa-primary-color, currentColor);
|
529
|
-
opacity: var(--fa-primary-opacity, 1);
|
530
|
-
}
|
531
|
-
|
532
|
-
.svg-inline--fa .fa-secondary {
|
533
|
-
fill: var(--fa-secondary-color, currentColor);
|
534
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
535
|
-
}
|
536
|
-
|
537
|
-
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
538
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
539
|
-
}
|
540
|
-
|
541
|
-
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
542
|
-
opacity: var(--fa-primary-opacity, 1);
|
543
|
-
}
|
544
|
-
|
545
|
-
.svg-inline--fa mask .fa-primary,
|
546
|
-
.svg-inline--fa mask .fa-secondary {
|
547
|
-
fill: black;
|
548
|
-
}
|
549
|
-
|
550
|
-
.fad.fa-inverse,
|
551
|
-
.fa-duotone.fa-inverse {
|
552
|
-
color: var(--fa-inverse, #fff);
|
553
|
-
}`;function rh(){const e=Xu,t=qu,n=_e.cssPrefix,i=_e.replacementClass;let a=og;if(n!==e||i!==t){const r=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");a=a.replace(r,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(i))}return a}let Zl=!1;function yo(){_e.autoAddCss&&!Zl&&(tg(rh()),Zl=!0)}var ag={mixout(){return{dom:{css:rh,insertCss:yo}}},hooks(){return{beforeDOMElementCreation(){yo()},beforeI2svg(){yo()}}}};const gn=On||{};gn[pn]||(gn[pn]={});gn[pn].styles||(gn[pn].styles={});gn[pn].hooks||(gn[pn].hooks={});gn[pn].shims||(gn[pn].shims=[]);var Jt=gn[pn];const sh=[],oh=function(){nt.removeEventListener("DOMContentLoaded",oh),ps=1,sh.map(e=>e())};let ps=!1;vn&&(ps=(nt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(nt.readyState),ps||nt.addEventListener("DOMContentLoaded",oh));function lg(e){vn&&(ps?setTimeout(e,0):sh.push(e))}function Or(e){const{tag:t,attributes:n={},children:i=[]}=e;return typeof e=="string"?ih(e):"<".concat(t," ").concat(ig(n),">").concat(i.map(Or).join(""),"</").concat(t,">")}function Xl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var bo=function(t,n,i,a){var r=Object.keys(t),d=r.length,g=n,l,p,o;for(i===void 0?(l=1,o=t[r[0]]):(l=0,o=i);l<d;l++)p=r[l],o=g(o,t[p],p,t);return o};function cg(e){const t=[];let n=0;const i=e.length;for(;n<i;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){const r=e.charCodeAt(n++);(r&64512)==56320?t.push(((a&1023)<<10)+(r&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function Yo(e){const t=cg(e);return t.length===1?t[0].toString(16):null}function ug(e,t){const n=e.length;let i=e.charCodeAt(t),a;return i>=55296&&i<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function ql(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return!!i.icon?t[i.iconName]=i.icon:t[n]=i,t},{})}function Zo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=n,a=ql(t);typeof Jt.hooks.addPack=="function"&&!i?Jt.hooks.addPack(e,ql(t)):Jt.styles[e]={...Jt.styles[e]||{},...a},e==="fas"&&Zo("fa",t)}const{styles:Yn,shims:hg}=Jt,dg={[st]:Object.values(Qn[st]),[Mt]:Object.values(Qn[Mt]),[Ot]:Object.values(Qn[Ot])};let ja=null,ah={},lh={},ch={},uh={},hh={};const fg={[st]:Object.keys(qn[st]),[Mt]:Object.keys(qn[Mt]),[Ot]:Object.keys(qn[Ot])};function pg(e){return~qp.indexOf(e)}function gg(e,t){const n=t.split("-"),i=n[0],a=n.slice(1).join("-");return i===e&&a!==""&&!pg(a)?a:null}const dh=()=>{const e=i=>bo(Yn,(a,r,d)=>(a[d]=bo(r,i,{}),a),{});ah=e((i,a,r)=>(a[3]&&(i[a[3]]=r),a[2]&&a[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=r}),i)),lh=e((i,a,r)=>(i[r]=r,a[2]&&a[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=r}),i)),hh=e((i,a,r)=>{const d=a[2];return i[r]=r,d.forEach(g=>{i[g]=r}),i});const t="far"in Yn||_e.autoFetchSvg,n=bo(hg,(i,a)=>{const r=a[0];let d=a[1];const g=a[2];return d==="far"&&!t&&(d="fas"),typeof r=="string"&&(i.names[r]={prefix:d,iconName:g}),typeof r=="number"&&(i.unicodes[r.toString(16)]={prefix:d,iconName:g}),i},{names:{},unicodes:{}});ch=n.names,uh=n.unicodes,ja=Fs(_e.styleDefault,{family:_e.familyDefault})};eg(e=>{ja=Fs(e.styleDefault,{family:_e.familyDefault})});dh();function Va(e,t){return(ah[e]||{})[t]}function mg(e,t){return(lh[e]||{})[t]}function Tn(e,t){return(hh[e]||{})[t]}function fh(e){return ch[e]||{prefix:null,iconName:null}}function vg(e){const t=uh[e],n=Va("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function In(){return ja}const Ga=()=>({prefix:null,iconName:null,rest:[]});function Fs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=st}=t,i=qn[n][e],a=lr[n][e]||lr[n][i],r=e in Jt.styles?e:null;return a||r||null}const yg={[st]:Object.keys(Qn[st]),[Mt]:Object.keys(Qn[Mt]),[Ot]:Object.keys(Qn[Ot])};function Ds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,i={[st]:"".concat(_e.cssPrefix,"-").concat(st),[Mt]:"".concat(_e.cssPrefix,"-").concat(Mt),[Ot]:"".concat(_e.cssPrefix,"-").concat(Ot)};let a=null,r=st;const d=Ap.filter(l=>l!==Ku);d.forEach(l=>{(e.includes(i[l])||e.some(p=>yg[l].includes(p)))&&(r=l)});const g=e.reduce((l,p)=>{const o=gg(_e.cssPrefix,p);if(Yn[p]?(p=dg[r].includes(p)?Gp[r][p]:p,a=p,l.prefix=p):fg[r].indexOf(p)>-1?(a=p,l.prefix=Fs(p,{family:r})):o?l.iconName=o:p!==_e.replacementClass&&!d.some(s=>p===i[s])&&l.rest.push(p),!n&&l.prefix&&l.iconName){const s=a==="fa"?fh(l.iconName):{},c=Tn(l.prefix,l.iconName);s.prefix&&(a=null),l.iconName=s.iconName||c||l.iconName,l.prefix=s.prefix||l.prefix,l.prefix==="far"&&!Yn.far&&Yn.fas&&!_e.autoFetchSvg&&(l.prefix="fas")}return l},Ga());return(e.includes("fa-brands")||e.includes("fab"))&&(g.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(g.prefix="fad"),!g.prefix&&r===Mt&&(Yn.fass||_e.autoFetchSvg)&&(g.prefix="fass",g.iconName=Tn(g.prefix,g.iconName)||g.iconName),!g.prefix&&r===Ot&&(Yn.fasds||_e.autoFetchSvg)&&(g.prefix="fasds",g.iconName=Tn(g.prefix,g.iconName)||g.iconName),(g.prefix==="fa"||a==="fa")&&(g.prefix=In()||"fas"),g}class bg{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach(r=>{this.definitions[r]={...this.definitions[r]||{},...a[r]},Zo(r,a[r]);const d=Qn[st][r];d&&Zo(d,a[r]),dh()})}reset(){this.definitions={}}_pullDefinitions(t,n){const i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(a=>{const{prefix:r,iconName:d,icon:g}=i[a],l=g[2];t[r]||(t[r]={}),l.length>0&&l.forEach(p=>{typeof p=="string"&&(t[r][p]=g)}),t[r][d]=g}),t}}let Ql=[],vi={};const wi={},wg=Object.keys(wi);function _g(e,t){let{mixoutsTo:n}=t;return Ql=e,vi={},Object.keys(wi).forEach(i=>{wg.indexOf(i)===-1&&delete wi[i]}),Ql.forEach(i=>{const a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(r=>{typeof a[r]=="function"&&(n[r]=a[r]),typeof a[r]=="object"&&Object.keys(a[r]).forEach(d=>{n[r]||(n[r]={}),n[r][d]=a[r][d]})}),i.hooks){const r=i.hooks();Object.keys(r).forEach(d=>{vi[d]||(vi[d]=[]),vi[d].push(r[d])})}i.provides&&i.provides(wi)}),n}function Xo(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return(vi[e]||[]).forEach(d=>{t=d.apply(null,[t,...i])}),t}function ri(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(vi[e]||[]).forEach(r=>{r.apply(null,n)})}function Nn(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return wi[e]?wi[e].apply(null,t):void 0}function qo(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||In();if(t)return t=Tn(n,t)||t,Xl(ph.definitions,n,t)||Xl(Jt.styles,n,t)}const ph=new bg,Sg=()=>{_e.autoReplaceSvg=!1,_e.observeMutations=!1,ri("noAuto")},$g={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return vn?(ri("beforeI2svg",e),Nn("pseudoElements2svg",e),Nn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,lg(()=>{Cg({autoReplaceSvgRoot:t}),ri("watch",e)})}},xg={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Tn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Fs(e[0]);return{prefix:n,iconName:Tn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(_e.cssPrefix,"-"))>-1||e.match(Kp))){const t=Ds(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||In(),iconName:Tn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=In();return{prefix:t,iconName:Tn(t,e)||e}}}},Dt={noAuto:Sg,config:_e,dom:$g,parse:xg,library:ph,findIconDefinition:qo,toHtml:Or},Cg=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=nt}=e;(Object.keys(Jt.styles).length>0||_e.autoFetchSvg)&&vn&&_e.autoReplaceSvg&&Dt.dom.i2svg({node:t})};function Ps(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Or(n))}}),Object.defineProperty(e,"node",{get:function(){if(!vn)return;const n=nt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Ag(e){let{children:t,main:n,mask:i,attributes:a,styles:r,transform:d}=e;if(Ua(d)&&n.found&&!i.found){const{width:g,height:l}=n,p={x:g/l/2,y:.5};a.style=Ns({...r,"transform-origin":"".concat(p.x+d.x/16,"em ").concat(p.y+d.y/16,"em")})}return[{tag:"svg",attributes:a,children:t}]}function kg(e){let{prefix:t,iconName:n,children:i,attributes:a,symbol:r}=e;const d=r===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...a,id:d},children:i}]}]}function Ka(e){const{icons:{main:t,mask:n},prefix:i,iconName:a,transform:r,symbol:d,title:g,maskId:l,titleId:p,extra:o,watchable:s=!1}=e,{width:c,height:h}=n.found?n:t,u=i==="fak",f=[_e.replacementClass,a?"".concat(_e.cssPrefix,"-").concat(a):""].filter(S=>o.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(o.classes).join(" ");let m={children:[],attributes:{...o.attributes,"data-prefix":i,"data-icon":a,class:f,role:o.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c," ").concat(h)}};const v=u&&!~o.classes.indexOf("fa-fw")?{width:"".concat(c/h*16*.0625,"em")}:{};s&&(m.attributes[ii]=""),g&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(p||cr())},children:[g]}),delete m.attributes.title);const y={...m,prefix:i,iconName:a,main:t,mask:n,maskId:l,transform:r,symbol:d,styles:{...v,...o.styles}},{children:$,attributes:_}=n.found&&t.found?Nn("generateAbstractMask",y)||{children:[],attributes:{}}:Nn("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=$,y.attributes=_,d?kg(y):Ag(y)}function Jl(e){const{content:t,width:n,height:i,transform:a,title:r,extra:d,watchable:g=!1}=e,l={...d.attributes,...r?{title:r}:{},class:d.classes.join(" ")};g&&(l[ii]="");const p={...d.styles};Ua(a)&&(p.transform=sg({transform:a,startCentered:!0,width:n,height:i}),p["-webkit-transform"]=p.transform);const o=Ns(p);o.length>0&&(l.style=o);const s=[];return s.push({tag:"span",attributes:l,children:[t]}),r&&s.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),s}function Eg(e){const{content:t,title:n,extra:i}=e,a={...i.attributes,...n?{title:n}:{},class:i.classes.join(" ")},r=Ns(i.styles);r.length>0&&(a.style=r);const d=[];return d.push({tag:"span",attributes:a,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}const{styles:wo}=Jt;function Qo(e){const t=e[0],n=e[1],[i]=e.slice(4);let a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(vo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(vo.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(vo.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:a}}const Rg={found:!1,width:512,height:512};function Tg(e,t){!Qu&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Jo(e,t){let n=t;return t==="fa"&&_e.styleDefault!==null&&(t=In()),new Promise((i,a)=>{if(n==="fa"){const r=fh(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&wo[t]&&wo[t][e]){const r=wo[t][e];return i(Qo(r))}Tg(e,t),i({...Rg,icon:_e.showMissingIcons&&e?Nn("missingIconAbstract")||{}:{}})})}const ec=()=>{},ea=_e.measurePerformance&&Gr&&Gr.mark&&Gr.measure?Gr:{mark:ec,measure:ec},Zi='FA "6.6.0"',Lg=e=>(ea.mark("".concat(Zi," ").concat(e," begins")),()=>gh(e)),gh=e=>{ea.mark("".concat(Zi," ").concat(e," ends")),ea.measure("".concat(Zi," ").concat(e),"".concat(Zi," ").concat(e," begins"),"".concat(Zi," ").concat(e," ends"))};var Ya={begin:Lg,end:gh};const ns=()=>{};function tc(e){return typeof(e.getAttribute?e.getAttribute(ii):null)=="string"}function Mg(e){const t=e.getAttribute?e.getAttribute(Ba):null,n=e.getAttribute?e.getAttribute(Ha):null;return t&&n}function Og(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function Ig(){return _e.autoReplaceSvg===!0?is.replace:is[_e.autoReplaceSvg]||is.replace}function Ng(e){return nt.createElementNS("http://www.w3.org/2000/svg",e)}function Fg(e){return nt.createElement(e)}function mh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Ng:Fg}=t;if(typeof e=="string")return nt.createTextNode(e);const i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(r){i.setAttribute(r,e.attributes[r])}),(e.children||[]).forEach(function(r){i.appendChild(mh(r,{ceFn:n}))}),i}function Dg(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const is={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(mh(n),t)}),t.getAttribute(ii)===null&&_e.keepOriginalSource){let n=nt.createComment(Dg(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~za(t).indexOf(_e.replacementClass))return is.replace(e);const i=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const r=n[0].attributes.class.split(" ").reduce((d,g)=>(g===_e.replacementClass||g.match(i)?d.toSvg.push(g):d.toNode.push(g),d),{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}const a=n.map(r=>Or(r)).join(`
|
554
|
-
`);t.setAttribute(ii,""),t.innerHTML=a}};function nc(e){e()}function vh(e,t){const n=typeof t=="function"?t:ns;if(e.length===0)n();else{let i=nc;_e.mutateApproach===jp&&(i=On.requestAnimationFrame||nc),i(()=>{const a=Ig(),r=Ya.begin("mutate");e.map(a),r(),n()})}}let Za=!1;function yh(){Za=!0}function ta(){Za=!1}let gs=null;function ic(e){if(!Vl||!_e.observeMutations)return;const{treeCallback:t=ns,nodeCallback:n=ns,pseudoElementsCallback:i=ns,observeMutationsRoot:a=nt}=e;gs=new Vl(r=>{if(Za)return;const d=In();Di(r).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!tc(g.addedNodes[0])&&(_e.searchPseudoElements&&i(g.target),t(g.target)),g.type==="attributes"&&g.target.parentNode&&_e.searchPseudoElements&&i(g.target.parentNode),g.type==="attributes"&&tc(g.target)&&~Xp.indexOf(g.attributeName))if(g.attributeName==="class"&&Mg(g.target)){const{prefix:l,iconName:p}=Ds(za(g.target));g.target.setAttribute(Ba,l||d),p&&g.target.setAttribute(Ha,p)}else Og(g.target)&&n(g.target)})}),vn&&gs.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Pg(){gs&&gs.disconnect()}function Wg(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((i,a)=>{const r=a.split(":"),d=r[0],g=r.slice(1);return d&&g.length>0&&(i[d]=g.join(":").trim()),i},{})),n}function Bg(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let a=Ds(za(e));return a.prefix||(a.prefix=In()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=mg(a.prefix,e.innerText)||Va(a.prefix,Yo(e.innerText))),!a.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Hg(e){const t=Di(e.attributes).reduce((a,r)=>(a.name!=="class"&&a.name!=="style"&&(a[r.name]=r.value),a),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(i||cr()):(t["aria-hidden"]="true",t.focusable="false")),t}function zg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Qt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function rc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:a}=Bg(e),r=Hg(e),d=Xo("parseNodeAttributes",{},e);let g=t.styleParser?Wg(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Qt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:g,attributes:r},...d}}const{styles:Ug}=Jt;function bh(e){const t=_e.autoReplaceSvg==="nest"?rc(e,{styleParser:!1}):rc(e);return~t.extra.classes.indexOf(th)?Nn("generateLayersText",e,t):Nn("generateSvgReplacementMutation",e,t)}let nn=new Set;Ju.map(e=>{nn.add("fa-".concat(e))});Object.keys(qn[st]).map(nn.add.bind(nn));Object.keys(qn[Mt]).map(nn.add.bind(nn));Object.keys(qn[Ot]).map(nn.add.bind(nn));nn=[...nn];function sc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!vn)return Promise.resolve();const n=nt.documentElement.classList,i=o=>n.add("".concat(Yl,"-").concat(o)),a=o=>n.remove("".concat(Yl,"-").concat(o)),r=_e.autoFetchSvg?nn:Ju.map(o=>"fa-".concat(o)).concat(Object.keys(Ug));r.includes("fa")||r.push("fa");const d=[".".concat(th,":not([").concat(ii,"])")].concat(r.map(o=>".".concat(o,":not([").concat(ii,"])"))).join(", ");if(d.length===0)return Promise.resolve();let g=[];try{g=Di(e.querySelectorAll(d))}catch{}if(g.length>0)i("pending"),a("complete");else return Promise.resolve();const l=Ya.begin("onTree"),p=g.reduce((o,s)=>{try{const c=bh(s);c&&o.push(c)}catch(c){Qu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise((o,s)=>{Promise.all(p).then(c=>{vh(c,()=>{i("active"),i("complete"),a("pending"),typeof t=="function"&&t(),l(),o()})}).catch(c=>{l(),s(c)})})}function jg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bh(e).then(n=>{n&&vh([n],t)})}function Vg(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(t||{}).icon?t:qo(t||{});let{mask:a}=n;return a&&(a=(a||{}).icon?a:qo(a||{})),e(i,{...n,mask:a})}}const Gg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Qt,symbol:i=!1,mask:a=null,maskId:r=null,title:d=null,titleId:g=null,classes:l=[],attributes:p={},styles:o={}}=t;if(!e)return;const{prefix:s,iconName:c,icon:h}=e;return Ps({type:"icon",...e},()=>(ri("beforeDOMElementCreation",{iconDefinition:e,params:t}),_e.autoA11y&&(d?p["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(g||cr()):(p["aria-hidden"]="true",p.focusable="false")),Ka({icons:{main:Qo(h),mask:a?Qo(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:s,iconName:c,transform:{...Qt,...n},symbol:i,title:d,maskId:r,titleId:g,extra:{attributes:p,styles:o,classes:l}})))};var Kg={mixout(){return{icon:Vg(Gg)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=sc,e.nodeCallback=jg,e}}},provides(e){e.i2svg=function(t){const{node:n=nt,callback:i=()=>{}}=t;return sc(n,i)},e.generateSvgReplacementMutation=function(t,n){const{iconName:i,title:a,titleId:r,prefix:d,transform:g,symbol:l,mask:p,maskId:o,extra:s}=n;return new Promise((c,h)=>{Promise.all([Jo(i,d),p.iconName?Jo(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(u=>{let[f,m]=u;c([t,Ka({icons:{main:f,mask:m},prefix:d,iconName:i,transform:g,symbol:l,maskId:o,title:a,titleId:r,extra:s,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:i,main:a,transform:r,styles:d}=t;const g=Ns(d);g.length>0&&(i.style=g);let l;return Ua(r)&&(l=Nn("generateAbstractTransformGrouping",{main:a,transform:r,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:i}}}},Yg={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Ps({type:"layer"},()=>{ri("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e(a=>{Array.isArray(a)?a.map(r=>{i=i.concat(r.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(_e.cssPrefix,"-layers"),...n].join(" ")},children:i}]})}}}},Zg={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:i=[],attributes:a={},styles:r={}}=t;return Ps({type:"counter",content:e},()=>(ri("beforeDOMElementCreation",{content:e,params:t}),Eg({content:e.toString(),title:n,extra:{attributes:a,styles:r,classes:["".concat(_e.cssPrefix,"-layers-counter"),...i]}})))}}}},Xg={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Qt,title:i=null,classes:a=[],attributes:r={},styles:d={}}=t;return Ps({type:"text",content:e},()=>(ri("beforeDOMElementCreation",{content:e,params:t}),Jl({content:e,transform:{...Qt,...n},title:i,extra:{attributes:r,styles:d,classes:["".concat(_e.cssPrefix,"-layers-text"),...a]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:i,transform:a,extra:r}=n;let d=null,g=null;if(Gu){const l=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();d=p.width/l,g=p.height/l}return _e.autoA11y&&!i&&(r.attributes["aria-hidden"]="true"),Promise.resolve([t,Jl({content:t.innerHTML,width:d,height:g,transform:a,title:i,extra:r,watchable:!0})])}}};const qg=new RegExp('"',"ug"),oc=[1105920,1112319],ac={FontAwesome:{normal:"fas",400:"fas"},...Mp,...Lp,...Bp},na=Object.keys(ac).reduce((e,t)=>(e[t.toLowerCase()]=ac[t],e),{}),Qg=Object.keys(na).reduce((e,t)=>{const n=na[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Jg(e){const t=e.replace(qg,""),n=ug(t,0),i=n>=oc[0]&&n<=oc[1],a=t.length===2?t[0]===t[1]:!1;return{value:Yo(a?t[0]:t),isSecondary:i||a}}function em(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),a=isNaN(i)?"normal":i;return(na[n]||{})[a]||Qg[n]}function lc(e,t){const n="".concat(Up).concat(t.replace(":","-"));return new Promise((i,a)=>{if(e.getAttribute(n)!==null)return i();const d=Di(e.children).filter(c=>c.getAttribute(jo)===t)[0],g=On.getComputedStyle(e,t),l=g.getPropertyValue("font-family"),p=l.match(Yp),o=g.getPropertyValue("font-weight"),s=g.getPropertyValue("content");if(d&&!p)return e.removeChild(d),i();if(p&&s!=="none"&&s!==""){const c=g.getPropertyValue("content");let h=em(l,o);const{value:u,isSecondary:f}=Jg(c),m=p[0].startsWith("FontAwesome");let v=Va(h,u),y=v;if(m){const $=vg(u);$.iconName&&$.prefix&&(v=$.iconName,h=$.prefix)}if(v&&!f&&(!d||d.getAttribute(Ba)!==h||d.getAttribute(Ha)!==y)){e.setAttribute(n,y),d&&e.removeChild(d);const $=zg(),{extra:_}=$;_.attributes[jo]=t,Jo(v,h).then(S=>{const b=Ka({...$,icons:{main:S,mask:Ga()},prefix:h,iconName:y,extra:_,watchable:!0}),k=nt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=b.map(M=>Or(M)).join(`
|
555
|
-
`),e.removeAttribute(n),i()}).catch(a)}else i()}else i()})}function tm(e){return Promise.all([lc(e,"::before"),lc(e,"::after")])}function nm(e){return e.parentNode!==document.head&&!~Vp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(jo)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function cc(e){if(vn)return new Promise((t,n)=>{const i=Di(e.querySelectorAll("*")).filter(nm).map(tm),a=Ya.begin("searchPseudoElements");yh(),Promise.all(i).then(()=>{a(),ta(),t()}).catch(()=>{a(),ta(),n()})})}var im={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=cc,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=nt}=t;_e.searchPseudoElements&&cc(n)}}};let uc=!1;var rm={mixout(){return{dom:{unwatch(){yh(),uc=!0}}}},hooks(){return{bootstrap(){ic(Xo("mutationObserverCallbacks",{}))},noAuto(){Pg()},watch(e){const{observeMutationsRoot:t}=e;uc?ta():ic(Xo("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const hc=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,i)=>{const a=i.toLowerCase().split("-"),r=a[0];let d=a.slice(1).join("-");if(r&&d==="h")return n.flipX=!0,n;if(r&&d==="v")return n.flipY=!0,n;if(d=parseFloat(d),isNaN(d))return n;switch(r){case"grow":n.size=n.size+d;break;case"shrink":n.size=n.size-d;break;case"left":n.x=n.x-d;break;case"right":n.x=n.x+d;break;case"up":n.y=n.y-d;break;case"down":n.y=n.y+d;break;case"rotate":n.rotate=n.rotate+d;break}return n},t)};var sm={mixout(){return{parse:{transform:e=>hc(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=hc(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:i,containerWidth:a,iconWidth:r}=t;const d={transform:"translate(".concat(a/2," 256)")},g="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),o={transform:"".concat(g," ").concat(l," ").concat(p)},s={transform:"translate(".concat(r/2*-1," -256)")},c={outer:d,inner:o,path:s};return{tag:"g",attributes:{...c.outer},children:[{tag:"g",attributes:{...c.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...c.path}}]}]}}}};const _o={x:0,y:0,width:"100%",height:"100%"};function dc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function om(e){return e.tag==="g"?e.children:[e]}var am={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?Ds(n.split(" ").map(a=>a.trim())):Ga();return i.prefix||(i.prefix=In()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:i,main:a,mask:r,maskId:d,transform:g}=t;const{width:l,icon:p}=a,{width:o,icon:s}=r,c=rg({transform:g,containerWidth:o,iconWidth:l}),h={tag:"rect",attributes:{..._o,fill:"white"}},u=p.children?{children:p.children.map(dc)}:{},f={tag:"g",attributes:{...c.inner},children:[dc({tag:p.tag,attributes:{...p.attributes,...c.path},...u})]},m={tag:"g",attributes:{...c.outer},children:[f]},v="mask-".concat(d||cr()),y="clip-".concat(d||cr()),$={tag:"mask",attributes:{..._o,id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:om(s)},$]};return n.push(_,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")"),..._o}}),{children:n,attributes:i}}}},lm={provides(e){let t=!1;On.matchMedia&&(t=On.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...i,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const r={...a,attributeName:"opacity"},d={tag:"circle",attributes:{...i,cx:"256",cy:"364",r:"28"},children:[]};return t||d.children.push({tag:"animate",attributes:{...a,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...r,values:"1;0;1;1;0;1;"}}),n.push(d),n.push({tag:"path",attributes:{...i,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...r,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...i,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...r,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},cm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},um=[ag,Kg,Yg,Zg,Xg,im,rm,sm,am,lm,cm];_g(um,{mixoutsTo:Dt});Dt.noAuto;Dt.config;const hm=Dt.library;Dt.dom;const ia=Dt.parse;Dt.findIconDefinition;Dt.toHtml;const dm=Dt.icon;Dt.layer;Dt.text;Dt.counter;const fm={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},pm={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},gm=pm,mm={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64l32 0c35.3 0 64 28.7 64 64l0 3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74l0 1.4c0 17.7 14.3 32 32 32s32-14.3 32-32l0-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7l0-3.6c0-70.7-57.3-128-128-128l-32 0C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},vm={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},ym={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},bm=ym,wm={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zm64 112l0 160c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-160c0-8.8-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-320 0c-17.7 0-32-14.3-32-32l0-192z"]},_m={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},Sm={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},$m={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},wh={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},xm=wh,Cm={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Am={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},km=Am,Em={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},Rm={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},Tm={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Lm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Mm={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Om={prefix:"fas",iconName:"barcode",icon:[512,512,[],"f02a","M24 32C10.7 32 0 42.7 0 56L0 456c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24L64 56c0-13.3-10.7-24-24-24L24 32zm88 0c-8.8 0-16 7.2-16 16l0 416c0 8.8 7.2 16 16 16s16-7.2 16-16l0-416c0-8.8-7.2-16-16-16zm72 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0zm96 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0zM448 56l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm-64-8l0 416c0 8.8 7.2 16 16 16s16-7.2 16-16l0-416c0-8.8-7.2-16-16-16s-16 7.2-16 16z"]};/**
|
556
|
-
* @vue/shared v3.4.37
|
557
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
558
|
-
* @license MIT
|
559
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Xa(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const rt={},_i=[],Wt=()=>{},Im=()=>!1,Ws=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qa=e=>e.startsWith("onUpdate:"),vt=Object.assign,Qa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Nm=Object.prototype.hasOwnProperty,ze=(e,t)=>Nm.call(e,t),Oe=Array.isArray,Si=e=>Bs(e)==="[object Map]",_h=e=>Bs(e)==="[object Set]",Ie=e=>typeof e=="function",ct=e=>typeof e=="string",Hn=e=>typeof e=="symbol",it=e=>e!==null&&typeof e=="object",Sh=e=>(it(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),$h=Object.prototype.toString,Bs=e=>$h.call(e),Fm=e=>Bs(e).slice(8,-1),xh=e=>Bs(e)==="[object Object]",Ja=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tr=Xa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Dm=/-(\w)/g,Vt=Hs(e=>e.replace(Dm,(t,n)=>n?n.toUpperCase():"")),Pm=/\B([A-Z])/g,fi=Hs(e=>e.replace(Pm,"-$1").toLowerCase()),Ir=Hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),So=Hs(e=>e?`on${Ir(e)}`:""),Fn=(e,t)=>!Object.is(e,t),rs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ch=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},ra=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fc;const Ah=()=>fc||(fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function el(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],a=ct(i)?zm(i):el(i);if(a)for(const r in a)t[r]=a[r]}return t}else if(ct(e)||it(e))return e}const Wm=/;(?![^(]*\))/g,Bm=/:([^]+)/,Hm=/\/\*[^]*?\*\//g;function zm(e){const t={};return e.replace(Hm,"").split(Wm).forEach(n=>{if(n){const i=n.split(Bm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Nr(e){let t="";if(ct(e))t=e;else if(Oe(e))for(let n=0;n<e.length;n++){const i=Nr(e[n]);i&&(t+=i+" ")}else if(it(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Um="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jm=Xa(Um);function kh(e){return!!e||e===""}const Eh=e=>!!(e&&e.__v_isRef===!0),Se=e=>ct(e)?e:e==null?"":Oe(e)||it(e)&&(e.toString===$h||!Ie(e.toString))?Eh(e)?Se(e.value):JSON.stringify(e,Rh,2):String(e),Rh=(e,t)=>Eh(t)?Rh(e,t.value):Si(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,a],r)=>(n[$o(i,r)+" =>"]=a,n),{})}:_h(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$o(n))}:Hn(t)?$o(t):it(t)&&!Oe(t)&&!xh(t)?String(t):t,$o=(e,t="")=>{var n;return Hn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
560
|
-
* @vue/reactivity v3.4.37
|
561
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
562
|
-
* @license MIT
|
563
|
-
**/let Tt;class Th{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tt,!t&&Tt&&(this.index=(Tt.scopes||(Tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Tt;try{return Tt=this,t()}finally{Tt=n}}}on(){Tt=this}off(){Tt=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function Vm(e){return new Th(e)}function Gm(e,t=Tt){t&&t.active&&t.effects.push(e)}function Lh(){return Tt}function Km(e){Tt&&Tt.cleanups.push(e)}let Jn;class tl{constructor(t,n,i,a){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Gm(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,zn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ym(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Un()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ln,n=Jn;try{return Ln=!0,Jn=this,this._runnings++,pc(this),this.fn()}finally{gc(this),this._runnings--,Jn=n,Ln=t}}stop(){this.active&&(pc(this),gc(this),this.onStop&&this.onStop(),this.active=!1)}}function Ym(e){return e.value}function pc(e){e._trackId++,e._depsLength=0}function gc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Mh(e.deps[t],e);e.deps.length=e._depsLength}}function Mh(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ln=!0,sa=0;const Oh=[];function zn(){Oh.push(Ln),Ln=!1}function Un(){const e=Oh.pop();Ln=e===void 0?!0:e}function nl(){sa++}function il(){for(sa--;!sa&&oa.length;)oa.shift()()}function Ih(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&Mh(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const oa=[];function Nh(e,t,n){nl();for(const i of e.keys()){let a;i._dirtyLevel<t&&(a??(a=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(a??(a=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&oa.push(i.scheduler)))}il()}const Fh=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ms=new WeakMap,ei=Symbol(""),aa=Symbol("");function Et(e,t,n){if(Ln&&Jn){let i=ms.get(e);i||ms.set(e,i=new Map);let a=i.get(n);a||i.set(n,a=Fh(()=>i.delete(n))),Ih(Jn,a)}}function fn(e,t,n,i,a,r){const d=ms.get(e);if(!d)return;let g=[];if(t==="clear")g=[...d.values()];else if(n==="length"&&Oe(e)){const l=Number(i);d.forEach((p,o)=>{(o==="length"||!Hn(o)&&o>=l)&&g.push(p)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":Oe(e)?Ja(n)&&g.push(d.get("length")):(g.push(d.get(ei)),Si(e)&&g.push(d.get(aa)));break;case"delete":Oe(e)||(g.push(d.get(ei)),Si(e)&&g.push(d.get(aa)));break;case"set":Si(e)&&g.push(d.get(ei));break}nl();for(const l of g)l&&Nh(l,4);il()}function Zm(e,t){const n=ms.get(e);return n&&n.get(t)}const Xm=Xa("__proto__,__v_isRef,__isVue"),Dh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hn)),mc=qm();function qm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ve(this);for(let r=0,d=this.length;r<d;r++)Et(i,"get",r+"");const a=i[t](...n);return a===-1||a===!1?i[t](...n.map(Ve)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){zn(),nl();const i=Ve(this)[t].apply(this,n);return il(),Un(),i}}),e}function Qm(e){Hn(e)||(e=String(e));const t=Ve(this);return Et(t,"has",e),t.hasOwnProperty(e)}class Ph{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const a=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(a?r?hv:zh:r?Hh:Bh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const d=Oe(t);if(!a){if(d&&ze(mc,n))return Reflect.get(mc,n,i);if(n==="hasOwnProperty")return Qm}const g=Reflect.get(t,n,i);return(Hn(n)?Dh.has(n):Xm(n))||(a||Et(t,"get",n),r)?g:lt(g)?d&&Ja(n)?g:g.value:it(g)?a?Us(g):Pi(g):g}}class Wh extends Ph{constructor(t=!1){super(!1,t)}set(t,n,i,a){let r=t[n];if(!this._isShallow){const l=si(r);if(!Ei(i)&&!si(i)&&(r=Ve(r),i=Ve(i)),!Oe(t)&<(r)&&!lt(i))return l?!1:(r.value=i,!0)}const d=Oe(t)&&Ja(n)?Number(n)<t.length:ze(t,n),g=Reflect.set(t,n,i,a);return t===Ve(a)&&(d?Fn(i,r)&&fn(t,"set",n,i):fn(t,"add",n,i)),g}deleteProperty(t,n){const i=ze(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&i&&fn(t,"delete",n,void 0),a}has(t,n){const i=Reflect.has(t,n);return(!Hn(n)||!Dh.has(n))&&Et(t,"has",n),i}ownKeys(t){return Et(t,"iterate",Oe(t)?"length":ei),Reflect.ownKeys(t)}}class Jm extends Ph{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ev=new Wh,tv=new Jm,nv=new Wh(!0);const rl=e=>e,zs=e=>Reflect.getPrototypeOf(e);function Kr(e,t,n=!1,i=!1){e=e.__v_raw;const a=Ve(e),r=Ve(t);n||(Fn(t,r)&&Et(a,"get",t),Et(a,"get",r));const{has:d}=zs(a),g=i?rl:n?al:ur;if(d.call(a,t))return g(e.get(t));if(d.call(a,r))return g(e.get(r));e!==a&&e.get(t)}function Yr(e,t=!1){const n=this.__v_raw,i=Ve(n),a=Ve(e);return t||(Fn(e,a)&&Et(i,"has",e),Et(i,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Zr(e,t=!1){return e=e.__v_raw,!t&&Et(Ve(e),"iterate",ei),Reflect.get(e,"size",e)}function vc(e,t=!1){!t&&!Ei(e)&&!si(e)&&(e=Ve(e));const n=Ve(this);return zs(n).has.call(n,e)||(n.add(e),fn(n,"add",e,e)),this}function yc(e,t,n=!1){!n&&!Ei(t)&&!si(t)&&(t=Ve(t));const i=Ve(this),{has:a,get:r}=zs(i);let d=a.call(i,e);d||(e=Ve(e),d=a.call(i,e));const g=r.call(i,e);return i.set(e,t),d?Fn(t,g)&&fn(i,"set",e,t):fn(i,"add",e,t),this}function bc(e){const t=Ve(this),{has:n,get:i}=zs(t);let a=n.call(t,e);a||(e=Ve(e),a=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return a&&fn(t,"delete",e,void 0),r}function wc(){const e=Ve(this),t=e.size!==0,n=e.clear();return t&&fn(e,"clear",void 0,void 0),n}function Xr(e,t){return function(i,a){const r=this,d=r.__v_raw,g=Ve(d),l=t?rl:e?al:ur;return!e&&Et(g,"iterate",ei),d.forEach((p,o)=>i.call(a,l(p),l(o),r))}}function qr(e,t,n){return function(...i){const a=this.__v_raw,r=Ve(a),d=Si(r),g=e==="entries"||e===Symbol.iterator&&d,l=e==="keys"&&d,p=a[e](...i),o=n?rl:t?al:ur;return!t&&Et(r,"iterate",l?aa:ei),{next(){const{value:s,done:c}=p.next();return c?{value:s,done:c}:{value:g?[o(s[0]),o(s[1])]:o(s),done:c}},[Symbol.iterator](){return this}}}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function iv(){const e={get(r){return Kr(this,r)},get size(){return Zr(this)},has:Yr,add:vc,set:yc,delete:bc,clear:wc,forEach:Xr(!1,!1)},t={get(r){return Kr(this,r,!1,!0)},get size(){return Zr(this)},has:Yr,add(r){return vc.call(this,r,!0)},set(r,d){return yc.call(this,r,d,!0)},delete:bc,clear:wc,forEach:Xr(!1,!0)},n={get(r){return Kr(this,r,!0)},get size(){return Zr(this,!0)},has(r){return Yr.call(this,r,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:Xr(!0,!1)},i={get(r){return Kr(this,r,!0,!0)},get size(){return Zr(this,!0)},has(r){return Yr.call(this,r,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:Xr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=qr(r,!1,!1),n[r]=qr(r,!0,!1),t[r]=qr(r,!1,!0),i[r]=qr(r,!0,!0)}),[e,n,t,i]}const[rv,sv,ov,av]=iv();function sl(e,t){const n=t?e?av:ov:e?sv:rv;return(i,a,r)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(ze(n,a)&&a in i?n:i,a,r)}const lv={get:sl(!1,!1)},cv={get:sl(!1,!0)},uv={get:sl(!0,!1)};const Bh=new WeakMap,Hh=new WeakMap,zh=new WeakMap,hv=new WeakMap;function dv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fv(e){return e.__v_skip||!Object.isExtensible(e)?0:dv(Fm(e))}function Pi(e){return si(e)?e:ol(e,!1,ev,lv,Bh)}function Uh(e){return ol(e,!1,nv,cv,Hh)}function Us(e){return ol(e,!0,tv,uv,zh)}function ol(e,t,n,i,a){if(!it(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=a.get(e);if(r)return r;const d=fv(e);if(d===0)return e;const g=new Proxy(e,d===2?i:n);return a.set(e,g),g}function nr(e){return si(e)?nr(e.__v_raw):!!(e&&e.__v_isReactive)}function si(e){return!!(e&&e.__v_isReadonly)}function Ei(e){return!!(e&&e.__v_isShallow)}function jh(e){return e?!!e.__v_raw:!1}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}function Vh(e){return Object.isExtensible(e)&&Ch(e,"__v_skip",!0),e}const ur=e=>it(e)?Pi(e):e,al=e=>it(e)?Us(e):e;class Gh{constructor(t,n,i,a){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new tl(()=>t(this._value),()=>ir(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){const t=Ve(this);return(!t._cacheable||t.effect.dirty)&&Fn(t._value,t._value=t.effect.run())&&ir(t,4),ll(t),t.effect._dirtyLevel>=2&&ir(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function pv(e,t,n=!1){let i,a;const r=Ie(e);return r?(i=e,a=Wt):(i=e.get,a=e.set),new Gh(i,a,r||!a,n)}function ll(e){var t;Ln&&Jn&&(e=Ve(e),Ih(Jn,(t=e.dep)!=null?t:e.dep=Fh(()=>e.dep=void 0,e instanceof Gh?e:void 0)))}function ir(e,t=4,n,i){e=Ve(e);const a=e.dep;a&&Nh(a,t)}function lt(e){return!!(e&&e.__v_isRef===!0)}function Ue(e){return Yh(e,!1)}function Kh(e){return Yh(e,!0)}function Yh(e,t){return lt(e)?e:new gv(e,t)}class gv{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ve(t),this._value=n?t:ur(t)}get value(){return ll(this),this._value}set value(t){const n=this.__v_isShallow||Ei(t)||si(t);t=n?t:Ve(t),Fn(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:ur(t),ir(this,4))}}function ce(e){return lt(e)?e.value:e}const mv={get:(e,t,n)=>ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const a=e[t];return lt(a)&&!lt(n)?(a.value=n,!0):Reflect.set(e,t,n,i)}};function Zh(e){return nr(e)?e:new Proxy(e,mv)}class vv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>ll(this),()=>ir(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Xh(e){return new vv(e)}class yv{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Zm(Ve(this._object),this._key)}}class bv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function cl(e,t,n){return lt(e)?e:Ie(e)?new bv(e):it(e)&&arguments.length>1?wv(e,t,n):Ue(e)}function wv(e,t,n){const i=e[t];return lt(i)?i:new yv(e,t,n)}/**
|
564
|
-
* @vue/runtime-core v3.4.37
|
565
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
566
|
-
* @license MIT
|
567
|
-
**/function Mn(e,t,n,i){try{return i?e(...i):e()}catch(a){js(a,t,n)}}function Ht(e,t,n,i){if(Ie(e)){const a=Mn(e,t,n,i);return a&&Sh(a)&&a.catch(r=>{js(r,t,n)}),a}if(Oe(e)){const a=[];for(let r=0;r<e.length;r++)a.push(Ht(e[r],t,n,i));return a}}function js(e,t,n,i=!0){const a=t?t.vnode:null;if(t){let r=t.parent;const d=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const p=r.ec;if(p){for(let o=0;o<p.length;o++)if(p[o](e,d,g)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){zn(),Mn(l,null,10,[e,d,g]),Un();return}}_v(e,n,a,i)}function _v(e,t,n,i=!0){console.error(e)}let hr=!1,la=!1;const mt=[];let qt=0;const $i=[];let Cn=null,Zn=0;const qh=Promise.resolve();let ul=null;function Fr(e){const t=ul||qh;return e?t.then(this?e.bind(this):e):t}function Sv(e){let t=qt+1,n=mt.length;for(;t<n;){const i=t+n>>>1,a=mt[i],r=dr(a);r<e||r===e&&a.pre?t=i+1:n=i}return t}function hl(e){(!mt.length||!mt.includes(e,hr&&e.allowRecurse?qt+1:qt))&&(e.id==null?mt.push(e):mt.splice(Sv(e.id),0,e),Qh())}function Qh(){!hr&&!la&&(la=!0,ul=qh.then(ed))}function $v(e){const t=mt.indexOf(e);t>qt&&mt.splice(t,1)}function xv(e){Oe(e)?$i.push(...e):(!Cn||!Cn.includes(e,e.allowRecurse?Zn+1:Zn))&&$i.push(e),Qh()}function _c(e,t,n=hr?qt+1:0){for(;n<mt.length;n++){const i=mt[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;mt.splice(n,1),n--,i()}}}function Jh(e){if($i.length){const t=[...new Set($i)].sort((n,i)=>dr(n)-dr(i));if($i.length=0,Cn){Cn.push(...t);return}for(Cn=t,Zn=0;Zn<Cn.length;Zn++){const n=Cn[Zn];n.active!==!1&&n()}Cn=null,Zn=0}}const dr=e=>e.id==null?1/0:e.id,Cv=(e,t)=>{const n=dr(e)-dr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ed(e){la=!1,hr=!0,mt.sort(Cv);try{for(qt=0;qt<mt.length;qt++){const t=mt[qt];t&&t.active!==!1&&Mn(t,t.i,t.i?15:14)}}finally{qt=0,mt.length=0,Jh(),hr=!1,ul=null,(mt.length||$i.length)&&ed()}}let At=null,Vs=null;function vs(e){const t=At;return At=e,Vs=e&&e.type.__scopeId||null,t}function dl(e){Vs=e}function fl(){Vs=null}function et(e,t=At,n){if(!t||e._n)return e;const i=(...a)=>{i._d&&Tc(-1);const r=vs(t);let d;try{d=e(...a)}finally{vs(r),i._d&&Tc(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function pl(e,t){if(At===null)return e;const n=Xs(At),i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[r,d,g,l=rt]=t[a];r&&(Ie(r)&&(r={mounted:r,updated:r}),r.deep&&En(d),i.push({dir:r,instance:n,value:d,oldValue:void 0,arg:g,modifiers:l}))}return e}function jn(e,t,n,i){const a=e.dirs,r=t&&t.dirs;for(let d=0;d<a.length;d++){const g=a[d];r&&(g.oldValue=r[d].value);let l=g.dir[i];l&&(zn(),Ht(l,n,8,[e.el,g,e,t]),Un())}}function td(e,t){e.shapeFlag&6&&e.component?td(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return Ie(e)?vt({name:e.name},t,{setup:e}):e}const ss=e=>!!e.type.__asyncLoader,nd=e=>e.type.__isKeepAlive;function Av(e,t){id(e,"a",t)}function kv(e,t){id(e,"da",t)}function id(e,t,n=ft){const i=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Gs(t,i,n),n){let a=n.parent;for(;a&&a.parent;)nd(a.parent.vnode)&&Ev(i,t,n,a),a=a.parent}}function Ev(e,t,n,i){const a=Gs(t,e,i,!0);rd(()=>{Qa(i[t],a)},n)}function Gs(e,t,n=ft,i=!1){if(n){const a=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...d)=>{zn();const g=Dr(n),l=Ht(t,n,e,d);return g(),Un(),l});return i?a.unshift(r):a.push(r),r}}const yn=e=>(t,n=ft)=>{(!Zs||e==="sp")&&Gs(e,(...i)=>t(...i),n)},Rv=yn("bm"),at=yn("m"),Tv=yn("bu"),Lv=yn("u"),gl=yn("bum"),rd=yn("um"),Mv=yn("sp"),Ov=yn("rtg"),Iv=yn("rtc");function Nv(e,t=ft){Gs("ec",e,t)}const Fv="components";function Ye(e,t){return Pv(Fv,e,!0,t)||e}const Dv=Symbol.for("v-ndc");function Pv(e,t,n=!0,i=!1){const a=At||ft;if(a){const r=a.type;{const g=ky(r,!1);if(g&&(g===t||g===Vt(t)||g===Ir(Vt(t))))return r}const d=Sc(a[e]||r[e],t)||Sc(a.appContext[e],t);return!d&&i?r:d}}function Sc(e,t){return e&&(e[t]||e[Vt(t)]||e[Ir(Vt(t))])}function Ft(e,t,n,i){let a;const r=n;if(Oe(e)||ct(e)){a=new Array(e.length);for(let d=0,g=e.length;d<g;d++)a[d]=t(e[d],d,void 0,r)}else if(typeof e=="number"){a=new Array(e);for(let d=0;d<e;d++)a[d]=t(d+1,d,void 0,r)}else if(it(e))if(e[Symbol.iterator])a=Array.from(e,(d,g)=>t(d,g,void 0,r));else{const d=Object.keys(e);a=new Array(d.length);for(let g=0,l=d.length;g<l;g++){const p=d[g];a[g]=t(e[p],p,g,r)}}else a=[];return a}const ca=e=>e?Sd(e)?Xs(e):ca(e.parent):null,rr=vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ca(e.parent),$root:e=>ca(e.root),$emit:e=>e.emit,$options:e=>ml(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,hl(e.update)}),$nextTick:e=>e.n||(e.n=Fr.bind(e.proxy)),$watch:e=>ay.bind(e)}),xo=(e,t)=>e!==rt&&!e.__isScriptSetup&&ze(e,t),Wv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:a,props:r,accessCache:d,type:g,appContext:l}=e;let p;if(t[0]!=="$"){const h=d[t];if(h!==void 0)switch(h){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return r[t]}else{if(xo(i,t))return d[t]=1,i[t];if(a!==rt&&ze(a,t))return d[t]=2,a[t];if((p=e.propsOptions[0])&&ze(p,t))return d[t]=3,r[t];if(n!==rt&&ze(n,t))return d[t]=4,n[t];ua&&(d[t]=0)}}const o=rr[t];let s,c;if(o)return t==="$attrs"&&Et(e.attrs,"get",""),o(e);if((s=g.__cssModules)&&(s=s[t]))return s;if(n!==rt&&ze(n,t))return d[t]=4,n[t];if(c=l.config.globalProperties,ze(c,t))return c[t]},set({_:e},t,n){const{data:i,setupState:a,ctx:r}=e;return xo(a,t)?(a[t]=n,!0):i!==rt&&ze(i,t)?(i[t]=n,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,propsOptions:r}},d){let g;return!!n[d]||e!==rt&&ze(e,d)||xo(t,d)||(g=r[0])&&ze(g,d)||ze(i,d)||ze(rr,d)||ze(a.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $c(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ua=!0;function Bv(e){const t=ml(e),n=e.proxy,i=e.ctx;ua=!1,t.beforeCreate&&xc(t.beforeCreate,e,"bc");const{data:a,computed:r,methods:d,watch:g,provide:l,inject:p,created:o,beforeMount:s,mounted:c,beforeUpdate:h,updated:u,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:$,unmounted:_,render:S,renderTracked:b,renderTriggered:k,errorCaptured:M,serverPrefetch:L,expose:T,inheritAttrs:E,components:C,directives:x,filters:w}=t;if(p&&Hv(p,i,null),d)for(const O in d){const I=d[O];Ie(I)&&(i[O]=I.bind(n))}if(a){const O=a.call(n,n);it(O)&&(e.data=Pi(O))}if(ua=!0,r)for(const O in r){const I=r[O],N=Ie(I)?I.bind(n,n):Ie(I.get)?I.get.bind(n,n):Wt,D=!Ie(I)&&Ie(I.set)?I.set.bind(n):Wt,H=Ee({get:N,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>H.value,set:j=>H.value=j})}if(g)for(const O in g)sd(g[O],i,n,O);if(l){const O=Ie(l)?l.call(n):l;Reflect.ownKeys(O).forEach(I=>{os(I,O[I])})}o&&xc(o,e,"c");function R(O,I){Oe(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(R(Rv,s),R(at,c),R(Tv,h),R(Lv,u),R(Av,f),R(kv,m),R(Nv,M),R(Iv,b),R(Ov,k),R(gl,y),R(rd,_),R(Mv,L),Oe(T))if(T.length){const O=e.exposed||(e.exposed={});T.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});S&&e.render===Wt&&(e.render=S),E!=null&&(e.inheritAttrs=E),C&&(e.components=C),x&&(e.directives=x)}function Hv(e,t,n=Wt){Oe(e)&&(e=ha(e));for(const i in e){const a=e[i];let r;it(a)?"default"in a?r=zt(a.from||i,a.default,!0):r=zt(a.from||i):r=zt(a),lt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:d=>r.value=d}):t[i]=r}}function xc(e,t,n){Ht(Oe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function sd(e,t,n,i){const a=i.includes(".")?yd(n,i):()=>n[i];if(ct(e)){const r=t[e];Ie(r)&&qe(a,r)}else if(Ie(e))qe(a,e.bind(n));else if(it(e))if(Oe(e))e.forEach(r=>sd(r,t,n,i));else{const r=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(r)&&qe(a,r,e)}}function ml(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:a,optionsCache:r,config:{optionMergeStrategies:d}}=e.appContext,g=r.get(t);let l;return g?l=g:!a.length&&!n&&!i?l=t:(l={},a.length&&a.forEach(p=>ys(l,p,d,!0)),ys(l,t,d)),it(t)&&r.set(t,l),l}function ys(e,t,n,i=!1){const{mixins:a,extends:r}=t;r&&ys(e,r,n,!0),a&&a.forEach(d=>ys(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=zv[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const zv={data:Cc,props:Ac,emits:Ac,methods:Xi,computed:Xi,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:Xi,directives:Xi,watch:jv,provide:Cc,inject:Uv};function Cc(e,t){return t?e?function(){return vt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function Uv(e,t){return Xi(ha(e),ha(t))}function ha(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _t(e,t){return e?[...new Set([].concat(e,t))]:t}function Xi(e,t){return e?vt(Object.create(null),e,t):t}function Ac(e,t){return e?Oe(e)&&Oe(t)?[...new Set([...e,...t])]:vt(Object.create(null),$c(e),$c(t??{})):t}function jv(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const i in t)n[i]=_t(e[i],t[i]);return n}function od(){return{app:null,config:{isNativeTag:Im,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vv=0;function Gv(e,t){return function(i,a=null){Ie(i)||(i=vt({},i)),a!=null&&!it(a)&&(a=null);const r=od(),d=new WeakSet;let g=!1;const l=r.app={_uid:Vv++,_component:i,_props:a,_container:null,_context:r,_instance:null,version:Ry,get config(){return r.config},set config(p){},use(p,...o){return d.has(p)||(p&&Ie(p.install)?(d.add(p),p.install(l,...o)):Ie(p)&&(d.add(p),p(l,...o))),l},mixin(p){return r.mixins.includes(p)||r.mixins.push(p),l},component(p,o){return o?(r.components[p]=o,l):r.components[p]},directive(p,o){return o?(r.directives[p]=o,l):r.directives[p]},mount(p,o,s){if(!g){const c=ae(i,a);return c.appContext=r,s===!0?s="svg":s===!1&&(s=void 0),o&&t?t(c,p):e(c,p,s),g=!0,l._container=p,p.__vue_app__=l,Xs(c.component)}},unmount(){g&&(e(null,l._container),delete l._container.__vue_app__)},provide(p,o){return r.provides[p]=o,l},runWithContext(p){const o=xi;xi=l;try{return p()}finally{xi=o}}};return l}}let xi=null;function os(e,t){if(ft){let n=ft.provides;const i=ft.parent&&ft.parent.provides;i===n&&(n=ft.provides=Object.create(i)),n[e]=t}}function zt(e,t,n=!1){const i=ft||At;if(i||xi){const a=xi?xi._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Ie(t)?t.call(i&&i.proxy):t}}const ad={},ld=()=>Object.create(ad),cd=e=>Object.getPrototypeOf(e)===ad;function Kv(e,t,n,i=!1){const a={},r=ld();e.propsDefaults=Object.create(null),ud(e,t,a,r);for(const d in e.propsOptions[0])d in a||(a[d]=void 0);n?e.props=i?a:Uh(a):e.type.props?e.props=a:e.props=r,e.attrs=r}function Yv(e,t,n,i){const{props:a,attrs:r,vnode:{patchFlag:d}}=e,g=Ve(a),[l]=e.propsOptions;let p=!1;if((i||d>0)&&!(d&16)){if(d&8){const o=e.vnode.dynamicProps;for(let s=0;s<o.length;s++){let c=o[s];if(Ks(e.emitsOptions,c))continue;const h=t[c];if(l)if(ze(r,c))h!==r[c]&&(r[c]=h,p=!0);else{const u=Vt(c);a[u]=da(l,g,u,h,e,!1)}else h!==r[c]&&(r[c]=h,p=!0)}}}else{ud(e,t,a,r)&&(p=!0);let o;for(const s in g)(!t||!ze(t,s)&&((o=fi(s))===s||!ze(t,o)))&&(l?n&&(n[s]!==void 0||n[o]!==void 0)&&(a[s]=da(l,g,s,void 0,e,!0)):delete a[s]);if(r!==g)for(const s in r)(!t||!ze(t,s))&&(delete r[s],p=!0)}p&&fn(e.attrs,"set","")}function ud(e,t,n,i){const[a,r]=e.propsOptions;let d=!1,g;if(t)for(let l in t){if(tr(l))continue;const p=t[l];let o;a&&ze(a,o=Vt(l))?!r||!r.includes(o)?n[o]=p:(g||(g={}))[o]=p:Ks(e.emitsOptions,l)||(!(l in i)||p!==i[l])&&(i[l]=p,d=!0)}if(r){const l=Ve(n),p=g||rt;for(let o=0;o<r.length;o++){const s=r[o];n[s]=da(a,l,s,p[s],e,!ze(p,s))}}return d}function da(e,t,n,i,a,r){const d=e[n];if(d!=null){const g=ze(d,"default");if(g&&i===void 0){const l=d.default;if(d.type!==Function&&!d.skipFactory&&Ie(l)){const{propsDefaults:p}=a;if(n in p)i=p[n];else{const o=Dr(a);i=p[n]=l.call(null,t),o()}}else i=l}d[0]&&(r&&!g?i=!1:d[1]&&(i===""||i===fi(n))&&(i=!0))}return i}const Zv=new WeakMap;function hd(e,t,n=!1){const i=n?Zv:t.propsCache,a=i.get(e);if(a)return a;const r=e.props,d={},g=[];let l=!1;if(!Ie(e)){const o=s=>{l=!0;const[c,h]=hd(s,t,!0);vt(d,c),h&&g.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!l)return it(e)&&i.set(e,_i),_i;if(Oe(r))for(let o=0;o<r.length;o++){const s=Vt(r[o]);kc(s)&&(d[s]=rt)}else if(r)for(const o in r){const s=Vt(o);if(kc(s)){const c=r[o],h=d[s]=Oe(c)||Ie(c)?{type:c}:vt({},c),u=h.type;let f=!1,m=!0;if(Oe(u))for(let v=0;v<u.length;++v){const y=u[v],$=Ie(y)&&y.name;if($==="Boolean"){f=!0;break}else $==="String"&&(m=!1)}else f=Ie(u)&&u.name==="Boolean";h[0]=f,h[1]=m,(f||ze(h,"default"))&&g.push(s)}}const p=[d,g];return it(e)&&i.set(e,p),p}function kc(e){return e[0]!=="$"&&!tr(e)}const dd=e=>e[0]==="_"||e==="$stable",vl=e=>Oe(e)?e.map(Xt):[Xt(e)],Xv=(e,t,n)=>{if(t._n)return t;const i=et((...a)=>vl(t(...a)),n);return i._c=!1,i},fd=(e,t,n)=>{const i=e._ctx;for(const a in e){if(dd(a))continue;const r=e[a];if(Ie(r))t[a]=Xv(a,r,i);else if(r!=null){const d=vl(r);t[a]=()=>d}}},pd=(e,t)=>{const n=vl(t);e.slots.default=()=>n},gd=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},qv=(e,t,n)=>{const i=e.slots=ld();if(e.vnode.shapeFlag&32){const a=t._;a?(gd(i,t,n),n&&Ch(i,"_",a,!0)):fd(t,i)}else t&&pd(e,t)},Qv=(e,t,n)=>{const{vnode:i,slots:a}=e;let r=!0,d=rt;if(i.shapeFlag&32){const g=t._;g?n&&g===1?r=!1:gd(a,t,n):(r=!t.$stable,fd(t,a)),d=t}else t&&(pd(e,t),d={default:1});if(r)for(const g in a)!dd(g)&&d[g]==null&&delete a[g]};function fa(e,t,n,i,a=!1){if(Oe(e)){e.forEach((c,h)=>fa(c,t&&(Oe(t)?t[h]:t),n,i,a));return}if(ss(i)&&!a)return;const r=i.shapeFlag&4?Xs(i.component):i.el,d=a?null:r,{i:g,r:l}=e,p=t&&t.r,o=g.refs===rt?g.refs={}:g.refs,s=g.setupState;if(p!=null&&p!==l&&(ct(p)?(o[p]=null,ze(s,p)&&(s[p]=null)):lt(p)&&(p.value=null)),Ie(l))Mn(l,g,12,[d,o]);else{const c=ct(l),h=lt(l);if(c||h){const u=()=>{if(e.f){const f=c?ze(s,l)?s[l]:o[l]:l.value;a?Oe(f)&&Qa(f,r):Oe(f)?f.includes(r)||f.push(r):c?(o[l]=[r],ze(s,l)&&(s[l]=o[l])):(l.value=[r],e.k&&(o[e.k]=l.value))}else c?(o[l]=d,ze(s,l)&&(s[l]=d)):h&&(l.value=d,e.k&&(o[e.k]=d))};d?(u.id=-1,Ct(u,n)):u()}}}const Jv=Symbol("_vte"),ey=e=>e.__isTeleport,Ct=gy;function ty(e){return ny(e)}function ny(e,t){const n=Ah();n.__VUE__=!0;const{insert:i,remove:a,patchProp:r,createElement:d,createText:g,createComment:l,setText:p,setElementText:o,parentNode:s,nextSibling:c,setScopeId:h=Wt,insertStaticContent:u}=e,f=(P,W,G,ne=null,ee=null,re=null,pe=void 0,he=null,fe=!!W.dynamicChildren)=>{if(P===W)return;P&&!ji(P,W)&&(ne=U(P),j(P,ee,re,!0),P=null),W.patchFlag===-2&&(fe=!1,W.dynamicChildren=null);const{type:se,ref:ve,shapeFlag:Ce}=W;switch(se){case Ys:m(P,W,G,ne);break;case oi:v(P,W,G,ne);break;case as:P==null&&y(W,G,ne,pe);break;case Pe:C(P,W,G,ne,ee,re,pe,he,fe);break;default:Ce&1?S(P,W,G,ne,ee,re,pe,he,fe):Ce&6?x(P,W,G,ne,ee,re,pe,he,fe):(Ce&64||Ce&128)&&se.process(P,W,G,ne,ee,re,pe,he,fe,Q)}ve!=null&&ee&&fa(ve,P&&P.ref,re,W||P,!W)},m=(P,W,G,ne)=>{if(P==null)i(W.el=g(W.children),G,ne);else{const ee=W.el=P.el;W.children!==P.children&&p(ee,W.children)}},v=(P,W,G,ne)=>{P==null?i(W.el=l(W.children||""),G,ne):W.el=P.el},y=(P,W,G,ne)=>{[P.el,P.anchor]=u(P.children,W,G,ne,P.el,P.anchor)},$=({el:P,anchor:W},G,ne)=>{let ee;for(;P&&P!==W;)ee=c(P),i(P,G,ne),P=ee;i(W,G,ne)},_=({el:P,anchor:W})=>{let G;for(;P&&P!==W;)G=c(P),a(P),P=G;a(W)},S=(P,W,G,ne,ee,re,pe,he,fe)=>{W.type==="svg"?pe="svg":W.type==="math"&&(pe="mathml"),P==null?b(W,G,ne,ee,re,pe,he,fe):L(P,W,ee,re,pe,he,fe)},b=(P,W,G,ne,ee,re,pe,he)=>{let fe,se;const{props:ve,shapeFlag:Ce,transition:Ae,dirs:Z}=P;if(fe=P.el=d(P.type,re,ve&&ve.is,ve),Ce&8?o(fe,P.children):Ce&16&&M(P.children,fe,null,ne,ee,Co(P,re),pe,he),Z&&jn(P,null,ne,"created"),k(fe,P,P.scopeId,pe,ne),ve){for(const de in ve)de!=="value"&&!tr(de)&&r(fe,de,null,ve[de],re,ne);"value"in ve&&r(fe,"value",null,ve.value,re),(se=ve.onVnodeBeforeMount)&&Zt(se,ne,P)}Z&&jn(P,null,ne,"beforeMount");const oe=iy(ee,Ae);oe&&Ae.beforeEnter(fe),i(fe,W,G),((se=ve&&ve.onVnodeMounted)||oe||Z)&&Ct(()=>{se&&Zt(se,ne,P),oe&&Ae.enter(fe),Z&&jn(P,null,ne,"mounted")},ee)},k=(P,W,G,ne,ee)=>{if(G&&h(P,G),ne)for(let re=0;re<ne.length;re++)h(P,ne[re]);if(ee){let re=ee.subTree;if(W===re){const pe=ee.vnode;k(P,pe,pe.scopeId,pe.slotScopeIds,ee.parent)}}},M=(P,W,G,ne,ee,re,pe,he,fe=0)=>{for(let se=fe;se<P.length;se++){const ve=P[se]=he?An(P[se]):Xt(P[se]);f(null,ve,W,G,ne,ee,re,pe,he)}},L=(P,W,G,ne,ee,re,pe)=>{const he=W.el=P.el;let{patchFlag:fe,dynamicChildren:se,dirs:ve}=W;fe|=P.patchFlag&16;const Ce=P.props||rt,Ae=W.props||rt;let Z;if(G&&Vn(G,!1),(Z=Ae.onVnodeBeforeUpdate)&&Zt(Z,G,W,P),ve&&jn(W,P,G,"beforeUpdate"),G&&Vn(G,!0),(Ce.innerHTML&&Ae.innerHTML==null||Ce.textContent&&Ae.textContent==null)&&o(he,""),se?T(P.dynamicChildren,se,he,G,ne,Co(W,ee),re):pe||I(P,W,he,null,G,ne,Co(W,ee),re,!1),fe>0){if(fe&16)E(he,Ce,Ae,G,ee);else if(fe&2&&Ce.class!==Ae.class&&r(he,"class",null,Ae.class,ee),fe&4&&r(he,"style",Ce.style,Ae.style,ee),fe&8){const oe=W.dynamicProps;for(let de=0;de<oe.length;de++){const be=oe[de],Le=Ce[be],Be=Ae[be];(Be!==Le||be==="value")&&r(he,be,Le,Be,ee,G)}}fe&1&&P.children!==W.children&&o(he,W.children)}else!pe&&se==null&&E(he,Ce,Ae,G,ee);((Z=Ae.onVnodeUpdated)||ve)&&Ct(()=>{Z&&Zt(Z,G,W,P),ve&&jn(W,P,G,"updated")},ne)},T=(P,W,G,ne,ee,re,pe)=>{for(let he=0;he<W.length;he++){const fe=P[he],se=W[he],ve=fe.el&&(fe.type===Pe||!ji(fe,se)||fe.shapeFlag&70)?s(fe.el):G;f(fe,se,ve,null,ne,ee,re,pe,!0)}},E=(P,W,G,ne,ee)=>{if(W!==G){if(W!==rt)for(const re in W)!tr(re)&&!(re in G)&&r(P,re,W[re],null,ee,ne);for(const re in G){if(tr(re))continue;const pe=G[re],he=W[re];pe!==he&&re!=="value"&&r(P,re,he,pe,ee,ne)}"value"in G&&r(P,"value",W.value,G.value,ee)}},C=(P,W,G,ne,ee,re,pe,he,fe)=>{const se=W.el=P?P.el:g(""),ve=W.anchor=P?P.anchor:g("");let{patchFlag:Ce,dynamicChildren:Ae,slotScopeIds:Z}=W;Z&&(he=he?he.concat(Z):Z),P==null?(i(se,G,ne),i(ve,G,ne),M(W.children||[],G,ve,ee,re,pe,he,fe)):Ce>0&&Ce&64&&Ae&&P.dynamicChildren?(T(P.dynamicChildren,Ae,G,ee,re,pe,he),(W.key!=null||ee&&W===ee.subTree)&&md(P,W,!0)):I(P,W,G,ve,ee,re,pe,he,fe)},x=(P,W,G,ne,ee,re,pe,he,fe)=>{W.slotScopeIds=he,P==null?W.shapeFlag&512?ee.ctx.activate(W,G,ne,pe,fe):w(W,G,ne,ee,re,pe,fe):A(P,W,fe)},w=(P,W,G,ne,ee,re,pe)=>{const he=P.component=Sy(P,ne,ee);if(nd(P)&&(he.ctx.renderer=Q),$y(he,!1,pe),he.asyncDep){if(ee&&ee.registerDep(he,R,pe),!P.el){const fe=he.subTree=ae(oi);v(null,fe,W,G)}}else R(he,P,W,G,ee,re,pe)},A=(P,W,G)=>{const ne=W.component=P.component;if(dy(P,W,G))if(ne.asyncDep&&!ne.asyncResolved){O(ne,W,G);return}else ne.next=W,$v(ne.update),ne.effect.dirty=!0,ne.update();else W.el=P.el,ne.vnode=W},R=(P,W,G,ne,ee,re,pe)=>{const he=()=>{if(P.isMounted){let{next:ve,bu:Ce,u:Ae,parent:Z,vnode:oe}=P;{const Xe=vd(P);if(Xe){ve&&(ve.el=oe.el,O(P,ve,pe)),Xe.asyncDep.then(()=>{P.isUnmounted||he()});return}}let de=ve,be;Vn(P,!1),ve?(ve.el=oe.el,O(P,ve,pe)):ve=oe,Ce&&rs(Ce),(be=ve.props&&ve.props.onVnodeBeforeUpdate)&&Zt(be,Z,ve,oe),Vn(P,!0);const Le=Ao(P),Be=P.subTree;P.subTree=Le,f(Be,Le,s(Be.el),U(Be),P,ee,re),ve.el=Le.el,de===null&&fy(P,Le.el),Ae&&Ct(Ae,ee),(be=ve.props&&ve.props.onVnodeUpdated)&&Ct(()=>Zt(be,Z,ve,oe),ee)}else{let ve;const{el:Ce,props:Ae}=W,{bm:Z,m:oe,parent:de}=P,be=ss(W);if(Vn(P,!1),Z&&rs(Z),!be&&(ve=Ae&&Ae.onVnodeBeforeMount)&&Zt(ve,de,W),Vn(P,!0),Ce&&we){const Le=()=>{P.subTree=Ao(P),we(Ce,P.subTree,P,ee,null)};be?W.type.__asyncLoader().then(()=>!P.isUnmounted&&Le()):Le()}else{const Le=P.subTree=Ao(P);f(null,Le,G,ne,P,ee,re),W.el=Le.el}if(oe&&Ct(oe,ee),!be&&(ve=Ae&&Ae.onVnodeMounted)){const Le=W;Ct(()=>Zt(ve,de,Le),ee)}(W.shapeFlag&256||de&&ss(de.vnode)&&de.vnode.shapeFlag&256)&&P.a&&Ct(P.a,ee),P.isMounted=!0,W=G=ne=null}},fe=P.effect=new tl(he,Wt,()=>hl(se),P.scope),se=P.update=()=>{fe.dirty&&fe.run()};se.i=P,se.id=P.uid,Vn(P,!0),se()},O=(P,W,G)=>{W.component=P;const ne=P.vnode.props;P.vnode=W,P.next=null,Yv(P,W.props,ne,G),Qv(P,W.children,G),zn(),_c(P),Un()},I=(P,W,G,ne,ee,re,pe,he,fe=!1)=>{const se=P&&P.children,ve=P?P.shapeFlag:0,Ce=W.children,{patchFlag:Ae,shapeFlag:Z}=W;if(Ae>0){if(Ae&128){D(se,Ce,G,ne,ee,re,pe,he,fe);return}else if(Ae&256){N(se,Ce,G,ne,ee,re,pe,he,fe);return}}Z&8?(ve&16&&q(se,ee,re),Ce!==se&&o(G,Ce)):ve&16?Z&16?D(se,Ce,G,ne,ee,re,pe,he,fe):q(se,ee,re,!0):(ve&8&&o(G,""),Z&16&&M(Ce,G,ne,ee,re,pe,he,fe))},N=(P,W,G,ne,ee,re,pe,he,fe)=>{P=P||_i,W=W||_i;const se=P.length,ve=W.length,Ce=Math.min(se,ve);let Ae;for(Ae=0;Ae<Ce;Ae++){const Z=W[Ae]=fe?An(W[Ae]):Xt(W[Ae]);f(P[Ae],Z,G,null,ee,re,pe,he,fe)}se>ve?q(P,ee,re,!0,!1,Ce):M(W,G,ne,ee,re,pe,he,fe,Ce)},D=(P,W,G,ne,ee,re,pe,he,fe)=>{let se=0;const ve=W.length;let Ce=P.length-1,Ae=ve-1;for(;se<=Ce&&se<=Ae;){const Z=P[se],oe=W[se]=fe?An(W[se]):Xt(W[se]);if(ji(Z,oe))f(Z,oe,G,null,ee,re,pe,he,fe);else break;se++}for(;se<=Ce&&se<=Ae;){const Z=P[Ce],oe=W[Ae]=fe?An(W[Ae]):Xt(W[Ae]);if(ji(Z,oe))f(Z,oe,G,null,ee,re,pe,he,fe);else break;Ce--,Ae--}if(se>Ce){if(se<=Ae){const Z=Ae+1,oe=Z<ve?W[Z].el:ne;for(;se<=Ae;)f(null,W[se]=fe?An(W[se]):Xt(W[se]),G,oe,ee,re,pe,he,fe),se++}}else if(se>Ae)for(;se<=Ce;)j(P[se],ee,re,!0),se++;else{const Z=se,oe=se,de=new Map;for(se=oe;se<=Ae;se++){const Ze=W[se]=fe?An(W[se]):Xt(W[se]);Ze.key!=null&&de.set(Ze.key,se)}let be,Le=0;const Be=Ae-oe+1;let Xe=!1,Je=0;const Ge=new Array(Be);for(se=0;se<Be;se++)Ge[se]=0;for(se=Z;se<=Ce;se++){const Ze=P[se];if(Le>=Be){j(Ze,ee,re,!0);continue}let gt;if(Ze.key!=null)gt=de.get(Ze.key);else for(be=oe;be<=Ae;be++)if(Ge[be-oe]===0&&ji(Ze,W[be])){gt=be;break}gt===void 0?j(Ze,ee,re,!0):(Ge[gt-oe]=se+1,gt>=Je?Je=gt:Xe=!0,f(Ze,W[gt],G,null,ee,re,pe,he,fe),Le++)}const je=Xe?ry(Ge):_i;for(be=je.length-1,se=Be-1;se>=0;se--){const Ze=oe+se,gt=W[Ze],Ui=Ze+1<ve?W[Ze+1].el:ne;Ge[se]===0?f(null,gt,G,Ui,ee,re,pe,he,fe):Xe&&(be<0||se!==je[be]?H(gt,G,Ui,2):be--)}}},H=(P,W,G,ne,ee=null)=>{const{el:re,type:pe,transition:he,children:fe,shapeFlag:se}=P;if(se&6){H(P.component.subTree,W,G,ne);return}if(se&128){P.suspense.move(W,G,ne);return}if(se&64){pe.move(P,W,G,Q);return}if(pe===Pe){i(re,W,G);for(let Ce=0;Ce<fe.length;Ce++)H(fe[Ce],W,G,ne);i(P.anchor,W,G);return}if(pe===as){$(P,W,G);return}if(ne!==2&&se&1&&he)if(ne===0)he.beforeEnter(re),i(re,W,G),Ct(()=>he.enter(re),ee);else{const{leave:Ce,delayLeave:Ae,afterLeave:Z}=he,oe=()=>i(re,W,G),de=()=>{Ce(re,()=>{oe(),Z&&Z()})};Ae?Ae(re,oe,de):de()}else i(re,W,G)},j=(P,W,G,ne=!1,ee=!1)=>{const{type:re,props:pe,ref:he,children:fe,dynamicChildren:se,shapeFlag:ve,patchFlag:Ce,dirs:Ae,cacheIndex:Z}=P;if(Ce===-2&&(ee=!1),he!=null&&fa(he,null,G,P,!0),Z!=null&&(W.renderCache[Z]=void 0),ve&256){W.ctx.deactivate(P);return}const oe=ve&1&&Ae,de=!ss(P);let be;if(de&&(be=pe&&pe.onVnodeBeforeUnmount)&&Zt(be,W,P),ve&6)V(P.component,G,ne);else{if(ve&128){P.suspense.unmount(G,ne);return}oe&&jn(P,null,W,"beforeUnmount"),ve&64?P.type.remove(P,W,G,Q,ne):se&&!se.hasOnce&&(re!==Pe||Ce>0&&Ce&64)?q(se,W,G,!1,!0):(re===Pe&&Ce&384||!ee&&ve&16)&&q(fe,W,G),ne&&z(P)}(de&&(be=pe&&pe.onVnodeUnmounted)||oe)&&Ct(()=>{be&&Zt(be,W,P),oe&&jn(P,null,W,"unmounted")},G)},z=P=>{const{type:W,el:G,anchor:ne,transition:ee}=P;if(W===Pe){B(G,ne);return}if(W===as){_(P);return}const re=()=>{a(G),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(P.shapeFlag&1&&ee&&!ee.persisted){const{leave:pe,delayLeave:he}=ee,fe=()=>pe(G,re);he?he(P.el,re,fe):fe()}else re()},B=(P,W)=>{let G;for(;P!==W;)G=c(P),a(P),P=G;a(W)},V=(P,W,G)=>{const{bum:ne,scope:ee,update:re,subTree:pe,um:he,m:fe,a:se}=P;Ec(fe),Ec(se),ne&&rs(ne),ee.stop(),re&&(re.active=!1,j(pe,P,W,G)),he&&Ct(he,W),Ct(()=>{P.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},q=(P,W,G,ne=!1,ee=!1,re=0)=>{for(let pe=re;pe<P.length;pe++)j(P[pe],W,G,ne,ee)},U=P=>{if(P.shapeFlag&6)return U(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const W=c(P.anchor||P.el),G=W&&W[Jv];return G?c(G):W};let Y=!1;const X=(P,W,G)=>{P==null?W._vnode&&j(W._vnode,null,null,!0):f(W._vnode||null,P,W,null,null,null,G),W._vnode=P,Y||(Y=!0,_c(),Jh(),Y=!1)},Q={p:f,um:j,m:H,r:z,mt:w,mc:M,pc:I,pbc:T,n:U,o:e};let ue,we;return{render:X,hydrate:ue,createApp:Gv(X,ue)}}function Co({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function iy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function md(e,t,n=!1){const i=e.children,a=t.children;if(Oe(i)&&Oe(a))for(let r=0;r<i.length;r++){const d=i[r];let g=a[r];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=a[r]=An(a[r]),g.el=d.el),!n&&g.patchFlag!==-2&&md(d,g)),g.type===Ys&&(g.el=d.el)}}function ry(e){const t=e.slice(),n=[0];let i,a,r,d,g;const l=e.length;for(i=0;i<l;i++){const p=e[i];if(p!==0){if(a=n[n.length-1],e[a]<p){t[i]=a,n.push(i);continue}for(r=0,d=n.length-1;r<d;)g=r+d>>1,e[n[g]]<p?r=g+1:d=g;p<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,d=n[r-1];r-- >0;)n[r]=d,d=t[d];return n}function vd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:vd(t)}function Ec(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const sy=Symbol.for("v-scx"),oy=()=>zt(sy);function yl(e,t){return bl(e,null,t)}const Qr={};function qe(e,t,n){return bl(e,t,n)}function bl(e,t,{immediate:n,deep:i,flush:a,once:r,onTrack:d,onTrigger:g}=rt){if(t&&r){const b=t;t=(...k)=>{b(...k),S()}}const l=ft,p=b=>i===!0?b:En(b,i===!1?1:void 0);let o,s=!1,c=!1;if(lt(e)?(o=()=>e.value,s=Ei(e)):nr(e)?(o=()=>p(e),s=!0):Oe(e)?(c=!0,s=e.some(b=>nr(b)||Ei(b)),o=()=>e.map(b=>{if(lt(b))return b.value;if(nr(b))return p(b);if(Ie(b))return Mn(b,l,2)})):Ie(e)?t?o=()=>Mn(e,l,2):o=()=>(h&&h(),Ht(e,l,3,[u])):o=Wt,t&&i){const b=o;o=()=>En(b())}let h,u=b=>{h=$.onStop=()=>{Mn(b,l,4),h=$.onStop=void 0}},f;if(Zs)if(u=Wt,t?n&&Ht(t,l,3,[o(),c?[]:void 0,u]):o(),a==="sync"){const b=oy();f=b.__watcherHandles||(b.__watcherHandles=[])}else return Wt;let m=c?new Array(e.length).fill(Qr):Qr;const v=()=>{if(!(!$.active||!$.dirty))if(t){const b=$.run();(i||s||(c?b.some((k,M)=>Fn(k,m[M])):Fn(b,m)))&&(h&&h(),Ht(t,l,3,[b,m===Qr?void 0:c&&m[0]===Qr?[]:m,u]),m=b)}else $.run()};v.allowRecurse=!!t;let y;a==="sync"?y=v:a==="post"?y=()=>Ct(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),y=()=>hl(v));const $=new tl(o,Wt,y),_=Lh(),S=()=>{$.stop(),_&&Qa(_.effects,$)};return t?n?v():m=$.run():a==="post"?Ct($.run.bind($),l&&l.suspense):$.run(),f&&f.push(S),S}function ay(e,t,n){const i=this.proxy,a=ct(e)?e.includes(".")?yd(i,e):()=>i[e]:e.bind(i,i);let r;Ie(t)?r=t:(r=t.handler,n=t);const d=Dr(this),g=bl(a,r.bind(i),n);return d(),g}function yd(e,t){const n=t.split(".");return()=>{let i=e;for(let a=0;a<n.length&&i;a++)i=i[n[a]];return i}}function En(e,t=1/0,n){if(t<=0||!it(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,lt(e))En(e.value,t,n);else if(Oe(e))for(let i=0;i<e.length;i++)En(e[i],t,n);else if(_h(e)||Si(e))e.forEach(i=>{En(i,t,n)});else if(xh(e)){for(const i in e)En(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&En(e[i],t,n)}return e}const ly=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Vt(t)}Modifiers`]||e[`${fi(t)}Modifiers`];function cy(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||rt;let a=n;const r=t.startsWith("update:"),d=r&&ly(i,t.slice(7));d&&(d.trim&&(a=n.map(o=>ct(o)?o.trim():o)),d.number&&(a=n.map(ra)));let g,l=i[g=So(t)]||i[g=So(Vt(t))];!l&&r&&(l=i[g=So(fi(t))]),l&&Ht(l,e,6,a);const p=i[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,Ht(p,e,6,a)}}function bd(e,t,n=!1){const i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;const r=e.emits;let d={},g=!1;if(!Ie(e)){const l=p=>{const o=bd(p,t,!0);o&&(g=!0,vt(d,o))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!g?(it(e)&&i.set(e,null),null):(Oe(r)?r.forEach(l=>d[l]=null):vt(d,r),it(e)&&i.set(e,d),d)}function Ks(e,t){return!e||!Ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,fi(t))||ze(e,t))}function Ao(e){const{type:t,vnode:n,proxy:i,withProxy:a,propsOptions:[r],slots:d,attrs:g,emit:l,render:p,renderCache:o,props:s,data:c,setupState:h,ctx:u,inheritAttrs:f}=e,m=vs(e);let v,y;try{if(n.shapeFlag&4){const _=a||i,S=_;v=Xt(p.call(S,_,o,s,h,c,u)),y=g}else{const _=t;v=Xt(_.length>1?_(s,{attrs:g,slots:d,emit:l}):_(s,null)),y=t.props?g:uy(g)}}catch(_){sr.length=0,js(_,e,1),v=ae(oi)}let $=v;if(y&&f!==!1){const _=Object.keys(y),{shapeFlag:S}=$;_.length&&S&7&&(r&&_.some(qa)&&(y=hy(y,r)),$=Ri($,y,!1,!0))}return n.dirs&&($=Ri($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),v=$,vs(m),v}const uy=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ws(n))&&((t||(t={}))[n]=e[n]);return t},hy=(e,t)=>{const n={};for(const i in e)(!qa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function dy(e,t,n){const{props:i,children:a,component:r}=e,{props:d,children:g,patchFlag:l}=t,p=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Rc(i,d,p):!!d;if(l&8){const o=t.dynamicProps;for(let s=0;s<o.length;s++){const c=o[s];if(d[c]!==i[c]&&!Ks(p,c))return!0}}}else return(a||g)&&(!g||!g.$stable)?!0:i===d?!1:i?d?Rc(i,d,p):!0:!!d;return!1}function Rc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let a=0;a<i.length;a++){const r=i[a];if(t[r]!==e[r]&&!Ks(n,r))return!0}return!1}function fy({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const py=e=>e.__isSuspense;function gy(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):xv(e)}const Pe=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),oi=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),sr=[];let Lt=null;function K(e=!1){sr.push(Lt=e?null:[])}function my(){sr.pop(),Lt=sr[sr.length-1]||null}let fr=1;function Tc(e){fr+=e,e<0&&Lt&&(Lt.hasOnce=!0)}function wd(e){return e.dynamicChildren=fr>0?Lt||_i:null,my(),fr>0&&Lt&&Lt.push(e),e}function ie(e,t,n,i,a,r){return wd(F(e,t,n,i,a,r,!0))}function $e(e,t,n,i,a){return wd(ae(e,t,n,i,a,!0))}function pa(e){return e?e.__v_isVNode===!0:!1}function ji(e,t){return e.type===t.type&&e.key===t.key}const _d=({key:e})=>e??null,ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||lt(e)||Ie(e)?{i:At,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,i=0,a=null,r=e===Pe?0:1,d=!1,g=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_d(t),ref:t&&ls(t),scopeId:Vs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:At};return g?(_l(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ct(n)?8:16),fr>0&&!d&&Lt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Lt.push(l),l}const ae=vy;function vy(e,t=null,n=null,i=0,a=null,r=!1){if((!e||e===Dv)&&(e=oi),pa(e)){const g=Ri(e,t,!0);return n&&_l(g,n),fr>0&&!r&&Lt&&(g.shapeFlag&6?Lt[Lt.indexOf(e)]=g:Lt.push(g)),g.patchFlag=-2,g}if(Ey(e)&&(e=e.__vccOpts),t){t=yy(t);let{class:g,style:l}=t;g&&!ct(g)&&(t.class=Nr(g)),it(l)&&(jh(l)&&!Oe(l)&&(l=vt({},l)),t.style=el(l))}const d=ct(e)?1:py(e)?128:ey(e)?64:it(e)?4:Ie(e)?2:0;return F(e,t,n,i,a,d,r,!0)}function yy(e){return e?jh(e)||cd(e)?vt({},e):e:null}function Ri(e,t,n=!1,i=!1){const{props:a,ref:r,patchFlag:d,children:g,transition:l}=e,p=t?by(a||{},t):a,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&_d(p),ref:t&&t.ref?n&&r?Oe(r)?r.concat(ls(t)):[r,ls(t)]:ls(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&td(o,l.clone(o)),o}function tt(e=" ",t=0){return ae(Ys,null,e,t)}function wl(e,t){const n=ae(as,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(K(),$e(oi,null,e)):ae(oi,null,e)}function Xt(e){return e==null||typeof e=="boolean"?ae(oi):Oe(e)?ae(Pe,null,e.slice()):typeof e=="object"?An(e):ae(Ys,null,String(e))}function An(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ri(e)}function _l(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(i&65){const a=t.default;a&&(a._c&&(a._d=!1),_l(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!cd(t)?t._ctx=At:a===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:At},n=32):(t=String(t),i&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function by(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const a in i)if(a==="class")t.class!==i.class&&(t.class=Nr([t.class,i.class]));else if(a==="style")t.style=el([t.style,i.style]);else if(Ws(a)){const r=t[a],d=i[a];d&&r!==d&&!(Oe(r)&&r.includes(d))&&(t[a]=r?[].concat(r,d):d)}else a!==""&&(t[a]=i[a])}return t}function Zt(e,t,n,i=null){Ht(e,t,7,[n,i])}const wy=od();let _y=0;function Sy(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||wy,r={uid:_y++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Th(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hd(i,a),emitsOptions:bd(i,a),emit:null,emitted:null,propsDefaults:rt,inheritAttrs:i.inheritAttrs,ctx:rt,data:rt,props:rt,attrs:rt,slots:rt,refs:rt,setupState:rt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=cy.bind(null,r),e.ce&&e.ce(r),r}let ft=null;const Sl=()=>ft||At;let bs,ga;{const e=Ah(),t=(n,i)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(i),r=>{a.length>1?a.forEach(d=>d(r)):a[0](r)}};bs=t("__VUE_INSTANCE_SETTERS__",n=>ft=n),ga=t("__VUE_SSR_SETTERS__",n=>Zs=n)}const Dr=e=>{const t=ft;return bs(e),e.scope.on(),()=>{e.scope.off(),bs(t)}},Lc=()=>{ft&&ft.scope.off(),bs(null)};function Sd(e){return e.vnode.shapeFlag&4}let Zs=!1;function $y(e,t=!1,n=!1){t&&ga(t);const{props:i,children:a}=e.vnode,r=Sd(e);Kv(e,i,r,t),qv(e,a,n);const d=r?xy(e,t):void 0;return t&&ga(!1),d}function xy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wv);const{setup:i}=n;if(i){const a=e.setupContext=i.length>1?Ay(e):null,r=Dr(e);zn();const d=Mn(i,e,0,[e.props,a]);if(Un(),r(),Sh(d)){if(d.then(Lc,Lc),t)return d.then(g=>{Mc(e,g,t)}).catch(g=>{js(g,e,0)});e.asyncDep=d}else Mc(e,d,t)}else $d(e,t)}function Mc(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:it(t)&&(e.setupState=Zh(t)),$d(e,n)}let Oc;function $d(e,t,n){const i=e.type;if(!e.render){if(!t&&Oc&&!i.render){const a=i.template||ml(e).template;if(a){const{isCustomElement:r,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:l}=i,p=vt(vt({isCustomElement:r,delimiters:g},d),l);i.render=Oc(a,p)}}e.render=i.render||Wt}{const a=Dr(e);zn();try{Bv(e)}finally{Un(),a()}}}const Cy={get(e,t){return Et(e,"get",""),e[t]}};function Ay(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Cy),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zh(Vh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in rr)return rr[n](e)},has(t,n){return n in t||n in rr}})):e.proxy}function ky(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Ey(e){return Ie(e)&&"__vccOpts"in e}const Ee=(e,t)=>pv(e,t,Zs);function qs(e,t,n){const i=arguments.length;return i===2?it(t)&&!Oe(t)?pa(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&pa(n)&&(n=[n]),ae(e,t,n))}const Ry="3.4.37";/**
|
568
|
-
* @vue/runtime-dom v3.4.37
|
569
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
570
|
-
* @license MIT
|
571
|
-
**/const Ty="http://www.w3.org/2000/svg",Ly="http://www.w3.org/1998/Math/MathML",un=typeof document<"u"?document:null,Ic=un&&un.createElement("template"),My={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const a=t==="svg"?un.createElementNS(Ty,e):t==="mathml"?un.createElementNS(Ly,e):n?un.createElement(e,{is:n}):un.createElement(e);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>un.createTextNode(e),createComment:e=>un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,a,r){const d=n?n.previousSibling:t.lastChild;if(a&&(a===r||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===r||!(a=a.nextSibling)););else{Ic.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const g=Ic.content;if(i==="svg"||i==="mathml"){const l=g.firstChild;for(;l.firstChild;)g.appendChild(l.firstChild);g.removeChild(l)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Oy=Symbol("_vtc");function Iy(e,t,n){const i=e[Oy];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Nc=Symbol("_vod"),Ny=Symbol("_vsh"),Fy=Symbol(""),Dy=/(^|;)\s*display\s*:/;function Py(e,t,n){const i=e.style,a=ct(n);let r=!1;if(n&&!a){if(t)if(ct(t))for(const d of t.split(";")){const g=d.slice(0,d.indexOf(":")).trim();n[g]==null&&cs(i,g,"")}else for(const d in t)n[d]==null&&cs(i,d,"");for(const d in n)d==="display"&&(r=!0),cs(i,d,n[d])}else if(a){if(t!==n){const d=i[Fy];d&&(n+=";"+d),i.cssText=n,r=Dy.test(n)}}else t&&e.removeAttribute("style");Nc in e&&(e[Nc]=r?i.display:"",e[Ny]&&(i.display="none"))}const Fc=/\s*!important$/;function cs(e,t,n){if(Oe(n))n.forEach(i=>cs(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Wy(e,t);Fc.test(n)?e.setProperty(fi(i),n.replace(Fc,""),"important"):e[i]=n}}const Dc=["Webkit","Moz","ms"],ko={};function Wy(e,t){const n=ko[t];if(n)return n;let i=Vt(t);if(i!=="filter"&&i in e)return ko[t]=i;i=Ir(i);for(let a=0;a<Dc.length;a++){const r=Dc[a]+i;if(r in e)return ko[t]=r}return t}const Pc="http://www.w3.org/1999/xlink";function Wc(e,t,n,i,a,r=jm(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pc,t.slice(6,t.length)):e.setAttributeNS(Pc,t,n):n==null||r&&!kh(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Hn(n)?String(n):n)}function By(e,t,n,i){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const d=a==="OPTION"?e.getAttribute("value")||"":e.value,g=n==null?"":String(n);(d!==g||!("_value"in e))&&(e.value=g),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=kh(n):n==null&&d==="string"?(n="",r=!0):d==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(t)}function pi(e,t,n,i){e.addEventListener(t,n,i)}function Hy(e,t,n,i){e.removeEventListener(t,n,i)}const Bc=Symbol("_vei");function zy(e,t,n,i,a=null){const r=e[Bc]||(e[Bc]={}),d=r[t];if(i&&d)d.value=i;else{const[g,l]=Uy(t);if(i){const p=r[t]=Gy(i,a);pi(e,g,p,l)}else d&&(Hy(e,g,d,l),r[t]=void 0)}}const Hc=/(?:Once|Passive|Capture)$/;function Uy(e){let t;if(Hc.test(e)){t={};let i;for(;i=e.match(Hc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fi(e.slice(2)),t]}let Eo=0;const jy=Promise.resolve(),Vy=()=>Eo||(jy.then(()=>Eo=0),Eo=Date.now());function Gy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ht(Ky(i,n.value),t,5,[i])};return n.value=e,n.attached=Vy(),n}function Ky(e,t){if(Oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}const zc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yy=(e,t,n,i,a,r)=>{const d=a==="svg";t==="class"?Iy(e,i,d):t==="style"?Py(e,n,i):Ws(t)?qa(t)||zy(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zy(e,t,i,d))?(By(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Wc(e,t,i,d,r,t!=="value")):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Wc(e,t,i,d))};function Zy(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&zc(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return zc(t)&&ct(n)?!1:t in e}const Uc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>rs(t,n):t};function Xy(e){e.target.composing=!0}function jc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ro=Symbol("_assign"),$l={created(e,{modifiers:{lazy:t,trim:n,number:i}},a){e[Ro]=Uc(a);const r=i||a.props&&a.props.type==="number";pi(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),r&&(g=ra(g)),e[Ro](g)}),n&&pi(e,"change",()=>{e.value=e.value.trim()}),t||(pi(e,"compositionstart",Xy),pi(e,"compositionend",jc),pi(e,"change",jc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:a,number:r}},d){if(e[Ro]=Uc(d),e.composing)return;const g=(r||e.type==="number")&&!/^0\d/.test(e.value)?ra(e.value):e.value,l=t??"";g!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||a&&e.value.trim()===l)||(e.value=l))}},qy=vt({patchProp:Yy},My);let Vc;function Qy(){return Vc||(Vc=ty(qy))}const Jy=(...e)=>{const t=Qy().createApp(...e),{mount:n}=t;return t.mount=i=>{const a=t0(i);if(!a)return;const r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=a.innerHTML),a.innerHTML="";const d=n(a,!1,e0(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),d},t};function e0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function t0(e){return ct(e)?document.querySelector(e):e}function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gc(Object(n),!0).forEach(function(i){xt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function n0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i0(e){var t=n0(e,"string");return typeof t=="symbol"?t:t+""}function ws(e){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ws(e)}function xt(e,t,n){return t=i0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r0(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function s0(e,t){if(e==null)return{};var n=r0(e,t),i,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xd={exports:{}};(function(e){(function(t){var n=function(v,y,$){if(!p(y)||s(y)||c(y)||h(y)||l(y))return y;var _,S=0,b=0;if(o(y))for(_=[],b=y.length;S<b;S++)_.push(n(v,y[S],$));else{_={};for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(_[v(k,$)]=n(v,y[k],$))}return _},i=function(v,y){y=y||{};var $=y.separator||"_",_=y.split||/(?=[A-Z])/;return v.split(_).join($)},a=function(v){return u(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,$){return $?$.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},r=function(v){var y=a(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return i(v,y).toLowerCase()},g=Object.prototype.toString,l=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},s=function(v){return g.call(v)=="[object Date]"},c=function(v){return g.call(v)=="[object RegExp]"},h=function(v){return g.call(v)=="[object Boolean]"},u=function(v){return v=v-0,v===v},f=function(v,y){var $=y&&"process"in y?y.process:y;return typeof $!="function"?v:function(_,S){return $(_,v,S)}},m={camelize:a,decamelize:d,pascalize:r,depascalize:d,camelizeKeys:function(v,y){return n(f(a,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(r,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(o0)})(xd);var a0=xd.exports,l0=["class","style"];function c0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),a=a0.camelize(n.slice(0,i)),r=n.slice(i+1).trim();return t[a]=r,t},{})}function u0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=(e.children||[]).map(function(l){return Cd(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,p){var o=e.attributes[p];switch(p){case"class":l.class=u0(o);break;case"style":l.style=c0(o);break;default:l.attrs[p]=o}return l},{attrs:{},class:{},style:{}});n.class;var r=n.style,d=r===void 0?{}:r,g=s0(n,l0);return qs(e.tag,hn(hn(hn({},t),{},{class:a.class,style:hn(hn({},a.style),d)},a.attrs),g),i)}var Ad=!1;try{Ad=!0}catch{}function h0(){if(!Ad&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function To(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xt({},e,t):{}}function d0(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),xt(xt(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function Kc(e){if(e&&ws(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ia.icon)return ia.icon(e);if(e===null)return null;if(ws(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var f0=xe({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var i=n.attrs,a=Ee(function(){return Kc(t.icon)}),r=Ee(function(){return To("classes",d0(t))}),d=Ee(function(){return To("transform",typeof t.transform=="string"?ia.transform(t.transform):t.transform)}),g=Ee(function(){return To("mask",Kc(t.mask))}),l=Ee(function(){return dm(a.value,hn(hn(hn(hn({},r.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});qe(l,function(o){if(!o)return h0("Could not find one or more icon(s)",a.value,g.value)},{immediate:!0});var p=Ee(function(){return l.value?Cd(l.value.abstract[0],{},i):null});return function(){return p.value}}});function Qs(e){return Lh()?(Km(e),!0):!1}function rn(e){return typeof e=="function"?e():ce(e)}const kd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const p0=e=>e!=null,g0=Object.prototype.toString,m0=e=>g0.call(e)==="[object Object]",Ed=()=>{};function v0(e,t){function n(...i){return new Promise((a,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(a).catch(r)})}return n}const Rd=e=>e();function y0(e=Rd){const t=Ue(!0);function n(){t.value=!1}function i(){t.value=!0}const a=(...r)=>{t.value&&e(...r)};return{isActive:Us(t),pause:n,resume:i,eventFilter:a}}function Td(e){return Sl()}function Ld(...e){if(e.length!==1)return cl(...e);const t=e[0];return typeof t=="function"?Us(Xh(()=>({get:t,set:Ed}))):Ue(t)}function b0(e,t,n={}){const{eventFilter:i=Rd,...a}=n;return qe(e,v0(i,t),a)}function w0(e,t,n={}){const{eventFilter:i,...a}=n,{eventFilter:r,pause:d,resume:g,isActive:l}=y0(i);return{stop:b0(e,t,{...a,eventFilter:r}),pause:d,resume:g,isActive:l}}function _0(e,t){Td()&&gl(e,t)}function Md(e,t=!0,n){Td()?at(e,n):t?e():Fr(e)}function Pr(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,a=lt(e),r=Ue(e);function d(g){if(arguments.length)return r.value=g,r.value;{const l=rn(n);return r.value=r.value===l?rn(i):l,r.value}}return a?d:[r,d]}function xl(e){var t;const n=rn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ai=kd?window:void 0,S0=kd?window.document:void 0;function Yc(...e){let t,n,i,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,a]=e,t=ai):[t,n,i,a]=e,!t)return Ed;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],d=()=>{r.forEach(o=>o()),r.length=0},g=(o,s,c,h)=>(o.addEventListener(s,c,h),()=>o.removeEventListener(s,c,h)),l=qe(()=>[xl(t),rn(a)],([o,s])=>{if(d(),!o)return;const c=m0(s)?{...s}:s;r.push(...n.flatMap(h=>i.map(u=>g(o,h,u,c))))},{immediate:!0,flush:"post"}),p=()=>{l(),d()};return Qs(p),p}function $0(){const e=Ue(!1),t=Sl();return t&&at(()=>{e.value=!0},t),e}function Od(e){const t=$0();return Ee(()=>(t.value,!!e()))}function x0(e,t,n={}){const{window:i=ai,...a}=n;let r;const d=Od(()=>i&&"MutationObserver"in i),g=()=>{r&&(r.disconnect(),r=void 0)},l=Ee(()=>{const c=rn(e),h=(Array.isArray(c)?c:[c]).map(xl).filter(p0);return new Set(h)}),p=qe(()=>l.value,c=>{g(),d.value&&c.size&&(r=new MutationObserver(t),c.forEach(h=>r.observe(h,a)))},{immediate:!0,flush:"post"}),o=()=>r==null?void 0:r.takeRecords(),s=()=>{g(),p()};return Qs(s),{isSupported:d,stop:s,takeRecords:o}}function C0(e,t={}){const{window:n=ai}=t,i=Od(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const r=Ue(!1),d=p=>{r.value=p.matches},g=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",d):a.removeListener(d))},l=yl(()=>{i.value&&(g(),a=n.matchMedia(rn(e)),"addEventListener"in a?a.addEventListener("change",d):a.addListener(d),r.value=a.matches)});return Qs(()=>{l(),g(),a=void 0}),r}const Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},es="__vueuse_ssr_handlers__",A0=k0();function k0(){return es in Jr||(Jr[es]=Jr[es]||{}),Jr[es]}function Id(e,t){return A0[e]||t}function E0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const R0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Zc="vueuse-storage";function T0(e,t,n,i={}){var a;const{flush:r="pre",deep:d=!0,listenToStorageChanges:g=!0,writeDefaults:l=!0,mergeDefaults:p=!1,shallow:o,window:s=ai,eventFilter:c,onError:h=T=>{console.error(T)},initOnMounted:u}=i,f=(o?Kh:Ue)(typeof t=="function"?t():t);if(!n)try{n=Id("getDefaultStorage",()=>{var T;return(T=ai)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!n)return f;const m=rn(t),v=E0(m),y=(a=i.serializer)!=null?a:R0[v],{pause:$,resume:_}=w0(f,()=>b(f.value),{flush:r,deep:d,eventFilter:c});s&&g&&Md(()=>{Yc(s,"storage",M),Yc(s,Zc,L),u&&M()}),u||M();function S(T,E){s&&s.dispatchEvent(new CustomEvent(Zc,{detail:{key:e,oldValue:T,newValue:E,storageArea:n}}))}function b(T){try{const E=n.getItem(e);if(T==null)S(E,null),n.removeItem(e);else{const C=y.write(T);E!==C&&(n.setItem(e,C),S(E,C))}}catch(E){h(E)}}function k(T){const E=T?T.newValue:n.getItem(e);if(E==null)return l&&m!=null&&n.setItem(e,y.write(m)),m;if(!T&&p){const C=y.read(E);return typeof p=="function"?p(C,m):v==="object"&&!Array.isArray(C)?{...m,...C}:C}else return typeof E!="string"?E:y.read(E)}function M(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){f.value=m;return}if(!(T&&T.key!==e)){$();try{(T==null?void 0:T.newValue)!==y.write(f.value)&&(f.value=k(T))}catch(E){h(E)}finally{T?Fr(_):_()}}}}function L(T){M(T.detail)}return f}function Nd(e){return C0("(prefers-color-scheme: dark)",e)}function L0(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:a=ai,storage:r,storageKey:d="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:l,emitAuto:p,disableTransition:o=!0}=e,s={auto:"",light:"light",dark:"dark",...e.modes||{}},c=Nd({window:a}),h=Ee(()=>c.value?"dark":"light"),u=l||(d==null?Ld(i):T0(d,i,r,{window:a,listenToStorageChanges:g})),f=Ee(()=>u.value==="auto"?h.value:u.value),m=Id("updateHTMLAttrs",(_,S,b)=>{const k=typeof _=="string"?a==null?void 0:a.document.querySelector(_):xl(_);if(!k)return;let M;if(o&&(M=a.document.createElement("style"),M.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),a.document.head.appendChild(M)),S==="class"){const L=b.split(/\s/g);Object.values(s).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{L.includes(T)?k.classList.add(T):k.classList.remove(T)})}else k.setAttribute(S,b);o&&(a.getComputedStyle(M).opacity,document.head.removeChild(M))});function v(_){var S;m(t,n,(S=s[_])!=null?S:_)}function y(_){e.onChanged?e.onChanged(_,v):v(_)}qe(f,y,{flush:"post",immediate:!0}),Md(()=>y(f.value));const $=Ee({get(){return p?u.value:f.value},set(_){u.value=_}});try{return Object.assign($,{store:u,system:h,state:f})}catch{return $}}function Fd(e={}){const{valueDark:t="dark",valueLight:n="",window:i=ai}=e,a=L0({...e,onChanged:(g,l)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,g==="dark",l,g):l(g)},modes:{dark:t,light:n}}),r=Ee(()=>a.system?a.system.value:Nd({window:i}).value?"dark":"light");return Ee({get(){return a.value==="dark"},set(g){const l=g?"dark":"light";r.value===l?a.value="auto":a.value=l}})}function bn(e=null,t={}){var n,i,a;const{document:r=S0,restoreOnUnmount:d=s=>s}=t,g=(n=r==null?void 0:r.title)!=null?n:"",l=Ld((i=e??(r==null?void 0:r.title))!=null?i:null),p=e&&typeof e=="function";function o(s){if(!("titleTemplate"in t))return s;const c=t.titleTemplate||"%s";return typeof c=="function"?c(s):rn(c).replace(/%s/g,s)}return qe(l,(s,c)=>{s!==c&&r&&(r.title=o(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!p&&x0((a=r.head)==null?void 0:a.querySelector("title"),()=>{r&&r.title!==l.value&&(l.value=o(r.title))},{childList:!0}),_0(()=>{if(d){const s=d(g,l.value||"");s!=null&&r&&(r.title=s)}}),l}const Cl=e=>(dl("data-v-a9b95eb0"),e=e(),fl(),e),M0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},O0=Cl(()=>F("div",{class:"navbar-brand"},[F("a",{class:"navbar-item"},[F("h1",{class:"title"},"Mihari")])],-1)),I0={class:"navbar-menu"},N0={class:"navbar-start"},F0=Cl(()=>F("a",{class:"navbar-item"},[F("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),D0=Cl(()=>F("a",{class:"navbar-item"},[F("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1)),P0={class:"navbar-end"},W0={class:"navbar-item"},B0=xe({__name:"NavbarItem",setup(e){const t=Fd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Pr(t);return(i,a)=>{const r=Ye("router-link"),d=Ye("font-awesome-icon");return K(),ie("nav",M0,[O0,F("div",I0,[F("div",N0,[ae(r,{class:"navbar-item",to:{name:"Alerts"}},{default:et(()=>[tt("Alerts")]),_:1}),ae(r,{class:"navbar-item",to:{name:"Artifacts"}},{default:et(()=>[tt("Artifacts")]),_:1}),ae(r,{class:"navbar-item",to:{name:"Rules"}},{default:et(()=>[tt("Rules")]),_:1}),ae(r,{class:"navbar-item",to:{name:"NewRule"}},{default:et(()=>[tt("New Rule")]),_:1}),ae(r,{class:"navbar-item",to:{name:"Config"}},{default:et(()=>[tt("Config")]),_:1}),F0,D0]),F("div",P0,[F("div",W0,[F("span",{class:"icon",onClick:a[0]||(a[0]=g=>ce(n)())},[ae(d,{icon:ce(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},H0=Wr(B0,[["__scopeId","data-v-a9b95eb0"]]),z0={class:"section is-medium"},U0={class:"container"},j0=xe({__name:"App",setup(e){return(t,n)=>{const i=Ye("router-view");return K(),ie(Pe,null,[ae(H0),F("section",z0,[F("div",U0,[ae(i)])])],64)}}});/*!
|
572
|
-
* vue-router v4.4.3
|
573
|
-
* (c) 2024 Eduardo San Martin Morote
|
574
|
-
* @license MIT
|
575
|
-
*/const gi=typeof document<"u";function V0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ke=Object.assign;function Lo(e,t){const n={};for(const i in t){const a=t[i];n[i]=Gt(a)?a.map(e):e(a)}return n}const or=()=>{},Gt=Array.isArray,Dd=/#/g,G0=/&/g,K0=/\//g,Y0=/=/g,Z0=/\?/g,Pd=/\+/g,X0=/%5B/g,q0=/%5D/g,Wd=/%5E/g,Q0=/%60/g,Bd=/%7B/g,J0=/%7C/g,Hd=/%7D/g,eb=/%20/g;function Al(e){return encodeURI(""+e).replace(J0,"|").replace(X0,"[").replace(q0,"]")}function tb(e){return Al(e).replace(Bd,"{").replace(Hd,"}").replace(Wd,"^")}function ma(e){return Al(e).replace(Pd,"%2B").replace(eb,"+").replace(Dd,"%23").replace(G0,"%26").replace(Q0,"`").replace(Bd,"{").replace(Hd,"}").replace(Wd,"^")}function nb(e){return ma(e).replace(Y0,"%3D")}function ib(e){return Al(e).replace(Dd,"%23").replace(Z0,"%3F")}function rb(e){return e==null?"":ib(e).replace(K0,"%2F")}function pr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const sb=/\/$/,ob=e=>e.replace(sb,"");function Mo(e,t,n="/"){let i,a={},r="",d="";const g=t.indexOf("#");let l=t.indexOf("?");return g<l&&g>=0&&(l=-1),l>-1&&(i=t.slice(0,l),r=t.slice(l+1,g>-1?g:t.length),a=e(r)),g>-1&&(i=i||t.slice(0,g),d=t.slice(g,t.length)),i=ub(i??t,n),{fullPath:i+(r&&"?")+r+d,path:i,query:a,hash:pr(d)}}function ab(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lb(e,t,n){const i=t.matched.length-1,a=n.matched.length-1;return i>-1&&i===a&&Ti(t.matched[i],n.matched[a])&&zd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ti(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cb(e[n],t[n]))return!1;return!0}function cb(e,t){return Gt(e)?qc(e,t):Gt(t)?qc(t,e):e===t}function qc(e,t){return Gt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function ub(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),a=i[i.length-1];(a===".."||a===".")&&i.push("");let r=n.length-1,d,g;for(d=0;d<i.length;d++)if(g=i[d],g!==".")if(g==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+i.slice(d).join("/")}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var gr;(function(e){e.pop="pop",e.push="push"})(gr||(gr={}));var ar;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ar||(ar={}));function hb(e){if(!e)if(gi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ob(e)}const db=/^[^#]+#/;function fb(e,t){return e.replace(db,"#")+t}function pb(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const Js=()=>({left:window.scrollX,top:window.scrollY});function gb(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=pb(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qc(e,t){return(history.state?history.state.position-t:-1)+e}const va=new Map;function mb(e,t){va.set(e,t)}function vb(e){const t=va.get(e);return va.delete(e),t}let yb=()=>location.protocol+"//"+location.host;function Ud(e,t){const{pathname:n,search:i,hash:a}=t,r=e.indexOf("#");if(r>-1){let g=a.includes(e.slice(r))?e.slice(r).length:1,l=a.slice(g);return l[0]!=="/"&&(l="/"+l),Xc(l,"")}return Xc(n,e)+i+a}function bb(e,t,n,i){let a=[],r=[],d=null;const g=({state:c})=>{const h=Ud(e,location),u=n.value,f=t.value;let m=0;if(c){if(n.value=h,t.value=c,d&&d===u){d=null;return}m=f?c.position-f.position:0}else i(h);a.forEach(v=>{v(n.value,u,{delta:m,type:gr.pop,direction:m?m>0?ar.forward:ar.back:ar.unknown})})};function l(){d=n.value}function p(c){a.push(c);const h=()=>{const u=a.indexOf(c);u>-1&&a.splice(u,1)};return r.push(h),h}function o(){const{history:c}=window;c.state&&c.replaceState(Ke({},c.state,{scroll:Js()}),"")}function s(){for(const c of r)c();r=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:l,listen:p,destroy:s}}function Jc(e,t,n,i=!1,a=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:a?Js():null}}function wb(e){const{history:t,location:n}=window,i={value:Ud(e,n)},a={value:t.state};a.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,p,o){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+l:yb()+e+l;try{t[o?"replaceState":"pushState"](p,"",c),a.value=p}catch(h){console.error(h),n[o?"replace":"assign"](c)}}function d(l,p){const o=Ke({},t.state,Jc(a.value.back,l,a.value.forward,!0),p,{position:a.value.position});r(l,o,!0),i.value=l}function g(l,p){const o=Ke({},a.value,t.state,{forward:l,scroll:Js()});r(o.current,o,!0);const s=Ke({},Jc(i.value,l,null),{position:o.position+1},p);r(l,s,!1),i.value=l}return{location:i,state:a,push:g,replace:d}}function _b(e){e=hb(e);const t=wb(e),n=bb(e,t.state,t.location,t.replace);function i(r,d=!0){d||n.pauseListeners(),history.go(r)}const a=Ke({location:"",base:e,go:i,createHref:fb.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Sb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),_b(e)}function $b(e){return typeof e=="string"||e&&typeof e=="object"}function jd(e){return typeof e=="string"||typeof e=="symbol"}const Vd=Symbol("");var eu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(eu||(eu={}));function Li(e,t){return Ke(new Error,{type:e,[Vd]:!0},t)}function ln(e,t){return e instanceof Error&&Vd in e&&(t==null||!!(e.type&t))}const tu="[^/]+?",xb={sensitive:!1,strict:!1,start:!0,end:!0},Cb=/[.+*?^${}()[\]/\\]/g;function Ab(e,t){const n=Ke({},xb,t),i=[];let a=n.start?"^":"";const r=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(a+="/");for(let s=0;s<p.length;s++){const c=p[s];let h=40+(n.sensitive?.25:0);if(c.type===0)s||(a+="/"),a+=c.value.replace(Cb,"\\$&"),h+=40;else if(c.type===1){const{value:u,repeatable:f,optional:m,regexp:v}=c;r.push({name:u,repeatable:f,optional:m});const y=v||tu;if(y!==tu){h+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${u}" (${y}): `+_.message)}}let $=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;s||($=m&&p.length<2?`(?:/${$})`:"/"+$),m&&($+="?"),a+=$,h+=20,m&&(h+=-8),f&&(h+=-20),y===".*"&&(h+=-50)}o.push(h)}i.push(o)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const d=new RegExp(a,n.sensitive?"":"i");function g(p){const o=p.match(d),s={};if(!o)return null;for(let c=1;c<o.length;c++){const h=o[c]||"",u=r[c-1];s[u.name]=h&&u.repeatable?h.split("/"):h}return s}function l(p){let o="",s=!1;for(const c of e){(!s||!o.endsWith("/"))&&(o+="/"),s=!1;for(const h of c)if(h.type===0)o+=h.value;else if(h.type===1){const{value:u,repeatable:f,optional:m}=h,v=u in p?p[u]:"";if(Gt(v)&&!f)throw new Error(`Provided param "${u}" is an array but it is not repeatable (* or + modifiers)`);const y=Gt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(o.endsWith("/")?o=o.slice(0,-1):s=!0);else throw new Error(`Missing required param "${u}"`);o+=y}}return o||"/"}return{re:d,score:i,keys:r,parse:g,stringify:l}}function kb(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Gd(e,t){let n=0;const i=e.score,a=t.score;for(;n<i.length&&n<a.length;){const r=kb(i[n],a[n]);if(r)return r;n++}if(Math.abs(a.length-i.length)===1){if(nu(i))return 1;if(nu(a))return-1}return a.length-i.length}function nu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Eb={type:0,value:""},Rb=/[a-zA-Z0-9_]/;function Tb(e){if(!e)return[[]];if(e==="/")return[[Eb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,i=n;const a=[];let r;function d(){r&&a.push(r),r=[]}let g=0,l,p="",o="";function s(){p&&(n===0?r.push({type:0,value:p}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:p,regexp:o,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=l}for(;g<e.length;){if(l=e[g++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(p&&s(),d()):l===":"?(s(),n=1):c();break;case 4:c(),n=i;break;case 1:l==="("?n=2:Rb.test(l)?c():(s(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--);break;case 2:l===")"?o[o.length-1]=="\\"?o=o.slice(0,-1)+l:n=3:o+=l;break;case 3:s(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),s(),d(),a}function Lb(e,t,n){const i=Ab(Tb(e.path),n),a=Ke(i,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Mb(e,t){const n=[],i=new Map;t=su({strict:!1,end:!0,sensitive:!1},t);function a(s){return i.get(s)}function r(s,c,h){const u=!h,f=Ob(s);f.aliasOf=h&&h.record;const m=su(t,s),v=[f];if("alias"in s){const _=typeof s.alias=="string"?[s.alias]:s.alias;for(const S of _)v.push(Ke({},f,{components:h?h.record.components:f.components,path:S,aliasOf:h?h.record:f}))}let y,$;for(const _ of v){const{path:S}=_;if(c&&S[0]!=="/"){const b=c.record.path,k=b[b.length-1]==="/"?"":"/";_.path=c.record.path+(S&&k+S)}if(y=Lb(_,c,m),h?h.alias.push(y):($=$||y,$!==y&&$.alias.push(y),u&&s.name&&!ru(y)&&d(s.name)),Kd(y)&&l(y),f.children){const b=f.children;for(let k=0;k<b.length;k++)r(b[k],y,h&&h.children[k])}h=h||y}return $?()=>{d($)}:or}function d(s){if(jd(s)){const c=i.get(s);c&&(i.delete(s),n.splice(n.indexOf(c),1),c.children.forEach(d),c.alias.forEach(d))}else{const c=n.indexOf(s);c>-1&&(n.splice(c,1),s.record.name&&i.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function l(s){const c=Fb(s,n);n.splice(c,0,s),s.record.name&&!ru(s)&&i.set(s.record.name,s)}function p(s,c){let h,u={},f,m;if("name"in s&&s.name){if(h=i.get(s.name),!h)throw Li(1,{location:s});m=h.record.name,u=Ke(iu(c.params,h.keys.filter($=>!$.optional).concat(h.parent?h.parent.keys.filter($=>$.optional):[]).map($=>$.name)),s.params&&iu(s.params,h.keys.map($=>$.name))),f=h.stringify(u)}else if(s.path!=null)f=s.path,h=n.find($=>$.re.test(f)),h&&(u=h.parse(f),m=h.record.name);else{if(h=c.name?i.get(c.name):n.find($=>$.re.test(c.path)),!h)throw Li(1,{location:s,currentLocation:c});m=h.record.name,u=Ke({},c.params,s.params),f=h.stringify(u)}const v=[];let y=h;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:f,params:u,matched:v,meta:Nb(v)}}e.forEach(s=>r(s));function o(){n.length=0,i.clear()}return{addRoute:r,resolve:p,removeRoute:d,clearRoutes:o,getRoutes:g,getRecordMatcher:a}}function iu(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Ob(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ib(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ib(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function ru(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Nb(e){return e.reduce((t,n)=>Ke(t,n.meta),{})}function su(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Fb(e,t){let n=0,i=t.length;for(;n!==i;){const r=n+i>>1;Gd(e,t[r])<0?i=r:n=r+1}const a=Db(e);return a&&(i=t.lastIndexOf(a,i-1)),i}function Db(e){let t=e;for(;t=t.parent;)if(Kd(t)&&Gd(e,t)===0)return t}function Kd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pb(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<i.length;++a){const r=i[a].replace(Pd," "),d=r.indexOf("="),g=pr(d<0?r:r.slice(0,d)),l=d<0?null:pr(r.slice(d+1));if(g in t){let p=t[g];Gt(p)||(p=t[g]=[p]),p.push(l)}else t[g]=l}return t}function ou(e){let t="";for(let n in e){const i=e[n];if(n=nb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Gt(i)?i.map(r=>r&&ma(r)):[i&&ma(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Wb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Gt(i)?i.map(a=>a==null?null:""+a):i==null?i:""+i)}return t}const Bb=Symbol(""),au=Symbol(""),eo=Symbol(""),kl=Symbol(""),ya=Symbol("");function Vi(){let e=[];function t(i){return e.push(i),()=>{const a=e.indexOf(i);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function kn(e,t,n,i,a,r=d=>d()){const d=i&&(i.enterCallbacks[a]=i.enterCallbacks[a]||[]);return()=>new Promise((g,l)=>{const p=c=>{c===!1?l(Li(4,{from:n,to:t})):c instanceof Error?l(c):$b(c)?l(Li(2,{from:t,to:c})):(d&&i.enterCallbacks[a]===d&&typeof c=="function"&&d.push(c),g())},o=r(()=>e.call(i&&i.instances[a],t,n,p));let s=Promise.resolve(o);e.length<3&&(s=s.then(p)),s.catch(c=>l(c))})}function Oo(e,t,n,i,a=r=>r()){const r=[];for(const d of e)for(const g in d.components){let l=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Hb(l)){const o=(l.__vccOpts||l)[t];o&&r.push(kn(o,n,i,d,g,a))}else{let p=l();r.push(()=>p.then(o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const s=V0(o)?o.default:o;d.components[g]=s;const h=(s.__vccOpts||s)[t];return h&&kn(h,n,i,d,g,a)()}))}}return r}function Hb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lu(e){const t=zt(eo),n=zt(kl),i=Ee(()=>{const l=ce(e.to);return t.resolve(l)}),a=Ee(()=>{const{matched:l}=i.value,{length:p}=l,o=l[p-1],s=n.matched;if(!o||!s.length)return-1;const c=s.findIndex(Ti.bind(null,o));if(c>-1)return c;const h=cu(l[p-2]);return p>1&&cu(o)===h&&s[s.length-1].path!==h?s.findIndex(Ti.bind(null,l[p-2])):c}),r=Ee(()=>a.value>-1&&Vb(n.params,i.value.params)),d=Ee(()=>a.value>-1&&a.value===n.matched.length-1&&zd(n.params,i.value.params));function g(l={}){return jb(l)?t[ce(e.replace)?"replace":"push"](ce(e.to)).catch(or):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:r,isExactActive:d,navigate:g}}const zb=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lu,setup(e,{slots:t}){const n=Pi(lu(e)),{options:i}=zt(eo),a=Ee(()=>({[uu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[uu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:qs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}}),Ub=zb;function jb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vb(e,t){for(const n in t){const i=t[n],a=e[n];if(typeof i=="string"){if(i!==a)return!1}else if(!Gt(a)||a.length!==i.length||i.some((r,d)=>r!==a[d]))return!1}return!0}function cu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uu=(e,t,n)=>e??t??n,Gb=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=zt(ya),a=Ee(()=>e.route||i.value),r=zt(au,0),d=Ee(()=>{let p=ce(r);const{matched:o}=a.value;let s;for(;(s=o[p])&&!s.components;)p++;return p}),g=Ee(()=>a.value.matched[d.value]);os(au,Ee(()=>d.value+1)),os(Bb,g),os(ya,a);const l=Ue();return qe(()=>[l.value,g.value,e.name],([p,o,s],[c,h,u])=>{o&&(o.instances[s]=p,h&&h!==o&&p&&p===c&&(o.leaveGuards.size||(o.leaveGuards=h.leaveGuards),o.updateGuards.size||(o.updateGuards=h.updateGuards))),p&&o&&(!h||!Ti(o,h)||!c)&&(o.enterCallbacks[s]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=a.value,o=e.name,s=g.value,c=s&&s.components[o];if(!c)return hu(n.default,{Component:c,route:p});const h=s.props[o],u=h?h===!0?p.params:typeof h=="function"?h(p):h:null,m=qs(c,Ke({},u,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(s.instances[o]=null)},ref:l}));return hu(n.default,{Component:m,route:p})||m}}});function hu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kb=Gb;function Yb(e){const t=Mb(e.routes,e),n=e.parseQuery||Pb,i=e.stringifyQuery||ou,a=e.history,r=Vi(),d=Vi(),g=Vi(),l=Kh($n);let p=$n;gi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=Lo.bind(null,U=>""+U),s=Lo.bind(null,rb),c=Lo.bind(null,pr);function h(U,Y){let X,Q;return jd(U)?(X=t.getRecordMatcher(U),Q=Y):Q=U,t.addRoute(Q,X)}function u(U){const Y=t.getRecordMatcher(U);Y&&t.removeRoute(Y)}function f(){return t.getRoutes().map(U=>U.record)}function m(U){return!!t.getRecordMatcher(U)}function v(U,Y){if(Y=Ke({},Y||l.value),typeof U=="string"){const W=Mo(n,U,Y.path),G=t.resolve({path:W.path},Y),ne=a.createHref(W.fullPath);return Ke(W,G,{params:c(G.params),hash:pr(W.hash),redirectedFrom:void 0,href:ne})}let X;if(U.path!=null)X=Ke({},U,{path:Mo(n,U.path,Y.path).path});else{const W=Ke({},U.params);for(const G in W)W[G]==null&&delete W[G];X=Ke({},U,{params:s(W)}),Y.params=s(Y.params)}const Q=t.resolve(X,Y),ue=U.hash||"";Q.params=o(c(Q.params));const we=ab(i,Ke({},U,{hash:tb(ue),path:Q.path})),P=a.createHref(we);return Ke({fullPath:we,hash:ue,query:i===ou?Wb(U.query):U.query||{}},Q,{redirectedFrom:void 0,href:P})}function y(U){return typeof U=="string"?Mo(n,U,l.value.path):Ke({},U)}function $(U,Y){if(p!==U)return Li(8,{from:Y,to:U})}function _(U){return k(U)}function S(U){return _(Ke(y(U),{replace:!0}))}function b(U){const Y=U.matched[U.matched.length-1];if(Y&&Y.redirect){const{redirect:X}=Y;let Q=typeof X=="function"?X(U):X;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Ke({query:U.query,hash:U.hash,params:Q.path!=null?{}:U.params},Q)}}function k(U,Y){const X=p=v(U),Q=l.value,ue=U.state,we=U.force,P=U.replace===!0,W=b(X);if(W)return k(Ke(y(W),{state:typeof W=="object"?Ke({},ue,W.state):ue,force:we,replace:P}),Y||X);const G=X;G.redirectedFrom=Y;let ne;return!we&&lb(i,Q,X)&&(ne=Li(16,{to:G,from:Q}),H(Q,Q,!0,!1)),(ne?Promise.resolve(ne):T(G,Q)).catch(ee=>ln(ee)?ln(ee,2)?ee:D(ee):I(ee,G,Q)).then(ee=>{if(ee){if(ln(ee,2))return k(Ke({replace:P},y(ee.to),{state:typeof ee.to=="object"?Ke({},ue,ee.to.state):ue,force:we}),Y||G)}else ee=C(G,Q,!0,P,ue);return E(G,Q,ee),ee})}function M(U,Y){const X=$(U,Y);return X?Promise.reject(X):Promise.resolve()}function L(U){const Y=B.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(U):U()}function T(U,Y){let X;const[Q,ue,we]=Zb(U,Y);X=Oo(Q.reverse(),"beforeRouteLeave",U,Y);for(const W of Q)W.leaveGuards.forEach(G=>{X.push(kn(G,U,Y))});const P=M.bind(null,U,Y);return X.push(P),q(X).then(()=>{X=[];for(const W of r.list())X.push(kn(W,U,Y));return X.push(P),q(X)}).then(()=>{X=Oo(ue,"beforeRouteUpdate",U,Y);for(const W of ue)W.updateGuards.forEach(G=>{X.push(kn(G,U,Y))});return X.push(P),q(X)}).then(()=>{X=[];for(const W of we)if(W.beforeEnter)if(Gt(W.beforeEnter))for(const G of W.beforeEnter)X.push(kn(G,U,Y));else X.push(kn(W.beforeEnter,U,Y));return X.push(P),q(X)}).then(()=>(U.matched.forEach(W=>W.enterCallbacks={}),X=Oo(we,"beforeRouteEnter",U,Y,L),X.push(P),q(X))).then(()=>{X=[];for(const W of d.list())X.push(kn(W,U,Y));return X.push(P),q(X)}).catch(W=>ln(W,8)?W:Promise.reject(W))}function E(U,Y,X){g.list().forEach(Q=>L(()=>Q(U,Y,X)))}function C(U,Y,X,Q,ue){const we=$(U,Y);if(we)return we;const P=Y===$n,W=gi?history.state:{};X&&(Q||P?a.replace(U.fullPath,Ke({scroll:P&&W&&W.scroll},ue)):a.push(U.fullPath,ue)),l.value=U,H(U,Y,X,P),D()}let x;function w(){x||(x=a.listen((U,Y,X)=>{if(!V.listening)return;const Q=v(U),ue=b(Q);if(ue){k(Ke(ue,{replace:!0}),Q).catch(or);return}p=Q;const we=l.value;gi&&mb(Qc(we.fullPath,X.delta),Js()),T(Q,we).catch(P=>ln(P,12)?P:ln(P,2)?(k(P.to,Q).then(W=>{ln(W,20)&&!X.delta&&X.type===gr.pop&&a.go(-1,!1)}).catch(or),Promise.reject()):(X.delta&&a.go(-X.delta,!1),I(P,Q,we))).then(P=>{P=P||C(Q,we,!1),P&&(X.delta&&!ln(P,8)?a.go(-X.delta,!1):X.type===gr.pop&&ln(P,20)&&a.go(-1,!1)),E(Q,we,P)}).catch(or)}))}let A=Vi(),R=Vi(),O;function I(U,Y,X){D(U);const Q=R.list();return Q.length?Q.forEach(ue=>ue(U,Y,X)):console.error(U),Promise.reject(U)}function N(){return O&&l.value!==$n?Promise.resolve():new Promise((U,Y)=>{A.add([U,Y])})}function D(U){return O||(O=!U,w(),A.list().forEach(([Y,X])=>U?X(U):Y()),A.reset()),U}function H(U,Y,X,Q){const{scrollBehavior:ue}=e;if(!gi||!ue)return Promise.resolve();const we=!X&&vb(Qc(U.fullPath,0))||(Q||!X)&&history.state&&history.state.scroll||null;return Fr().then(()=>ue(U,Y,we)).then(P=>P&&gb(P)).catch(P=>I(P,U,Y))}const j=U=>a.go(U);let z;const B=new Set,V={currentRoute:l,listening:!0,addRoute:h,removeRoute:u,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:v,options:e,push:_,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:r.add,beforeResolve:d.add,afterEach:g.add,onError:R.add,isReady:N,install(U){const Y=this;U.component("RouterLink",Ub),U.component("RouterView",Kb),U.config.globalProperties.$router=Y,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>ce(l)}),gi&&!z&&l.value===$n&&(z=!0,_(a.location).catch(ue=>{}));const X={};for(const ue in $n)Object.defineProperty(X,ue,{get:()=>l.value[ue],enumerable:!0});U.provide(eo,Y),U.provide(kl,Uh(X)),U.provide(ya,l);const Q=U.unmount;B.add(U),U.unmount=function(){B.delete(U),B.size<1&&(p=$n,x&&x(),x=null,l.value=$n,z=!1,O=!1),Q()}}};function q(U){return U.reduce((Y,X)=>Y.then(()=>L(X)),Promise.resolve())}return V}function Zb(e,t){const n=[],i=[],a=[],r=Math.max(t.matched.length,e.matched.length);for(let d=0;d<r;d++){const g=t.matched[d];g&&(e.matched.find(p=>Ti(p,g))?i.push(g):n.push(g));const l=e.matched[d];l&&(t.matched.find(p=>Ti(p,l))||a.push(l))}return[n,i,a]}function Wi(){return zt(eo)}function Xb(e){return zt(kl)}const Io=new WeakMap;function Mi(e,t,n={}){const{mode:i="replace",route:a=Xb(),router:r=Wi(),transform:d=s=>s}=n;Io.has(r)||Io.set(r,new Map);const g=Io.get(r);let l=a.query[e];Qs(()=>{l=void 0});let p;const o=Xh((s,c)=>(p=c,{get(){return s(),d(l!==void 0?l:rn(t))},set(h){l!==h&&(l=h===t||h===null?void 0:h,g.set(e,h===t||h===null?void 0:h),c(),Fr(()=>{if(g.size===0)return;const u=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=a;r[rn(i)]({params:f,query:{...m,...u},hash:v})}))}}));return qe(()=>a.query[e],s=>{l=s,p()},{flush:"sync"}),o}/*! CAF: shared.mjs
|
576
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
577
|
-
MIT License: http://getify.mit-license.org
|
578
|
-
*/const dn=Symbol("Cleanup Function"),El=Symbol("Timeout Token"),yi=Symbol("Signal Reason"),dt=Symbol("Unset"),[us,qb]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Tl(t.signal.reason)]}();class li{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[yi]=dt;var i=(a,r)=>{var d=()=>{if(r&&this.signal){let g=Br(this.signal);this._trackSignalReason(g),r(g!==dt?g:void 0)}r=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[dn]=null)),d=null}};this.signal.pr=new Promise(i),this.signal.pr[dn]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:dt;this._trackSignalReason(n),this.controller&&(us&&n!==dt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[dn]&&this.signal.pr[dn](),this.signal.pr=null),delete this.signal[yi],us||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==dt&&(us||"reason"in this.signal||(this.signal.reason=t),this.signal[yi]===dt&&(this.signal[yi]=t))}}function Br(e){return e&&e.aborted?us&&qb?Tl(e.reason)?dt:e.reason:yi in e?e[yi]:dt:dt}function Yd(e){if(e.pr)return e.pr;var t,n=new Promise(function(a,r){t=()=>{if(r&&e){let d=Br(e);r(d!==dt?d:void 0)}r=null},e.addEventListener("abort",t,!1)});return n[dn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[dn]=t=null)},n.catch(n[dn]),n}function Rl(e){e instanceof AbortController&&(e=new li(e));var t=e&&e instanceof li?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Yd(t)}}function ba(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Gn(e){return typeof e=="function"}function Qb(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Tl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function to(e,t){Tl(t)||t===dt?e.abort():e.abort(t)}/*! CAF: caf.mjs
|
579
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
580
|
-
MIT License: http://getify.mit-license.org
|
581
|
-
*/const wa=Object.assign(Jb,{cancelToken:li,delay:Zd,timeout:e1,signalRace:t1,signalAll:n1,tokenCycle:i1});function Jb(e){return function(n,...i){var a,r;if({tokenOrSignal:n,signal:a,signalPr:r}=Rl(n),a.aborted)return r;var d=r.catch(function(s){var c=Br(a);c=c!==dt?c:s;try{var h=g.return();throw h.value!==void 0?h.value:c!==dt?c:void 0}finally{g=l=d=p=null}}),{it:g,result:l}=r1.call(this,e,a,...i),p=Promise.race([l,d]);if(n!==a&&n[El]){let o=function(c){to(n,c),Gn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return i=null,p}}function Zd(e,t){var n,i;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:i}=Rl(e)),n&&n.aborted?i:new Promise(function(r,d){n&&(i.catch(function(){if(d&&n&&g){let p=Br(n);clearTimeout(g),d(p!==dt?p:`delay (${t}) interrupted`),r=d=g=n=null}}),i=null);var g=setTimeout(function(){r(`delayed: ${t}`),r=d=g=n=null},t)})}function e1(e,t="Timeout"){e=Number(e)||0;var n=new li;return Zd(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,El,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...a){to(n,a.length>0?a[0]:dt),n.discard(),n=null}}function Xd(e){return e.reduce(function(n,i){var a=Yd(i);return n[0].push(a),i.pr||n[1].push(a),n},[[],[]])}function qd(e,t,n){e.then(function(a){to(t,a),t.discard(),t=null}).then(function(){for(let a of n)a[dn]&&a[dn]();n=null})}function Qd(e){return e.catch(t=>t)}function t1(e){var t=new li,[n,i]=Xd(e);return qd(Qd(Promise.race(n)),t,i),t.signal}function n1(e){var t=new li,[n,i]=Xd(e);return qd(Promise.all(n.map(Qd)),t,i),t.signal}function i1(){var e;return function(...n){return e&&(to(e,n.length>0?n[0]:dt),e.discard()),e=new li}}function r1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(a){try{var r=n.next(a);a=null}catch(d){return Promise.reject(d)}return function d(g){var l=Promise.resolve(g.value);return g.done?n=null:(l=l.then(i,function(o){return Promise.resolve(n.throw(o)).then(d)})).catch(function(){n=null}),g=null,l}(r)}()}}/*! CAF: cag.mjs
|
582
|
-
v15.0.1 (c) 2022 Kyle Simpson
|
583
|
-
MIT License: http://getify.mit-license.org
|
584
|
-
*/Sa=wa(Sa);Object.assign(ef,{onEvent:tf,onceEvent:Sa});var _a=new WeakSet;const No=Symbol("unset"),Jd=Symbol("returned"),du=Symbol("canceled");function ef(e){return function(n,...i){var a,r;if({tokenOrSignal:n,signal:a,signalPr:r}=Rl(n),a.aborted){let s=Br(a);throw s=s!==dt?s:"Aborted",s}var d=ba(),{it:g,ait:l}=o1(e,d.pr,o,a,...i),p=l.return;return l.return=function(c){try{return d.pr.resolved=!0,d.resolve(Jd),Promise.resolve(g.return(c))}finally{p.call(l),o()}},l;function o(){n&&n!==a&&n[El]&&n.abort(),l&&(l.return=p,n=d=g=l=p=null)}}}function tf(e,t,n,i=!1){var a,r,d=!1,g=ef(function*({pwait:s}){d||l();try{for(;;){if(a.length==0){let{pr:c,resolve:h}=ba();a.push(c),r.push(h)}yield yield s(a.shift())}}finally{Gn(t.removeEventListener)?t.removeEventListener(n,p,i):Gn(t.removeListener)?t.removeListener(n,p):Gn(t.off)&&t.off(n,p),a.length=r.length=0}})(e,t,n,i);return g.start=l,g;function l(){d||(d=!0,a=[],r=[],Gn(t.addEventListener)?t.addEventListener(n,p,i):Gn(t.addListener)?t.addListener(n,p):Gn(t.on)&&t.on(n,p))}function p(o){if(r.length>0)r.shift()(o);else{let{pr:s,resolve:c}=ba();a.push(s),c(o)}}}function*Sa(e,t,n,i=!1){try{var a=tf(e,t,n,i);return(yield a.next()).value}finally{a.return()}}function s1(e){var t=Promise.resolve(e);return _a.add(t),t}function o1(e,t,n,i,...a){var r=e.call(this,{signal:i,pwait:s1},...a);e=a=null;var d=i.pr.catch(g=>{throw{[du]:!0,reason:g}});return d.catch(()=>{}),{it:r,ait:async function*(){var l,p=No;try{for(;!t.resolved;)if(p!==No?(l=p,p=No,l=r.throw(l)):l=r.next(l),Qb(l.value))if(_a.has(l.value)){_a.delete(l.value);try{if((l=await Promise.race([t,d,l.value]))===Jd)return}catch(o){if(o[du]){let s=r.return();throw s.value!==void 0?s.value:o.reason}p=o}}else l=yield l.value;else{if(l.done)return l.value;l=yield l.value}}finally{r=t=null,n()}}()}}const a1=e=>e._runningInstances.length>=e._maxConcurrency,l1=e=>{const t=e._activeInstances[0];t&&t.cancel()},c1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Gi(e,t){return t?u1(()=>e()._instances,t):Ee(()=>[])}function u1(e,t,n){return Ee(()=>e().filter(i=>i[t]))}function h1(e){return Ee(()=>e().length)}function fu(e){return Ee(()=>{const t=e();return t[t.length-1]})}function d1(e){return Ee(()=>e()[0])}const nf=e=>e;function rf(e){return Pi(e)}function f1(){const e={},t=new Promise((n,i)=>{e.resolve=n,e.reject=i});return e.promise=t,e}function bt(e){return m1(function*(t,...n){return e(t,...n)})}function p1(e,t,n){const i=nf({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(()=>a.isCanceling&&a.isFinished),isActive:Ee(()=>a.isRunning&&!a.isCanceling),isSuccessful:!1,isNotDropped:Ee(()=>!a.isDropped),isError:Ee(()=>!!a.error),status:Ee(()=>{const d=a,g=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([l])=>l);return g&&g[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(a.isCanceling=!0,a.isEnqueued&&(a.isFinished=!0),a.isEnqueued=!1),a.token&&a._canAbort){a.token.abort("cancel");try{a.token.discard()}catch{}a.token=void 0,a._canAbort=!1}},canceledOn(d){return d.pr.catch(()=>{a.cancel()}),a},_run(){g1(a,e,t,n)},_handled:!0,_deferredObject:f1(),_shouldThrow:!1,_canAbort:!0,then(d,g){return a._shouldThrow=!0,a._deferredObject.promise.then(d,g)},catch(d,g=!0){return a._shouldThrow=g,a._deferredObject.promise.catch(d)},finally(d){return a._shouldThrow=!0,a._deferredObject.promise.finally(d)}}),a=rf(i),{modifiers:r}=n;return r.drop?a.isDropped=!0:r.enqueue?a.isEnqueued=!0:a._run(),a}function g1(e,t,n,i){const a=new wa.cancelToken,r=wa(t,a);e.token=a,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}r.call(e,a,...n).then(g=>{e.value=g,e.isSuccessful=!0,d(),e._deferredObject.resolve(g),e._canAbort=!1,i.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),d(),e._shouldThrow&&e._deferredObject.reject(g),i.onFinish(e)})}function m1(e,t={cancelOnUnmount:!0}){const n=Sl(),i=Vm(),a=nf({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ee(()=>r._isRestartable||r._isDropping||r._isEnqueuing||r._isKeepingLatest),isIdle:Ee(()=>!r.isRunning),isRunning:Ee(()=>!!r._instances.find(d=>d.isRunning)),isError:Ee(()=>!!(r.last&&r.last.isError)),_instances:[],_successfulInstances:Gi(()=>r,"isSuccessful"),_runningInstances:Gi(()=>r,"isRunning"),_enqueuedInstances:Gi(()=>r,"isEnqueued"),_notDroppedInstances:Gi(()=>r,"isNotDropped"),_activeInstances:Gi(()=>r,"isActive"),performCount:h1(()=>r._instances),last:fu(()=>r._notDroppedInstances),lastSuccessful:fu(()=>r._successfulInstances),firstEnqueued:d1(()=>r._enqueuedInstances),cancelAll({force:d}={force:!1}){r._instances.forEach(g=>{try{(d||!g.isDropped&&!g.isFinished)&&g.cancel({force:d})}catch(l){if(l!=="cancel")throw l}})},perform(...d){const g={enqueue:!1,drop:!1};r._hasConcurrency&&a1(r)&&(r._isDropping&&(g.drop=!0),r._isRestartable&&l1(r),r._isKeepingLatest&&c1(r),(r._isEnqueuing||r._isKeepingLatest)&&(g.enqueue=!0));const l=()=>v1(r),p=()=>p1(e,d,{modifiers:g,onFinish:l,scope:i,id:r._instances.length+1}),o=i.active?i.run(p):p();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),r._instances=[...r._instances,o],o},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){i.stop(),this.clear()},restartable(){return r._resetModifierFlags(),r._isRestartable=!0,r},drop(){return r._resetModifierFlags(),r._isDropping=!0,r},enqueue(){return r._resetModifierFlags(),r._isEnqueuing=!0,r},keepLatest(){return r._resetModifierFlags(),r._isKeepingLatest=!0,r},_resetModifierFlags(){r._isKeepingLatest=!1,r._isRestartable=!1,r._isEnqueuing=!1,r._isDropping=!1},maxConcurrency(d){return r._maxConcurrency=d,r}}),r=rf(a);return n&&t.cancelOnUnmount&&gl(()=>{r._instances&&r.destroy()}),r}function v1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:y1}=Object.prototype,{getPrototypeOf:Ll}=Object,no=(e=>t=>{const n=y1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yt=e=>(e=e.toLowerCase(),t=>no(t)===e),io=e=>t=>typeof t===e,{isArray:Bi}=Array,mr=io("undefined");function b1(e){return e!==null&&!mr(e)&&e.constructor!==null&&!mr(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const of=Yt("ArrayBuffer");function w1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&of(e.buffer),t}const _1=io("string"),It=io("function"),af=io("number"),ro=e=>e!==null&&typeof e=="object",S1=e=>e===!0||e===!1,hs=e=>{if(no(e)!=="object")return!1;const t=Ll(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$1=Yt("Date"),x1=Yt("File"),C1=Yt("Blob"),A1=Yt("FileList"),k1=e=>ro(e)&&It(e.pipe),E1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=no(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},R1=Yt("URLSearchParams"),[T1,L1,M1,O1]=["ReadableStream","Request","Response","Headers"].map(Yt),I1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,a;if(typeof e!="object"&&(e=[e]),Bi(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),d=r.length;let g;for(i=0;i<d;i++)g=r[i],t.call(null,e[g],g,e)}}function lf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,a;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cf=e=>!mr(e)&&e!==Xn;function $a(){const{caseless:e}=cf(this)&&this||{},t={},n=(i,a)=>{const r=e&&lf(t,a)||a;hs(t[r])&&hs(i)?t[r]=$a(t[r],i):hs(i)?t[r]=$a({},i):Bi(i)?t[r]=i.slice():t[r]=i};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Hr(arguments[i],n);return t}const N1=(e,t,n,{allOwnKeys:i}={})=>(Hr(t,(a,r)=>{n&&It(a)?e[r]=sf(a,n):e[r]=a},{allOwnKeys:i}),e),F1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D1=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},P1=(e,t,n,i)=>{let a,r,d;const g={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)d=a[r],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&Ll(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},W1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},B1=e=>{if(!e)return null;if(Bi(e))return e;let t=e.length;if(!af(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},H1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ll(Uint8Array)),z1=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=i.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},U1=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},j1=Yt("HTMLFormElement"),V1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),pu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G1=Yt("RegExp"),uf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Hr(n,(a,r)=>{let d;(d=t(a,r,e))!==!1&&(i[r]=d||a)}),Object.defineProperties(e,i)},K1=e=>{uf(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(It(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Y1=(e,t)=>{const n={},i=a=>{a.forEach(r=>{n[r]=!0})};return Bi(e)?i(e):i(String(e).split(t)),n},Z1=()=>{},X1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Fo="abcdefghijklmnopqrstuvwxyz",gu="0123456789",hf={DIGIT:gu,ALPHA:Fo,ALPHA_DIGIT:Fo+Fo.toUpperCase()+gu},q1=(e=16,t=hf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Q1(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const J1=e=>{const t=new Array(10),n=(i,a)=>{if(ro(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[a]=i;const r=Bi(i)?[]:{};return Hr(i,(d,g)=>{const l=n(d,a+1);!mr(l)&&(r[g]=l)}),t[a]=void 0,r}}return i};return n(e,0)},ew=Yt("AsyncFunction"),tw=e=>e&&(ro(e)||It(e))&&It(e.then)&&It(e.catch),df=((e,t)=>e?setImmediate:t?((n,i)=>(Xn.addEventListener("message",({source:a,data:r})=>{a===Xn&&r===n&&i.length&&i.shift()()},!1),a=>{i.push(a),Xn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",It(Xn.postMessage)),nw=typeof queueMicrotask<"u"?queueMicrotask.bind(Xn):typeof process<"u"&&process.nextTick||df,J={isArray:Bi,isArrayBuffer:of,isBuffer:b1,isFormData:E1,isArrayBufferView:w1,isString:_1,isNumber:af,isBoolean:S1,isObject:ro,isPlainObject:hs,isReadableStream:T1,isRequest:L1,isResponse:M1,isHeaders:O1,isUndefined:mr,isDate:$1,isFile:x1,isBlob:C1,isRegExp:G1,isFunction:It,isStream:k1,isURLSearchParams:R1,isTypedArray:H1,isFileList:A1,forEach:Hr,merge:$a,extend:N1,trim:I1,stripBOM:F1,inherits:D1,toFlatObject:P1,kindOf:no,kindOfTest:Yt,endsWith:W1,toArray:B1,forEachEntry:z1,matchAll:U1,isHTMLForm:j1,hasOwnProperty:pu,hasOwnProp:pu,reduceDescriptors:uf,freezeMethods:K1,toObjectSet:Y1,toCamelCase:V1,noop:Z1,toFiniteNumber:X1,findKey:lf,global:Xn,isContextDefined:cf,ALPHABET:hf,generateString:q1,isSpecCompliantForm:Q1,toJSONObject:J1,isAsyncFn:ew,isThenable:tw,setImmediate:df,asap:nw};function Fe(e,t,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a)}J.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ff=Fe.prototype,pf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pf[e]={value:e}});Object.defineProperties(Fe,pf);Object.defineProperty(ff,"isAxiosError",{value:!0});Fe.from=(e,t,n,i,a,r)=>{const d=Object.create(ff);return J.toFlatObject(e,d,function(l){return l!==Error.prototype},g=>g!=="isAxiosError"),Fe.call(d,e.message,t,n,i,a),d.cause=e,d.name=e.name,r&&Object.assign(d,r),d};const iw=null;function xa(e){return J.isPlainObject(e)||J.isArray(e)}function gf(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function mu(e,t,n){return e?e.concat(t).map(function(a,r){return a=gf(a),!n&&r?"["+a+"]":a}).join(n?".":""):t}function rw(e){return J.isArray(e)&&!e.some(xa)}const sw=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function so(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!J.isUndefined(m[f])});const i=n.metaTokens,a=n.visitor||o,r=n.dots,d=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(J.isDate(u))return u.toISOString();if(!l&&J.isBlob(u))throw new Fe("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(u)||J.isTypedArray(u)?l&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function o(u,f,m){let v=u;if(u&&!m&&typeof u=="object"){if(J.endsWith(f,"{}"))f=i?f:f.slice(0,-2),u=JSON.stringify(u);else if(J.isArray(u)&&rw(u)||(J.isFileList(u)||J.endsWith(f,"[]"))&&(v=J.toArray(u)))return f=gf(f),v.forEach(function($,_){!(J.isUndefined($)||$===null)&&t.append(d===!0?mu([f],_,r):d===null?f:f+"[]",p($))}),!1}return xa(u)?!0:(t.append(mu(m,f,r),p(u)),!1)}const s=[],c=Object.assign(sw,{defaultVisitor:o,convertValue:p,isVisitable:xa});function h(u,f){if(!J.isUndefined(u)){if(s.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));s.push(u),J.forEach(u,function(v,y){(!(J.isUndefined(v)||v===null)&&a.call(t,v,J.isString(y)?y.trim():y,f,c))===!0&&h(v,f?f.concat(y):[y])}),s.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return h(e),t}function vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ml(e,t){this._pairs=[],e&&so(e,this,t)}const mf=Ml.prototype;mf.append=function(t,n){this._pairs.push([t,n])};mf.toString=function(t){const n=t?function(i){return t.call(this,i,vu)}:vu;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function ow(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vf(e,t,n){if(!t)return e;const i=n&&n.encode||ow,a=n&&n.serialize;let r;if(a?r=a(t,n):r=J.isURLSearchParams(t)?t.toString():new Ml(t,n).toString(i),r){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class yu{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(i){i!==null&&t(i)})}}const yf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aw=typeof URLSearchParams<"u"?URLSearchParams:Ml,lw=typeof FormData<"u"?FormData:null,cw=typeof Blob<"u"?Blob:null,uw={isBrowser:!0,classes:{URLSearchParams:aw,FormData:lw,Blob:cw},protocols:["http","https","file","blob","url","data"]},Ol=typeof window<"u"&&typeof document<"u",hw=(e=>Ol&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fw=Ol&&window.location.href||"http://localhost",pw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ol,hasStandardBrowserEnv:hw,hasStandardBrowserWebWorkerEnv:dw,origin:fw},Symbol.toStringTag,{value:"Module"})),Ut={...pw,...uw};function gw(e,t){return so(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,i,a,r){return Ut.isNode&&J.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function mw(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vw(e){const t={},n=Object.keys(e);let i;const a=n.length;let r;for(i=0;i<a;i++)r=n[i],t[r]=e[r];return t}function bf(e){function t(n,i,a,r){let d=n[r++];if(d==="__proto__")return!0;const g=Number.isFinite(+d),l=r>=n.length;return d=!d&&J.isArray(a)?a.length:d,l?(J.hasOwnProp(a,d)?a[d]=[a[d],i]:a[d]=i,!g):((!a[d]||!J.isObject(a[d]))&&(a[d]=[]),t(n,i,a[d],r)&&J.isArray(a[d])&&(a[d]=vw(a[d])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(i,a)=>{t(mw(i),a,n,0)}),n}return null}function yw(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const zr={transitional:yf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,r=J.isObject(t);if(r&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(bf(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return gw(t,this.formSerializer).toString();if((g=J.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return so(g?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||a?(n.setContentType("application/json",!1),yw(t)):t}],transformResponse:[function(t){const n=this.transitional||zr.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(i&&!this.responseType||a)){const d=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?Fe.from(g,Fe.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{zr.headers[e]={}});const bw=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ww=e=>{const t={};let n,i,a;return e&&e.split(`
|
585
|
-
`).forEach(function(d){a=d.indexOf(":"),n=d.substring(0,a).trim().toLowerCase(),i=d.substring(a+1).trim(),!(!n||t[n]&&bw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},bu=Symbol("internals");function Ki(e){return e&&String(e).trim().toLowerCase()}function ds(e){return e===!1||e==null?e:J.isArray(e)?e.map(ds):String(e)}function _w(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Sw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Do(e,t,n,i,a){if(J.isFunction(i))return i.call(this,t,n);if(a&&(t=n),!!J.isString(t)){if(J.isString(i))return t.indexOf(i)!==-1;if(J.isRegExp(i))return i.test(t)}}function $w(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function xw(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(a,r,d){return this[i].call(this,t,a,r,d)},configurable:!0})})}let kt=class{constructor(t){t&&this.set(t)}set(t,n,i){const a=this;function r(g,l,p){const o=Ki(l);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(a,o);(!s||a[s]===void 0||p===!0||p===void 0&&a[s]!==!1)&&(a[s||l]=ds(g))}const d=(g,l)=>J.forEach(g,(p,o)=>r(p,o,l));if(J.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(J.isString(t)&&(t=t.trim())&&!Sw(t))d(ww(t),n);else if(J.isHeaders(t))for(const[g,l]of t.entries())r(l,g,i);else t!=null&&r(n,t,i);return this}get(t,n){if(t=Ki(t),t){const i=J.findKey(this,t);if(i){const a=this[i];if(!n)return a;if(n===!0)return _w(a);if(J.isFunction(n))return n.call(this,a,i);if(J.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ki(t),t){const i=J.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Do(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let a=!1;function r(d){if(d=Ki(d),d){const g=J.findKey(i,d);g&&(!n||Do(i,i[g],g,n))&&(delete i[g],a=!0)}}return J.isArray(t)?t.forEach(r):r(t),a}clear(t){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const r=n[i];(!t||Do(this,this[r],r,t,!0))&&(delete this[r],a=!0)}return a}normalize(t){const n=this,i={};return J.forEach(this,(a,r)=>{const d=J.findKey(i,r);if(d){n[d]=ds(a),delete n[r];return}const g=t?$w(r):String(r).trim();g!==r&&delete n[r],n[g]=ds(a),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=t&&J.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
586
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[bu]=this[bu]={accessors:{}}).accessors,a=this.prototype;function r(d){const g=Ki(d);i[g]||(xw(a,d),i[g]=!0)}return J.isArray(t)?t.forEach(r):r(t),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});J.freezeMethods(kt);function Po(e,t){const n=this||zr,i=t||n,a=kt.from(i.headers);let r=i.data;return J.forEach(e,function(g){r=g.call(n,r,a.normalize(),t?t.status:void 0)}),a.normalize(),r}function wf(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Hi,Fe,{__CANCEL__:!0});function _f(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Cw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Aw(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a=0,r=0,d;return t=t!==void 0?t:1e3,function(l){const p=Date.now(),o=i[r];d||(d=p),n[a]=l,i[a]=p;let s=r,c=0;for(;s!==a;)c+=n[s++],s=s%e;if(a=(a+1)%e,a===r&&(r=(r+1)%e),p-d<t)return;const h=o&&p-o;return h?Math.round(c*1e3/h):void 0}}function kw(e,t){let n=0,i=1e3/t,a,r;const d=(p,o=Date.now())=>{n=o,a=null,r&&(clearTimeout(r),r=null),e.apply(null,p)};return[(...p)=>{const o=Date.now(),s=o-n;s>=i?d(p,o):(a=p,r||(r=setTimeout(()=>{r=null,d(a)},i-s)))},()=>a&&d(a)]}const _s=(e,t,n=3)=>{let i=0;const a=Aw(50,250);return kw(r=>{const d=r.loaded,g=r.lengthComputable?r.total:void 0,l=d-i,p=a(l),o=d<=g;i=d;const s={loaded:d,total:g,progress:g?d/g:void 0,bytes:l,rate:p||void 0,estimated:p&&g&&o?(g-d)/p:void 0,event:r,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(s)},n)},wu=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},_u=e=>(...t)=>J.asap(()=>e(...t)),Ew=Ut.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function a(r){let d=r;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=a(window.location.href),function(d){const g=J.isString(d)?a(d):d;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}(),Rw=Ut.hasStandardBrowserEnv?{write(e,t,n,i,a,r){const d=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),J.isString(i)&&d.push("path="+i),J.isString(a)&&d.push("domain="+a),r===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sf(e,t){return e&&!Tw(t)?Lw(e,t):t}const Su=e=>e instanceof kt?{...e}:e;function ci(e,t){t=t||{};const n={};function i(p,o,s){return J.isPlainObject(p)&&J.isPlainObject(o)?J.merge.call({caseless:s},p,o):J.isPlainObject(o)?J.merge({},o):J.isArray(o)?o.slice():o}function a(p,o,s){if(J.isUndefined(o)){if(!J.isUndefined(p))return i(void 0,p,s)}else return i(p,o,s)}function r(p,o){if(!J.isUndefined(o))return i(void 0,o)}function d(p,o){if(J.isUndefined(o)){if(!J.isUndefined(p))return i(void 0,p)}else return i(void 0,o)}function g(p,o,s){if(s in t)return i(p,o);if(s in e)return i(void 0,p)}const l={url:r,method:r,data:r,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(p,o)=>a(Su(p),Su(o),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(o){const s=l[o]||a,c=s(e[o],t[o],o);J.isUndefined(c)&&s!==g||(n[o]=c)}),n}const $f=e=>{const t=ci({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:r,headers:d,auth:g}=t;t.headers=d=kt.from(d),t.url=vf(Sf(t.baseURL,t.url),e.params,e.paramsSerializer),g&&d.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let l;if(J.isFormData(n)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((l=d.getContentType())!==!1){const[p,...o]=l?l.split(";").map(s=>s.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...o].join("; "))}}if(Ut.hasStandardBrowserEnv&&(i&&J.isFunction(i)&&(i=i(t)),i||i!==!1&&Ew(t.url))){const p=a&&r&&Rw.read(r);p&&d.set(a,p)}return t},Mw=typeof XMLHttpRequest<"u",Ow=Mw&&function(e){return new Promise(function(n,i){const a=$f(e);let r=a.data;const d=kt.from(a.headers).normalize();let{responseType:g,onUploadProgress:l,onDownloadProgress:p}=a,o,s,c,h,u;function f(){h&&h(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function v(){if(!m)return;const $=kt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:$,config:e,request:m};_f(function(k){n(k),f()},function(k){i(k),f()},S),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(i(new Fe("Request aborted",Fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new Fe("Network Error",Fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||yf;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),i(new Fe(_,S.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,m)),m=null},r===void 0&&d.setContentType(null),"setRequestHeader"in m&&J.forEach(d.toJSON(),function(_,S){m.setRequestHeader(S,_)}),J.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),g&&g!=="json"&&(m.responseType=a.responseType),p&&([c,u]=_s(p,!0),m.addEventListener("progress",c)),l&&m.upload&&([s,h]=_s(l),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(o=$=>{m&&(i(!$||$.type?new Hi(null,e,m):$),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o)));const y=Cw(a.url);if(y&&Ut.protocols.indexOf(y)===-1){i(new Fe("Unsupported protocol "+y+":",Fe.ERR_BAD_REQUEST,e));return}m.send(r||null)})},Iw=(e,t)=>{let n=new AbortController,i;const a=function(l){if(!i){i=!0,d();const p=l instanceof Error?l:this.reason;n.abort(p instanceof Fe?p:new Hi(p instanceof Error?p.message:p))}};let r=t&&setTimeout(()=>{a(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const d=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",a):l.unsubscribe(a))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",a));const{signal:g}=n;return g.unsubscribe=d,[g,()=>{r&&clearTimeout(r),r=null}]},Nw=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let i=0,a;for(;i<n;)a=i+t,yield e.slice(i,a),i=a},Fw=async function*(e,t,n){for await(const i of e)yield*Nw(ArrayBuffer.isView(i)?i:await n(String(i)),t)},$u=(e,t,n,i,a)=>{const r=Fw(e,t,a);let d=0,g,l=p=>{g||(g=!0,i&&i(p))};return new ReadableStream({async pull(p){try{const{done:o,value:s}=await r.next();if(o){l(),p.close();return}let c=s.byteLength;if(n){let h=d+=c;n(h)}p.enqueue(new Uint8Array(s))}catch(o){throw l(o),o}},cancel(p){return l(p),r.return()}},{highWaterMark:2})},oo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xf=oo&&typeof ReadableStream=="function",Ca=oo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Dw=xf&&Cf(()=>{let e=!1;const t=new Request(Ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xu=64*1024,Aa=xf&&Cf(()=>J.isReadableStream(new Response("").body)),Ss={stream:Aa&&(e=>e.body)};oo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ss[t]&&(Ss[t]=J.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Fe(`Response type '${t}' is not supported`,Fe.ERR_NOT_SUPPORT,i)})})})(new Response);const Pw=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await Ca(e)).byteLength},Ww=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??Pw(t)},Bw=oo&&(async e=>{let{url:t,method:n,data:i,signal:a,cancelToken:r,timeout:d,onDownloadProgress:g,onUploadProgress:l,responseType:p,headers:o,withCredentials:s="same-origin",fetchOptions:c}=$f(e);p=p?(p+"").toLowerCase():"text";let[h,u]=a||r||d?Iw([a,r],d):[],f,m;const v=()=>{!f&&setTimeout(()=>{h&&h.unsubscribe()}),f=!0};let y;try{if(l&&Dw&&n!=="get"&&n!=="head"&&(y=await Ww(o,i))!==0){let b=new Request(t,{method:"POST",body:i,duplex:"half"}),k;if(J.isFormData(i)&&(k=b.headers.get("content-type"))&&o.setContentType(k),b.body){const[M,L]=wu(y,_s(_u(l)));i=$u(b.body,xu,M,L,Ca)}}J.isString(s)||(s=s?"include":"omit"),m=new Request(t,{...c,signal:h,method:n.toUpperCase(),headers:o.normalize().toJSON(),body:i,duplex:"half",credentials:s});let $=await fetch(m);const _=Aa&&(p==="stream"||p==="response");if(Aa&&(g||_)){const b={};["status","statusText","headers"].forEach(T=>{b[T]=$[T]});const k=J.toFiniteNumber($.headers.get("content-length")),[M,L]=g&&wu(k,_s(_u(g),!0))||[];$=new Response($u($.body,xu,M,()=>{L&&L(),_&&v()},Ca),b)}p=p||"text";let S=await Ss[J.findKey(Ss,p)||"text"]($,e);return!_&&v(),u&&u(),await new Promise((b,k)=>{_f(b,k,{data:S,headers:kt.from($.headers),status:$.status,statusText:$.statusText,config:e,request:m})})}catch($){throw v(),$&&$.name==="TypeError"&&/fetch/i.test($.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,m),{cause:$.cause||$}):Fe.from($,$&&$.code,e,m)}}),ka={http:iw,xhr:Ow,fetch:Bw};J.forEach(ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cu=e=>`- ${e}`,Hw=e=>J.isFunction(e)||e===null||e===!1,Af={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let r=0;r<t;r++){n=e[r];let d;if(i=n,!Hw(n)&&(i=ka[(d=String(n)).toLowerCase()],i===void 0))throw new Fe(`Unknown adapter '${d}'`);if(i)break;a[d||"#"+r]=i}if(!i){const r=Object.entries(a).map(([g,l])=>`adapter ${g} `+(l===!1?"is not supported by the environment":"is not available in the build"));let d=t?r.length>1?`since :
|
587
|
-
`+r.map(Cu).join(`
|
588
|
-
`):" "+Cu(r[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:ka};function Wo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function Au(e){return Wo(e),e.headers=kt.from(e.headers),e.data=Po.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Af.getAdapter(e.adapter||zr.adapter)(e).then(function(i){return Wo(e),i.data=Po.call(e,e.transformResponse,i),i.headers=kt.from(i.headers),i},function(i){return wf(i)||(Wo(e),i&&i.response&&(i.response.data=Po.call(e,e.transformResponse,i.response),i.response.headers=kt.from(i.response.headers))),Promise.reject(i)})}const kf="1.7.3",Il={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Il[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const ku={};Il.transitional=function(t,n,i){function a(r,d){return"[Axios v"+kf+"] Transitional option '"+r+"'"+d+(i?". "+i:"")}return(r,d,g)=>{if(t===!1)throw new Fe(a(d," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!ku[d]&&(ku[d]=!0,console.warn(a(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,d,g):!0}};function zw(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const r=i[a],d=t[r];if(d){const g=e[r],l=g===void 0||d(g,r,e);if(l!==!0)throw new Fe("option "+r+" must be "+l,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+r,Fe.ERR_BAD_OPTION)}}const Ea={assertOptions:zw,validators:Il},xn=Ea.validators;let ti=class{constructor(t){this.defaults=t,this.interceptors={request:new yu,response:new yu}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const r=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
589
|
-
`+r):i.stack=r}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ci(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&Ea.assertOptions(i,{silentJSONParsing:xn.transitional(xn.boolean),forcedJSONParsing:xn.transitional(xn.boolean),clarifyTimeoutError:xn.transitional(xn.boolean)},!1),a!=null&&(J.isFunction(a)?n.paramsSerializer={serialize:a}:Ea.assertOptions(a,{encode:xn.function,serialize:xn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=r&&J.merge(r.common,r[n.method]);r&&J.forEach(["delete","get","head","post","put","patch","common"],u=>{delete r[u]}),n.headers=kt.concat(d,r);const g=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let o,s=0,c;if(!l){const u=[Au.bind(this),void 0];for(u.unshift.apply(u,g),u.push.apply(u,p),c=u.length,o=Promise.resolve(n);s<c;)o=o.then(u[s++],u[s++]);return o}c=g.length;let h=n;for(s=0;s<c;){const u=g[s++],f=g[s++];try{h=u(h)}catch(m){f.call(this,m);break}}try{o=Au.call(this,h)}catch(u){return Promise.reject(u)}for(s=0,c=p.length;s<c;)o=o.then(p[s++],p[s++]);return o}getUri(t){t=ci(this.defaults,t);const n=Sf(t.baseURL,t.url);return vf(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){ti.prototype[t]=function(n,i){return this.request(ci(i||{},{method:t,url:n,data:(i||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(i){return function(r,d,g){return this.request(ci(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}ti.prototype[t]=n(),ti.prototype[t+"Form"]=n(!0)});let Uw=class Ef{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(a=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](a);i._listeners=null}),this.promise.then=a=>{let r;const d=new Promise(g=>{i.subscribe(g),r=g}).then(a);return d.cancel=function(){i.unsubscribe(r)},d},t(function(r,d,g){i.reason||(i.reason=new Hi(r,d,g),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ef(function(a){t=a}),cancel:t}}};function jw(e){return function(n){return e.apply(null,n)}}function Vw(e){return J.isObject(e)&&e.isAxiosError===!0}const Ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ra).forEach(([e,t])=>{Ra[t]=e});function Rf(e){const t=new ti(e),n=sf(ti.prototype.request,t);return J.extend(n,ti.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Rf(ci(e,a))},n}const Qe=Rf(zr);Qe.Axios=ti;Qe.CanceledError=Hi;Qe.CancelToken=Uw;Qe.isCancel=wf;Qe.VERSION=kf;Qe.toFormData=so;Qe.AxiosError=Fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=jw;Qe.isAxiosError=Vw;Qe.mergeConfig=ci;Qe.AxiosHeaders=kt;Qe.formToJSON=e=>bf(J.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Af.getAdapter;Qe.HttpStatusCode=Ra;Qe.default=Qe;const{Axios:cR,AxiosError:Gw,CanceledError:uR,isCancel:hR,CancelToken:dR,VERSION:fR,all:pR,Cancel:gR,isAxiosError:mR,spread:vR,toFormData:yR,AxiosHeaders:bR,HttpStatusCode:wR,formToJSON:_R,getAdapter:SR,mergeConfig:$R}=Qe;var He;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const r={};for(const d of a)r[d]=d;return r},e.getValidEnumValues=a=>{const r=e.objectKeys(a).filter(g=>typeof a[a[g]]!="number"),d={};for(const g of r)d[g]=a[g];return e.objectValues(d)},e.objectValues=a=>e.objectKeys(a).map(function(r){return a[r]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const r=[];for(const d in a)Object.prototype.hasOwnProperty.call(a,d)&&r.push(d);return r},e.find=(a,r)=>{for(const d of a)if(r(d))return d},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,r=" | "){return a.map(d=>typeof d=="string"?`'${d}'`:d).join(r)}e.joinValues=i,e.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(He||(He={}));var Ta;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ta||(Ta={}));const ye=He.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rn=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},le=He.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Kw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Nt extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(r){return r.message},i={_errors:[]},a=r=>{for(const d of r.issues)if(d.code==="invalid_union")d.unionErrors.map(a);else if(d.code==="invalid_return_type")a(d.returnTypeError);else if(d.code==="invalid_arguments")a(d.argumentsError);else if(d.path.length===0)i._errors.push(n(d));else{let g=i,l=0;for(;l<d.path.length;){const p=d.path[l];l===d.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(d))):g[p]=g[p]||{_errors:[]},g=g[p],l++}}};return a(this),i}static assert(t){if(!(t instanceof Nt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,He.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Nt.create=e=>new Nt(e);const Oi=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,He.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${He.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${He.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${He.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:He.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,He.assertNever(e)}return{message:n}};let Tf=Oi;function Yw(e){Tf=e}function $s(){return Tf}const xs=e=>{const{data:t,path:n,errorMaps:i,issueData:a}=e,r=[...n,...a.path||[]],d={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let g="";const l=i.filter(p=>!!p).slice().reverse();for(const p of l)g=p(d,{data:t,defaultError:g}).message;return{...a,path:r,message:g}},Zw=[];function me(e,t){const n=$s(),i=xs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Oi?void 0:Oi].filter(a=>!!a)});e.common.issues.push(i)}class yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const a of n){if(a.status==="aborted")return Me;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const a of n){const r=await a.key,d=await a.value;i.push({key:r,value:d})}return yt.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const a of n){const{key:r,value:d}=a;if(r.status==="aborted"||d.status==="aborted")return Me;r.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof d.value<"u"||a.alwaysSet)&&(i[r.value]=d.value)}return{status:t.value,value:i}}}const Me=Object.freeze({status:"aborted"}),bi=e=>({status:"dirty",value:e}),St=e=>({status:"valid",value:e}),La=e=>e.status==="aborted",Ma=e=>e.status==="dirty",vr=e=>e.status==="valid",yr=e=>typeof Promise<"u"&&e instanceof Promise;function Cs(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Lf(e,t,n,i,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ke||(ke={}));var qi,Qi;class sn{constructor(t,n,i,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Eu=(e,t)=>{if(vr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Nt(e.common.issues);return this._error=n,this._error}}};function De(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:a}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(d,g)=>{var l,p;const{message:o}=e;return d.code==="invalid_enum_value"?{message:o??g.defaultError}:typeof g.data>"u"?{message:(l=o??i)!==null&&l!==void 0?l:g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:(p=o??n)!==null&&p!==void 0?p:g.defaultError}},description:a}}class We{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Rn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new yt,ctx:{common:t.parent.common,data:t.data,parsedType:Rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(yr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){var i;const a={common:{issues:[],async:(i=n==null?void 0:n.async)!==null&&i!==void 0?i:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rn(t)},r=this._parseSync({data:t,path:a.path,parent:a});return Eu(a,r)}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rn(t)},a=this._parse({data:t,path:i.path,parent:i}),r=await(yr(a)?a:Promise.resolve(a));return Eu(i,r)}refine(t,n){const i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,r)=>{const d=t(a),g=()=>r.addIssue({code:le.custom,...i(a)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(t,n){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(t){return new Kt({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return en.create(this,this._def)}nullable(){return Bn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Ni.create(this,this._def)}or(t){return Sr.create([this,t],this._def)}and(t){return $r.create(this,t,this._def)}transform(t){return new Kt({...De(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Er({...De(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new Nl({typeName:Te.ZodBranded,type:this,...De(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Rr({...De(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ur.create(this,t)}readonly(){return Tr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Xw=/^c[^\s-]{8,}$/i,qw=/^[0-9a-z]+$/,Qw=/^[0-9A-HJKMNP-TV-Z]{26}$/,Jw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,e_=/^[a-z0-9_-]{21}$/i,t_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,n_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,i_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bo;const r_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,s_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,o_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Mf="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",a_=new RegExp(`^${Mf}$`);function Of(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function l_(e){return new RegExp(`^${Of(e)}$`)}function If(e){let t=`${Mf}T${Of(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function c_(e,t){return!!((t==="v4"||!t)&&r_.test(e)||(t==="v6"||!t)&&s_.test(e))}class Bt extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const r=this._getOrReturnCtx(t);return me(r,{code:le.invalid_type,expected:ye.string,received:r.parsedType}),Me}const i=new yt;let a;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:le.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")t.data.length>r.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:le.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const d=t.data.length>r.value,g=t.data.length<r.value;(d||g)&&(a=this._getOrReturnCtx(t,a),d?me(a,{code:le.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):g&&me(a,{code:le.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")n_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"email",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")Bo||(Bo=new RegExp(i_,"u")),Bo.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"emoji",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")Jw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"uuid",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")e_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"nanoid",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")Xw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")qw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid2",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")Qw.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ulid",code:le.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),me(a,{validation:"url",code:le.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"regex",code:le.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?If(r).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?a_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?l_(r).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:le.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?t_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"duration",code:le.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?c_(t.data,r.version)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ip",code:le.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?o_.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"base64",code:le.invalid_string,message:r.message}),i.dirty()):He.assertNever(r);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(a=>t.test(a),{validation:n,code:le.invalid_string,...ke.errToObj(i)})}_addCheck(t){return new Bt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}datetime(t){var n,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(i=t==null?void 0:t.local)!==null&&i!==void 0?i:!1,...ke.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ke.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ke.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ke.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ke.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ke.errToObj(n)})}nonempty(t){return this.min(1,ke.errToObj(t))}trim(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Bt.create=e=>{var t;return new Bt({checks:[],typeName:Te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...De(e)})};function u_(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=n>i?n:i,r=parseInt(e.toFixed(a).replace(".","")),d=parseInt(t.toFixed(a).replace(".",""));return r%d/Math.pow(10,a)}class Dn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const r=this._getOrReturnCtx(t);return me(r,{code:le.invalid_type,expected:ye.number,received:r.parsedType}),Me}let i;const a=new yt;for(const r of this._def.checks)r.kind==="int"?He.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{code:le.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?u_(t.data,r.value)!==0&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{code:le.not_finite,message:r.message}),a.dirty()):He.assertNever(r);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,i,a){return new Dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ke.toString(a)}]})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&He.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Dn.create=e=>new Dn({checks:[],typeName:Te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...De(e)});class Pn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const r=this._getOrReturnCtx(t);return me(r,{code:le.invalid_type,expected:ye.bigint,received:r.parsedType}),Me}let i;const a=new yt;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),me(i,{code:le.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):He.assertNever(r);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,i,a){return new Pn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ke.toString(a)}]})}_addCheck(t){return new Pn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pn.create=e=>{var t;return new Pn({checks:[],typeName:Te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...De(e)})};class br extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.boolean,received:i.parsedType}),Me}return St(t.data)}}br.create=e=>new br({typeName:Te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...De(e)});class ui extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const r=this._getOrReturnCtx(t);return me(r,{code:le.invalid_type,expected:ye.date,received:r.parsedType}),Me}if(isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return me(r,{code:le.invalid_date}),Me}const i=new yt;let a;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:le.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:le.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):He.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ke.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ke.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ui.create=e=>new ui({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Te.ZodDate,...De(e)});class As extends We{_parse(t){if(this._getType(t)!==ye.symbol){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.symbol,received:i.parsedType}),Me}return St(t.data)}}As.create=e=>new As({typeName:Te.ZodSymbol,...De(e)});class wr extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.undefined,received:i.parsedType}),Me}return St(t.data)}}wr.create=e=>new wr({typeName:Te.ZodUndefined,...De(e)});class _r extends We{_parse(t){if(this._getType(t)!==ye.null){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.null,received:i.parsedType}),Me}return St(t.data)}}_r.create=e=>new _r({typeName:Te.ZodNull,...De(e)});class Ii extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return St(t.data)}}Ii.create=e=>new Ii({typeName:Te.ZodAny,...De(e)});class ni extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return St(t.data)}}ni.create=e=>new ni({typeName:Te.ZodUnknown,...De(e)});class mn extends We{_parse(t){const n=this._getOrReturnCtx(t);return me(n,{code:le.invalid_type,expected:ye.never,received:n.parsedType}),Me}}mn.create=e=>new mn({typeName:Te.ZodNever,...De(e)});class ks extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.void,received:i.parsedType}),Me}return St(t.data)}}ks.create=e=>new ks({typeName:Te.ZodVoid,...De(e)});class jt extends We{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),a=this._def;if(n.parsedType!==ye.array)return me(n,{code:le.invalid_type,expected:ye.array,received:n.parsedType}),Me;if(a.exactLength!==null){const d=n.data.length>a.exactLength.value,g=n.data.length<a.exactLength.value;(d||g)&&(me(n,{code:d?le.too_big:le.too_small,minimum:g?a.exactLength.value:void 0,maximum:d?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(me(n,{code:le.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(me(n,{code:le.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((d,g)=>a.type._parseAsync(new sn(n,d,n.path,g)))).then(d=>yt.mergeArray(i,d));const r=[...n.data].map((d,g)=>a.type._parseSync(new sn(n,d,n.path,g)));return yt.mergeArray(i,r)}get element(){return this._def.type}min(t,n){return new jt({...this._def,minLength:{value:t,message:ke.toString(n)}})}max(t,n){return new jt({...this._def,maxLength:{value:t,message:ke.toString(n)}})}length(t,n){return new jt({...this._def,exactLength:{value:t,message:ke.toString(n)}})}nonempty(t){return this.min(1,t)}}jt.create=(e,t)=>new jt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...De(t)});function mi(e){if(e instanceof ot){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=en.create(mi(i))}return new ot({...e._def,shape:()=>t})}else return e instanceof jt?new jt({...e._def,type:mi(e.element)}):e instanceof en?en.create(mi(e.unwrap())):e instanceof Bn?Bn.create(mi(e.unwrap())):e instanceof on?on.create(e.items.map(t=>mi(t))):e}class ot extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=He.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return me(p,{code:le.invalid_type,expected:ye.object,received:p.parsedType}),Me}const{status:i,ctx:a}=this._processInputParams(t),{shape:r,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof mn&&this._def.unknownKeys==="strip"))for(const p in a.data)d.includes(p)||g.push(p);const l=[];for(const p of d){const o=r[p],s=a.data[p];l.push({key:{status:"valid",value:p},value:o._parse(new sn(a,s,a.path,p)),alwaysSet:p in a.data})}if(this._def.catchall instanceof mn){const p=this._def.unknownKeys;if(p==="passthrough")for(const o of g)l.push({key:{status:"valid",value:o},value:{status:"valid",value:a.data[o]}});else if(p==="strict")g.length>0&&(me(a,{code:le.unrecognized_keys,keys:g}),i.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const o of g){const s=a.data[o];l.push({key:{status:"valid",value:o},value:p._parse(new sn(a,s,a.path,o)),alwaysSet:o in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const p=[];for(const o of l){const s=await o.key,c=await o.value;p.push({key:s,value:c,alwaysSet:o.alwaysSet})}return p}).then(p=>yt.mergeObjectSync(i,p)):yt.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ke.errToObj,new ot({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var a,r,d,g;const l=(d=(r=(a=this._def).errorMap)===null||r===void 0?void 0:r.call(a,n,i).message)!==null&&d!==void 0?d:i.defaultError;return n.code==="unrecognized_keys"?{message:(g=ke.errToObj(t).message)!==null&&g!==void 0?g:l}:{message:l}}}:{}})}strip(){return new ot({...this._def,unknownKeys:"strip"})}passthrough(){return new ot({...this._def,unknownKeys:"passthrough"})}extend(t){return new ot({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ot({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ot({...this._def,catchall:t})}pick(t){const n={};return He.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new ot({...this._def,shape:()=>n})}omit(t){const n={};return He.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new ot({...this._def,shape:()=>n})}deepPartial(){return mi(this)}partial(t){const n={};return He.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];t&&!t[i]?n[i]=a:n[i]=a.optional()}),new ot({...this._def,shape:()=>n})}required(t){const n={};return He.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof en;)r=r._def.innerType;n[i]=r}}),new ot({...this._def,shape:()=>n})}keyof(){return Nf(He.objectKeys(this.shape))}}ot.create=(e,t)=>new ot({shape:()=>e,unknownKeys:"strip",catchall:mn.create(),typeName:Te.ZodObject,...De(t)});ot.strictCreate=(e,t)=>new ot({shape:()=>e,unknownKeys:"strict",catchall:mn.create(),typeName:Te.ZodObject,...De(t)});ot.lazycreate=(e,t)=>new ot({shape:e,unknownKeys:"strip",catchall:mn.create(),typeName:Te.ZodObject,...De(t)});class Sr extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function a(r){for(const g of r)if(g.result.status==="valid")return g.result;for(const g of r)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const d=r.map(g=>new Nt(g.ctx.common.issues));return me(n,{code:le.invalid_union,unionErrors:d}),Me}if(n.common.async)return Promise.all(i.map(async r=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(a);{let r;const d=[];for(const l of i){const p={...n,common:{...n.common,issues:[]},parent:null},o=l._parseSync({data:n.data,path:n.path,parent:p});if(o.status==="valid")return o;o.status==="dirty"&&!r&&(r={result:o,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;const g=d.map(l=>new Nt(l));return me(n,{code:le.invalid_union,unionErrors:g}),Me}}get options(){return this._def.options}}Sr.create=(e,t)=>new Sr({options:e,typeName:Te.ZodUnion,...De(t)});const cn=e=>e instanceof Cr?cn(e.schema):e instanceof Kt?cn(e.innerType()):e instanceof Ar?[e.value]:e instanceof Wn?e.options:e instanceof kr?He.objectValues(e.enum):e instanceof Er?cn(e._def.innerType):e instanceof wr?[void 0]:e instanceof _r?[null]:e instanceof en?[void 0,...cn(e.unwrap())]:e instanceof Bn?[null,...cn(e.unwrap())]:e instanceof Nl||e instanceof Tr?cn(e.unwrap()):e instanceof Rr?cn(e._def.innerType):[];class ao extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return me(n,{code:le.invalid_type,expected:ye.object,received:n.parsedType}),Me;const i=this.discriminator,a=n.data[i],r=this.optionsMap.get(a);return r?n.common.async?r._parseAsync({data:n.data,path:n.path,parent:n}):r._parseSync({data:n.data,path:n.path,parent:n}):(me(n,{code:le.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){const a=new Map;for(const r of n){const d=cn(r.shape[t]);if(!d.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of d){if(a.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);a.set(g,r)}}return new ao({typeName:Te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...De(i)})}}function Oa(e,t){const n=Rn(e),i=Rn(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&i===ye.object){const a=He.objectKeys(t),r=He.objectKeys(e).filter(g=>a.indexOf(g)!==-1),d={...e,...t};for(const g of r){const l=Oa(e[g],t[g]);if(!l.valid)return{valid:!1};d[g]=l.data}return{valid:!0,data:d}}else if(n===ye.array&&i===ye.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r<e.length;r++){const d=e[r],g=t[r],l=Oa(d,g);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return n===ye.date&&i===ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class $r extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=(r,d)=>{if(La(r)||La(d))return Me;const g=Oa(r.value,d.value);return g.valid?((Ma(r)||Ma(d))&&n.dirty(),{status:n.value,value:g.data}):(me(i,{code:le.invalid_intersection_types}),Me)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,d])=>a(r,d)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}$r.create=(e,t,n)=>new $r({left:e,right:t,typeName:Te.ZodIntersection,...De(n)});class on extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.array)return me(i,{code:le.invalid_type,expected:ye.array,received:i.parsedType}),Me;if(i.data.length<this._def.items.length)return me(i,{code:le.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Me;!this._def.rest&&i.data.length>this._def.items.length&&(me(i,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const r=[...i.data].map((d,g)=>{const l=this._def.items[g]||this._def.rest;return l?l._parse(new sn(i,d,i.path,g)):null}).filter(d=>!!d);return i.common.async?Promise.all(r).then(d=>yt.mergeArray(n,d)):yt.mergeArray(n,r)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:Te.ZodTuple,rest:null,...De(t)})};class xr extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.object)return me(i,{code:le.invalid_type,expected:ye.object,received:i.parsedType}),Me;const a=[],r=this._def.keyType,d=this._def.valueType;for(const g in i.data)a.push({key:r._parse(new sn(i,g,i.path,g)),value:d._parse(new sn(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?yt.mergeObjectAsync(n,a):yt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof We?new xr({keyType:t,valueType:n,typeName:Te.ZodRecord,...De(i)}):new xr({keyType:Bt.create(),valueType:t,typeName:Te.ZodRecord,...De(n)})}}class Es extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.map)return me(i,{code:le.invalid_type,expected:ye.map,received:i.parsedType}),Me;const a=this._def.keyType,r=this._def.valueType,d=[...i.data.entries()].map(([g,l],p)=>({key:a._parse(new sn(i,g,i.path,[p,"key"])),value:r._parse(new sn(i,l,i.path,[p,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const l of d){const p=await l.key,o=await l.value;if(p.status==="aborted"||o.status==="aborted")return Me;(p.status==="dirty"||o.status==="dirty")&&n.dirty(),g.set(p.value,o.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const l of d){const p=l.key,o=l.value;if(p.status==="aborted"||o.status==="aborted")return Me;(p.status==="dirty"||o.status==="dirty")&&n.dirty(),g.set(p.value,o.value)}return{status:n.value,value:g}}}}Es.create=(e,t,n)=>new Es({valueType:t,keyType:e,typeName:Te.ZodMap,...De(n)});class hi extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.set)return me(i,{code:le.invalid_type,expected:ye.set,received:i.parsedType}),Me;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(me(i,{code:le.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(me(i,{code:le.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const r=this._def.valueType;function d(l){const p=new Set;for(const o of l){if(o.status==="aborted")return Me;o.status==="dirty"&&n.dirty(),p.add(o.value)}return{status:n.value,value:p}}const g=[...i.data.values()].map((l,p)=>r._parse(new sn(i,l,i.path,p)));return i.common.async?Promise.all(g).then(l=>d(l)):d(g)}min(t,n){return new hi({...this._def,minSize:{value:t,message:ke.toString(n)}})}max(t,n){return new hi({...this._def,maxSize:{value:t,message:ke.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}hi.create=(e,t)=>new hi({valueType:e,minSize:null,maxSize:null,typeName:Te.ZodSet,...De(t)});class Ci extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return me(n,{code:le.invalid_type,expected:ye.function,received:n.parsedType}),Me;function i(g,l){return xs({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),Oi].filter(p=>!!p),issueData:{code:le.invalid_arguments,argumentsError:l}})}function a(g,l){return xs({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),Oi].filter(p=>!!p),issueData:{code:le.invalid_return_type,returnTypeError:l}})}const r={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Ni){const g=this;return St(async function(...l){const p=new Nt([]),o=await g._def.args.parseAsync(l,r).catch(h=>{throw p.addIssue(i(l,h)),p}),s=await Reflect.apply(d,this,o);return await g._def.returns._def.type.parseAsync(s,r).catch(h=>{throw p.addIssue(a(s,h)),p})})}else{const g=this;return St(function(...l){const p=g._def.args.safeParse(l,r);if(!p.success)throw new Nt([i(l,p.error)]);const o=Reflect.apply(d,this,p.data),s=g._def.returns.safeParse(o,r);if(!s.success)throw new Nt([a(o,s.error)]);return s.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ci({...this._def,args:on.create(t).rest(ni.create())})}returns(t){return new Ci({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new Ci({args:t||on.create([]).rest(ni.create()),returns:n||ni.create(),typeName:Te.ZodFunction,...De(i)})}}class Cr extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Cr.create=(e,t)=>new Cr({getter:e,typeName:Te.ZodLazy,...De(t)});class Ar extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return me(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ar.create=(e,t)=>new Ar({value:e,typeName:Te.ZodLiteral,...De(t)});function Nf(e,t){return new Wn({values:e,typeName:Te.ZodEnum,...De(t)})}class Wn extends We{constructor(){super(...arguments),qi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return me(n,{expected:He.joinValues(i),received:n.parsedType,code:le.invalid_type}),Me}if(Cs(this,qi)||Lf(this,qi,new Set(this._def.values)),!Cs(this,qi).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return me(n,{received:n.data,code:le.invalid_enum_value,options:i}),Me}return St(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Wn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Wn.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}qi=new WeakMap;Wn.create=Nf;class kr extends We{constructor(){super(...arguments),Qi.set(this,void 0)}_parse(t){const n=He.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ye.string&&i.parsedType!==ye.number){const a=He.objectValues(n);return me(i,{expected:He.joinValues(a),received:i.parsedType,code:le.invalid_type}),Me}if(Cs(this,Qi)||Lf(this,Qi,new Set(He.getValidEnumValues(this._def.values))),!Cs(this,Qi).has(t.data)){const a=He.objectValues(n);return me(i,{received:i.data,code:le.invalid_enum_value,options:a}),Me}return St(t.data)}get enum(){return this._def.values}}Qi=new WeakMap;kr.create=(e,t)=>new kr({values:e,typeName:Te.ZodNativeEnum,...De(t)});class Ni extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return me(n,{code:le.invalid_type,expected:ye.promise,received:n.parsedType}),Me;const i=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return St(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ni.create=(e,t)=>new Ni({type:e,typeName:Te.ZodPromise,...De(t)});class Kt extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=this._def.effect||null,r={addIssue:d=>{me(i,d),d.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){const d=a.transform(i.data,r);if(i.common.async)return Promise.resolve(d).then(async g=>{if(n.value==="aborted")return Me;const l=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return l.status==="aborted"?Me:l.status==="dirty"||n.value==="dirty"?bi(l.value):l});{if(n.value==="aborted")return Me;const g=this._def.schema._parseSync({data:d,path:i.path,parent:i});return g.status==="aborted"?Me:g.status==="dirty"||n.value==="dirty"?bi(g.value):g}}if(a.type==="refinement"){const d=g=>{const l=a.refinement(g,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(i.common.async===!1){const g=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return g.status==="aborted"?Me:(g.status==="dirty"&&n.dirty(),d(g.value),{status:n.value,value:g.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(g=>g.status==="aborted"?Me:(g.status==="dirty"&&n.dirty(),d(g.value).then(()=>({status:n.value,value:g.value}))))}if(a.type==="transform")if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!vr(d))return d;const g=a.transform(d.value,r);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>vr(d)?Promise.resolve(a.transform(d.value,r)).then(g=>({status:n.value,value:g})):d);He.assertNever(a)}}Kt.create=(e,t,n)=>new Kt({schema:e,typeName:Te.ZodEffects,effect:t,...De(n)});Kt.createWithPreprocess=(e,t,n)=>new Kt({schema:t,effect:{type:"preprocess",transform:e},typeName:Te.ZodEffects,...De(n)});class en extends We{_parse(t){return this._getType(t)===ye.undefined?St(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:Te.ZodOptional,...De(t)});class Bn extends We{_parse(t){return this._getType(t)===ye.null?St(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bn.create=(e,t)=>new Bn({innerType:e,typeName:Te.ZodNullable,...De(t)});class Er extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===ye.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Er.create=(e,t)=>new Er({innerType:e,typeName:Te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...De(t)});class Rr extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return yr(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Nt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Nt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Rr.create=(e,t)=>new Rr({innerType:e,typeName:Te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...De(t)});class Rs extends We{_parse(t){if(this._getType(t)!==ye.nan){const i=this._getOrReturnCtx(t);return me(i,{code:le.invalid_type,expected:ye.nan,received:i.parsedType}),Me}return{status:"valid",value:t.data}}}Rs.create=e=>new Rs({typeName:Te.ZodNaN,...De(e)});const h_=Symbol("zod_brand");class Nl extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ur extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Me:r.status==="dirty"?(n.dirty(),bi(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Me:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,n){return new Ur({in:t,out:n,typeName:Te.ZodPipeline})}}class Tr extends We{_parse(t){const n=this._def.innerType._parse(t),i=a=>(vr(a)&&(a.value=Object.freeze(a.value)),a);return yr(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}}Tr.create=(e,t)=>new Tr({innerType:e,typeName:Te.ZodReadonly,...De(t)});function Ff(e,t={},n){return e?Ii.create().superRefine((i,a)=>{var r,d;if(!e(i)){const g=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,l=(d=(r=g.fatal)!==null&&r!==void 0?r:n)!==null&&d!==void 0?d:!0,p=typeof g=="string"?{message:g}:g;a.addIssue({code:"custom",...p,fatal:l})}}):Ii.create()}const d_={object:ot.lazycreate};var Te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Te||(Te={}));const f_=(e,t={message:`Input not instance of ${e.name}`})=>Ff(n=>n instanceof e,t),Df=Bt.create,Pf=Dn.create,p_=Rs.create,g_=Pn.create,Wf=br.create,m_=ui.create,v_=As.create,y_=wr.create,b_=_r.create,w_=Ii.create,__=ni.create,S_=mn.create,$_=ks.create,x_=jt.create,C_=ot.create,A_=ot.strictCreate,k_=Sr.create,E_=ao.create,R_=$r.create,T_=on.create,L_=xr.create,M_=Es.create,O_=hi.create,I_=Ci.create,N_=Cr.create,F_=Ar.create,D_=Wn.create,P_=kr.create,W_=Ni.create,Ru=Kt.create,B_=en.create,H_=Bn.create,z_=Kt.createWithPreprocess,U_=Ur.create,j_=()=>Df().optional(),V_=()=>Pf().optional(),G_=()=>Wf().optional(),K_={string:e=>Bt.create({...e,coerce:!0}),number:e=>Dn.create({...e,coerce:!0}),boolean:e=>br.create({...e,coerce:!0}),bigint:e=>Pn.create({...e,coerce:!0}),date:e=>ui.create({...e,coerce:!0})},Y_=Me;var te=Object.freeze({__proto__:null,defaultErrorMap:Oi,setErrorMap:Yw,getErrorMap:$s,makeIssue:xs,EMPTY_PATH:Zw,addIssueToContext:me,ParseStatus:yt,INVALID:Me,DIRTY:bi,OK:St,isAborted:La,isDirty:Ma,isValid:vr,isAsync:yr,get util(){return He},get objectUtil(){return Ta},ZodParsedType:ye,getParsedType:Rn,ZodType:We,datetimeRegex:If,ZodString:Bt,ZodNumber:Dn,ZodBigInt:Pn,ZodBoolean:br,ZodDate:ui,ZodSymbol:As,ZodUndefined:wr,ZodNull:_r,ZodAny:Ii,ZodUnknown:ni,ZodNever:mn,ZodVoid:ks,ZodArray:jt,ZodObject:ot,ZodUnion:Sr,ZodDiscriminatedUnion:ao,ZodIntersection:$r,ZodTuple:on,ZodRecord:xr,ZodMap:Es,ZodSet:hi,ZodFunction:Ci,ZodLazy:Cr,ZodLiteral:Ar,ZodEnum:Wn,ZodNativeEnum:kr,ZodPromise:Ni,ZodEffects:Kt,ZodTransformer:Kt,ZodOptional:en,ZodNullable:Bn,ZodDefault:Er,ZodCatch:Rr,ZodNaN:Rs,BRAND:h_,ZodBranded:Nl,ZodPipeline:Ur,ZodReadonly:Tr,custom:Ff,Schema:We,ZodSchema:We,late:d_,get ZodFirstPartyTypeKind(){return Te},coerce:K_,any:w_,array:x_,bigint:g_,boolean:Wf,date:m_,discriminatedUnion:E_,effect:Ru,enum:D_,function:I_,instanceof:f_,intersection:R_,lazy:N_,literal:F_,map:M_,nan:p_,nativeEnum:P_,never:S_,null:b_,nullable:H_,number:Pf,object:C_,oboolean:G_,onumber:V_,optional:B_,ostring:j_,pipeline:U_,preprocess:z_,promise:W_,record:L_,set:O_,strictObject:A_,string:Df,symbol:v_,transformer:Ru,tuple:T_,undefined:y_,union:k_,unknown:__,void:$_,NEVER:Y_,ZodIssueCode:le,quotelessJson:Kw,ZodError:Nt});const lo=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),Z_=te.object({key:te.string(),value:te.string().nullish()}),X_=te.object({name:te.string(),configured:te.boolean(),items:te.array(Z_).nullish(),type:te.string()}),q_=te.object({results:te.array(X_)}),co=te.object({id:te.number(),name:te.string()}),Q_=lo.extend({results:te.array(co)}),J_=te.object({resource:te.string(),value:te.string()}),Tu=te.object({name:te.string().nullish()}),eS=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Tu.nullish(),contacts:te.array(Tu)}),tS=te.object({number:te.number()}),nS=te.object({country:te.string(),countryCode:te.string()}),iS=te.object({name:te.string()}),rS=te.object({name:te.string()}),sS=te.object({name:te.string()}),oS=te.object({number:te.number()}),Fl=te.object({id:te.number(),data:te.string(),dataType:te.string(),source:te.string(),query:te.string().nullish(),metadata:te.any().nullish(),createdAt:te.string(),autonomousSystem:tS.nullish(),whoisRecord:eS.nullish(),geolocation:nS.nullish(),dnsRecords:te.array(J_).nullish(),reverseDnsNames:te.array(iS).nullish(),cpes:te.array(rS).nullish(),ports:te.array(oS).nullish(),vulnerabilities:te.array(sS).nullish(),tags:te.array(co)}),Bf=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(co),artifacts:te.array(Fl)}),aS=lo.extend({results:te.array(Bf)});te.object({q:te.string(),page:te.number().nullish(),limit:te.number().nullish()});te.object({countryCode:te.string(),asn:te.string().nullish(),loc:te.string().nullish()});te.object({lat:te.number(),long:te.number()});te.object({name:te.string(),code:te.string(),lat:te.number(),long:te.number()});te.union([te.literal("ip"),te.literal("domain"),te.literal("url"),te.literal("hash"),te.literal("mail")]);te.object({name:te.string(),type:te.string(),baseURL:te.string(),favicon:te.function().returns(te.string()),href:te.function().args(te.string()).returns(te.string())});const fs=te.object({id:te.string(),title:te.string(),description:te.string(),yaml:te.string(),createdAt:te.string(),updatedAt:te.string(),tags:te.array(co)});te.object({yaml:te.string()});te.object({yaml:te.string()});te.object({analyzer:te.string(),query:te.string()});const lS=lo.extend({results:te.array(fs)}),cS=lo.extend({results:te.array(Fl)}),Hf=te.object({message:te.string()});Hf.extend({detail:te.any().nullish()});const Lu=Hf.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const ut=Qe.create(),wt={async getConfigs(){const e=await ut.get("/api/configs");return q_.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await ut.get("/api/alerts",{params:e});return aS.parse(t.data)},async getAlert(e){const t=await ut.get(`/api/alerts/${e}`);return Bf.parse(t.data)},async getTags(){const e=await ut.get("/api/tags");return Q_.parse(e.data)},async deleteAlert(e){await ut.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await ut.get(`/api/artifacts/${e}`);return Fl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await ut.get("/api/artifacts",{params:e});return cS.parse(t.data)},async enrichArtifact(e){const t=await ut.post(`/api/artifacts/${e}/enrich`);return Lu.parse(t.data)},async deleteArtifact(e){await ut.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await ut.get("/api/rules",{params:e});return lS.parse(t.data)},async getRule(e){const t=await ut.get(`/api/rules/${e}`);return fs.parse(t.data)},async searchRule(e){const t=await ut.post(`/api/rules/${e}/search`);return Lu.parse(t.data)},async createRule(e){const t=await ut.post("/api/rules/",e);return fs.parse(t.data)},async updateRule(e){const t=await ut.put("/api/rules/",e);return fs.parse(t.data)},async deleteRule(e){await ut.delete(`/api/rules/${e}`)},async deleteTag(e){await ut.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await ut.get(`/api/ip_addresses/${e}`)).data}};function uo(){return bt(async(e,t)=>await wt.getAlerts(t))}function uS(){return bt(async(e,t)=>await wt.deleteAlert(t))}function hS(){return bt(async(e,t)=>await wt.deleteTag(t))}function dS(){return bt(async(e,t)=>await wt.getArtifact(t))}function zf(){return bt(async(e,t)=>await wt.deleteArtifact(t))}function fS(){return bt(async(e,t)=>await wt.enrichArtifact(t))}function pS(){return bt(async()=>await wt.getConfigs())}function gS(){return bt(async(e,t)=>await wt.getIpInfo(t))}function Uf(){return bt(async(e,t)=>await wt.getRules(t))}function jf(){return bt(async(e,t)=>await wt.getRule(t))}function mS(){return bt(async(e,t)=>await wt.deleteRule(t))}function vS(){return bt(async(e,t)=>await wt.searchRule(t))}function yS(){return bt(async(e,t)=>await wt.createRule(t))}function bS(){return bt(async(e,t)=>await wt.updateRule(t))}function Dl(){return bt(async(e,t)=>await wt.getArtifacts(t))}function wS(){return bt(async(e,t)=>await wt.getAlert(t))}const _S={class:"buttons is-pulled-right"},SS=["href"],$S=F("span",null,"JSON",-1),xS={class:"icon is-small"},CS=F("span",null,"Delete",-1),AS={class:"icon is-small"},Vf=xe({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,i=t,a=Ee(()=>`/api/alerts/${n.alert.id}`),r=uS(),d=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await r.perform(n.alert.id),i("delete")}catch(l){Qe.isAxiosError(l)&&i("set-error",l)}};return(g,l)=>{const p=Ye("font-awesome-icon");return K(),ie("span",_S,[F("a",{class:"button is-link is-light is-small",href:a.value,target:"_blank"},[$S,F("span",xS,[ae(p,{icon:"barcode"})])],8,SS),F("button",{class:"button is-light is-small",onClick:d},[CS,F("span",AS,[ae(p,{icon:"times"})])])])}}});var Lr=kS;function kS(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const ES={key:0,class:"control"},RS=xe({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,a=Ue(!1),r=Ue(!1),d=zf(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await d.perform(n.artifact.id),a.value=!0,i("delete"))},l=()=>{r.value=!0},p=()=>{r.value=!1};return(o,s)=>{const c=Ye("router-link");return a.value?ge("",!0):(K(),ie("div",ES,[F("div",{class:"tags has-addons are-medium",onMouseover:l,onMouseleave:p},[ae(c,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:et(()=>[tt(Se(ce(Lr)(e.artifact.data,32)),1)]),_:1},8,["to"]),r.value?(K(),ie("span",{key:0,class:"tag is-delete",onClick:g})):ge("",!0)],32)]))}}}),TS={class:"field is-grouped is-grouped-multiline"},Gf=xe({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,a=Ue(0),r=()=>{a.value+=1};return qe(a,()=>{a.value>=n.artifacts.length&&i("delete")}),(d,g)=>(K(),ie("div",TS,[(K(!0),ie(Pe,null,Ft(e.artifacts,l=>(K(),$e(RS,{key:l.id,artifact:l,onDelete:r},null,8,["artifact"]))),128))]))}});var Ts={d:(e,t)=>{for(var n in t)Ts.o(t,n)&&!Ts.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Kf={};function Ia(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Yf(e,t){if(e){if(typeof e=="string")return Ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ia(e,t):void 0}}function Ls(e){return function(t){if(Array.isArray(t))return Ia(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Yf(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
590
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ts.d(Kf,{Z:()=>NS});const Re=(Mu={computed:()=>Ee,createTextVNode:()=>tt,createVNode:()=>ae,defineComponent:()=>xe,reactive:()=>Pi,ref:()=>Ue,watch:()=>qe,watchEffect:()=>yl},Ho={},Ts.d(Ho,Mu),Ho),LS=(0,Re.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Re.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),MS=(0,Re.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Re.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Re.computed)({get:function(){return e.checked},set:function(i){return n("update:modelValue",i)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Re.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(i){return i.stopPropagation()}},[(0,Re.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Re.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),OS=(0,Re.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Re.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Re.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Re.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Mu,Ho;function Na(e){return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function Zf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Kn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,a=i||{},r=a.key,d=a.index,g=a.type,l=g===void 0?"content":g,p=a.showComma,o=p!==void 0&&p,s=a.length,c=s===void 0?1:s,h=Zf(e);if(h==="array"){var u=Ou(e.map(function(v,y,$){return Kn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==$.length-1,length:c,type:l})}));return[Kn("[",t,n,{showComma:!1,key:r,length:e.length,type:"arrayStart"})[0]].concat(u,Kn("]",t,n,{showComma:o,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var f=Object.keys(e),m=Ou(f.map(function(v,y,$){return Kn(e[v],/^[a-zA-Z_]\w*$/.test(v)?"".concat(t,".").concat(v):"".concat(t,'["').concat(v,'"]'),n+1,{key:v,showComma:y!==$.length-1,length:c,type:l})}));return[Kn("{",t,n,{showComma:!1,key:r,index:d,length:f.length,type:"objectStart"})[0]].concat(m,Kn("}",t,n,{showComma:o,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:r,index:d,path:t,showComma:o,length:c,type:l}]}function Ou(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Ls(e),n=[];t.length;){var i=t.shift();Array.isArray(i)?t.unshift.apply(t,Ls(i)):n.push(i)}return n}function Fa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Na(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(r){return Fa(r,t)});return t.set(e,n),n}var i={};for(var a in e)i[a]=Fa(e[a],t);return t.set(e,i),i}function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(i){Ms(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var Xf={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const IS=(0,Re.defineComponent)({name:"TreeNode",props:Nu(Nu({},Xf),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,i=(0,Re.computed)(function(){return Zf(e.node.content)}),a=(0,Re.computed)(function(){return"vjs-value vjs-value-".concat(i.value)}),r=(0,Re.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),d=(0,Re.computed)(function(){return e.selectableType==="multiple"}),g=(0,Re.computed)(function(){return e.selectableType==="single"}),l=(0,Re.computed)(function(){return e.nodeSelectable(e.node)&&(d.value||g.value)}),p=(0,Re.reactive)({editing:!1}),o=function(y){var $,_,S=(_=($=y.target)===null||$===void 0?void 0:$.value)==="null"?null:_==="undefined"?void 0:_==="true"||_!=="false"&&(_[0]+_[_.length-1]==='""'||_[0]+_[_.length-1]==="''"?_.slice(1,-1):typeof Number(_)=="number"&&!isNaN(Number(_))||_==="NaN"?Number(_):_);n("valueChange",S,e.node.path)},s=(0,Re.computed)(function(){var y,$=(y=e.node)===null||y===void 0?void 0:y.content;return $===null?$="null":$===void 0&&($="undefined"),i.value==="string"?'"'.concat($,'"'):$+""}),c=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:s.value}):s.value},h=function(){n("bracketsClick",!e.collapsed,e.node)},u=function(){n("iconClick",!e.collapsed,e.node)},f=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(y){if(e.editable&&!p.editing){p.editing=!0;var $=function _(S){var b;S.target!==y.target&&((b=S.target)===null||b===void 0?void 0:b.parentElement)!==y.target&&(p.editing=!1,document.removeEventListener("click",_))};document.removeEventListener("click",$),document.addEventListener("click",$)}};return function(){var y,$=e.node;return(0,Re.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,Re.createVNode)("span",{class:"vjs-node-index"},[$.id+1]),e.showSelectController&&l.value&&$.type!=="objectEnd"&&$.type!=="arrayEnd"&&(0,Re.createVNode)(MS,{isMultiple:d.value,checked:e.checked,onChange:f},null),(0,Re.createVNode)("div",{class:"vjs-indent"},[Array.from(Array($.level)).map(function(_,S){return(0,Re.createVNode)("div",{key:S,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Re.createVNode)(OS,{nodeType:$.type,onClick:u},null)]),$.key&&(0,Re.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:r.value||""}):r.value),(0,Re.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Re.createVNode)("span",null,[$.type!=="content"&&$.content?(0,Re.createVNode)(LS,{data:$.content.toString(),onClick:h},null):(0,Re.createVNode)("span",{class:a.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:v,onDblclick:e.editable&&e.editableTrigger==="dblclick"?v:void 0},[e.editable&&p.editing?(0,Re.createVNode)("input",{value:s.value,onChange:o,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),$.showComma&&(0,Re.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Re.createVNode)("span",{class:"vjs-comment"},[(0,Re.createTextVNode)(" // "),$.length,(0,Re.createTextVNode)(" items ")])])])}}});function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fu(Object(n),!0).forEach(function(i){Ms(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}const NS=(0,Re.defineComponent)({name:"Tree",props:Rt(Rt({},Xf),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,i=t.slots,a=(0,Re.ref)(),r=(0,Re.computed)(function(){return Kn(e.data,e.rootPath)}),d=function($,_){return r.value.reduce(function(S,b){var k,M=b.level>=$||b.length>=_,L=(k=e.pathCollapsible)===null||k===void 0?void 0:k.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!M&&!L?S:Rt(Rt({},S),{},Ms({},b.path,1))},{})},g=(0,Re.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),l=(0,Re.computed)(function(){for(var $=null,_=[],S=r.value.length,b=0;b<S;b++){var k=Rt(Rt({},r.value[b]),{},{id:b}),M=g.hiddenPaths[k.path];if($&&$.path===k.path){var L=$.type==="objectStart",T=Rt(Rt(Rt({},k),$),{},{showComma:k.showComma,content:L?"{...}":"[...]",type:L?"objectCollapsed":"arrayCollapsed"});$=null,_.push(T)}else{if(M&&!$){$=k;continue}if($)continue;_.push(k)}}return _}),p=(0,Re.computed)(function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]}),o=(0,Re.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),s=function(){var $=l.value;if(e.virtual){var _,S=e.height/e.itemHeight,b=((_=a.value)===null||_===void 0?void 0:_.scrollTop)||0,k=Math.floor(b/e.itemHeight),M=k<0?0:k+S>$.length?$.length-S:k;M<0&&(M=0);var L=M+S;g.translateY=M*e.itemHeight,g.visibleData=$.filter(function(T,E){return E>=M&&E<L})}else g.visibleData=$},c=function(){s()},h=function($){var _,S,b=$.path,k=e.selectableType;if(k==="multiple"){var M=p.value.findIndex(function(C){return C===b}),L=Ls(p.value);M!==-1?L.splice(M,1):L.push(b),n("update:selectedValue",L),n("selectedChange",L,Ls(p.value))}else if(k==="single"&&p.value[0]!==b){var T=(_=p.value,S=1,function(C){if(Array.isArray(C))return C}(_)||function(C,x){var w=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(w!=null){var A,R,O=[],I=!0,N=!1;try{for(w=w.call(C);!(I=(A=w.next()).done)&&(O.push(A.value),!x||O.length!==x);I=!0);}catch(D){N=!0,R=D}finally{try{I||w.return==null||w.return()}finally{if(N)throw R}}return O}}(_,S)||Yf(_,S)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
591
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],E=b;n("update:selectedValue",E),n("selectedChange",E,T)}},u=function($){n("nodeClick",$)},f=function($,_){if($)g.hiddenPaths=Rt(Rt({},g.hiddenPaths),{},Ms({},_,1));else{var S=Rt({},g.hiddenPaths);delete S[_],g.hiddenPaths=S}},m=function($,_){e.collapsedOnClickBrackets&&f($,_.path),n("bracketsClick",$,_)},v=function($,_){f($,_.path),n("iconClick",$,_)},y=function($,_){var S=Fa(e.data),b=e.rootPath;new Function("data","val","data".concat(_.slice(b.length),"=val"))(S,$),n("update:data",S)};return(0,Re.watchEffect)(function(){o.value&&function($){throw new Error("[VueJSONPretty] ".concat($))}(o.value)}),(0,Re.watchEffect)(function(){l.value&&s()}),(0,Re.watch)(function(){return e.deep},function($){$&&(g.hiddenPaths=d($,e.collapsedNodeLength))}),(0,Re.watch)(function(){return e.collapsedNodeLength},function($){$&&(g.hiddenPaths=d(e.deep,$))}),function(){var $,_,S=($=e.renderNodeKey)!==null&&$!==void 0?$:i.renderNodeKey,b=(_=e.renderNodeValue)!==null&&_!==void 0?_:i.renderNodeValue,k=g.visibleData&&g.visibleData.map(function(M){return(0,Re.createVNode)(IS,{key:M.id,node:M,collapsed:!!g.hiddenPaths[M.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(M.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:S,renderNodeValue:b,onNodeClick:u,onBracketsClick:m,onIconClick:v,onSelectedChange:h,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Re.createVNode)("div",{ref:a,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?Rt({paddingLeft:"".concat(12*Number(r.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Re.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,Re.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[k])])]):k])}}});var qf=Kf.Z;const FS={class:"notification is-danger is-light"},DS={key:1},PS={key:2},WS={key:0,class:"message"},BS={class:"message-body"},pt=xe({__name:"ErrorMessage",props:{error:{type:Gw,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,i=t,a=Ee(()=>{var d;if(n.error.response)return(d=n.error.response)==null?void 0:d.data}),r=()=>{i("dispose")};return(d,g)=>{var l;return K(),ie(Pe,null,[F("div",FS,[e.disposable?(K(),ie("button",{key:0,class:"delete",onClick:r})):ge("",!0),a.value?(K(),ie("p",DS,Se(a.value.message),1)):(K(),ie("p",PS,Se(e.error),1))]),(l=a.value)!=null&&l.detail?(K(),ie("article",WS,[F("div",BS,[ae(ce(qf),{data:a.value.detail},null,8,["data"])])])):ge("",!0)],64)}}}),HS={key:0,class:"control"},zS=xe({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=Ue(!1),i=Ue(!1),a=hS(),r=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await a.perform(t.tag.id),n.value=!0)},d=()=>{i.value=!0},g=()=>{i.value=!1},l=p=>`tag:"${p}"`;return(p,o)=>{const s=Ye("router-link");return n.value?ge("",!0):(K(),ie("div",HS,[F("div",{class:"tags has-addons are-medium",onMouseover:d,onMouseleave:g},[ae(s,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:l(e.tag.name)}}},{default:et(()=>[tt(Se(e.tag.name),1)]),_:1},8,["to"]),i.value&&e.deletable?(K(),ie("a",{key:0,class:"tag is-delete",onClick:r})):ge("",!0)],32)]))}}}),US={class:"field is-grouped is-grouped-multiline"},jr=xe({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(K(),ie("div",US,[(K(!0),ie(Pe,null,Ft(e.tags,i=>(K(),$e(zS,{tag:i,key:i.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),jS={key:0,class:"box"},VS={class:"table is-fullwidth is-completely-borderless"},GS=F("th",null,"Rule",-1),KS=F("th",null,"Artifacts",-1),YS={key:0},ZS=F("th",null,"Tags",-1),XS={class:"help"},qS=xe({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(!1),a=Ue(),r=p=>{a.value=p},d=()=>{a.value=void 0},g=()=>{n("delete")},l=()=>{i.value=!0};return(p,o)=>{const s=Ye("router-link");return i.value?ge("",!0):(K(),ie("div",jS,[a.value?(K(),$e(pt,{key:0,class:"block",error:a.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),F("p",null,[ae(Vf,{alert:e.alert,onDelete:g,onSetError:r},null,8,["alert"])]),ae(s,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:et(()=>[tt(Se(e.alert.id),1)]),_:1},8,["to"]),F("table",VS,[F("tr",null,[GS,F("td",null,[ae(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:et(()=>[tt(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[KS,F("td",null,[ae(Gf,{artifacts:e.alert.artifacts,onDelete:l},null,8,["artifacts"])])]),e.alert.tags.length>0?(K(),ie("tr",YS,[ZS,F("td",null,[ae(jr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",XS,"Created at: "+Se(e.alert.createdAt),1)]))}}}),QS={key:0,class:"message is-warning"},JS=F("div",{class:"message-body"},"There is no result to show.",-1),e$=[JS],t$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},n$={key:0,class:"pagination-list"},i$={key:1,class:"pagination-list"},r$={key:0},s$={key:1},o$=F("span",{class:"pagination-ellipsis"},"…",-1),a$=[o$],l$={key:2},c$={key:3},u$={key:4},h$=F("span",{class:"pagination-ellipsis"},"…",-1),d$=[h$],f$={key:5},Pl=xe({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,i=t,a=c=>c===n.currentPage+1||c===n.currentPage-1,r=Ee(()=>Math.ceil(n.total/n.pageSize)),d=Ee(()=>r.value===1),g=Ee(()=>n.currentPage>1),l=Ee(()=>n.currentPage-1===1),p=Ee(()=>n.currentPage<r.value),o=Ee(()=>n.currentPage+1===r.value),s=c=>{i("update-page",c)};return(c,h)=>e.total===0?(K(),ie("article",QS,e$)):(K(),ie("nav",t$,[d.value?(K(),ie("ul",n$,[F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:h[0]||(h[0]=u=>s(1))},"1")])])):(K(),ie("ul",i$,[g.value&&!l.value?(K(),ie("li",r$,[F("a",{class:"pagination-link mt-2",onClick:h[1]||(h[1]=u=>s(1))}," 1")])):ge("",!0),g.value&&!l.value&&!a(2)?(K(),ie("li",s$,a$)):ge("",!0),g.value?(K(),ie("li",l$,[F("a",{class:"pagination-link mt-2",onClick:h[2]||(h[2]=u=>s(e.currentPage-1))},Se(e.currentPage-1),1)])):ge("",!0),F("li",null,[F("a",{class:"pagination-link mt-2 is-current",onClick:h[3]||(h[3]=u=>s(e.currentPage))},Se(e.currentPage),1)]),p.value?(K(),ie("li",c$,[F("a",{class:"pagination-link mt-2",onClick:h[4]||(h[4]=u=>s(e.currentPage+1))},Se(e.currentPage+1),1)])):ge("",!0),p.value&&!o.value&&!a(r.value-1)?(K(),ie("li",u$,d$)):ge("",!0),p.value&&!o.value?(K(),ie("li",f$,[F("a",{class:"pagination-link mt-2",onClick:h[5]||(h[5]=u=>s(r.value))},Se(r.value),1)])):ge("",!0)]))]))}}),p$={key:0},g$={class:"help"},m$={key:1},v$=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),y$=[v$],Qf=xe({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,a=g=>{i("update-page",g)},r=()=>{i("refresh")},d=Ee(()=>n.alerts.results.length>0);return(g,l)=>d.value?(K(),ie("div",p$,[(K(!0),ie(Pe,null,Ft(e.alerts.results,p=>(K(),$e(qS,{alert:p,key:p.id,onDelete:r},null,8,["alert"]))),128)),ae(Pl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:a},null,8,["total","currentPage","pageSize"]),F("p",g$,"("+Se(e.alerts.total)+" results in total, "+Se(e.alerts.results.length)+" shown)",1)])):(K(),ie("div",m$,y$))}}),b$=xe({name:"LoadingItem"}),w$={class:"has-text-centered"},_$={class:"fa-3x"};function S$(e,t,n,i,a,r){const d=Ye("font-awesome-icon");return K(),ie("div",w$,[F("div",_$,[ae(d,{icon:"spinner",spin:""})])])}const wn=Wr(b$,[["render",S$]]),$$={class:"block"},x$={class:"field has-addons"},C$={class:"control is-expanded"},A$={class:"control"},k$={class:"icon is-small"},E$=F("span",null,"Search",-1),R$={class:"control"},T$={class:"icon is-small"},L$=F("span",null,"Help",-1),M$={key:0,class:"content"},O$=wl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),I$={key:0,class:"block"},N$=xe({__name:"AlertsWrapper",setup(e){const t=Mi("page","1"),n=Mi("q",""),i=Ue(!1),a=uo(),r=async()=>{const o={q:n.value,page:parseInt(t.value)};return await a.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await r()},l=g,p=Pr(i);return at(async()=>{await r()}),qe(t,async()=>{await r()}),qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,s)=>{var u,f;const c=Ye("font-awesome-icon"),h=Ye("router-link");return K(),ie(Pe,null,[F("div",$$,[F("div",x$,[F("p",C$,[pl(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=m=>lt(n)?n.value=m:null)},null,512),[[$l,ce(n)]])]),F("p",A$,[F("a",{class:"button is-primary",onClick:g},[F("span",k$,[ae(c,{icon:"search"})]),E$])]),F("p",R$,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=m=>ce(p)())},[F("span",T$,[ae(c,{icon:"question"})]),L$])])]),i.value?(K(),ie("div",M$,[O$,F("ul",null,[F("li",null,[ae(h,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:et(()=>[tt("rule.id:foo AND artifact.data:example.com")]),_:1})]),F("li",null,[ae(h,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:et(()=>[tt("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),ce(a).performCount>0?(K(),ie("div",I$,[ce(a).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(a).isError?(K(),$e(pt,{key:1,error:(u=ce(a).last)==null?void 0:u.error},null,8,["error"])):ge("",!0),(f=ce(a).last)!=null&&f.value?(K(),$e(Qf,{key:2,alerts:ce(a).last.value,page:ce(t),onUpdatePage:d,onRefresh:ce(l)},null,8,["alerts","page","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),F$={class:"columns"},D$={class:"column is-one-third"},P$={class:"card"},W$={class:"card-content"},B$={class:"level is-mobile"},H$={class:"level-item"},z$=F("h3",{class:"subtitle is-spaced"},"Rules",-1),U$={class:"title"},j$={class:"level-item"},V$={class:"icon"},G$={class:"column is-one-third"},K$={class:"card"},Y$={class:"card-content"},Z$={class:"level is-mobile"},X$={class:"level-item"},q$=F("h3",{class:"subtitle is-spaced"},"Alerts",-1),Q$={class:"title"},J$={class:"level-item"},ex={class:"icon"},tx={class:"column is-one-third"},nx={class:"card"},ix={class:"card-content"},rx={class:"level is-mobile"},sx={class:"level-item"},ox=F("h3",{class:"subtitle is-spaced"},"Artifacts",-1),ax={class:"title"},lx={class:"level-item"},cx={class:"icon"},ux=xe({__name:"OverviewCards",setup(e){const t=uo(),n=Uf(),i=Dl();return at(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),i.perform({q:"",page:1,limit:0})}),(a,r)=>{var g,l,p,o,s,c;const d=Ye("font-awesome-icon");return K(),ie("div",F$,[F("div",D$,[F("div",P$,[F("div",W$,[F("div",B$,[F("div",H$,[F("div",null,[z$,F("h1",U$,Se(((l=(g=ce(n).last)==null?void 0:g.value)==null?void 0:l.total)??"N/A"),1)])]),F("div",j$,[F("span",V$,[ae(d,{icon:"file",size:"2x"})])])])])])]),F("div",G$,[F("div",K$,[F("div",Y$,[F("div",Z$,[F("div",X$,[F("div",null,[q$,F("h1",Q$,Se(((o=(p=ce(t).last)==null?void 0:p.value)==null?void 0:o.total)??"N/A"),1)])]),F("div",J$,[F("span",ex,[ae(d,{icon:"bell",size:"2x"})])])])])])]),F("div",tx,[F("div",nx,[F("div",ix,[F("div",rx,[F("div",sx,[F("div",null,[ox,F("h1",ax,Se(((c=(s=ce(i).last)==null?void 0:s.value)==null?void 0:c.total)??"N/A"),1)])]),F("div",lx,[F("span",cx,[ae(d,{icon:"ticket",size:"2x"})])])])])])])])}}}),hx=F("hr",null,null,-1),dx=xe({__name:"AlertsView",setup(e){return bn("Alerts - Mihari"),(t,n)=>(K(),ie(Pe,null,[ae(ux),hx,ae(N$)],64))}}),Jf=xe({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ue(1),i=Ee(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),a=uo(),r=async()=>{const g={q:i.value,page:n.value};return await a.perform(g)},d=g=>{n.value=g};return at(async()=>{await r()}),qe([t,n],async()=>{await r()}),(g,l)=>{var p,o;return K(),ie(Pe,null,[ce(a).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(a).isError?(K(),$e(pt,{key:1,error:(p=ce(a).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(a).last)!=null&&o.value?(K(),$e(Qf,{key:2,page:n.value.toString(),alerts:ce(a).last.value,onUpdatePage:d},null,8,["page","alerts"])):ge("",!0)],64)}}}),fx={class:"block"},px={class:"is-size-2"},gx={class:"is-clearfix"},mx={class:"table is-fullwidth is-completely-borderless"},vx=F("th",null,"Rule",-1),yx=F("th",null,"Artifacts",-1),bx={key:0},wx=F("th",null,"Tags",-1),_x={class:"help"},Sx=F("hr",null,null,-1),$x={class:"block"},xx=F("h2",{class:"is-size-2 block"},"Related Alerts",-1),Cx=xe({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),a=l=>{i.value=l},r=()=>{i.value=void 0},d=()=>{n("delete")},g=d;return(l,p)=>{const o=Ye("router-link");return K(),ie(Pe,null,[i.value?(K(),$e(pt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:r},null,8,["error"])):ge("",!0),F("div",fx,[F("h2",px,Se(e.alert.id),1),F("p",gx,[ae(Vf,{alert:e.alert,onDelete:d,onSetError:a},null,8,["alert"])]),F("table",mx,[F("tr",null,[vx,F("td",null,[ae(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:et(()=>[tt(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),F("tr",null,[yx,F("td",null,[ae(Gf,{artifacts:e.alert.artifacts,onDelete:ce(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(K(),ie("tr",bx,[wx,F("td",null,[ae(jr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),F("p",_x,"Created at: "+Se(e.alert.createdAt),1)]),Sx,F("div",$x,[xx,ae(Jf,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),Ax=xe({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Wi(),i=wS(),a=()=>{n.push("/")};return at(async()=>{await i.perform(t.id)}),(r,d)=>{var g,l;return K(),ie(Pe,null,[ce(i).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(i).isError?(K(),$e(pt,{key:1,error:(g=ce(i).last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(l=ce(i).last)!=null&&l.value?(K(),$e(Cx,{key:2,alert:ce(i).last.value,onDelete:a},null,8,["alert"])):ge("",!0)],64)}}}),kx=xe({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{bn(`Alert:${t.id} - Mihari`)};return at(()=>{n()}),qe(()=>t.id,()=>{n()}),(i,a)=>(K(),$e(Ax,{id:parseInt(e.id)},null,8,["id"]))}}),Vr=e=>(dl("data-v-dac610f8"),e=e(),fl(),e),Ex={class:"buttons is-pulled-right"},Rx=["href"],Tx=Vr(()=>F("span",null,"JSON",-1)),Lx={class:"icon is-small"},Mx=Vr(()=>F("span",null,"Metadata",-1)),Ox={class:"icon is-small"},Ix=Vr(()=>F("span",null,"Enrich",-1)),Nx={class:"icon is-small"},Fx=Vr(()=>F("span",null,"Delete",-1)),Dx={class:"icon is-small"},Px={key:0},Wx={class:"modal is-active"},Bx={class:"modal-card"},Hx={class:"modal-card-head"},zx=Vr(()=>F("p",{class:"modal-card-title"},"Metadata",-1)),Ux={class:"modal-card-body"},jx=xe({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,a=Ee(()=>`/api/artifacts/${n.artifact.id}`),r=Ue(!1),d=zf(),g=fS(),l=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await d.perform(n.artifact.id),i("delete")}catch(c){Qe.isAxiosError(c)&&i("set-error",c)}},p=async()=>{try{const s=await g.perform(n.artifact.id);i("set-message",s)}catch(s){Qe.isAxiosError(s)&&i("set-error",s)}},o=Pr(r);return(s,c)=>{const h=Ye("font-awesome-icon");return K(),ie(Pe,null,[F("span",Ex,[F("a",{class:"button is-link is-light is-small",href:a.value,target:"_blank"},[Tx,F("span",Lx,[ae(h,{icon:"barcode"})])],8,Rx),e.artifact.metadata?(K(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=u=>ce(o)())},[Mx,F("span",Ox,[ae(h,{icon:"info-circle"})])])):ge("",!0),F("button",{class:"button is-primary is-light is-small",onClick:p},[Ix,F("span",Nx,[ce(g).isRunning?(K(),$e(h,{key:0,icon:"spinner",spin:""})):(K(),$e(h,{key:1,icon:"lightbulb"}))])]),F("button",{class:"button is-light is-small",onClick:l},[Fx,F("span",Dx,[ae(h,{icon:"times"})])])]),e.artifact.metadata&&r.value?(K(),ie("div",Px,[F("div",Wx,[F("div",{class:"modal-background",onClick:c[1]||(c[1]=u=>ce(o)())}),F("div",Bx,[F("header",Hx,[zx,F("button",{class:"delete","aria-label":"close",onClick:c[2]||(c[2]=u=>ce(o)())})]),F("section",Ux,[ae(ce(qf),{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}}}),ep=Wr(jx,[["__scopeId","data-v-dac610f8"]]),Vx={class:"notification is-info is-light"},ho=xe({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,i=()=>{n("dispose")};return(a,r)=>(K(),ie("div",Vx,[e.disposable?(K(),ie("button",{key:0,class:"delete",onClick:i})):ge("",!0),F("p",null,Se(e.message.message),1)]))}}),Gx={class:"box"},Kx={class:"block"},Yx={class:"table is-fullwidth is-completely-borderless"},Zx=F("th",null,"Data",-1),Xx=F("th",null,"Data Type",-1),qx=F("th",null,"Source",-1),Qx=F("th",null,"Query",-1),Jx={key:0},eC=F("th",null,"Tags",-1),tC=F("p",{class:"block is-clearfix"},null,-1),nC={class:"help"},iC=xe({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),a=Ue(),r=o=>{i.value=o},d=()=>{i.value=void 0},g=()=>{n("delete")},l=o=>{o.queued&&(a.value=o)},p=()=>{a.value=void 0};return(o,s)=>{const c=Ye("router-link");return K(),ie("div",Gx,[i.value?(K(),$e(pt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),a.value?(K(),$e(ho,{key:1,class:"block",message:a.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("div",Kx,[F("p",null,[ae(ep,{artifact:e.artifact,onDelete:g,onSetError:r,onSetMessage:l},null,8,["artifact"])]),ae(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:et(()=>[tt(Se(e.artifact.id),1)]),_:1},8,["to"])]),F("table",Yx,[F("tr",null,[Zx,F("td",null,Se(e.artifact.data),1)]),F("tr",null,[Xx,F("td",null,Se(e.artifact.dataType),1)]),F("tr",null,[qx,F("td",null,Se(e.artifact.source),1)]),F("tr",null,[Qx,F("td",null,Se(ce(Lr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),ie("tr",Jx,[eC,F("td",null,[ae(jr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),tC,F("p",nC,"Created at: "+Se(e.artifact.createdAt),1)])}}}),rC={key:0},sC={class:"help"},oC={key:1},aC=F("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),lC=[aC],cC=xe({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,a=Ee(()=>n.artifacts.results.length>0),r=g=>{i("update-page",g)},d=()=>{i("refresh")};return(g,l)=>a.value?(K(),ie("div",rC,[(K(!0),ie(Pe,null,Ft(e.artifacts.results,p=>(K(),$e(iC,{artifact:p,key:p.id,onDelete:d},null,8,["artifact"]))),128)),ae(Pl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:r},null,8,["total","currentPage","pageSize"]),F("p",sC," ("+Se(e.artifacts.total)+" results in total, "+Se(e.artifacts.results.length)+" shown) ",1)])):(K(),ie("div",oC,lC))}}),uC={class:"block"},hC={class:"field has-addons"},dC={class:"control is-expanded"},fC={class:"control"},pC={class:"icon is-small"},gC=F("span",null,"Search",-1),mC={class:"control"},vC={class:"icon is-small"},yC=F("span",null,"Help",-1),bC={key:0,class:"content mt-3"},wC=wl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2),_C=[wC],SC={key:0,class:"block"},$C=xe({__name:"ArtifactsWrapper",setup(e){const t=Mi("page","1"),n=Mi("q",""),i=Ue(!1),a=Dl(),r=async()=>{const o={q:n.value,page:parseInt(t.value)};return await a.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await r()},l=g,p=Pr(i);return at(async()=>{await r()}),qe(t,async()=>{await r()}),qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,s)=>{var h,u;const c=Ye("font-awesome-icon");return K(),ie(Pe,null,[F("div",uC,[F("div",hC,[F("p",dC,[pl(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=f=>lt(n)?n.value=f:null)},null,512),[[$l,ce(n)]])]),F("p",fC,[F("a",{class:"button is-primary",onClick:g},[F("span",pC,[ae(c,{icon:"search"})]),gC])]),F("p",mC,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=f=>ce(p)())},[F("span",vC,[ae(c,{icon:"question"})]),yC])])]),i.value?(K(),ie("div",bC,_C)):ge("",!0)]),ce(a).performCount>0?(K(),ie("div",SC,[ce(a).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(a).isError?(K(),$e(pt,{key:1,error:(h=ce(a).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(u=ce(a).last)!=null&&u.value?(K(),$e(cC,{key:2,artifacts:ce(a).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["artifacts","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),xC=xe({__name:"ArtifactsView",setup(e){const t=()=>{bn("Artifacts - Mihari")};return at(()=>{t()}),(n,i)=>(K(),$e($C))}}),CC={class:"tags are-medium"},AC=xe({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",CC,[ae(a,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:et(()=>[tt(Se(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),kC={class:"tags are-medium"},EC=xe({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",kC,[(K(!0),ie(Pe,null,Ft(e.cpes,r=>(K(),$e(a,{class:"tag",key:r.name,to:{name:"Artifacts",query:{q:t(r.name)}}},{default:et(()=>[tt(Se(r.name),1)]),_:2},1032,["to"]))),128))])}}}),RC={class:"field is-grouped is-grouped-multiline"},TC={class:"tags has-addons are-medium"},LC={class:"tag is-dark"},MC=xe({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:i})=>`dns_record.value:"${i}" AND dns_record.resource:"${n}"`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",RC,[(K(!0),ie(Pe,null,Ft(e.dnsRecords,(r,d)=>(K(),ie("div",{class:"control",key:d},[F("div",TC,[F("span",LC,Se(r.resource),1),ae(a,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:r.resource,value:r.value})}}},{default:et(()=>[tt(Se(ce(Lr)(r.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),OC={class:"tags are-medium"},IC=xe({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",OC,[(K(!0),ie(Pe,null,Ft(e.ports,r=>(K(),$e(a,{class:"tag",key:r.number,to:{name:"Artifacts",query:{q:t(r.number)}}},{default:et(()=>[tt(Se(r.number),1)]),_:2},1032,["to"]))),128))])}}}),NC={class:"tags are-medium"},FC=xe({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",NC,[(K(!0),ie(Pe,null,Ft(e.reverseDnsNames,r=>(K(),$e(a,{class:"tag",key:r.name,to:{name:"Artifacts",query:{q:t(r.name)}}},{default:et(()=>[tt(Se(r.name),1)]),_:2},1032,["to"]))),128))])}}}),DC={class:"tags are-medium"},PC=xe({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,i)=>{const a=Ye("router-link");return K(),ie("div",DC,[(K(!0),ie(Pe,null,Ft(e.vulnerabilities,r=>(K(),$e(a,{class:"tag",key:r.name,to:{name:"Artifacts",query:{q:t(r.name)}}},{default:et(()=>[tt(Se(r.name),1)]),_:2},1032,["to"]))),128))])}}}),WC={class:"field is-grouped is-grouped-multiline"},BC={class:"control"},HC={class:"tags has-addons are-medium"},zC=F("span",{class:"tag is-dark"},"Registrar",-1),UC={class:"tag"},jC={class:"control"},VC={class:"tags has-addons are-medium"},GC=F("span",{class:"tag is-dark"},"Created on",-1),KC={class:"tag"},YC={class:"control"},ZC={class:"tags has-addons are-medium"},XC=F("span",{class:"tag is-dark"},"Updated on",-1),qC={class:"tag"},QC={class:"control"},JC={class:"tags has-addons are-medium"},eA=F("span",{class:"tag is-dark"},"Expires on",-1),tA={class:"tag"},nA=xe({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var i;return K(),ie("div",WC,[F("div",BC,[F("div",HC,[zC,F("span",UC,Se(((i=e.whoisRecord.registrar)==null?void 0:i.name)||"N/A"),1)])]),F("div",jC,[F("div",VC,[GC,F("span",KC,Se(e.whoisRecord.createdOn||"N/A"),1)])]),F("div",YC,[F("div",ZC,[XC,F("span",qC,Se(e.whoisRecord.updatedOn||"N/A"),1)])]),F("div",QC,[F("div",JC,[eA,F("span",tA,Se(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),iA=["href"],rA=["src"],sA=xe({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Fd();return(n,i)=>(K(),ie("a",{href:e.link.href(e.data),class:Nr(["tag",ce(t)?"":"is-white"]),target:"_blank"},[F("img",{src:e.link.favicon(),alt:"favicon"},null,8,rA),F("span",null,Se(e.link.name),1)],10,iA))}}),oA=Wr(sA,[["__scopeId","data-v-d0b695fc"]]);class Pt{constructor(){Ne(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class aA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class lA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class cA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class uA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class hA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class dA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class fA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class pA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class tp extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class gA extends tp{constructor(){super();Ne(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class np extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class mA extends np{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class vA extends np{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class yA extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Wl extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class bA extends Wl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class wA extends Wl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class _A extends Wl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),n}var ip={exports:{}};const $A={},xA=Object.freeze(Object.defineProperty({__proto__:null,default:$A},Symbol.toStringTag,{value:"Module"})),Du=SA(xA);/**
|
592
|
-
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
593
|
-
*
|
594
|
-
* @version 0.11.0
|
595
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
596
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
597
|
-
* @license MIT
|
598
|
-
*/(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var a=!n&&typeof self=="object",r=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;r?i=di:a&&(i=self);var d=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],h=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var u=function(b,k){return function(M){return new $(k,!0).update(M)[b]()}},f=function(b){var k=u("hex",b);r&&(k=m(k,b)),k.create=function(){return new $(b)},k.update=function(T){return k.create().update(T)};for(var M=0;M<c.length;++M){var L=c[M];k[L]=u(L,b)}return k},m=function(b,k){var M=Du,L=Du.Buffer,T=k?"sha224":"sha256",E;L.from&&!i.JS_SHA256_NO_BUFFER_FROM?E=L.from:E=function(x){return new L(x)};var C=function(x){if(typeof x=="string")return M.createHash(T).update(x,"utf8").digest("hex");if(x==null)throw new Error(t);return x.constructor===ArrayBuffer&&(x=new Uint8Array(x)),Array.isArray(x)||ArrayBuffer.isView(x)||x.constructor===L?M.createHash(T).update(E(x)).digest("hex"):b(x)};return C},v=function(b,k){return function(M,L){return new _(M,k,!0).update(L)[b]()}},y=function(b){var k=v("hex",b);k.create=function(T){return new _(T,b)},k.update=function(T,E){return k.create(T).update(E)};for(var M=0;M<c.length;++M){var L=c[M];k[L]=v(L,b)}return k};function $(b,k){k?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}$.prototype.update=function(b){if(!this.finalized){var k,M=typeof b;if(M!=="string"){if(M==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);k=!0}for(var L,T=0,E,C=b.length,x=this.blocks;T<C;){if(this.hashed&&(this.hashed=!1,x[0]=this.block,this.block=x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0),k)for(E=this.start;T<C&&E<64;++T)x[E>>>2]|=b[T]<<o[E++&3];else for(E=this.start;T<C&&E<64;++T)L=b.charCodeAt(T),L<128?x[E>>>2]|=L<<o[E++&3]:L<2048?(x[E>>>2]|=(192|L>>>6)<<o[E++&3],x[E>>>2]|=(128|L&63)<<o[E++&3]):L<55296||L>=57344?(x[E>>>2]|=(224|L>>>12)<<o[E++&3],x[E>>>2]|=(128|L>>>6&63)<<o[E++&3],x[E>>>2]|=(128|L&63)<<o[E++&3]):(L=65536+((L&1023)<<10|b.charCodeAt(++T)&1023),x[E>>>2]|=(240|L>>>18)<<o[E++&3],x[E>>>2]|=(128|L>>>12&63)<<o[E++&3],x[E>>>2]|=(128|L>>>6&63)<<o[E++&3],x[E>>>2]|=(128|L&63)<<o[E++&3]);this.lastByteIndex=E,this.bytes+=E-this.start,E>=64?(this.block=x[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,k=this.lastByteIndex;b[16]=this.block,b[k>>>2]|=p[k&3],this.block=b[16],k>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var b=this.h0,k=this.h1,M=this.h2,L=this.h3,T=this.h4,E=this.h5,C=this.h6,x=this.h7,w=this.blocks,A,R,O,I,N,D,H,j,z,B,V;for(A=16;A<64;++A)N=w[A-15],R=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[A-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[A]=w[A-16]+R+w[A-7]+O<<0;for(V=k&M,A=0;A<64;A+=4)this.first?(this.is224?(j=300032,N=w[0]-1413257819,x=N-150054599<<0,L=N+24177077<<0):(j=704751109,N=w[0]-210244248,x=N-1521486534<<0,L=N+143694565<<0),this.first=!1):(R=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),j=b&k,I=j^b&M^V,H=T&E^~T&C,N=x+O+H+s[A]+w[A],D=R+I,x=L+N<<0,L=N+D<<0),R=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),z=L&b,I=z^L&k^j,H=x&T^~x&E,N=C+O+H+s[A+1]+w[A+1],D=R+I,C=M+N<<0,M=N+D<<0,R=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),O=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),B=M&L,I=B^M&b^z,H=C&x^~C&T,N=E+O+H+s[A+2]+w[A+2],D=R+I,E=k+N<<0,k=N+D<<0,R=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),V=k&M,I=V^k&L^B,H=E&C^~E&x,N=T+O+H+s[A+3]+w[A+3],D=R+I,T=b+N<<0,b=N+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+k<<0,this.h2=this.h2+M<<0,this.h3=this.h3+L<<0,this.h4=this.h4+T<<0,this.h5=this.h5+E<<0,this.h6=this.h6+C<<0,this.h7=this.h7+x<<0},$.prototype.hex=function(){this.finalize();var b=this.h0,k=this.h1,M=this.h2,L=this.h3,T=this.h4,E=this.h5,C=this.h6,x=this.h7,w=l[b>>>28&15]+l[b>>>24&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>4&15]+l[b&15]+l[k>>>28&15]+l[k>>>24&15]+l[k>>>20&15]+l[k>>>16&15]+l[k>>>12&15]+l[k>>>8&15]+l[k>>>4&15]+l[k&15]+l[M>>>28&15]+l[M>>>24&15]+l[M>>>20&15]+l[M>>>16&15]+l[M>>>12&15]+l[M>>>8&15]+l[M>>>4&15]+l[M&15]+l[L>>>28&15]+l[L>>>24&15]+l[L>>>20&15]+l[L>>>16&15]+l[L>>>12&15]+l[L>>>8&15]+l[L>>>4&15]+l[L&15]+l[T>>>28&15]+l[T>>>24&15]+l[T>>>20&15]+l[T>>>16&15]+l[T>>>12&15]+l[T>>>8&15]+l[T>>>4&15]+l[T&15]+l[E>>>28&15]+l[E>>>24&15]+l[E>>>20&15]+l[E>>>16&15]+l[E>>>12&15]+l[E>>>8&15]+l[E>>>4&15]+l[E&15]+l[C>>>28&15]+l[C>>>24&15]+l[C>>>20&15]+l[C>>>16&15]+l[C>>>12&15]+l[C>>>8&15]+l[C>>>4&15]+l[C&15];return this.is224||(w+=l[x>>>28&15]+l[x>>>24&15]+l[x>>>20&15]+l[x>>>16&15]+l[x>>>12&15]+l[x>>>8&15]+l[x>>>4&15]+l[x&15]),w},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var b=this.h0,k=this.h1,M=this.h2,L=this.h3,T=this.h4,E=this.h5,C=this.h6,x=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,T>>>24&255,T>>>16&255,T>>>8&255,T&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255];return this.is224||w.push(x>>>24&255,x>>>16&255,x>>>8&255,x&255),w},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),k=new DataView(b);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),b};function _(b,k,M){var L,T=typeof b;if(T==="string"){var E=[],C=b.length,x=0,w;for(L=0;L<C;++L)w=b.charCodeAt(L),w<128?E[x++]=w:w<2048?(E[x++]=192|w>>>6,E[x++]=128|w&63):w<55296||w>=57344?(E[x++]=224|w>>>12,E[x++]=128|w>>>6&63,E[x++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++L)&1023),E[x++]=240|w>>>18,E[x++]=128|w>>>12&63,E[x++]=128|w>>>6&63,E[x++]=128|w&63);b=E}else if(T==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new $(k,!0).update(b).array());var A=[],R=[];for(L=0;L<64;++L){var O=b[L]||0;A[L]=92^O,R[L]=54^O}$.call(this,k,M),this.update(R),this.oKeyPad=A,this.inner=!0,this.sharedMemory=M}_.prototype=new $,_.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),$.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(ip);var CA=ip.exports,AA=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},Bl={},kA=Object.prototype.hasOwnProperty,EA;function Pu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Wu(e){try{return encodeURIComponent(e)}catch{return null}}function RA(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var a=Pu(i[1]),r=Pu(i[2]);a===null||r===null||a in n||(n[a]=r)}return n}function TA(e,t){t=t||"";var n=[],i,a;typeof t!="string"&&(t="?");for(a in e)if(kA.call(e,a)){if(i=e[a],!i&&(i===null||i===EA||isNaN(i))&&(i=""),a=Wu(a),i=Wu(i),a===null||i===null)continue;n.push(a+"="+i)}return n.length?t+n.join("&"):""}Bl.stringify=TA;Bl.parse=RA;var rp=AA,fo=Bl,LA=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,sp=/[\n\r\t]/g,MA=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,op=/:\d+$/,OA=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,IA=/^[a-zA-Z]:/;function Hl(e){return(e||"").toString().replace(LA,"")}var Da=[["#","hash"],["?","query"],function(t,n){return tn(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Bu={hash:1,query:1};function ap(e){var t;typeof window<"u"?t=window:typeof di<"u"?t=di:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},a=typeof e,r;if(e.protocol==="blob:")i=new an(unescape(e.pathname),{});else if(a==="string"){i=new an(e,{});for(r in Bu)delete i[r]}else if(a==="object"){for(r in e)r in Bu||(i[r]=e[r]);i.slashes===void 0&&(i.slashes=MA.test(e.href))}return i}function tn(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function lp(e,t){e=Hl(e),e=e.replace(sp,""),t=t||{};var n=OA.exec(e),i=n[1]?n[1].toLowerCase():"",a=!!n[2],r=!!n[3],d=0,g;return a?r?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):r?(g=n[3]+n[4],d=n[3].length):g=n[4],i==="file:"?d>=2&&(g=g.slice(2)):tn(i)?g=n[4]:i?a&&(g=g.slice(2)):d>=2&&tn(t.protocol)&&(g=n[4]),{protocol:i,slashes:a||tn(i),slashesCount:d,rest:g}}function NA(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,a=n[i-1],r=!1,d=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),d++):d&&(i===0&&(r=!0),n.splice(i,1),d--);return r&&n.unshift(""),(a==="."||a==="..")&&n.push(""),n.join("/")}function an(e,t,n){if(e=Hl(e),e=e.replace(sp,""),!(this instanceof an))return new an(e,t,n);var i,a,r,d,g,l,p=Da.slice(),o=typeof t,s=this,c=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=fo.parse),t=ap(t),a=lp(e||"",t),i=!a.protocol&&!a.slashes,s.slashes=a.slashes||i&&t.slashes,s.protocol=a.protocol||t.protocol||"",e=a.rest,(a.protocol==="file:"&&(a.slashesCount!==2||IA.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!tn(s.protocol)))&&(p[3]=[/(.*)/,"pathname"]);c<p.length;c++){if(d=p[c],typeof d=="function"){e=d(e,s);continue}r=d[0],l=d[1],r!==r?s[l]=e:typeof r=="string"?(g=r==="@"?e.lastIndexOf(r):e.indexOf(r),~g&&(typeof d[2]=="number"?(s[l]=e.slice(0,g),e=e.slice(g+d[2])):(s[l]=e.slice(g),e=e.slice(0,g)))):(g=r.exec(e))&&(s[l]=g[1],e=e.slice(0,g.index)),s[l]=s[l]||i&&d[3]&&t[l]||"",d[4]&&(s[l]=s[l].toLowerCase())}n&&(s.query=n(s.query)),i&&t.slashes&&s.pathname.charAt(0)!=="/"&&(s.pathname!==""||t.pathname!=="")&&(s.pathname=NA(s.pathname,t.pathname)),s.pathname.charAt(0)!=="/"&&tn(s.protocol)&&(s.pathname="/"+s.pathname),rp(s.port,s.protocol)||(s.host=s.hostname,s.port=""),s.username=s.password="",s.auth&&(g=s.auth.indexOf(":"),~g?(s.username=s.auth.slice(0,g),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=s.auth.slice(g+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(s.auth)),s.auth=s.password?s.username+":"+s.password:s.username),s.origin=s.protocol!=="file:"&&tn(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString()}function FA(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||fo.parse)(t)),i[e]=t;break;case"port":i[e]=t,rp(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,op.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var r=t.indexOf(":");~r?(i.username=t.slice(0,r),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(r+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<Da.length;d++){var g=Da[d];g[4]&&(i[g[1]]=i[g[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&tn(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function DA(e){(!e||typeof e!="function")&&(e=fo.stringify);var t,n=this,i=n.host,a=n.protocol;a&&a.charAt(a.length-1)!==":"&&(a+=":");var r=a+(n.protocol&&n.slashes||tn(n.protocol)?"//":"");return n.username?(r+=n.username,n.password&&(r+=":"+n.password),r+="@"):n.password?(r+=":"+n.password,r+="@"):n.protocol!=="file:"&&tn(n.protocol)&&!i&&n.pathname!=="/"&&(r+="@"),(i[i.length-1]===":"||op.test(n.hostname)&&!n.port)&&(i+=":"),r+=i+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(r+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(r+=n.hash),r}an.prototype={set:FA,toString:DA};an.extractProtocol=lp;an.location=ap;an.trimLeft=Hl;an.qs=fo;var PA=an;const WA=zi(PA);class po extends Pt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class BA extends po{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class HA extends po{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class zA extends po{constructor(){super(),this.type="url"}href(t){const n=CA.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new WA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class UA extends po{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const jA=[new aA,new lA,new cA,new hA,new uA,new dA,new fA,new pA,new gA,new tp,new mA,new vA,new yA,new bA,new wA,new _A,new BA,new UA,new HA,new zA],VA={class:"tags are-medium"},GA=xe({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=Ee(()=>jA.filter(i=>i.type===t.type));return(i,a)=>(K(),ie("div",VA,[(K(!0),ie(Pe,null,Ft(n.value,r=>(K(),$e(oA,{data:e.data,link:r,key:r.name},null,8,["data","link"]))),128))]))}});var cp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n=1e3,i=6e4,a=36e5,r="millisecond",d="second",g="minute",l="hour",p="day",o="week",s="month",c="quarter",h="year",u="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var A=["th","st","nd","rd"],R=w%100;return"["+w+(A[(R-20)%10]||A[R]||A[0])+"]"}},$=function(w,A,R){var O=String(w);return!O||O.length>=A?w:""+Array(A+1-O.length).join(R)+w},_={s:$,z:function(w){var A=-w.utcOffset(),R=Math.abs(A),O=Math.floor(R/60),I=R%60;return(A<=0?"+":"-")+$(O,2,"0")+":"+$(I,2,"0")},m:function w(A,R){if(A.date()<R.date())return-w(R,A);var O=12*(R.year()-A.year())+(R.month()-A.month()),I=A.clone().add(O,s),N=R-I<0,D=A.clone().add(O+(N?-1:1),s);return+(-(O+(R-I)/(N?I-D:D-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:s,y:h,w:o,d:p,D:u,h:l,m:g,s:d,ms:r,Q:c}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var k="$isDayjsObject",M=function(w){return w instanceof C||!(!w||!w[k])},L=function w(A,R,O){var I;if(!A)return S;if(typeof A=="string"){var N=A.toLowerCase();b[N]&&(I=N),R&&(b[N]=R,I=N);var D=A.split("-");if(!I&&D.length>1)return w(D[0])}else{var H=A.name;b[H]=A,I=H}return!O&&I&&(S=I),I||!O&&S},T=function(w,A){if(M(w))return w.clone();var R=typeof A=="object"?A:{};return R.date=w,R.args=arguments,new C(R)},E=_;E.l=L,E.i=M,E.w=function(w,A){return T(w,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var C=function(){function w(R){this.$L=L(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[k]=!0}var A=w.prototype;return A.parse=function(R){this.$d=function(O){var I=O.date,N=O.utc;if(I===null)return new Date(NaN);if(E.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var H=D[2]-1||0,j=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(R),this.init()},A.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return this.$d.toString()!==f},A.isSame=function(R,O){var I=T(R);return this.startOf(O)<=I&&I<=this.endOf(O)},A.isAfter=function(R,O){return T(R)<this.startOf(O)},A.isBefore=function(R,O){return this.endOf(O)<T(R)},A.$g=function(R,O,I){return E.u(R)?this[O]:this.set(I,R)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(R,O){var I=this,N=!!E.u(O)||O,D=E.p(R),H=function(X,Q){var ue=E.w(I.$u?Date.UTC(I.$y,Q,X):new Date(I.$y,Q,X),I);return N?ue:ue.endOf(p)},j=function(X,Q){return E.w(I.toDate()[X].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},z=this.$W,B=this.$M,V=this.$D,q="set"+(this.$u?"UTC":"");switch(D){case h:return N?H(1,0):H(31,11);case s:return N?H(1,B):H(0,B+1);case o:var U=this.$locale().weekStart||0,Y=(z<U?z+7:z)-U;return H(N?V-Y:V+(6-Y),B);case p:case u:return j(q+"Hours",0);case l:return j(q+"Minutes",1);case g:return j(q+"Seconds",2);case d:return j(q+"Milliseconds",3);default:return this.clone()}},A.endOf=function(R){return this.startOf(R,!1)},A.$set=function(R,O){var I,N=E.p(R),D="set"+(this.$u?"UTC":""),H=(I={},I[p]=D+"Date",I[u]=D+"Date",I[s]=D+"Month",I[h]=D+"FullYear",I[l]=D+"Hours",I[g]=D+"Minutes",I[d]=D+"Seconds",I[r]=D+"Milliseconds",I)[N],j=N===p?this.$D+(O-this.$W):O;if(N===s||N===h){var z=this.clone().set(u,1);z.$d[H](j),z.init(),this.$d=z.set(u,Math.min(this.$D,z.daysInMonth())).$d}else H&&this.$d[H](j);return this.init(),this},A.set=function(R,O){return this.clone().$set(R,O)},A.get=function(R){return this[E.p(R)]()},A.add=function(R,O){var I,N=this;R=Number(R);var D=E.p(O),H=function(B){var V=T(N);return E.w(V.date(V.date()+Math.round(B*R)),N)};if(D===s)return this.set(s,this.$M+R);if(D===h)return this.set(h,this.$y+R);if(D===p)return H(1);if(D===o)return H(7);var j=(I={},I[g]=i,I[l]=a,I[d]=n,I)[D]||1,z=this.$d.getTime()+R*j;return E.w(z,this)},A.subtract=function(R,O){return this.add(-1*R,O)},A.format=function(R){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var N=R||"YYYY-MM-DDTHH:mm:ssZ",D=E.z(this),H=this.$H,j=this.$m,z=this.$M,B=I.weekdays,V=I.months,q=I.meridiem,U=function(Q,ue,we,P){return Q&&(Q[ue]||Q(O,N))||we[ue].slice(0,P)},Y=function(Q){return E.s(H%12||12,Q,"0")},X=q||function(Q,ue,we){var P=Q<12?"AM":"PM";return we?P.toLowerCase():P};return N.replace(v,function(Q,ue){return ue||function(we){switch(we){case"YY":return String(O.$y).slice(-2);case"YYYY":return E.s(O.$y,4,"0");case"M":return z+1;case"MM":return E.s(z+1,2,"0");case"MMM":return U(I.monthsShort,z,V,3);case"MMMM":return U(V,z);case"D":return O.$D;case"DD":return E.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return U(I.weekdaysMin,O.$W,B,2);case"ddd":return U(I.weekdaysShort,O.$W,B,3);case"dddd":return B[O.$W];case"H":return String(H);case"HH":return E.s(H,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return X(H,j,!0);case"A":return X(H,j,!1);case"m":return String(j);case"mm":return E.s(j,2,"0");case"s":return String(O.$s);case"ss":return E.s(O.$s,2,"0");case"SSS":return E.s(O.$ms,3,"0");case"Z":return D}return null}(Q)||D.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(R,O,I){var N,D=this,H=E.p(O),j=T(R),z=(j.utcOffset()-this.utcOffset())*i,B=this-j,V=function(){return E.m(D,j)};switch(H){case h:N=V()/12;break;case s:N=V();break;case c:N=V()/3;break;case o:N=(B-z)/6048e5;break;case p:N=(B-z)/864e5;break;case l:N=B/a;break;case g:N=B/i;break;case d:N=B/n;break;default:N=B}return I?N:E.a(N)},A.daysInMonth=function(){return this.endOf(s).$D},A.$locale=function(){return b[this.$L]},A.locale=function(R,O){if(!R)return this.$L;var I=this.clone(),N=L(R,O,!0);return N&&(I.$L=N),I},A.clone=function(){return E.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},w}(),x=C.prototype;return T.prototype=x,[["$ms",r],["$s",d],["$m",g],["$H",l],["$W",p],["$M",s],["$y",h],["$D",u]].forEach(function(w){x[w[1]]=function(A){return this.$g(A,w[0],w[1])}}),T.extend=function(w,A){return w.$i||(w(A,C,T),w.$i=!0),T},T.locale=L,T.isDayjs=M,T.unix=function(w){return T(1e3*w)},T.en=b[S],T.Ls=b,T.p={},T})})(cp);var KA=cp.exports;const go=zi(KA);var up={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){return function(n,i,a){n=n||{};var r=i.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,s,c){return r.fromToBase(p,o,s,c)}a.en.relativeTime=d,r.fromToBase=function(p,o,s,c,h){for(var u,f,m,v=s.$locale().relativeTime||d,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],$=y.length,_=0;_<$;_+=1){var S=y[_];S.d&&(u=c?a(p).diff(s,S.d,!0):s.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(u));if(m=u>0,b<=S.r||!S.r){b<=1&&_>0&&(S=y[_-1]);var k=v[S.l];h&&(b=h(""+b)),f=typeof k=="string"?k.replace("%d",b):k(b,o,S.l,m);break}}if(o)return f;var M=m?v.future:v.past;return typeof M=="function"?M(f):M.replace("%s",f)},r.to=function(p,o){return g(p,o,this,!0)},r.from=function(p,o){return g(p,o,this)};var l=function(p){return p.$u?a.utc():a()};r.toNow=function(p){return this.to(l(this),p)},r.fromNow=function(p){return this.from(l(this),p)}}})})(up);var YA=up.exports;const ZA=zi(YA);var hp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(a,r,d){var g,l=function(c,h,u){u===void 0&&(u={});var f=new Date(c),m=function(v,y){y===void 0&&(y={});var $=y.timeZoneName||"short",_=v+"|"+$,S=i[_];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),i[_]=S),S}(h,u);return m.formatToParts(f)},p=function(c,h){for(var u=l(c,h),f=[],m=0;m<u.length;m+=1){var v=u[m],y=v.type,$=v.value,_=n[y];_>=0&&(f[_]=parseInt($,10))}var S=f[3],b=S===24?0:S,k=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",M=+c;return(d.utc(k).valueOf()-(M-=M%1e3))/6e4},o=r.prototype;o.tz=function(c,h){c===void 0&&(c=g);var u,f=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:c}),y=Math.round((m-new Date(v))/1e3/60),$=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number($))u=this.utcOffset(0,h);else if(u=d(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset($,!0),h){var _=u.utcOffset();u=u.add(f-_,"minute")}return u.$x.$timezone=c,u},o.offsetName=function(c){var h=this.$x.$timezone||d.tz.guess(),u=l(this.valueOf(),h,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return u&&u.value};var s=o.startOf;o.startOf=function(c,h){if(!this.$x||!this.$x.$timezone)return s.call(this,c,h);var u=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(u,c,h).tz(this.$x.$timezone,!0)},d.tz=function(c,h,u){var f=u&&h,m=u||h||g,v=p(+d(),m);if(typeof c!="string")return d(c).tz(m);var y=function(b,k,M){var L=b-60*k*1e3,T=p(L,M);if(k===T)return[L,k];var E=p(L-=60*(T-k)*1e3,M);return T===E?[L,T]:[b-60*Math.min(T,E)*1e3,Math.max(T,E)]}(d.utc(c,f).valueOf(),v,m),$=y[0],_=y[1],S=d($).utcOffset(_);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(c){g=c}}})})(hp);var XA=hp.exports;const qA=zi(XA);var dp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,d,g){var l=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},l.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},l.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=l.parse;l.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var o=l.init;l.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else o.call(this)};var s=l.utcOffset;l.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?s.call(this):this.$offset;if(typeof f=="string"&&(f=function(S){S===void 0&&(S="");var b=S.match(i);if(!b)return null;var k=(""+b[0]).match(a)||["-",0,0],M=k[0],L=60*+k[1]+ +k[2];return L===0?0:M==="+"?L:-L}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,$=this;if(m)return $.$offset=y,$.$u=f===0,$;if(f!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(y+_,n)).$offset=y,$.$x.$localOffset=_}else $=this.utc();return $};var c=l.format;l.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},l.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var u=l.diff;l.diff=function(f,m,v){if(f&&this.$u===f.$u)return u.call(this,f,m,v);var y=this.local(),$=g(f).local();return u.call(y,$,m,v)}}})})(dp);var QA=dp.exports;const JA=zi(QA),e2=[{name:"Afghanistan",lat:33.93911,long:67.709953,code:"AF"},{name:"Albania",lat:41.153332,long:20.168331,code:"AL"},{name:"Algeria",lat:28.033886,long:1.659626,code:"DZ"},{name:"American Samoa",lat:-14.270972,long:-170.132217,code:"AS"},{name:"Andorra",lat:42.546245,long:1.601554,code:"AD"},{name:"Angola",lat:-11.202692,long:17.873887,code:"AO"},{name:"Anguilla",lat:18.220554,long:-63.068615,code:"AI"},{name:"Antarctica",lat:-75.250973,long:-.071389,code:"AQ"},{name:"Antigua and Barbuda",lat:17.060816,long:-61.796428,code:"AG"},{name:"Argentina",lat:-38.416097,long:-63.616672,code:"AR"},{name:"Armenia",lat:40.069099,long:45.038189,code:"AM"},{name:"Aruba",lat:12.52111,long:-69.968338,code:"AW"},{name:"Australia",lat:-25.274398,long:133.775136,code:"AU"},{name:"Austria",lat:47.516231,long:14.550072,code:"AT"},{name:"Azerbaijan",lat:40.143105,long:47.576927,code:"AZ"},{name:"Bahamas",lat:25.03428,long:-77.39628,code:"BS"},{name:"Bahrain",lat:25.930414,long:50.637772,code:"BH"},{name:"Bangladesh",lat:23.684994,long:90.356331,code:"BD"},{name:"Barbados",lat:13.193887,long:-59.543198,code:"BB"},{name:"Belarus",lat:53.709807,long:27.953389,code:"BY"},{name:"Belgium",lat:50.503887,long:4.469936,code:"BE"},{name:"Belize",lat:17.189877,long:-88.49765,code:"BZ"},{name:"Benin",lat:9.30769,long:2.315834,code:"BJ"},{name:"Bermuda",lat:32.321384,long:-64.75737,code:"BM"},{name:"Bhutan",lat:27.514162,long:90.433601,code:"BT"},{name:"Bolivia",lat:-16.290154,long:-63.588653,code:"BO"},{name:"Bosnia",lat:43.915886,long:17.679076,code:"BA"},{name:"Botswana",lat:-22.328474,long:24.684866,code:"BW"},{name:"Bouvet Island",lat:-54.423199,long:3.413194,code:"BV"},{name:"Brazil",lat:-14.235004,long:-51.92528,code:"BR"},{name:"British Indian Ocean Territory",lat:-6.343194,long:71.876519,code:"IO"},{name:"Brunei",lat:4.535277,long:114.727669,code:"BN"},{name:"Bulgaria",lat:42.733883,long:25.48583,code:"BG"},{name:"Burkina Faso",lat:12.238333,long:-1.561593,code:"BF"},{name:"Burundi",lat:-3.373056,long:29.918886,code:"BI"},{name:"Cabo Verde",lat:16.002082,long:-24.013197,code:"CV"},{name:"Cambodia",lat:12.565679,long:104.990963,code:"KH"},{name:"Cameroon",lat:7.369722,long:12.354722,code:"CM"},{name:"Canada",lat:56.130366,long:-106.346771,code:"CA"},{name:"Cayman Islands",lat:19.513469,long:-80.566956,code:"KY"},{name:"Central African Republic",lat:6.611111,long:20.939444,code:"CF"},{name:"Caribbean Netherlands",lat:12.2,long:-68.26,code:"BQ"},{name:"Chad",lat:15.454166,long:18.732207,code:"TD"},{name:"Chile",lat:-35.675147,long:-71.542969,code:"CL"},{name:"China",lat:35.86166,long:104.195397,code:"CN"},{name:"Christmas Island",lat:-10.447525,long:105.690449,code:"CX"},{name:"Cocos (Keeling) Islands",lat:-12.164165,long:96.870956,code:"CC"},{name:"Colombia",lat:4.570868,long:-74.297333,code:"CO"},{name:"Comoros",lat:-11.875001,long:43.872219,code:"KM"},{name:"Congo",lat:-.228021,long:15.827659,code:"CG"},{name:"DRC",lat:-4.038333,long:21.758664,code:"CD"},{name:"Cook Islands",lat:-21.236736,long:-159.777671,code:"CK"},{name:"Costa Rica",lat:9.748917,long:-83.753428,code:"CR"},{name:'Côte d"Ivoire',lat:7.539989,long:-5.54708,code:"CI"},{name:"Croatia",lat:45.1,long:15.2,code:"HR"},{name:"Cuba",lat:21.521757,long:-77.781167,code:"CU"},{name:"Curaçao",lat:12.15,long:-68.97,code:"CW"},{name:"Cyprus",lat:35.126413,long:33.429859,code:"CY"},{name:"Czechia",lat:49.817492,long:15.472962,code:"CZ"},{name:"Denmark",lat:56.26392,long:9.501785,code:"DK"},{name:"Djibouti",lat:11.825138,long:42.590275,code:"DJ"},{name:"Dominica",lat:15.414999,long:-61.370976,code:"DM"},{name:"Dominican Republic",lat:18.735693,long:-70.162651,code:"DO"},{name:"Ecuador",lat:-1.831239,long:-78.183406,code:"EC"},{name:"Egypt",lat:26.820553,long:30.802498,code:"EG"},{name:"El Salvador",lat:13.794185,long:-88.89653,code:"SV"},{name:"Equatorial Guinea",lat:1.650801,long:10.267895,code:"GQ"},{name:"Eritrea",lat:15.179384,long:39.782334,code:"ER"},{name:"Estonia",lat:58.595272,long:25.013607,code:"EE"},{name:"Ethiopia",lat:9.145,long:40.489673,code:"ET"},{name:"Falkland Islands (Malvinas)",lat:-51.796253,long:-59.523613,code:"FK"},{name:"Faroe Islands",lat:61.892635,long:-6.911806,code:"FO"},{name:"Fiji",lat:-16.578193,long:179.414413,code:"FJ"},{name:"Finland",lat:61.92411,long:25.748151,code:"FI"},{name:"France",lat:46.227638,long:2.213749,code:"FR"},{name:"French Guiana",lat:3.933889,long:-53.125782,code:"GF"},{name:"French Polynesia",lat:-17.679742,long:-149.406843,code:"PF"},{name:"French Southern Territories",lat:-49.280366,long:69.348557,code:"TF"},{name:"Gabon",lat:-.803689,long:11.609444,code:"GA"},{name:"Gambia",lat:13.443182,long:-15.310139,code:"GM"},{name:"Georgia",lat:42.315407,long:43.356892,code:"GE"},{name:"Germany",lat:51.165691,long:10.451526,code:"DE"},{name:"Ghana",lat:7.946527,long:-1.023194,code:"GH"},{name:"Gibraltar",lat:36.137741,long:-5.345374,code:"GI"},{name:"Greece",lat:39.074208,long:21.824312,code:"GR"},{name:"Greenland",lat:71.706936,long:-42.604303,code:"GL"},{name:"Grenada",lat:12.262776,long:-61.604171,code:"GD"},{name:"Guadeloupe",lat:16.995971,long:-62.067641,code:"GP"},{name:"Guam",lat:13.444304,long:144.793731,code:"GU"},{name:"Guatemala",lat:15.783471,long:-90.230759,code:"GT"},{name:"Guernsey",lat:49.465691,long:-2.585278,code:"GG"},{name:"Guinea",lat:9.945587,long:-9.696645,code:"GN"},{name:"Guinea-Bissau",lat:11.803749,long:-15.180413,code:"GW"},{name:"Guyana",lat:4.860416,long:-58.93018,code:"GY"},{name:"Haiti",lat:18.971187,long:-72.285215,code:"HT"},{name:"Heard Island and McDonald Islands",lat:-53.08181,long:73.504158,code:"HM"},{name:"Holy See (Vatican City State)",lat:41.902916,long:12.453389,code:"VA"},{name:"Honduras",lat:15.199999,long:-86.241905,code:"HN"},{name:"Hong Kong",lat:22.396428,long:114.109497,code:"HK"},{name:"Hungary",lat:47.162494,long:19.503304,code:"HU"},{name:"Iceland",lat:64.963051,long:-19.020835,code:"IS"},{name:"India",lat:20.593684,long:78.96288,code:"IN"},{name:"Indonesia",lat:-.789275,long:113.921327,code:"ID"},{name:"Iran",lat:32.427908,long:53.688046,code:"IR"},{name:"Iraq",lat:33.223191,long:43.679291,code:"IQ"},{name:"Ireland",lat:53.41291,long:-8.24389,code:"IE"},{name:"Isle of Man",lat:54.236107,long:-4.548056,code:"IM"},{name:"Israel",lat:31.046051,long:34.851612,code:"IL"},{name:"Italy",lat:41.87194,long:12.56738,code:"IT"},{name:"Jamaica",lat:18.109581,long:-77.297508,code:"JM"},{name:"Japan",lat:36.204824,long:138.252924,code:"JP"},{name:"Channel Islands",lat:49.214439,long:-2.13125,code:"JE"},{name:"Jordan",lat:30.585164,long:36.238414,code:"JO"},{name:"Kazakhstan",lat:48.019573,long:66.923684,code:"KZ"},{name:"Kenya",lat:-.023559,long:37.906193,code:"KE"},{name:"Kiribati",lat:-3.370417,long:-168.734039,code:"KI"},{name:"Kosovo",lat:42.602636,long:20.902977,code:"XK"},{name:"N. Korea",lat:40.339852,long:127.510093,code:"KP"},{name:"S. Korea",lat:35.907757,long:127.766922,code:"KR"},{name:"Kuwait",lat:29.31166,long:47.481766,code:"KW"},{name:"Kyrgyzstan",lat:41.20438,long:74.766098,code:"KG"},{name:'Lao People"s Democratic Republic',lat:19.85627,long:102.495496,code:"LA"},{name:"Latvia",lat:56.879635,long:24.603189,code:"LV"},{name:"Lebanon",lat:33.854721,long:35.862285,code:"LB"},{name:"Lesotho",lat:-29.609988,long:28.233608,code:"LS"},{name:"Liberia",lat:6.428055,long:-9.429499,code:"LR"},{name:"Libyan Arab Jamahiriya",lat:26.3351,long:17.228331,code:"LY"},{name:"Liechtenstein",lat:47.166,long:9.555373,code:"LI"},{name:"Lithuania",lat:55.169438,long:23.881275,code:"LT"},{name:"Luxembourg",lat:49.815273,long:6.129583,code:"LU"},{name:"Macao",lat:22.198745,long:113.543873,code:"MO"},{name:"Macedonia",lat:41.608635,long:21.745275,code:"MK"},{name:"Madagascar",lat:-18.766947,long:46.869107,code:"MG"},{name:"Malawi",lat:-13.254308,long:34.301525,code:"MW"},{name:"Malaysia",lat:4.210484,long:101.975766,code:"MY"},{name:"Maldives",lat:3.202778,long:73.22068,code:"MV"},{name:"Mali",lat:17.570692,long:-3.996166,code:"ML"},{name:"Malta",lat:35.937496,long:14.375416,code:"MT"},{name:"Marshall Islands",lat:7.131474,long:171.184478,code:"MH"},{name:"Martinique",lat:14.641528,long:-61.024174,code:"MQ"},{name:"Mauritania",lat:21.00789,long:-10.940835,code:"MR"},{name:"Mauritius",lat:-20.348404,long:57.552152,code:"MU"},{name:"Mayotte",lat:-12.8275,long:45.166244,code:"YT"},{name:"Mexico",lat:23.634501,long:-102.552784,code:"MX"},{name:"Micronesia",lat:7.425554,long:150.550812,code:"FM"},{name:"Moldova",lat:47.411631,long:28.369885,code:"MD"},{name:"Monaco",lat:43.750298,long:7.412841,code:"MC"},{name:"Mongolia",lat:46.862496,long:103.846656,code:"MN"},{name:"Montenegro",lat:42.708678,long:19.37439,code:"ME"},{name:"Montserrat",lat:16.742498,long:-62.187366,code:"MS"},{name:"Morocco",lat:31.791702,long:-7.09262,code:"MA"},{name:"Mozambique",lat:-18.665695,long:35.529562,code:"MZ"},{name:"Myanmar",lat:21.913965,long:95.956223,code:"MM"},{name:"Burma",lat:22,long:98,code:"BU"},{name:"Namibia",lat:-22.95764,long:18.49041,code:"NA"},{name:"Nauru",lat:-.522778,long:166.931503,code:"NR"},{name:"Nepal",lat:28.394857,long:84.124008,code:"NP"},{name:"Netherlands",lat:52.132633,long:5.291266,code:"NL"},{name:"Netherlands Antilles",lat:12.226079,long:-69.060087,code:"AN"},{name:"New Caledonia",lat:-20.904305,long:165.618042,code:"NC"},{name:"New Zealand",lat:-40.900557,long:174.885971,code:"NZ"},{name:"Nicaragua",lat:12.865416,long:-85.207229,code:"NI"},{name:"Niger",lat:17.607789,long:8.081666,code:"NE"},{name:"Nigeria",lat:9.081999,long:8.675277,code:"NG"},{name:"Niue",lat:-19.054445,long:-169.867233,code:"NU"},{name:"Norfolk Island",lat:-29.040835,long:167.954712,code:"NF"},{name:"Northern Mariana Islands",lat:17.33083,long:145.38469,code:"MP"},{name:"Norway",lat:60.472024,long:8.468946,code:"NO"},{name:"Oman",lat:21.512583,long:55.923255,code:"OM"},{name:"Pakistan",lat:30.375321,long:69.345116,code:"PK"},{name:"Palau",lat:7.51498,long:134.58252,code:"PW"},{name:"Palestine",lat:31.952162,long:35.233154,code:"PS"},{name:"Panama",lat:8.537981,long:-80.782127,code:"PA"},{name:"Papua New Guinea",lat:-6.314993,long:143.95555,code:"PG"},{name:"Paraguay",lat:-23.442503,long:-58.443832,code:"PY"},{name:"Peru",lat:-9.189967,long:-75.015152,code:"PE"},{name:"Philippines",lat:12.879721,long:121.774017,code:"PH"},{name:"Pitcairn",lat:-24.703615,long:-127.439308,code:"PN"},{name:"Poland",lat:51.919438,long:19.145136,code:"PL"},{name:"Portugal",lat:39.399872,long:-8.224454,code:"PT"},{name:"Puerto Rico",lat:18.220833,long:-66.590149,code:"PR"},{name:"Qatar",lat:25.354826,long:51.183884,code:"QA"},{name:"Réunion",lat:-21.115141,long:55.536384,code:"RE"},{name:"Romania",lat:45.943161,long:24.96676,code:"RO"},{name:"Russia",lat:61.52401,long:105.318756,code:"RU"},{name:"Rwanda",lat:-1.940278,long:29.873888,code:"RW"},{name:"St. Barth",lat:17.89,long:-62.82,code:"BL"},{name:"Saint Helena",lat:-24.143474,long:-10.030696,code:"SH"},{name:"Saint Kitts and Nevis",lat:17.357822,long:-62.782998,code:"KN"},{name:"Saint Lucia",lat:13.909444,long:-60.978893,code:"LC"},{name:"Saint Pierre Miquelon",lat:46.941936,long:-56.27111,code:"PM"},{name:"Saint Martin",lat:18.11,long:-63.03,code:"MF"},{name:"Sint Maarten",lat:18.02,long:-63.06,code:"SX"},{name:"Saint Vincent and the Grenadines",lat:12.984305,long:-61.287228,code:"VC"},{name:"Samoa",lat:-13.759029,long:-172.104629,code:"WS"},{name:"San Marino",lat:43.94236,long:12.457777,code:"SM"},{name:"Sao Tome and Principe",lat:.18636,long:6.613081,code:"ST"},{name:"Saudi Arabia",lat:23.885942,long:45.079162,code:"SA"},{name:"Senegal",lat:14.497401,long:-14.452362,code:"SN"},{name:"Serbia",lat:44.016521,long:21.005859,code:"RS"},{name:"Seychelles",lat:-4.679574,long:55.491977,code:"SC"},{name:"Sierra Leone",lat:8.460555,long:-11.779889,code:"SL"},{name:"Singapore",lat:1.352083,long:103.819836,code:"SG"},{name:"Slovakia",lat:48.669026,long:19.699024,code:"SK"},{name:"Slovenia",lat:46.151241,long:14.995463,code:"SI"},{name:"Solomon Islands",lat:-9.64571,long:160.156194,code:"SB"},{name:"Somalia",lat:5.152149,long:46.199616,code:"SO"},{name:"South Africa",lat:-30.559482,long:22.937506,code:"ZA"},{name:"South Georgia and the South Sandwich Islands",lat:-54.429579,long:-36.587909,code:"GS"},{name:"South Sudan",lat:6.8769,long:31.3069,code:"SS"},{name:"Spain",lat:40.463667,long:-3.74922,code:"ES"},{name:"Sri Lanka",lat:7.873054,long:80.771797,code:"LK"},{name:"Sudan",lat:12.862807,long:30.217636,code:"SD"},{name:"Suriname",lat:3.919305,long:-56.027783,code:"SR"},{name:"Svalbard and Jan Mayen",lat:77.553604,long:23.670272,code:"SJ"},{name:"Swaziland",lat:-26.522503,long:31.465866,code:"SZ"},{name:"Sweden",lat:60.128161,long:18.643501,code:"SE"},{name:"Switzerland",lat:46.818188,long:8.227512,code:"CH"},{name:"Syrian Arab Republic",lat:34.802075,long:38.996815,code:"SY"},{name:"Taiwan",lat:23.69781,long:120.960515,code:"TW"},{name:"Tajikistan",lat:38.861034,long:71.276093,code:"TJ"},{name:"Tanzania",lat:-6.369028,long:34.888822,code:"TZ"},{name:"Thailand",lat:15.870032,long:100.992541,code:"TH"},{name:"Timor-Leste",lat:-8.874217,long:125.727539,code:"TL"},{name:"Togo",lat:8.619543,long:.824782,code:"TG"},{name:"Tokelau",lat:-8.967363,long:-171.855881,code:"TK"},{name:"Tonga",lat:-21.178986,long:-175.198242,code:"TO"},{name:"Trinidad and Tobago",lat:10.691803,long:-61.222503,code:"TT"},{name:"Tunisia",lat:33.886917,long:9.537499,code:"TN"},{name:"Turkey",lat:38.963745,long:35.243322,code:"TR"},{name:"Turkmenistan",lat:38.969719,long:59.556278,code:"TM"},{name:"Turks and Caicos Islands",lat:21.694025,long:-71.797928,code:"TC"},{name:"Tuvalu",lat:-7.109535,long:177.64933,code:"TV"},{name:"Uganda",lat:1.373333,long:32.290275,code:"UG"},{name:"Ukraine",lat:48.379433,long:31.16558,code:"UA"},{name:"UAE",lat:23.424076,long:53.847818,code:"AE"},{name:"UK",lat:55.378051,long:-3.435973,code:"GB"},{name:"USA",lat:37.09024,long:-95.712891,code:"US"},{name:"United States Minor Outlying Islands",lat:0,long:0,code:"UM"},{name:"Uruguay",lat:-32.522779,long:-55.765835,code:"UY"},{name:"Uzbekistan",lat:41.377491,long:64.585262,code:"UZ"},{name:"Vanuatu",lat:-15.376706,long:166.959158,code:"VU"},{name:"Venezuela",lat:6.42375,long:-66.58973,code:"VE"},{name:"Vietnam",lat:14.058324,long:108.277199,code:"VN"},{name:"British Virgin Islands",lat:18.420695,long:-64.639968,code:"VG"},{name:"U.S. Virgin Islands",lat:18.335765,long:-64.896335,code:"VI"},{name:"Wallis and Futuna",lat:-13.768752,long:-177.156097,code:"WF"},{name:"Western Sahara",lat:24.215527,long:-12.885834,code:"EH"},{name:"Yemen",lat:15.552727,long:48.516388,code:"YE"},{name:"Zambia",lat:-13.133897,long:27.849332,code:"ZM"},{name:"Zimbabwe",lat:-19.015438,long:29.154857,code:"ZW"}];function t2(e){return e2.find(n=>n.code===e)}go.extend(ZA);go.extend(qA);go.extend(JA);function fp(e){const t=t2(e);if(t)return{lat:t.lat,long:t.long}}function n2(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return fp(e.countryCode)}const $t=e=>(dl("data-v-aadb0460"),e=e(),fl(),e),i2={class:"block"},r2={class:"is-size-2"},s2={class:"is-clearfix"},o2={class:"columns"},a2={key:0,class:"column is-half"},l2={key:0},c2={class:"is-size-4"},u2={class:"has-text-grey"},h2=["src"],d2={key:1},f2=$t(()=>F("h4",{class:"is-size-4"},"Live screenshot",-1)),p2=$t(()=>F("p",{class:"help"},"Hover to expand",-1)),g2=["src"],m2={class:"column"},v2=$t(()=>F("h4",{class:"is-size-4"},"Information",-1)),y2={class:"table is-fullwidth is-completely-borderless"},b2=$t(()=>F("th",null,"Data",-1)),w2=$t(()=>F("th",null,"Data type",-1)),_2=$t(()=>F("th",null,"Source",-1)),S2=$t(()=>F("th",null,"Query",-1)),$2={key:0},x2=$t(()=>F("th",null,"Tags",-1)),C2={class:"help"},A2={class:"block"},k2={class:"block"},E2={key:0,class:"block"},R2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"AS",-1)),T2={key:1,class:"block"},L2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),M2={key:2,class:"block"},O2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),I2={key:3,class:"block"},N2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),F2={key:4,class:"block"},D2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),P2={key:5,class:"block"},W2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"Ports",-1)),B2={key:6,class:"block"},H2=$t(()=>F("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),z2=xe({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,i=t,a=Ue(),r=Ue(),d=Ue(),g=Ue(),l=m=>{d.value=m},p=()=>{d.value=void 0},o=()=>{i("delete")},s=m=>{m.queued?g.value=m:i("refresh")},c=()=>{g.value=void 0},h=Ee(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),u=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},f=gS();return at(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=fp(n.artifact.geolocation.countryCode);else{const v=await f.perform(n.artifact.data);m=n2(v),r.value=v.countryCode}a.value=u(m)}}),(m,v)=>{var y;return K(),ie(Pe,null,[d.value?(K(),$e(pt,{key:0,class:"block",error:d.value,disposable:!0,onDispose:p},null,8,["error"])):ge("",!0),g.value?(K(),$e(ho,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):ge("",!0),F("div",i2,[F("h2",r2,Se(e.artifact.id),1),F("p",s2,[ae(ep,{artifact:e.artifact,onDelete:o,onSetError:l,onSetMessage:s},null,8,["artifact"])])]),F("div",o2,[a.value||h.value?(K(),ie("div",a2,[a.value?(K(),ie("div",l2,[F("h4",c2,[tt(" Geolocation "),F("span",u2,Se(r.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),F("iframe",{class:"mb-4",src:a.value,width:"100%",height:"240px"},null,8,h2)])):ge("",!0),h.value?(K(),ie("div",d2,[f2,p2,F("img",{src:h.value,class:"liveshot",alt:"liveshot"},null,8,g2)])):ge("",!0)])):ge("",!0),F("div",m2,[v2,F("table",y2,[F("tr",null,[b2,F("td",null,Se(ce(Lr)(e.artifact.data,64)),1)]),F("tr",null,[w2,F("td",null,Se(e.artifact.dataType),1)]),F("tr",null,[_2,F("td",null,Se(e.artifact.source),1)]),F("tr",null,[S2,F("td",null,Se(ce(Lr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),ie("tr",$2,[x2,F("td",null,[ae(jr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),tt("/td>")])])):ge("",!0)]),F("p",C2,"Created at: "+Se(e.artifact.createdAt),1)])]),F("div",A2,[ae(GA,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),F("div",k2,[e.artifact.autonomousSystem?(K(),ie("div",E2,[R2,ae(AC,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(K(),ie("div",T2,[L2,ae(FC,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(K(),ie("div",M2,[O2,ae(MC,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(K(),ie("div",I2,[N2,ae(EC,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(K(),ie("div",F2,[D2,ae(PC,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(K(),ie("div",P2,[W2,ae(IC,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(K(),ie("div",B2,[H2,ae(nA,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}}}),U2=Wr(z2,[["__scopeId","data-v-aadb0460"]]),j2=xe({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=dS(),i=Wi(),a=async()=>{await n.perform(t.id)},r=async()=>{await a()},d=async()=>{i.push("/")};return at(async()=>{await a()}),qe(t,async()=>{await a()}),(g,l)=>{var p,o;return K(),ie(Pe,null,[ce(n).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(n).isError?(K(),$e(pt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(n).last)!=null&&o.value?(K(),$e(U2,{key:2,artifact:ce(n).last.value,onRefresh:r,onDelete:d},null,8,["artifact"])):ge("",!0)],64)}}}),V2=xe({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{bn(`Artifact:${t.id} - Mihari`)};return at(()=>{n()}),qe(()=>t.id,()=>{n()}),(i,a)=>(K(),$e(j2,{id:parseInt(e.id)},null,8,["id"]))}}),G2={class:"box"},K2={class:"table-container"},Y2={class:"table is-fullwidth"},Z2=F("thead",null,[F("tr",null,[F("th",null,"Name"),F("th",null,"Type"),F("th",null,"Configured?"),F("th",null,"Items")])],-1),X2={key:0,class:"button is-success is-small ml-1"},q2={class:"icon is-small"},Q2=F("span",null,"Yes",-1),J2={key:1,class:"button is-warning is-small ml-1"},ek={class:"icon is-small"},tk=F("span",null,"No",-1),nk={class:"field is-grouped is-grouped-multiline"},ik={class:"tags has-addons"},rk={class:"tag is-dark"},sk=xe({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const i=Ye("font-awesome-icon");return K(),ie("div",G2,[F("div",K2,[F("table",Y2,[Z2,F("tbody",null,[(K(!0),ie(Pe,null,Ft(e.configs.results,a=>(K(),ie("tr",{key:a.name},[F("td",null,Se(a.name),1),F("td",null,Se(a.type),1),F("td",null,[a.configured?(K(),ie("button",X2,[F("span",q2,[ae(i,{icon:"check"})]),Q2])):(K(),ie("button",J2,[F("span",ek,[ae(i,{icon:"exclamation"})]),tk]))]),F("td",null,[F("div",nk,[(K(!0),ie(Pe,null,Ft(a.items,(r,d)=>(K(),ie("div",{class:"control",key:d},[F("div",ik,[F("span",rk,Se(r.key),1),F("span",{class:Nr(["tag",{"is-success":r.value,"is-warning":!r.value}])},Se(r.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),ok=xe({__name:"ConfigsWrapper",setup(e){const t=pS();return at(async()=>{await t.perform()}),(n,i)=>{var a,r;return K(),ie(Pe,null,[ce(t).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(t).isError?(K(),$e(pt,{key:1,error:(a=ce(t).last)==null?void 0:a.error},null,8,["error"])):ge("",!0),(r=ce(t).last)!=null&&r.value?(K(),$e(sk,{key:2,configs:ce(t).last.value},null,8,["configs"])):ge("",!0)],64)}}}),ak=xe({__name:"ConfigView",setup(e){return bn("Configuration - Mihari"),(t,n)=>(K(),$e(ok))}});var pp={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var a=function(o,s,c){if(typeof o!="string"){a.original?a.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=s),a.modules[o]||(a.payloads[o]=c,a.modules[o]=null)};a.modules={},a.payloads={};var r=function(o,s,c){if(typeof s=="string"){var h=l(o,s);if(h!=null)return c&&c(),h}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var u=[],f=0,m=s.length;f<m;++f){var v=l(o,s[f]);if(v==null&&d.original)return;u.push(v)}return c&&c.apply(null,u)||!0}},d=function(o,s){var c=r("",o,s);return c==null&&d.original?d.original.apply(this,arguments):c},g=function(o,s){if(s.indexOf("!")!==-1){var c=s.split("!");return g(o,c[0])+"!"+g(o,c[1])}if(s.charAt(0)=="."){var h=o.split("/").slice(0,-1).join("/");for(s=h+"/"+s;s.indexOf(".")!==-1&&u!=s;){var u=s;s=s.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},l=function(o,s){s=g(o,s);var c=a.modules[s];if(!c){if(c=a.payloads[s],typeof c=="function"){var h={},u={id:s,uri:"",exports:h,packaged:!0},f=function(v,y){return r(s,v,y)},m=c(f,h,u);h=m||u.exports,a.modules[s]=h,delete a.payloads[s]}c=a.modules[s]=h||c}return c};function p(o){var s=i;i[o]||(i[o]={}),s=i[o],(!s.define||!s.define.packaged)&&(a.original=s.define,s.define=a,s.define.packaged=!0),(!s.require||!s.require.packaged)&&(d.original=s.require,s.require=d,s.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,a){function r(d,g,l){Object.defineProperty(d,g,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||r(String.prototype,"startsWith",function(d,g){return g=g||0,this.lastIndexOf(d,g)===g}),String.prototype.endsWith||r(String.prototype,"endsWith",function(d,g){var l=this;(g===void 0||g>l.length)&&(g=l.length),g-=d.length;var p=l.indexOf(d,g);return p!==-1&&p===g}),String.prototype.repeat||r(String.prototype,"repeat",function(d){for(var g="",l=this;d>0;)d&1&&(g+=l),(d>>=1)&&(l+=l);return g}),String.prototype.includes||r(String.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),l=1;l<arguments.length;l++){var p=arguments[l];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(g){return d[g]})}),Array.prototype.find||r(Array.prototype,"find",function(d){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var o=this[p];if(d.call(l,o,p,this))return o}}),Array.prototype.findIndex||r(Array.prototype,"findIndex",function(d){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var o=this[p];if(d.call(l,o,p,this))return p}}),Array.prototype.includes||r(Array.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Array.prototype.fill||r(Array.prototype,"fill",function(d){for(var g=this,l=g.length>>>0,p=arguments[1],o=p>>0,s=o<0?Math.max(l+o,0):Math.min(o,l),c=arguments[2],h=c===void 0?l:c>>0,u=h<0?Math.max(l+h,0):Math.min(h,l);s<u;)g[s]=d,s++;return g}),Array.of||r(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,a){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,a){i.deepCopy=function r(d){if(typeof d!="object"||!d)return d;var g;if(Array.isArray(d)){g=[];for(var l=0;l<d.length;l++)g[l]=r(d[l]);return g}if(Object.prototype.toString.call(d)!=="[object Object]")return d;g={};for(var l in d)g[l]=r(d[l]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,a){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,l){for(var p="";l>0;)l&1&&(p+=g),(l>>=1)&&(g+=g);return p};var r=/^\s\s*/,d=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(r,"")},i.stringTrimRight=function(g){return g.replace(d,"")},i.copyObject=function(g){var l={};for(var p in g)l[p]=g[p];return l},i.copyArray=function(g){for(var l=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?l[p]=this.copyObject(g[p]):l[p]=g[p];return l},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var l={},p=0;p<g.length;p++)l[g[p]]=1;return l},i.createMap=function(g){var l=Object.create(null);for(var p in g)l[p]=g[p];return l},i.arrayRemove=function(g,l){for(var p=0;p<=g.length;p++)l===g[p]&&g.splice(p,1)},i.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(g){return(""+g).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},i.getMatchOffsets=function(g,l){var p=[];return g.replace(l,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},i.deferredCall=function(g){var l=null,p=function(){l=null,g()},o=function(s){return o.cancel(),l=setTimeout(p,s||0),o};return o.schedule=o,o.call=function(){return this.cancel(),g(),o},o.cancel=function(){return clearTimeout(l),l=null,o},o.isPending=function(){return l},o},i.delayedCall=function(g,l){var p=null,o=function(){p=null,g()},s=function(c){p==null&&(p=setTimeout(o,c||l))};return s.delay=function(c){p&&clearTimeout(p),p=setTimeout(o,c||l)},s.schedule=s,s.call=function(){this.cancel(),g()},s.cancel=function(){p&&clearTimeout(p),p=null},s.isPending=function(){return p},s},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,l,p){return p&&g.codePointAt(l)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,a){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var r=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),g=r.userAgent||"",l=r.appName||"";i.isWin=d=="win",i.isMac=d=="mac",i.isLinux=d=="linux",i.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=g.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(g.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,i.isAIR=g.indexOf("AdobeAIR")>=0,i.isAndroid=g.indexOf("Android")>=0,i.isChromeOS=g.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,i,a){var r=n("./useragent"),d="http://www.w3.org/1999/xhtml";i.buildDom=function c(h,u,f){if(typeof h=="string"&&h){var m=document.createTextNode(h);return u&&u.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&u&&u.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var v=[],y=0;y<h.length;y++){var $=c(h[y],u,f);$&&v.push($)}return v}var _=document.createElement(h[0]),S=h[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<h.length;y++)c(h[y],_,f);return b==2&&Object.keys(S).forEach(function(k){var M=S[k];k==="class"?_.className=Array.isArray(M)?M.join(" "):M:typeof M=="function"||k=="value"||k[0]=="$"?_[k]=M:k==="ref"?f&&(f[M]=_):k==="style"?typeof M=="string"&&(_.style.cssText=M):M!=null&&_.setAttribute(k,M)}),u&&u.appendChild(_),_},i.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},i.createElement=function(c,h){return document.createElementNS?document.createElementNS(h||d,c):document.createElement(c)},i.removeChildren=function(c){c.innerHTML=""},i.createTextNode=function(c,h){var u=h?h.ownerDocument:document;return u.createTextNode(c)},i.createFragment=function(c){var h=c?c.ownerDocument:document;return h.createDocumentFragment()},i.hasCssClass=function(c,h){var u=(c.className+"").split(/\s+/g);return u.indexOf(h)!==-1},i.addCssClass=function(c,h){i.hasCssClass(c,h)||(c.className+=" "+h)},i.removeCssClass=function(c,h){for(var u=c.className.split(/\s+/g);;){var f=u.indexOf(h);if(f==-1)break;u.splice(f,1)}c.className=u.join(" ")},i.toggleCssClass=function(c,h){for(var u=c.className.split(/\s+/g),f=!0;;){var m=u.indexOf(h);if(m==-1)break;f=!1,u.splice(m,1)}return f&&u.push(h),c.className=u.join(" "),f},i.setCssClass=function(c,h,u){u?i.addCssClass(c,h):i.removeCssClass(c,h)},i.hasCssString=function(c,h){var u=0,f;if(h=h||document,f=h.querySelectorAll("style")){for(;u<f.length;)if(f[u++].id===c)return!0}},i.removeElementById=function(c,h){h=h||document,h.getElementById(c)&&h.getElementById(c).remove()};var g,l=[];i.useStrictCSP=function(c){g=c,c==!1?p():l||(l=[])};function p(){var c=l;l=null,c&&c.forEach(function(h){o(h[0],h[1])})}function o(c,h,u){if(!(typeof document>"u")){if(l){if(u)p();else if(u===!1)return l.push([c,h])}if(!g){var f=u;!u||!u.getRootNode?f=document:(f=u.getRootNode(),(!f||f==u)&&(f=document));var m=f.ownerDocument||f;if(h&&i.hasCssString(h,f))return null;h&&(c+=`
|
599
|
-
/*# sourceURL=ace/css/`+h+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(c)),h&&(v.id=h),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(c,h){i.buildDom(["link",{rel:"stylesheet",href:c}],i.getDocumentHead(h))},i.scrollbarWidth=function(c){var h=i.createElement("ace_inner");h.style.width="100%",h.style.minWidth="0px",h.style.height="200px",h.style.display="block";var u=i.createElement("ace_outer"),f=u.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",u.appendChild(h);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(u);var v=h.offsetWidth;f.overflow="scroll";var y=h.offsetWidth;return v===y&&(y=u.clientWidth),m.removeChild(u),v-y},i.computedStyle=function(c,h){return window.getComputedStyle(c,"")||{}},i.setStyle=function(c,h,u){c[h]!==u&&(c[h]=u)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=r.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,r.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var s=document.createElement("div");i.HI_DPI&&s.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!r.isEdge&&typeof s.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),s=null}i.HAS_CSS_TRANSFORMS?i.translate=function(c,h,u){c.style.transform="translate("+Math.round(h)+"px, "+Math.round(u)+"px)"}:i.translate=function(c,h,u){c.style.top=Math.round(u)+"px",c.style.left=Math.round(h)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,a){/*
|
600
|
-
* based on code from:
|
601
|
-
*
|
602
|
-
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
603
|
-
* Available via the MIT or new BSD license.
|
604
|
-
* see: http://github.com/jrburke/requirejs for details
|
605
|
-
*/var r=n("./dom");i.get=function(d,g){var l=new XMLHttpRequest;l.open("GET",d,!0),l.onreadystatechange=function(){l.readyState===4&&g(l.responseText)},l.send(null)},i.loadScript=function(d,g){var l=r.getDocumentHead(),p=document.createElement("script");p.src=d,l.appendChild(p),p.onload=p.onreadystatechange=function(o,s){(s||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,s||g())}},i.qualifyURL=function(d){var g=document.createElement("a");return g.href=d,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,a){i.inherits=function(r,d){r.super_=d,r.prototype=Object.create(d.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(r,d){for(var g in d)r[g]=d[g];return r},i.implement=function(r,d){i.mixin(r,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,a){var r={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(l,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[l]||[],s=this._defaultHandlers[l];if(!(!o.length&&!s)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=l),p.stopPropagation||(p.stopPropagation=d),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var c=0;c<o.length&&(o[c](p,this),!p.propagationStopped);c++);if(s&&!p.defaultPrevented)return s(p,this)}},r._signal=function(l,p){var o=(this._eventRegistry||{})[l];if(o){o=o.slice();for(var s=0;s<o.length;s++)o[s](p,this)}},r.once=function(l,p){var o=this;if(this.on(l,function s(){o.off(l,s),p.apply(null,arguments)}),!p)return new Promise(function(s){p=s})},r.setDefaultHandler=function(l,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[l]){var s=o[l],c=o._disabled_[l];c||(o._disabled_[l]=c=[]),c.push(s);var h=c.indexOf(p);h!=-1&&c.splice(h,1)}o[l]=p},r.removeDefaultHandler=function(l,p){var o=this._defaultHandlers;if(o){var s=o._disabled_[l];if(o[l]==p)s&&this.setDefaultHandler(l,s.pop());else if(s){var c=s.indexOf(p);c!=-1&&s.splice(c,1)}}},r.on=r.addEventListener=function(l,p,o){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[l];return s||(s=this._eventRegistry[l]=[]),s.indexOf(p)==-1&&s[o?"unshift":"push"](p),p},r.off=r.removeListener=r.removeEventListener=function(l,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[l];if(o){var s=o.indexOf(p);s!==-1&&o.splice(s,1)}},r.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},i.EventEmitter=r}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,a){i.reportError=function(d,g){var l=new Error(d);l.data=g,typeof console=="object"&&console.error&&console.error(l),setTimeout(function(){throw l})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,i,a){var r={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages"};i.defaultEnglishMessages=r}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,i,a){"no use strict";var r=n("./oop"),d=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,l=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(u){Object.keys(u).forEach(function(f){this.setOption(f,u[f])},this)},getOptions:function(u){var f={};if(u)Array.isArray(u)||(f=u,u=Object.keys(f));else{var m=this.$options;u=Object.keys(m).filter(function(v){return!m[v].hidden})}return u.forEach(function(v){f[v]=this.getOption(v)},this),f},setOption:function(u,f){if(this["$"+u]!==f){var m=this.$options[u];if(!m)return o('misspelled option "'+u+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(u,f);m.handlesSet||(this["$"+u]=f),m&&m.set&&m.set.call(this,f)}},getOption:function(u){var f=this.$options[u];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(u):f&&f.get?f.get.call(this):this["$"+u]:o('misspelled option "'+u+'"')}};function o(u){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var s,c,h=function(){function u(){this.$defaultOptions={},s=l,c="dollarSigns"}return u.prototype.defineOptions=function(f,m,v){return f.$options||(this.$defaultOptions[m]=f.$options={}),Object.keys(v).forEach(function(y){var $=v[y];typeof $=="string"&&($={forwardTo:$}),$.name||($.name=y),f.$options[$.name]=$,"initialValue"in $&&(f["$"+$.name]=$.initialValue)}),r.implement(f,p),this},u.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(m){var v=f.$options[m];"value"in v&&f.setOption(m,v.value)})},u.prototype.setDefaultValue=function(f,m,v){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][m])break;if(!this.$defaultOptions[f][m])return!1}var y=this.$defaultOptions[f]||(this.$defaultOptions[f]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},u.prototype.setDefaultValues=function(f,m){Object.keys(m).forEach(function(v){this.setDefaultValue(f,v,m[v])},this)},u.prototype.setMessages=function(f,m){s=f,m&&m.placeholders&&(c=m.placeholders)},u.prototype.nls=function(f,m,v){s[f]||(o("No message found for the key '"+f+"' in the provided messages, trying to find a translation for the default string '"+m+"'."),s[m]||o("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=s[f]||s[m]||m;return v&&(c==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function($,_){return _=="$"?"$":v[_]})),c==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function($,_){return v[_]}))),y},u}();h.prototype.warn=o,h.prototype.reportError=g,r.implement(h.prototype,d),i.AppConfig=h}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,a){a.exports=`.ace-tm .ace_gutter {
|
606
|
-
background: #f0f0f0;
|
607
|
-
color: #333;
|
608
|
-
}
|
609
|
-
|
610
|
-
.ace-tm .ace_print-margin {
|
611
|
-
width: 1px;
|
612
|
-
background: #e8e8e8;
|
613
|
-
}
|
614
|
-
|
615
|
-
.ace-tm .ace_fold {
|
616
|
-
background-color: #6B72E6;
|
617
|
-
}
|
618
|
-
|
619
|
-
.ace-tm {
|
620
|
-
background-color: #FFFFFF;
|
621
|
-
color: black;
|
622
|
-
}
|
623
|
-
|
624
|
-
.ace-tm .ace_cursor {
|
625
|
-
color: black;
|
626
|
-
}
|
627
|
-
|
628
|
-
.ace-tm .ace_invisible {
|
629
|
-
color: rgb(191, 191, 191);
|
630
|
-
}
|
631
|
-
|
632
|
-
.ace-tm .ace_storage,
|
633
|
-
.ace-tm .ace_keyword {
|
634
|
-
color: blue;
|
635
|
-
}
|
636
|
-
|
637
|
-
.ace-tm .ace_constant {
|
638
|
-
color: rgb(197, 6, 11);
|
639
|
-
}
|
640
|
-
|
641
|
-
.ace-tm .ace_constant.ace_buildin {
|
642
|
-
color: rgb(88, 72, 246);
|
643
|
-
}
|
644
|
-
|
645
|
-
.ace-tm .ace_constant.ace_language {
|
646
|
-
color: rgb(88, 92, 246);
|
647
|
-
}
|
648
|
-
|
649
|
-
.ace-tm .ace_constant.ace_library {
|
650
|
-
color: rgb(6, 150, 14);
|
651
|
-
}
|
652
|
-
|
653
|
-
.ace-tm .ace_invalid {
|
654
|
-
background-color: rgba(255, 0, 0, 0.1);
|
655
|
-
color: red;
|
656
|
-
}
|
657
|
-
|
658
|
-
.ace-tm .ace_support.ace_function {
|
659
|
-
color: rgb(60, 76, 114);
|
660
|
-
}
|
661
|
-
|
662
|
-
.ace-tm .ace_support.ace_constant {
|
663
|
-
color: rgb(6, 150, 14);
|
664
|
-
}
|
665
|
-
|
666
|
-
.ace-tm .ace_support.ace_type,
|
667
|
-
.ace-tm .ace_support.ace_class {
|
668
|
-
color: rgb(109, 121, 222);
|
669
|
-
}
|
670
|
-
|
671
|
-
.ace-tm .ace_keyword.ace_operator {
|
672
|
-
color: rgb(104, 118, 135);
|
673
|
-
}
|
674
|
-
|
675
|
-
.ace-tm .ace_string {
|
676
|
-
color: rgb(3, 106, 7);
|
677
|
-
}
|
678
|
-
|
679
|
-
.ace-tm .ace_comment {
|
680
|
-
color: rgb(76, 136, 107);
|
681
|
-
}
|
682
|
-
|
683
|
-
.ace-tm .ace_comment.ace_doc {
|
684
|
-
color: rgb(0, 102, 255);
|
685
|
-
}
|
686
|
-
|
687
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
688
|
-
color: rgb(128, 159, 191);
|
689
|
-
}
|
690
|
-
|
691
|
-
.ace-tm .ace_constant.ace_numeric {
|
692
|
-
color: rgb(0, 0, 205);
|
693
|
-
}
|
694
|
-
|
695
|
-
.ace-tm .ace_variable {
|
696
|
-
color: rgb(49, 132, 149);
|
697
|
-
}
|
698
|
-
|
699
|
-
.ace-tm .ace_xml-pe {
|
700
|
-
color: rgb(104, 104, 91);
|
701
|
-
}
|
702
|
-
|
703
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
704
|
-
color: #0000A2;
|
705
|
-
}
|
706
|
-
|
707
|
-
|
708
|
-
.ace-tm .ace_heading {
|
709
|
-
color: rgb(12, 7, 255);
|
710
|
-
}
|
711
|
-
|
712
|
-
.ace-tm .ace_list {
|
713
|
-
color:rgb(185, 6, 144);
|
714
|
-
}
|
715
|
-
|
716
|
-
.ace-tm .ace_meta.ace_tag {
|
717
|
-
color:rgb(0, 22, 142);
|
718
|
-
}
|
719
|
-
|
720
|
-
.ace-tm .ace_string.ace_regex {
|
721
|
-
color: rgb(255, 0, 0)
|
722
|
-
}
|
723
|
-
|
724
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
725
|
-
background: rgb(181, 213, 255);
|
726
|
-
}
|
727
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
728
|
-
box-shadow: 0 0 3px 0px white;
|
729
|
-
}
|
730
|
-
.ace-tm .ace_marker-layer .ace_step {
|
731
|
-
background: rgb(252, 255, 0);
|
732
|
-
}
|
733
|
-
|
734
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
735
|
-
background: rgb(164, 229, 101);
|
736
|
-
}
|
737
|
-
|
738
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
739
|
-
margin: -1px 0 0 -1px;
|
740
|
-
border: 1px solid rgb(192, 192, 192);
|
741
|
-
}
|
742
|
-
|
743
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
744
|
-
background: rgba(0, 0, 0, 0.07);
|
745
|
-
}
|
746
|
-
|
747
|
-
.ace-tm .ace_gutter-active-line {
|
748
|
-
background-color : #dcdcdc;
|
749
|
-
}
|
750
|
-
|
751
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
752
|
-
background: rgb(250, 250, 255);
|
753
|
-
border: 1px solid rgb(200, 200, 250);
|
754
|
-
}
|
755
|
-
|
756
|
-
.ace-tm .ace_indent-guide {
|
757
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
758
|
-
}
|
759
|
-
|
760
|
-
.ace-tm .ace_indent-guide-active {
|
761
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
762
|
-
}
|
763
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,a){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var r=n("../lib/dom");r.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,i,a){"no use strict";var r=n("./lib/lang"),d=n("./lib/net"),g=n("./lib/dom"),l=n("./lib/app_config").AppConfig;a.exports=i=new l;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(h){if(!p.hasOwnProperty(h))throw new Error("Unknown config key: "+h);return p[h]},i.set=function(h,u){if(p.hasOwnProperty(h))p[h]=u;else if(this.setDefaultValue("",h,u)==!1)throw new Error("Unknown config key: "+h);h=="useStrictCSP"&&g.useStrictCSP(u)},i.all=function(){return r.copyObject(p)},i.$modes={},i.moduleUrl=function(h,u){if(p.$moduleUrls[h])return p.$moduleUrls[h];var f=h.split("/");u=u||f[f.length-2]||"";var m=u=="snippets"?"/":"-",v=f[f.length-1];if(u=="worker"&&m=="-"){var y=new RegExp("^"+u+"[\\-_]|[\\-_]"+u+"$","g");v=v.replace(y,"")}(!v||v==u)&&f.length>1&&(v=f[f.length-2]);var $=p[u+"Path"];return $==null?$=p.basePath:m=="/"&&(u=m=""),$&&$.slice(-1)!="/"&&($+="/"),$+u+m+v+this.get("suffix")},i.setModuleUrl=function(h,u){return p.$moduleUrls[h]=u};var o=function(h,u){if(h==="ace/theme/textmate"||h==="./theme/textmate")return u(null,n("./theme/textmate"));if(s)return s(h,u);console.error("loader is not configured")},s;i.setLoader=function(h){s=h},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(h,u){var f;if(Array.isArray(h))var m=h[0],v=h[1];else if(typeof h=="string")var v=h;var y=function($){if($&&!i.$loading[v])return u&&u($);if(i.$loading[v]||(i.$loading[v]=[]),i.$loading[v].push(u),!(i.$loading[v].length>1)){var _=function(){o(v,function(S,b){b&&(i.$loaded[v]=b),i._emit("load.module",{name:v,module:b});var k=i.$loading[v];i.$loading[v]=null,k.forEach(function(M){M&&M(b)})})};if(!i.get("packaged"))return _();d.loadScript(i.moduleUrl(v,m),_),c()}};if(i.dynamicModules[v])i.dynamicModules[v]().then(function($){$.default?y($.default):y($)});else{try{f=this.$require(v)}catch{}y(f||i.$loaded[v])}},i.$require=function(h){if(typeof a.require=="function"){var u="require";return a[u](h)}},i.setModuleLoader=function(h,u){i.dynamicModules[h]=u};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};i.version="1.35.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,a){n("./lib/fixoldbrowsers");var r=n("./config");r.setLoader(function(p,o){n([p],function(s){o(null,s)})});var d=function(){return this||typeof window<"u"&&window}();a.exports=function(p){r.init=g,r.$require=n,p.require=n},g(!0);function g(p){if(!(!d||!d.document)){r.set("packaged",p||n.packaged||a.packaged||d.define&&(void 0).packaged);var o={},s="",c=document.currentScript||document._currentScript,h=c&&c.ownerDocument||document;c&&c.src&&(s=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var u=h.getElementsByTagName("script"),f=0;f<u.length;f++){var m=u[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,$=0,_=y.length;$<_;$++){var S=y[$];S.name.indexOf("data-ace-")===0&&(o[l(S.name.replace(/^data-ace-/,""))]=S.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(s=b[1])}}s&&(o.base=o.base||s,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var k in o)typeof o[k]<"u"&&r.set(k,o[k])}}function l(p){return p.replace(/-(.)/g,function(o,s){return s.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,a){var r=function(){function d(g,l,p,o){this.start={row:g,column:l},this.end={row:p,column:o}}return d.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},d.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},d.prototype.contains=function(g,l){return this.compare(g,l)==0},d.prototype.compareRange=function(g){var l,p=g.end,o=g.start;return l=this.compare(p.row,p.column),l==1?(l=this.compare(o.row,o.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(o.row,o.column),l==-1?-1:l==1?42:0)},d.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},d.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},d.prototype.intersects=function(g){var l=this.compareRange(g);return l==-1||l==0||l==1},d.prototype.isEnd=function(g,l){return this.end.row==g&&this.end.column==l},d.prototype.isStart=function(g,l){return this.start.row==g&&this.start.column==l},d.prototype.setStart=function(g,l){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=l)},d.prototype.setEnd=function(g,l){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=l)},d.prototype.inside=function(g,l){return this.compare(g,l)==0?!(this.isEnd(g,l)||this.isStart(g,l)):!1},d.prototype.insideStart=function(g,l){return this.compare(g,l)==0?!this.isEnd(g,l):!1},d.prototype.insideEnd=function(g,l){return this.compare(g,l)==0?!this.isStart(g,l):!1},d.prototype.compare=function(g,l){return!this.isMultiLine()&&g===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?l>=this.start.column?0:-1:this.end.row===g?l<=this.end.column?0:1:0},d.prototype.compareStart=function(g,l){return this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.compareEnd=function(g,l){return this.end.row==g&&this.end.column==l?1:this.compare(g,l)},d.prototype.compareInside=function(g,l){return this.end.row==g&&this.end.column==l?1:this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.clipRows=function(g,l){if(this.end.row>l)var p={row:l+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>l)var o={row:l+1,column:0};else if(this.start.row<g)var o={row:g,column:0};return d.fromPoints(o||this.start,p||this.end)},d.prototype.extend=function(g,l){var p=this.compare(g,l);if(p==0)return this;if(p==-1)var o={row:g,column:l};else var s={row:g,column:l};return d.fromPoints(o||this.start,s||this.end)},d.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},d.prototype.isMultiLine=function(){return this.start.row!==this.end.row},d.prototype.clone=function(){return d.fromPoints(this.start,this.end)},d.prototype.collapseRows=function(){return this.end.column==0?new d(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new d(this.start.row,0,this.end.row,0)},d.prototype.toScreenRange=function(g){var l=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new d(l.row,l.column,p.row,p.column)},d.prototype.moveBy=function(g,l){this.start.row+=g,this.start.column+=l,this.end.row+=g,this.end.column+=l},d}();r.fromPoints=function(d,g){return new r(d.row,d.column,g.row,g.column)},r.comparePoints=function(d,g){return d.row-g.row||d.column-g.column},i.Range=r}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,a){for(var r=n("./oop"),d={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},l=0;l<10;l++)g["Digit"+l]=48+l,g["Numpad"+l]=96+l,d.PRINTABLE_KEYS[48+l]=""+l,d.FUNCTION_KEYS[96+l]="Numpad"+l;for(var l=65;l<91;l++){var p=String.fromCharCode(l+32);g["Key"+p.toUpperCase()]=l,d.PRINTABLE_KEYS[l]=p}for(var l=1;l<13;l++)g["F"+l]=111+l,d.FUNCTION_KEYS[111+l]="F"+l;var o={Shift:16,Control:17,Alt:18,Meta:224};for(var s in o)g[s]=g[s+"Left"]=g[s+"Right"]=o[s];i.$codeToKeyCode=g,d.PRINTABLE_KEYS[173]="-";for(var c in d.FUNCTION_KEYS){var h=d.FUNCTION_KEYS[c].toLowerCase();d[h]=parseInt(c,10)}for(var c in d.PRINTABLE_KEYS){var h=d.PRINTABLE_KEYS[c].toLowerCase();d[h]=parseInt(c,10)}r.mixin(d,d.MODIFIER_KEYS),r.mixin(d,d.PRINTABLE_KEYS),r.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,function(){for(var u=["cmd","ctrl","alt","shift"],f=Math.pow(2,u.length);f--;)d.KEY_MODS[f]=u.filter(function(m){return f&d.KEY_MODS[m]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",r.mixin(i,d),i.default=i,i.keyCodeToString=function(u){var f=d[u];return typeof f!="string"&&(f=String.fromCharCode(u)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,a){var r=n("./keys"),d=n("./useragent"),g=null,l=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function s(){return p==null&&o(),p}function c($,_,S){this.elem=$,this.type=_,this.callback=S}c.prototype.destroy=function(){u(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=i.addListener=function($,_,S,b){$.addEventListener(_,S,s()),b&&b.$toDestroy.push(new c($,_,S))},u=i.removeListener=function($,_,S){$.removeEventListener(_,S,s())};i.stopEvent=function($){return i.stopPropagation($),i.preventDefault($),!1},i.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},i.preventDefault=function($){$.preventDefault&&$.preventDefault()},i.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||d.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},i.capture=function($,_,S){var b=$&&$.ownerDocument||document;function k(M){_&&_(M),S&&S(M),u(b,"mousemove",_),u(b,"mouseup",k),u(b,"dragstart",k)}return h(b,"mousemove",_),h(b,"mouseup",k),h(b,"dragstart",k),k},i.addMouseWheelListener=function($,_,S){h($,"wheel",function(b){var k=.15,M=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=M*k,b.wheelY=L*k;break;case b.DOM_DELTA_LINE:var T=15;b.wheelX=M*T,b.wheelY=L*T;break;case b.DOM_DELTA_PAGE:var E=150;b.wheelX=M*E,b.wheelY=L*E;break}_(b)},S)},i.addMultiMouseDownListener=function($,_,S,b,k){var M=0,L,T,E,C={2:"dblclick",3:"tripleclick",4:"quadclick"};function x(w){if(i.getButton(w)!==0?M=0:w.detail>1?(M++,M>4&&(M=1)):M=1,d.isIE){var A=Math.abs(w.clientX-L)>5||Math.abs(w.clientY-T)>5;(!E||A)&&(M=1),E&&clearTimeout(E),E=setTimeout(function(){E=null},_[M-1]||600),M==1&&(L=w.clientX,T=w.clientY)}if(w._clicks=M,S[b]("mousedown",w),M>4)M=0;else if(M>1)return S[b](C[M],w)}Array.isArray($)||($=[$]),$.forEach(function(w){h(w,"mousedown",x,k)})};function f($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)}i.getModifierString=function($){return r.KEY_MODS[f($)]};function m($,_,S){var b=f(_);if(!S&&_.code&&(S=r.$codeToKeyCode[_.code]||S),!d.isMac&&g){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(S===18||S===17){var k=_.location;if(S===17&&k===1)g[S]==1&&(l=_.timeStamp);else if(S===18&&b===3&&k===2){var M=_.timeStamp-l;M<50&&(g.altGr=!0)}}}if(S in r.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&_.location===3&&($(_,b,-S),_.defaultPrevented))){if(d.isChromeOS&&b&8){if($(_,b,S),_.defaultPrevented)return;b&=-9}return!b&&!(S in r.FUNCTION_KEYS)&&!(S in r.PRINTABLE_KEYS)?!1:$(_,b,S)}}i.addCommandKeyListener=function($,_,S){var b=null;h($,"keydown",function(k){g[k.keyCode]=(g[k.keyCode]||0)+1;var M=m(_,k,k.keyCode);return b=k.defaultPrevented,M},S),h($,"keypress",function(k){b&&(k.ctrlKey||k.altKey||k.shiftKey||k.metaKey)&&(i.stopEvent(k),b=null)},S),h($,"keyup",function(k){g[k.keyCode]=null},S),g||(v(),h(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;i.nextTick=function($,_){_=_||window;var S="zero-timeout-message-"+y++,b=function(k){k.data==S&&(i.stopPropagation(k),u(_,"message",b),$())};h(_,"message",b),_.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function($,_){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):$()},_)},i.$idleBlockId=null,i.blockIdle=function($){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},$||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,a){var r;a.exports={lineMode:!1,pasteCancelled:function(){return r&&r>Date.now()-50?!0:r=!1},cancel:function(){r=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,i,a){var r=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),l=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),s=g.isChrome<18,c=g.isIE,h=g.isChrome>63,u=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,$=g.isMobile,_;_=function(S,b){var k=l.createElement("textarea");k.className="ace_text-input",k.setAttribute("wrap","off"),k.setAttribute("autocorrect","off"),k.setAttribute("autocapitalize","off"),k.setAttribute("spellcheck","false"),k.style.opacity="0",S.insertBefore(k,S.firstChild);var M=!1,L=!1,T=!1,E=!1,C="";$||(k.style.fontSize="1px");var x=!1,w=!1,A="",R=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,H=0;try{var j=document.activeElement===k}catch{}this.setNumberOfExtraLines=function(Z){if(N=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,Z<0){H=0;return}H=Z},this.setAriaOptions=function(Z){if(Z.activeDescendant?(k.setAttribute("aria-haspopup","true"),k.setAttribute("aria-autocomplete",Z.inline?"both":"list"),k.setAttribute("aria-activedescendant",Z.activeDescendant)):(k.setAttribute("aria-haspopup","false"),k.setAttribute("aria-autocomplete","both"),k.removeAttribute("aria-activedescendant")),Z.role&&k.setAttribute("role",Z.role),Z.setLabel){k.setAttribute("aria-roledescription",d("text-input.aria-roledescription","editor"));var oe="";if(b.$textInputAriaLabel&&(oe+="".concat(b.$textInputAriaLabel,", ")),b.session){var de=b.session.selection.cursor.row;oe+=d("text-input.aria-label","Cursor at row $0",[de+1])}k.setAttribute("aria-label",oe)}},this.setAriaOptions({role:"textbox"}),r.addListener(k,"blur",function(Z){w||(b.onBlur(Z),j=!1)},b),r.addListener(k,"focus",function(Z){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(Z),g.isEdge?setTimeout(B):B()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),C||h||this.$focusScroll=="browser")return k.focus({preventScroll:!0});var Z=k.style.top;k.style.position="fixed",k.style.top="0px";try{var oe=k.getBoundingClientRect().top!=0}catch{return}var de=[];if(oe)for(var be=k.parentElement;be&&be.nodeType==1;)de.push(be),be.setAttribute("ace_nocontext","true"),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;k.focus({preventScroll:!0}),oe&&de.forEach(function(Le){Le.removeAttribute("ace_nocontext")}),setTimeout(function(){k.style.position="",k.style.top=="0px"&&(k.style.top=Z)},0)},this.blur=function(){k.blur()},this.isFocused=function(){return j},b.on("beforeEndOperation",function(){var Z=b.curOp,oe=Z&&Z.command&&Z.command.name;if(oe!="insertstring"){var de=oe&&(Z.docChanged||Z.selectionChanged);T&&de&&(A=k.value="",re()),B()}});var z=function(Z,oe){for(var de=oe,be=1;be<=Z-N&&be<2*H+1;be++)de+=b.session.getLine(Z-be).length+1;return de},B=v?function(Z){if(!(!j||M&&!Z||E)){Z||(Z="");var oe=`
|
764
|
-
ab`+Z+`cde fg
|
765
|
-
`;oe!=k.value&&(k.value=A=oe);var de=4,be=4+(Z.length||(b.selection.isEmpty()?0:1));(R!=de||O!=be)&&k.setSelectionRange(de,be),R=de,O=be}}:function(){if(!(T||E)&&!(!j&&!Y)){T=!0;var Z=0,oe=0,de="";if(b.session){var be=b.selection,Le=be.getRange(),Be=be.cursor.row;Be===D+1?(N=D+1,D=N+2*H):Be===N-1?(D=N-1,N=D-2*H):(Be<N-1||Be>D+1)&&(N=Be>H?Be-H:0,D=Be>H?Be+H:2*H);for(var Xe=[],Je=N;Je<=D;Je++)Xe.push(b.session.getLine(Je));if(de=Xe.join(`
|
766
|
-
`),Z=z(Le.start.row,Le.start.column),oe=z(Le.end.row,Le.end.column),Le.start.row<N){var Ge=b.session.getLine(N-1);Z=Le.start.row<N-1?0:Z,oe+=Ge.length+1,de=Ge+`
|
767
|
-
`+de}else if(Le.end.row>D){var je=b.session.getLine(D+1);oe=Le.end.row>D+1?je.length:Le.end.column,oe+=de.length+1,de=de+`
|
768
|
-
`+je}else $&&Be>0&&(de=`
|
769
|
-
`+de,oe+=1,Z+=1);de.length>u&&(Z<u&&oe<u?de=de.slice(0,u):(de=`
|
770
|
-
`,Z==oe?Z=oe=0:(Z=0,oe=1)));var Ze=de+`
|
771
|
-
|
772
|
-
`;Ze!=A&&(k.value=A=Ze,R=O=Ze.length)}if(Y&&(R=k.selectionStart,O=k.selectionEnd),O!=oe||R!=Z||k.selectionEnd!=O)try{k.setSelectionRange(Z,oe),R=Z,O=oe}catch{}T=!1}};this.resetSelection=B,j&&b.onFocus();var V=function(Z){return Z.selectionStart===0&&Z.selectionEnd>=A.length&&Z.value===A&&A&&Z.selectionEnd!==O},q=function(Z){T||(M?M=!1:V(k)?(b.selectAll(),B()):$&&k.selectionStart!=R&&B())},U=null;this.setInputHandler=function(Z){U=Z},this.getInputHandler=function(){return U};var Y=!1,X=function(Z,oe){if(Y&&(Y=!1),L)return B(),Z&&b.onPaste(Z),L=!1,"";for(var de=k.selectionStart,be=k.selectionEnd,Le=R,Be=A.length-O,Xe=Z,Je=Z.length-de,Ge=Z.length-be,je=0;Le>0&&A[je]==Z[je];)je++,Le--;for(Xe=Xe.slice(je),je=1;Be>0&&A.length-je>R-1&&A[A.length-je]==Z[Z.length-je];)je++,Be--;Je-=je-1,Ge-=je-1;var Ze=Xe.length-je+1;if(Ze<0&&(Le=-Ze,Ze=0),Xe=Xe.slice(0,Ze),!oe&&!Xe&&!Je&&!Le&&!Be&&!Ge)return"";E=!0;var gt=!1;return g.isAndroid&&Xe==". "&&(Xe=" ",gt=!0),Xe&&!Le&&!Be&&!Je&&!Ge||x?b.onTextInput(Xe):b.onTextInput(Xe,{extendLeft:Le,extendRight:Be,restoreStart:Je,restoreEnd:Ge}),E=!1,A=Z,R=de,O=be,I=Ge,gt?`
|
773
|
-
`:Xe},Q=function(Z){if(T)return ee();if(Z&&Z.inputType){if(Z.inputType=="historyUndo")return b.execCommand("undo");if(Z.inputType=="historyRedo")return b.execCommand("redo")}var oe=k.value,de=X(oe,!0);(oe.length>u+100||y.test(de)||$&&R<1&&R==O)&&B()},ue=function(Z,oe,de){var be=Z.clipboardData||window.clipboardData;if(!(!be||s)){var Le=c||de?"Text":"text/plain";try{return oe?be.setData(Le,oe)!==!1:be.getData(Le)}catch(Be){if(!de)return ue(Be,oe,!0)}}},we=function(Z,oe){var de=b.getCopyText();if(!de)return r.preventDefault(Z);ue(Z,de)?(v&&(B(de),M=de,setTimeout(function(){M=!1},10)),oe?b.onCut():b.onCopy(),r.preventDefault(Z)):(M=!0,k.value=de,k.select(),setTimeout(function(){M=!1,B(),oe?b.onCut():b.onCopy()}))},P=function(Z){we(Z,!0)},W=function(Z){we(Z,!1)},G=function(Z){var oe=ue(Z);o.pasteCancelled()||(typeof oe=="string"?(oe&&b.onPaste(oe,Z),g.isIE&&setTimeout(B),r.preventDefault(Z)):(k.value="",L=!0))};r.addCommandKeyListener(k,function(Z,oe,de){if(!T)return b.onCommandKey(Z,oe,de)},b),r.addListener(k,"select",q,b),r.addListener(k,"input",Q,b),r.addListener(k,"cut",P,b),r.addListener(k,"copy",W,b),r.addListener(k,"paste",G,b),(!("oncut"in k)||!("oncopy"in k)||!("onpaste"in k))&&r.addListener(S,"keydown",function(Z){if(!(g.isMac&&!Z.metaKey||!Z.ctrlKey))switch(Z.keyCode){case 67:W(Z);break;case 86:G(Z);break;case 88:P(Z);break}},b);var ne=function(Z){if(!(T||!b.onCompositionStart||b.$readOnly)&&(T={},!x)){Z.data&&(T.useTextareaForIME=!1),setTimeout(ee,0),b._signal("compositionStart"),b.on("mousedown",pe);var oe=b.getSelectionRange();oe.end.row=oe.start.row,oe.end.column=oe.start.column,T.markerRange=oe,T.selectionStart=R,b.onCompositionStart(T),T.useTextareaForIME?(A=k.value="",R=0,O=0):(k.msGetInputContext&&(T.context=k.msGetInputContext()),k.getInputContext&&(T.context=k.getInputContext()))}},ee=function(){if(!(!T||!b.onCompositionUpdate||b.$readOnly)){if(x)return pe();if(T.useTextareaForIME)b.onCompositionUpdate(k.value);else{var Z=k.value;X(Z),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+O-T.selectionStart+I)}}},re=function(Z){!b.onCompositionEnd||b.$readOnly||(T=!1,b.onCompositionEnd(),b.off("mousedown",pe),Z&&Q())};function pe(){w=!0,k.blur(),k.focus(),w=!1}var he=p.delayedCall(ee,50).schedule.bind(null,null);function fe(Z){Z.keyCode==27&&k.value.length<k.selectionStart&&(T||(A=k.value),R=O=-1,B()),he()}r.addListener(k,"compositionstart",ne,b),r.addListener(k,"compositionupdate",ee,b),r.addListener(k,"keyup",fe,b),r.addListener(k,"keydown",he,b),r.addListener(k,"compositionend",re,b),this.getElement=function(){return k},this.setCommandMode=function(Z){x=Z,k.readOnly=!1},this.setReadOnly=function(Z){x||(k.readOnly=Z)},this.setCopyWithEmptySelection=function(Z){},this.onContextMenu=function(Z){Y=!0,B(),b._emit("nativecontextmenu",{target:b,domEvent:Z}),this.moveToMouse(Z,!0)},this.moveToMouse=function(Z,oe){C||(C=k.style.cssText),k.style.cssText=(oe?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(R+O)*b.renderer.characterWidth*.5+"px;";var de=b.container.getBoundingClientRect(),be=l.computedStyle(b.container),Le=de.top+(parseInt(be.borderTopWidth)||0),Be=de.left+(parseInt(de.borderLeftWidth)||0),Xe=de.bottom-Le-k.clientHeight-2,Je=function(Ge){l.translate(k,Ge.clientX-Be-2,Math.min(Ge.clientY-Le-2,Xe))};Je(Z),Z.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(se),g.isWin&&r.capture(b.container,Je,ve))},this.onContextMenuClose=ve;var se;function ve(){clearTimeout(se),se=setTimeout(function(){C&&(k.style.cssText=C,C=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Ce=function(Z){b.textInput.onContextMenu(Z),ve()};r.addListener(k,"mouseup",Ce,b),r.addListener(k,"mousedown",function(Z){Z.preventDefault(),ve()},b),r.addListener(b.renderer.scroller,"contextmenu",Ce,b),r.addListener(k,"contextmenu",Ce,b),v&&Ae(S,b,k);function Ae(Z,oe,de){var be=null,Le=!1;de.addEventListener("keydown",function(Xe){be&&clearTimeout(be),Le=!0},!0),de.addEventListener("keyup",function(Xe){be=setTimeout(function(){Le=!1},100)},!0);var Be=function(Xe){if(document.activeElement===de&&!(Le||T||oe.$mouseHandler.isMousePressed)&&!M){var Je=de.selectionStart,Ge=de.selectionEnd,je=null,Ze=0;if(Je==0?je=f.up:Je==1?je=f.home:Ge>O&&A[Ge]==`
|
774
|
-
`?je=f.end:Je<R&&A[Je-1]==" "?(je=f.left,Ze=m.option):Je<R||Je==R&&O!=R&&Je==Ge?je=f.left:Ge>O&&A.slice(0,Ge).split(`
|
775
|
-
`).length>2?je=f.down:Ge>O&&A[Ge-1]==" "?(je=f.right,Ze=m.option):(Ge>O||Ge==O&&O!=R&&Je==Ge)&&(je=f.right),Je!==Ge&&(Ze|=m.shift),je){var gt=oe.onCommandKey({},Ze,je);if(!gt&&oe.commands){je=f.keyCodeToString(je);var Ui=oe.commands.findKeyCommand(Ze,je);Ui&&oe.execCommand(Ui)}R=Je,O=Ge,B("")}}};document.addEventListener("selectionchange",Be),oe.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}this.destroy=function(){k.parentElement&&k.parentElement.removeChild(k)}},i.TextInput=_,i.$setUserAgentForTests=function(S,b){$=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,a){var r=n("../lib/useragent"),d=0,g=550,l=function(){function s(c){c.$clickSelection=null;var h=c.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var u=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];u.forEach(function(f){c[f]=this[f]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return s.prototype.onMouseDown=function(c){var h=c.inSelection(),u=c.getDocumentPosition();this.mousedownEvent=c;var f=this.editor,m=c.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(u),m==2&&(f.textInput.onContextMenu(c.domEvent),r.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(u,c.domEvent._clicks>1),c.preventDefault()},s.prototype.startSelect=function(c,h){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var u=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?u.selection.selectToPosition(c):h||u.selection.moveToPosition(c),h||this.select(),u.setStyle("ace_selecting"),this.setState("select"))},s.prototype.select=function(){var c,h=this.editor,u=h.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(u);if(f==-1)c=this.$clickSelection.end;else if(f==1)c=this.$clickSelection.start;else{var m=o(this.$clickSelection,u);u=m.cursor,c=m.anchor}h.selection.setSelectionAnchor(c.row,c.column)}h.selection.selectToPosition(u),h.renderer.scrollCursorIntoView()},s.prototype.extendSelectionBy=function(c){var h,u=this.editor,f=u.renderer.screenToTextCoordinates(this.x,this.y),m=u.selection[c](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)h=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)h=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,h=m.start;else{var $=o(this.$clickSelection,f);f=$.cursor,h=$.anchor}u.selection.setSelectionAnchor(h.row,h.column)}u.selection.selectToPosition(f),u.renderer.scrollCursorIntoView()},s.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},s.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(c>d||h-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},s.prototype.onDoubleClick=function(c){var h=c.getDocumentPosition(),u=this.editor,f=u.session,m=f.getBracketRange(h);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=u.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},s.prototype.onTripleClick=function(c){var h=c.getDocumentPosition(),u=this.editor;this.setState("selectByLines");var f=u.getSelectionRange();f.isMultiLine()&&f.contains(h.row,h.column)?(this.$clickSelection=u.selection.getLineRange(f.start.row),this.$clickSelection.end=u.selection.getLineRange(f.end.row).end):this.$clickSelection=u.selection.getLineRange(h.row),this.select()},s.prototype.onQuadClick=function(c){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},s.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var u=this.$lastScroll,f=c.domEvent.timeStamp,m=f-u.t,v=m?c.wheelX/m:u.vx,y=m?c.wheelY/m:u.vy;m<g&&(v=(v+u.vx)/2,y=(y+u.vy)/2);var $=Math.abs(v/y),_=!1;if($>=1&&h.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),$<=1&&h.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)u.allowed=f;else if(f-u.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(u.vx)&&Math.abs(y)<=1.5*Math.abs(u.vy);S?(_=!0,u.allowed=f):u.allowed=0}if(u.t=f,u.vx=v,u.vy=y,_)return h.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},s}();l.prototype.selectEnd=l.prototype.selectByLinesEnd,l.prototype.selectAllEnd=l.prototype.selectByLinesEnd,l.prototype.selectByWordsEnd=l.prototype.selectByLinesEnd,i.DefaultHandlers=l;function p(s,c,h,u){return Math.sqrt(Math.pow(h-s,2)+Math.pow(u-c,2))}function o(s,c){if(s.start.row==s.end.row)var h=2*c.column-s.start.column-s.end.column;else if(s.start.row==s.end.row-1&&!s.start.column&&!s.end.column)var h=c.column-4;else var h=2*c.row-s.start.row-s.end.row;return h<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,i,a){i.preventParentScroll=function(d){d.stopPropagation();var g=d.currentTarget,l=g.scrollHeight>g.clientHeight;l||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,a){var r=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,$){y.__proto__=$}||function(y,$){for(var _ in $)Object.prototype.hasOwnProperty.call($,_)&&(y[_]=$[_])},f(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),d=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var l=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",s=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=o+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},f.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),c=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},f.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var m,v,y,$;this.popups.sort(function(C,x){return x.priority-C.priority});var _=[];try{for(var S=d(this.popups),b=S.next();!b.done;b=S.next()){var k=b.value,M=!0;try{for(var L=(y=void 0,d(_)),T=L.next();!T.done;T=L.next()){var E=T.value;if(this.doPopupsOverlap(E,k)){M=!1;break}}}catch(C){y={error:C}}finally{try{T&&!T.done&&($=L.return)&&$.call(L)}finally{if(y)throw y.error}}M?_.push(k):k.hide()}}catch(C){m={error:C}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),$=v.getElement().getBoundingClientRect();return y.left<$.right&&y.right>$.left&&y.top<$.bottom&&y.bottom>$.top},f}(),h=new c;i.popupManager=h,i.Tooltip=s;var u=function(f){r(m,f);function m(v){v===void 0&&(v=document.body);var y=f.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var $=y.getElement();return $.style.whiteSpace="pre-wrap",$.style.pointerEvents="auto",$.addEventListener("mouseout",y.onMouseOut),$.tabIndex=-1,$.addEventListener("blur",(function(){$.contains(document.activeElement)||this.hide()}).bind(y)),$.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var $=y.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||$||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||$||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,$=v.getDocumentPosition(),_=y.session.getLine($.row);if($.column==_.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition($.row,$.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,$,_){var S=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(h.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=l.fromPoints(y.start,y.end);var k=b.textToScreenCoordinates(y.start.row,y.start.column),M=b.scroller.getBoundingClientRect();k.pageX<M.left&&(k.pageX=M.left);var L=this.getElement();L.innerHTML="",L.appendChild($),L.style.maxHeight="",L.style.display="block";var T=L.clientHeight,E=L.clientWidth,C=window.innerHeight-k.pageY-b.lineHeight,x=!0;k.pageY-T<0&&k.pageY<C&&(x=!1),L.style.maxHeight=(x?k.pageY:C)-S+"px",L.style.top=x?"":k.pageY+b.lineHeight+"px",L.style.bottom=x?window.innerHeight-k.pageY+"px":"",L.style.left=Math.min(k.pageX,window.innerWidth-E-S)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,h.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(s);i.HoverTooltip=u}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(n,i,a){var r=this&&this.__extends||function(){var h=function(u,f){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},h(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(u,f);function m(){this.constructor=u}u.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(h){var u=typeof Symbol=="function"&&Symbol.iterator,f=u&&h[u],m=0;if(f)return f.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&m>=h.length&&(h=void 0),{value:h&&h[m++],done:!h}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),l=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls;n("../lib/lang");function s(h){var u=h.editor,f=u.renderer.$gutterLayer,m=new c(u);h.editor.setDefaultHandler("guttermousedown",function(b){if(!(!u.isFocused()||b.getButton()!=0)){var k=f.getRegion(b);if(k!="foldWidgets"){var M=b.getDocumentPosition().row,L=u.session.selection;if(b.getShiftKey())L.selectTo(M,0);else{if(b.domEvent.detail==2)return u.selectAll(),b.preventDefault();h.$clickSelection=u.selection.getLineRange(M)}return h.setState("selectByLines"),h.captureMouse(b),b.preventDefault()}}});var v,y;function $(){var b=y.getDocumentPosition().row,k=u.session.getLength();if(b==k){var M=u.renderer.pixelToScreenCoordinates(0,y.y).row,L=y.$pos;if(M>u.session.documentToScreenRow(L.row,L.column))return _()}if(m.showTooltip(b),!!m.isOpen)if(u.on("mousewheel",_),h.$tooltipFollowsMouse)S(y);else{var T=y.getGutterRow(),E=f.$lines.get(T);if(E){var C=E.element.querySelector(".ace_gutter_annotation"),x=C.getBoundingClientRect(),w=m.getElement().style;w.left=x.right+"px",w.top=x.bottom+"px"}else S(y)}}function _(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),u.off("mousewheel",_))}function S(b){m.setPosition(b.x,b.y)}h.editor.setDefaultHandler("guttermousemove",function(b){var k=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(k,"ace_fold-widget"))return _();m.isOpen&&h.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!h.isMousePressed?$():_()},50))}),l.addListener(u.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},u),u.on("changeSession",_),u.on("input",_)}i.GutterHandler=s;var c=function(h){r(u,h);function u(f){var m=h.call(this,f.container)||this;return m.editor=f,m}return u.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),_=this.getHeight();f+=15,m+=15,f+$>v&&(f-=f+$-v),m+_>y&&(m-=20+_),p.prototype.setPosition.call(this,f,m)},Object.defineProperty(u,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")}}},enumerable:!1,configurable:!0}),u.prototype.showTooltip=function(f){var m,v=this.editor.renderer.$gutterLayer,y=v.$annotations[f],$;y?$={displayText:Array.from(y.displayText),type:Array.from(y.type)}:$={displayText:[],type:[]};var _=v.session.getFoldLine(f);if(_&&v.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},b,k=f+1;k<=_.end.row;k++)if(v.$annotations[k])for(var M=0;M<v.$annotations[k].text.length;M++){var L=v.$annotations[k].type[M];if(S[L].push(v.$annotations[k].text[M]),L==="error"){b="error_fold";continue}if(L==="warning"){b="warning_fold";continue}}if(b==="error_fold"||b==="warning_fold"){var T="".concat(u.annotationsToSummaryString(S)," in folded code.");$.displayText.push(T),$.type.push(b)}}if($.displayText.length===0)return this.hide();for(var E={error:[],warning:[],info:[]},C=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",k=0;k<$.displayText.length;k++){var x=g.createElement("span"),w=g.createElement("span");(m=w.classList).add.apply(m,["ace_".concat($.type[k]),C]),w.setAttribute("aria-label","".concat(u.annotationLabels[$.type[k].replace("_fold","")].singular)),w.setAttribute("role","img"),w.appendChild(g.createTextNode(" ")),x.appendChild(w),x.appendChild(g.createTextNode($.displayText[k])),x.appendChild(g.createElement("br")),E[$.type[k].replace("_fold","")].push(x)}var A=this.getElement();g.removeChildren(A),E.error.forEach(function(R){return A.appendChild(R)}),E.warning.forEach(function(R){return A.appendChild(R)}),E.info.forEach(function(R){return A.appendChild(R)}),A.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},u.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},u.annotationsToSummaryString=function(f){var m,v,y=[],$=["error","warning","info"];try{for(var _=d($),S=_.next();!S.done;S=_.next()){var b=S.value;if(f[b].length){var k=f[b].length===1?u.annotationLabels[b].singular:u.annotationLabels[b].plural;y.push("".concat(f[b].length," ").concat(k))}}}catch(M){m={error:M}}finally{try{S&&!S.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}return y.join(", ")},u}(p);i.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,a){var r=n("../lib/event"),d=n("../lib/useragent"),g=function(){function l(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return l.prototype.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},l.prototype.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},l.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},l.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},l.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),s=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-s},l.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var s=this.getDocumentPosition();this.$inSelection=o.contains(s.row,s.column)}return this.$inSelection},l.prototype.getButton=function(){return r.getButton(this.domEvent)},l.prototype.getShiftKey=function(){return this.domEvent.shiftKey},l.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},l}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,a){var r=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),l=200,p=200,o=5;function s(h){var u=h.editor,f=r.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(z){h[z]=this[z]},this),u.on("mousedown",this.onMouseDown.bind(h));var v=u.container,y,$,_,S,b,k,M=0,L,T,E,C,x;this.onDragStart=function(z){if(this.cancelDrag||!v.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(z)},0),z.preventDefault()}b=u.getSelectionRange();var V=z.dataTransfer;V.effectAllowed=u.getReadOnly()?"copy":"copyMove",u.container.appendChild(f),V.setDragImage&&V.setDragImage(f,0,0),setTimeout(function(){u.container.removeChild(f)}),V.clearData(),V.setData("Text",u.session.getTextRange()),T=!0,this.setState("drag")},this.onDragEnd=function(z){if(v.draggable=!1,T=!1,this.setState(null),!u.getReadOnly()){var B=z.dataTransfer.dropEffect;!L&&B=="move"&&u.session.remove(u.getSelectionRange()),u.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(z){if(!(u.getReadOnly()||!H(z.dataTransfer)))return $=z.clientX,_=z.clientY,y||O(),M++,z.dataTransfer.dropEffect=L=j(z),d.preventDefault(z)},this.onDragOver=function(z){if(!(u.getReadOnly()||!H(z.dataTransfer)))return $=z.clientX,_=z.clientY,y||(O(),M++),N!==null&&(N=null),z.dataTransfer.dropEffect=L=j(z),d.preventDefault(z)},this.onDragLeave=function(z){if(M--,M<=0&&y)return I(),L=null,d.preventDefault(z)},this.onDrop=function(z){if(k){var B=z.dataTransfer;if(T)switch(L){case"move":b.contains(k.row,k.column)?b={start:k,end:k}:b=u.moveText(b,k);break;case"copy":b=u.moveText(b,k,!0);break}else{var V=B.getData("Text");b={start:k,end:u.session.insert(k,V)},u.focus(),L=null}return I(),d.preventDefault(z)}},d.addListener(v,"dragstart",this.onDragStart.bind(h),u),d.addListener(v,"dragend",this.onDragEnd.bind(h),u),d.addListener(v,"dragenter",this.onDragEnter.bind(h),u),d.addListener(v,"dragover",this.onDragOver.bind(h),u),d.addListener(v,"dragleave",this.onDragLeave.bind(h),u),d.addListener(v,"drop",this.onDrop.bind(h),u);function w(z,B){var V=Date.now(),q=!B||z.row!=B.row,U=!B||z.column!=B.column;if(!C||q||U)u.moveCursorToPosition(z),C=V,x={x:$,y:_};else{var Y=c(x.x,x.y,$,_);Y>o?C=null:V-C>=p&&(u.renderer.scrollCursorIntoView(),C=null)}}function A(z,B){var V=Date.now(),q=u.renderer.layerConfig.lineHeight,U=u.renderer.layerConfig.characterWidth,Y=u.renderer.scroller.getBoundingClientRect(),X={x:{left:$-Y.left,right:Y.right-$},y:{top:_-Y.top,bottom:Y.bottom-_}},Q=Math.min(X.x.left,X.x.right),ue=Math.min(X.y.top,X.y.bottom),we={row:z.row,column:z.column};Q/U<=2&&(we.column+=X.x.left<X.x.right?-3:2),ue/q<=1&&(we.row+=X.y.top<X.y.bottom?-1:1);var P=z.row!=we.row,W=z.column!=we.column,G=!B||z.row!=B.row;P||W&&!G?E?V-E>=l&&u.renderer.scrollCursorIntoView(we):E=V:E=null}function R(){var z=k;k=u.renderer.screenToTextCoordinates($,_),w(k,z),A(k,z)}function O(){b=u.selection.toOrientedRange(),y=u.session.addMarker(b,"ace_selection",u.getSelectionStyle()),u.clearSelection(),u.isFocused()&&u.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),R(),S=setInterval(R,20),M=0,d.addListener(document,"mousemove",D)}function I(){clearInterval(S),u.session.removeMarker(y),y=null,u.selection.fromOrientedRange(b),u.isFocused()&&!T&&u.$resetCursorStyle(),b=null,k=null,M=0,E=null,C=null,d.removeListener(document,"mousemove",D)}var N=null;function D(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function H(z){var B=z.types;return!B||Array.prototype.some.call(B,function(V){return V=="text/plain"||V=="Text"})}function j(z){var B=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],q=g.isMac?z.altKey:z.ctrlKey,U="uninitialized";try{U=z.dataTransfer.effectAllowed.toLowerCase()}catch{}var Y="none";return q&&B.indexOf(U)>=0?Y="copy":V.indexOf(U)>=0?Y="move":B.indexOf(U)>=0&&(Y="copy"),Y}}(function(){this.dragWait=function(){var h=Date.now()-this.mousedownEvent.time;h>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var h=this.editor.container;h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(h){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var h=this.editor,u=h.container;u.draggable=!0,h.renderer.$cursorLayer.setBlinking(!1),h.setStyle("ace_dragging");var f=g.isWin?"default":"move";h.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(h){var u=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&u.dragDrop()}if(this.state==="dragWait"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(h){if(this.$dragEnabled){this.mousedownEvent=h;var u=this.editor,f=h.inSelection(),m=h.getButton(),v=h.domEvent.detail||1;if(v===1&&m===0&&f){if(h.editor.inMultiSelectMode&&(h.getAccelKey()||h.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=h.domEvent.target||h.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),u.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var $=u.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(h,this.onMouseDrag.bind(this)),h.defaultPrevented=!0}}}}).call(s.prototype);function c(h,u,f,m){return Math.sqrt(Math.pow(f-h,2)+Math.pow(m-u,2))}i.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,a){var r=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(l,p){var o="scroll",s,c,h,u,f,m,v=0,y,$=0,_=0,S=0,b,k;function M(){var w=window.navigator&&window.navigator.clipboard,A=!1,R=function(){var N=p.getCopyText(),D=p.session.getUndoManager().hasUndo();k.replaceChild(g.buildDom(A?["span",!N&&O("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&O("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&O("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&O("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&O("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],O("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],O("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),k.firstChild)},O=function(N){return p.commands.canExecute(N,p)},I=function(N){var D=N.target.getAttribute("action");if(D=="more"||!A)return A=!A,R();D=="paste"?w.readText().then(function(H){p.execCommand(D,H)}):D&&((D=="cut"||D=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(D)),k.firstChild.style.display="none",A=!1,D!="openCommandPalette"&&p.focus()};k=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){o="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),I(N)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function L(){if(!p.getOption("enableMobileMenu")){k&&T();return}k||M();var w=p.selection.cursor,A=p.renderer.textToScreenCoordinates(w.row,w.column),R=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();k.style.top=A.pageY-I.top-3+"px",A.pageX-I.left<I.width-70?(k.style.left="",k.style.right="10px"):(k.style.right="",k.style.left=R+O-I.left+"px"),k.style.display="",k.firstChild.style.display="none",p.on("input",T)}function T(w){k&&(k.style.display="none"),p.off("input",T)}function E(){f=null,clearTimeout(f);var w=p.selection.getRange(),A=w.contains(y.row,y.column);(w.isEmpty()||!A)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",L()}function C(){f=null,clearTimeout(f),p.selection.moveToPosition(y);var w=$>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),o="wait"}d.addListener(l,"contextmenu",function(w){if(b){var A=p.textInput.getElement();A.focus()}},p),d.addListener(l,"touchstart",function(w){var A=w.touches;if(f||A.length>1){clearTimeout(f),f=null,h=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var R=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;u=I;var N=A[0],D=N.clientX,H=N.clientY;Math.abs(s-D)+Math.abs(c-H)>R&&(h=-1),s=w.clientX=D,c=w.clientY=H,_=S=0;var j=new r(w,p);if(y=j.getDocumentPosition(),I-h<500&&A.length==1&&!v)$++,w.preventDefault(),w.button=0,C();else{$=0;var z=p.selection.cursor,B=p.selection.isEmpty()?z:p.selection.anchor,V=p.renderer.$cursorLayer.getPixelPosition(z,!0),q=p.renderer.$cursorLayer.getPixelPosition(B,!0),U=p.renderer.scroller.getBoundingClientRect(),Y=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,Q=function(P,W){return P=P/O,W=W/R-.75,P*P+W*W};if(w.clientX<U.left){o="zoom";return}var ue=Q(w.clientX-U.left-V.left+X,w.clientY-U.top-V.top+Y),we=Q(w.clientX-U.left-q.left+X,w.clientY-U.top-q.top+Y);ue<3.5&&we<3.5&&(o=ue>we?"cursor":"anchor"),we<3.5?o="anchor":ue<3.5?o="cursor":o="scroll",f=setTimeout(E,450)}h=I},p),d.addListener(l,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(p.selection.moveToPosition(y),v=0,L()):o=="scroll"?(x(),T()):L(),clearTimeout(f),f=null},p),d.addListener(l,"touchmove",function(w){f&&(clearTimeout(f),f=null);var A=w.touches;if(!(A.length>1||o=="zoom")){var R=A[0],O=s-R.clientX,I=c-R.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();s=R.clientX,c=R.clientY,w.clientX=R.clientX,w.clientY=R.clientY;var N=w.timeStamp,D=N-u;if(u=N,o=="scroll"){var H=new r(w,p);H.speed=1,H.wheelX=O,H.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),D!=0&&(_=O/D,S=I/D),p._emit("mousewheel",H),H.propagationStopped||(_=S=0)}else{var j=new r(w,p),z=j.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(z):o=="anchor"&&p.selection.setSelectionAnchor(z.row,z.column),p.renderer.scrollCursorIntoView(z),w.preventDefault()}}},p);function x(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(_)<.01&&(_=0),Math.abs(S)<.01&&(S=0),v<20&&(_=.9*_),v<20&&(S=.9*S);var w=p.session.getScrollTop();p.renderer.scrollBy(10*_,10*S),w==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,i,a){var r=n("../lib/event"),d=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,l=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,s=n("./touch_handler").addTouchListeners,c=n("../config"),h=function(){function u(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new g(this),new l(this),new o(this);var v=function(_){var S=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());S&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},y=f.renderer.getMouseEventTarget();r.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),r.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),r.addMultiMouseDownListener([y,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),r.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),s(f.container,f);var $=f.renderer.$gutter;r.addListener($,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),r.addListener($,"click",this.onMouseEvent.bind(this,"gutterclick"),f),r.addListener($,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),r.addListener($,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),r.addListener(y,"mousedown",v,f),r.addListener($,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(r.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),r.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=f.renderer.screenToTextCoordinates(_.x,_.y),b=f.session.selection.getRange(),k=f.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?k.setCursorStyle("default"):k.setCursorStyle("")}},f)}return u.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new p(m,this.editor))},u.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new p(m,this.editor))},u.prototype.onMouseWheel=function(f,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},u.prototype.setState=function(f){this.state=f},u.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var $=this,_=function(L){if(L){if(d.isWebKit&&!L.which&&$.releaseMouse)return $.releaseMouse();$.x=L.clientX,$.y=L.clientY,m&&m(L),$.mouseEvent=new p(L,$.editor),$.$mouseMoved=!0}},S=function(L){v.off("beforeEndOperation",k),clearInterval(M),v.session&&b(),$[$.state+"End"]&&$[$.state+"End"](L),$.state="",$.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),$.$onCaptureMouseMove=$.releaseMouse=null,L&&$.onMouseEvent("mouseup",L),v.endOperation()},b=function(){$[$.state]&&$[$.state](),$.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){S(f)});var k=function(L){$.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&($[$.state+"End"]&&$[$.state+"End"](),$.state="",$.releaseMouse())};v.on("beforeEndOperation",k),v.startOperation({command:{name:"mouse"}}),$.$onCaptureMouseMove=_,$.releaseMouse=r.capture(this.editor.container,_,S);var M=setInterval(b,20)},u.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&r.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},u.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},u}();h.prototype.releaseMouse=null,c.defineOptions(h.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=h}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,a){var r=n("../lib/dom"),d=function(){function g(l){l.on("click",function(p){var o=p.getDocumentPosition(),s=l.session,c=s.getFoldAt(o.row,o.column,1);c&&(p.getAccelKey()?s.removeFold(c):s.expandFold(c),p.stop());var h=p.domEvent&&p.domEvent.target;h&&r.hasCssClass(h,"ace_inline_button")&&r.hasCssClass(h,"ace_toggle_wrap")&&(s.setOption("wrap",!s.getUseWrapMode()),l.renderer.scrollCursorIntoView())}),l.on("gutterclick",function(p){var o=l.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var s=p.getDocumentPosition().row,c=l.session;c.foldWidgets&&c.foldWidgets[s]&&l.session.onFoldWidgetClick(s,p),l.isFocused()||l.focus(),p.stop()}}),l.on("gutterdblclick",function(p){var o=l.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var s=p.getDocumentPosition().row,c=l.session,h=c.getParentFoldRangeData(s,!0),u=h.range||h.firstRange;if(u){s=u.start.row;var f=c.getFoldAt(s,c.getLine(s).length,1);f?c.removeFold(f):(c.addFold("...",u),l.renderer.scrollCursorIntoView({row:u.start.row,column:0}))}p.stop()}})}return g}();i.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,a){var r=n("../lib/keys"),d=n("../lib/event"),g=function(){function l(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return l.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},l.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},l.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var s=this.$handlers.indexOf(p);s!=-1&&this.$handlers.splice(s,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),s==-1&&p.attach&&p.attach(this.$editor)}},l.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},l.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},l.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(s){return s.getStatusText&&s.getStatusText(o,p)||""}).filter(Boolean).join(" ")},l.prototype.$callKeyboardHandlers=function(p,o,s,c){for(var h,u=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(h=this.$handlers[m].handleKeyboard(this.$data,p,o,s,c),!(!(!h||!h.command)&&(h.command=="null"?u=!0:u=f.exec(h.command,this.$editor,h.args,c),u&&c&&p!=-1&&h.passEvent!=!0&&h.command.passEvent!=!0&&d.stopEvent(c),u))););return!u&&p==-1&&(h={command:"insertstring"},u=f.exec("insertstring",this.$editor,o)),u&&this.$editor._signal&&this.$editor._signal("keyboardActivity",h),u},l.prototype.onCommandKey=function(p,o,s){var c=r.keyCodeToString(s);return this.$callKeyboardHandlers(o,c,s,p)},l.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},l}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,a){var r=0,d=0,g=!1,l=!1,p=!1,o=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],s=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,h=1,u=0,f=1,m=2,v=3,y=4,$=5,_=6,S=7,b=8,k=9,M=10,L=11,T=12,E=13,C=14,x=15,w=16,A=17,R=18,O=[R,R,R,R,R,R,R,R,R,_,$,_,b,$,R,R,R,R,R,R,R,R,R,R,R,R,R,R,$,$,$,_,b,y,y,L,L,L,y,y,y,y,y,M,k,M,k,k,m,m,m,m,m,m,m,m,m,m,k,y,y,y,y,y,y,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,y,y,y,y,y,y,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,y,y,y,y,R,R,R,R,R,R,$,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,k,y,L,L,L,L,y,y,y,y,u,y,y,R,y,y,L,L,m,m,y,u,y,y,y,m,u,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,R,R,R,u,f,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,$,E,C,x,w,A,k,L,L,L,L,L,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function N(z,B,V,q){var U=r?s:o,Y=null,X=null,Q=null,ue=0,we=null,P=null,W=-1,G=null,ne=null,ee=[];if(!q)for(G=0,q=[];G<V;G++)q[G]=j(z[G]);for(d=r,g=!1,l=!1,p=!1,ne=0;ne<V;ne++){if(Y=ue,ee[ne]=X=H(z,q,ee,ne),ue=U[Y][X],we=ue&240,ue&=15,B[ne]=Q=U[ue][5],we>0)if(we==16){for(G=W;G<ne;G++)B[G]=1;W=-1}else W=-1;if(P=U[ue][6],P)W==-1&&(W=ne);else if(W>-1){for(G=W;G<ne;G++)B[G]=Q;W=-1}q[ne]==$&&(B[ne]=0),d|=Q}if(p){for(G=0;G<V;G++)if(q[G]==_){B[G]=r;for(var re=G-1;re>=0&&q[re]==b;re--)B[re]=r}}}function D(z,B,V){if(!(d<z)){if(z==1&&r==h&&!l){V.reverse();return}for(var q=V.length,U=0,Y,X,Q,ue;U<q;){if(B[U]>=z){for(Y=U+1;Y<q&&B[Y]>=z;)Y++;for(X=U,Q=Y-1;X<Q;X++,Q--)ue=V[X],V[X]=V[Q],V[Q]=ue;U=Y}U++}}}function H(z,B,V,q){var U=B[q],Y,X,Q,ue;switch(U){case u:case f:g=!1;case y:case v:return U;case m:return g?v:m;case S:return g=!0,f;case b:return y;case k:return q<1||q+1>=B.length||(Y=V[q-1])!=m&&Y!=v||(X=B[q+1])!=m&&X!=v?y:(g&&(X=v),X==Y?X:y);case M:return Y=q>0?V[q-1]:$,Y==m&&q+1<B.length&&B[q+1]==m?m:y;case L:if(q>0&&V[q-1]==m)return m;if(g)return y;for(ue=q+1,Q=B.length;ue<Q&&B[ue]==L;)ue++;return ue<Q&&B[ue]==m?m:y;case T:for(Q=B.length,ue=q+1;ue<Q&&B[ue]==T;)ue++;if(ue<Q){var we=z[q],P=we>=1425&&we<=2303||we==64286;if(Y=B[ue],P&&(Y==f||Y==S))return f}return q<1||(Y=B[q-1])==$?y:V[q-1];case $:return g=!1,l=!0,r;case _:return p=!0,y;case E:case C:case w:case A:case x:g=!1;case R:return y}}function j(z){var B=z.charCodeAt(0),V=B>>8;return V==0?B>191?u:O[B]:V==5?/[\u0591-\u05f4]/.test(z)?f:u:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(z)?T:/[\u0660-\u0669\u066b-\u066c]/.test(z)?v:B==1642?L:/[\u06f0-\u06f9]/.test(z)?m:S:V==32&&B<=8287?I[B&255]:V==254&&B>=65136?S:y}i.L=u,i.R=f,i.EN=m,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(z,B,V){if(z.length<2)return{};var q=z.split(""),U=new Array(q.length),Y=new Array(q.length),X=[];r=V?h:c,N(q,X,q.length,B);for(var Q=0;Q<U.length;U[Q]=Q,Q++);D(2,X,U),D(1,X,U);for(var Q=0;Q<U.length-1;Q++)B[Q]===v?X[Q]=i.AN:X[Q]===f&&(B[Q]>S&&B[Q]<E||B[Q]===y||B[Q]===R)?X[Q]=i.ON_R:Q>0&&q[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(q[Q])&&(X[Q-1]=X[Q]=i.R_H,Q++);q[q.length-1]===i.DOT&&(X[q.length-1]=i.B),q[0]===""&&(X[0]=i.RLE);for(var Q=0;Q<U.length;Q++)Y[Q]=X[U[Q]];return{logicalFromVisual:U,bidiLevels:Y}},i.hasBidiCharacters=function(z,B){for(var V=!1,q=0;q<z.length;q++)B[q]=j(z.charAt(q)),!V&&(B[q]==f||B[q]==S||B[q]==v)&&(V=!0);return V},i.getVisualFromLogicalIdx=function(z,B){for(var V=0;V<B.logicalFromVisual.length;V++)if(B.logicalFromVisual[V]==z)return V;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,a){var r=n("./lib/bidiutil"),d=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=function(){function p(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=g.test(o.getValue())}return p.prototype.isBidiRow=function(o,s,c){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(s,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
|
776
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,s=this.session.$screenRowCache;if(s.length){var c=this.session.$getRowCacheIndex(s,this.currentRow);c>=0&&(o=this.session.$docRowCache[c])}return o},p.prototype.getSplitIndex=function(){var o=0,s=this.session.$screenRowCache;if(s.length)for(var c,h=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-o>0&&(c=this.session.$getRowCacheIndex(s,this.currentRow-o-1),c===h);)h=c,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,s){o===void 0&&(o=this.getDocumentRow());var c=o===this.session.getLength()-1,h=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var u=this.session.$wrapData[o];u&&(s===void 0&&(s=this.getSplitIndex()),s>0&&u.length?(this.wrapIndent=u.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=s<u.length?this.line.substring(u[s-1],u[s]):this.line.substring(u[u.length-1])):this.line=this.line.substring(0,u[s]),s==u.length&&(this.line+=this.showInvisibles?h:r.DOT))}else this.line+=this.showInvisibles?h:r.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,$){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize($+m):2,m+=v-1,d.stringRepeat(r.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var o=[];r.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var s=this.characterWidth=o.$characterSize.width,c=o.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=s,this.charWidths[r.R]=this.charWidths[r.AN]=c,this.charWidths[r.R_H]=c*.45,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,s){for(var c=o.getCursorPosition(),h=o.selection.getSelectionAnchor().row;h<=c.row;h++)!s&&o.session.getLine(h).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(h,0,1):s&&o.session.getLine(h).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:h},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var s=this.line.charAt(0)===this.RLE?1:0,c=o>s?this.session.getOverwrite()?o:o-1:s,h=r.getVisualFromLogicalIdx(c,this.bidiMap),u=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=s&&u[h]%2!==0&&h++;for(var m=0;m<h;m++)f+=this.charWidths[u[m]];return!this.session.getOverwrite()&&o>s&&u[h]%2===0&&(f+=this.charWidths[u[h]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(o,s){var c=this.bidiMap,h=c.bidiLevels,u,f=[],m=0,v=Math.min(o,s)-this.wrapIndent,y=Math.max(o,s)-this.wrapIndent,$=!1,_=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,k=0;k<h.length;k++)b=c.logicalFromVisual[k],u=h[k],$=b>=v&&b<y,$&&!_?S=m:!$&&_&&f.push({left:S,width:m-S}),m+=this.charWidths[u],_=$;if($&&k===h.length&&f.push({left:S,width:m-S}),this.isRtlDir)for(var M=0;M<f.length;M++)f[M].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var s=0,c=Math.max(c,0),h=0,u=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[u]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>h+m/2;){if(h+=m,u===f.length-1){m=0;break}m=this.charWidths[f[++u]]}return u>0&&f[u-1]%2!==0&&f[u]%2===0?(c<h&&u--,s=this.bidiMap.logicalFromVisual[u]):u>0&&f[u-1]%2===0&&f[u]%2!==0?s=1+(c>h?this.bidiMap.logicalFromVisual[u]:this.bidiMap.logicalFromVisual[u-1]):this.isRtlDir&&u===f.length-1&&m===0&&f[u-1]%2===0||!this.isRtlDir&&u===0&&f[u]%2!==0?s=1+this.bidiMap.logicalFromVisual[u]:(u>0&&f[u-1]%2!==0&&m!==0&&u--,s=this.bidiMap.logicalFromVisual[u]),s===0&&this.isRtlDir&&s++,s+this.wrapIndent},p}();i.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,a){var r=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=function(){function o(s){this.session=s,this.doc=s.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(h){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&h.old.column!=h.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(s,c){this.$isEmpty=!1,this.anchor.setPosition(s,c)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var s=this.anchor,c=this.lead;return s.row>c.row||s.row==c.row&&s.column>c.column},o.prototype.getRange=function(){var s=this.anchor,c=this.lead;return this.$isEmpty?l.fromPoints(c,c):this.isBackwards()?l.fromPoints(c,s):l.fromPoints(s,c)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(s,c){var h=c?s.end:s.start,u=c?s.start:s.end;this.$setSelection(h.row,h.column,u.row,u.column)},o.prototype.$setSelection=function(s,c,h,u){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(s,c),this.cursor.setPosition(h,u),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(s){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),s.call(this)},o.prototype.selectTo=function(s,c){this.$moveSelection(function(){this.moveCursorTo(s,c)})},o.prototype.selectToPosition=function(s){this.$moveSelection(function(){this.moveCursorToPosition(s)})},o.prototype.moveTo=function(s,c){this.clearSelection(),this.moveCursorTo(s,c)},o.prototype.moveToPosition=function(s){this.clearSelection(),this.moveCursorToPosition(s)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(s,c){if(typeof c>"u"){var h=s||this.lead;s=h.row,c=h.column}return this.session.getWordRange(s,c)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var s=this.getCursor(),c=this.session.getAWordRange(s.row,s.column);this.setSelectionRange(c)},o.prototype.getLineRange=function(s,c){var h=typeof s=="number"?s:this.lead.row,u,f=this.session.getFoldLine(h);return f?(h=f.start.row,u=f.end.row):u=h,c===!0?new l(h,0,u,this.session.getLine(u).length):new l(h,0,u+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(s,c,h){var u=s.column,f=s.column+c;return h<0&&(u=s.column-c,f=s.column),this.session.isTabStop(s)&&this.doc.getLine(s.row).slice(u,f).split(" ").length-1==c},o.prototype.moveCursorLeft=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(s.column===0)s.row>0&&this.moveCursorTo(s.row-1,this.doc.getLine(s.row-1).length);else{var h=this.session.getTabSize();this.wouldMoveIntoSoftTab(s,h,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-h):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var s=this.lead.getPosition(),c;if(c=this.session.getFoldAt(s.row,s.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var h=this.session.getTabSize(),s=this.lead;this.wouldMoveIntoSoftTab(s,h,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,h):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var s=this.lead.row,c=this.lead.column,h=this.session.documentToScreenRow(s,c),u=this.session.screenToDocumentPosition(h,0),f=this.session.getDisplayLine(s,null,u.row,u.column),m=f.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(u.column+=m[0].length),this.moveCursorToPosition(u)},o.prototype.moveCursorLineEnd=function(){var s=this.lead,c=this.session.getDocumentLastRowColumnPosition(s.row,s.column);if(this.lead.column==c.column){var h=this.session.getLine(c.row);if(c.column==h.length){var u=h.search(/\s+$/);u>0&&(c.column=u)}}this.moveCursorTo(c.row,c.column)},o.prototype.moveCursorFileEnd=function(){var s=this.doc.getLength()-1,c=this.doc.getLine(s).length;this.moveCursorTo(s,c)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var s=this.lead.row,c=this.lead.column,h=this.doc.getLine(s),u=h.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(s,c,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(u)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=h.substring(c)),c>=h.length){this.moveCursorTo(s,h.length),this.moveCursorRight(),s<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(u)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},o.prototype.moveCursorLongWordLeft=function(){var s=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(s,c,-1)){this.moveCursorTo(h.start.row,h.start.column);return}var u=this.session.getFoldStringAt(s,c,-1);u==null&&(u=this.doc.getLine(s).substring(0,c));var f=d.stringReverse(u);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(c-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(s,0),this.moveCursorLeft(),s>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,c)},o.prototype.$shortWordEndIndex=function(s){var c=0,h,u=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(s))c=this.session.tokenRe.lastIndex;else{for(;(h=s[c])&&u.test(h);)c++;if(c<1){for(f.lastIndex=0;(h=s[c])&&!f.test(h);)if(f.lastIndex=0,c++,u.test(h))if(c>2){c--;break}else{for(;(h=s[c])&&u.test(h);)c++;if(c>2)break}}}return f.lastIndex=0,c},o.prototype.moveCursorShortWordRight=function(){var s=this.lead.row,c=this.lead.column,h=this.doc.getLine(s),u=h.substring(c),f=this.session.getFoldAt(s,c,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(c==h.length){var m=this.doc.getLength();do s++,u=this.doc.getLine(s);while(s<m&&/^\s*$/.test(u));/^\s+/.test(u)||(u=""),c=0}var v=this.$shortWordEndIndex(u);this.moveCursorTo(s,c+v)},o.prototype.moveCursorShortWordLeft=function(){var s=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(s,c,-1))return this.moveCursorTo(h.start.row,h.start.column);var u=this.session.getLine(s).substring(0,c);if(c===0){do s--,u=this.doc.getLine(s);while(s>0&&/^\s*$/.test(u));c=u.length,/\s+$/.test(u)||(u="")}var f=d.stringReverse(u),m=this.$shortWordEndIndex(f);return this.moveCursorTo(s,c-m)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(s,c){var h=this.session.documentToScreenPosition(this.lead.row,this.lead.column),u;if(c===0&&(s!==0&&(this.session.$bidiHandler.isBidiRow(h.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(h.column),h.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=h.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?h.column=this.$desiredColumn:this.$desiredColumn=h.column),s!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];s<0?s-=f.rowsAbove||0:s>0&&(s+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(h.row+s,h.column,u);s!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},o.prototype.moveCursorToPosition=function(s){this.moveCursorTo(s.row,s.column)},o.prototype.moveCursorTo=function(s,c,h){var u=this.session.getFoldAt(s,c,1);u&&(s=u.start.row,c=u.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(s);/[\uDC00-\uDFFF]/.test(f.charAt(c))&&f.charAt(c-1)&&(this.lead.row==s&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(s,c),this.$keepDesiredColumnOnChange=!1,h||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(s,c,h){var u=this.session.screenToDocumentPosition(s,c);this.moveCursorTo(u.row,u.column,h)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(s){this.setSelectionRange(s,s.cursor==s.start),this.$desiredColumn=s.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(s){var c=this.getRange();return s?(s.start.column=c.start.column,s.start.row=c.start.row,s.end.column=c.end.column,s.end.row=c.end.row):s=c,s.cursor=this.isBackwards()?s.start:s.end,s.desiredColumn=this.$desiredColumn,s},o.prototype.getRangeOfMovements=function(s){var c=this.getCursor();try{s(this);var h=this.getCursor();return l.fromPoints(c,h)}catch{return l.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},o.prototype.toJSON=function(){if(this.rangeCount)var s=this.ranges.map(function(c){var h=c.clone();return h.isBackwards=c.cursor==c.start,h});else{var s=this.getRange();s.isBackwards=this.isBackwards()}return s},o.prototype.fromJSON=function(s){if(s.start==null)if(this.rangeList&&s.length>1){this.toSingleRange(s[0]);for(var c=s.length;c--;){var h=l.fromPoints(s[c].start,s[c].end);s[c].isBackwards&&(h.cursor=h.start),this.addRange(h,!0)}return}else s=s[0];this.rangeList&&this.toSingleRange(s),this.setSelectionRange(s,s.isBackwards)},o.prototype.isEqual=function(s){if((s.length||this.rangeCount)&&s.length!=this.rangeCount)return!1;if(!s.length||!this.ranges)return this.getRange().isEqual(s);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(s[c]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,r.implement(p.prototype,g),i.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,a){var r=n("./lib/report_error").reportError,d=2e3,g=function(){function l(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var s=this.states[o],c=[],h=0,u=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],v=0;v<s.length;v++){var y=s[v];if(y.defaultToken&&(u.defaultToken=y.defaultToken),y.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),y.unicode&&f.indexOf("u")===-1&&(f+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var $=y.regex,_=new RegExp("(?:("+$+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||_==1?y.token=y.token[0]:_-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:_-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(_>1?y.onMatch=this.$applyToken:y.onMatch=y.token),_>1&&(/\\\d/.test(y.regex)?$=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+h+1)}):(_=1,$=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),u[h]=v,h+=_,c.push($),y.onMatch||(y.onMatch=null)}}c.length||(u[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[o]=new RegExp("("+c.join(")|(")+")|($)",f)}}return l.prototype.$setMaxTokenCount=function(p){d=p|0},l.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),s=this.token.apply(this,o);if(typeof s=="string")return[{type:s,value:p}];for(var c=[],h=0,u=s.length;h<u;h++)o[h]&&(c[c.length]={type:s[h],value:o[h]});return c},l.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var s=[],c=this.tokenArray,h=0,u=c.length;h<u;h++)o[h+1]&&(s[s.length]={type:c[h],value:o[h+1]});return s},l.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(s,c){return c?"(?:":s});return o},l.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var s=0,c=!1,h={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(u,f,m,v,y,$){return c?c=y!="]":y?c=!0:v?(s==h.stack&&(h.end=$+1,h.stack=-1),s--):m&&(s++,m.length!=1&&(h.stack=s,h.start=$)),u}),h.end!=null&&/^\)*$/.test(p.substr(h.end))&&(p=p.substring(0,h.start)+p.substr(h.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},l.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var s=o.slice(0);o=s[0],o==="#tmp"&&(s.shift(),o=s.shift())}else var s=[];var c=o||"start",h=this.states[c];h||(c="start",h=this.states[c]);var u=this.matchMappings[c],f=this.regExps[c];f.lastIndex=0;for(var m,v=[],y=0,$=0,_={type:null,value:""};m=f.exec(p);){var S=u.defaultToken,b=null,k=m[0],M=f.lastIndex;if(M-k.length>y){var L=p.substring(y,M-k.length);_.type==S?_.value+=L:(_.type&&v.push(_),_={type:S,value:L})}for(var T=0;T<m.length-2;T++)if(m[T+1]!==void 0){b=h[u[T]],b.onMatch?S=b.onMatch(k,c,s,p):S=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,s),h=this.states[c],h||(this.reportError("state doesn't exist",c),c="start",h=this.states[c]),u=this.matchMappings[c],y=M,f=this.regExps[c],f.lastIndex=M),b.consumeLineEnd&&(y=M);break}if(k){if(typeof S=="string")(!b||b.merge!==!1)&&_.type===S?_.value+=k:(_.type&&v.push(_),_={type:S,value:k});else if(S){_.type&&v.push(_),_={type:null,value:""};for(var T=0;T<S.length;T++)v.push(S[T])}}if(y==p.length)break;if(y=M,$++>d){for($>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y<p.length;)_.type&&v.push(_),_={value:p.substring(y,y+=500),type:"overflow"};c="start",s=[];break}}return _.type&&v.push(_),s.length>1&&s[0]!==c&&s.unshift("#tmp",c),{tokens:v,state:s.length?s:c}},l}();g.prototype.reportError=r,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,a){var r=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var s in p)this.$rules[s]=p[s];return}for(var s in p){for(var c=p[s],h=0;h<c.length;h++){var u=c[h];(u.next||u.onMatch)&&(typeof u.next=="string"&&u.next.indexOf(o)!==0&&(u.next=o+u.next),u.nextState&&u.nextState.indexOf(o)!==0&&(u.nextState=o+u.nextState))}this.$rules[o+s]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,s,c,h){var u=typeof p=="function"?new p().getRules():p;if(c)for(var f=0;f<c.length;f++)c[f]=o+c[f];else{c=[];for(var m in u)c.push(o+m)}if(this.addRules(u,o),s)for(var v=Array.prototype[h?"push":"unshift"],f=0;f<c.length;f++)v.apply(this.$rules[c[f]],r(s));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},l=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function s(c){var h=o[c];h.processed=!0;for(var u=0;u<h.length;u++){var f=h[u],m=null;Array.isArray(f)&&(m=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var v=f.next||f.push;if(v&&Array.isArray(v)){var y=f.stateName;y||(y=f.token,typeof y!="string"&&(y=y[0]||""),o[y]&&(y+=p++)),o[y]=v,f.next=y,s(y)}else v=="pop"&&(f.next=l);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var $ in f.rules)o[$]?o[$].push&&o[$].push.apply(o[$],f.rules[$]):o[$]=f.rules[$];var _=typeof f=="string"?f:f.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?m=_.map(function(b){return o[b]}):m=o[_]),m){var S=[u,1].concat(m);f.noEscape&&(S=S.filter(function(b){return!b.next})),h.splice.apply(h,S),u--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(o).forEach(s,this)},this.createKeywordMapper=function(p,o,s,c){var h=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(u){for(var f=p[u],m=f.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),s&&(y=y.toLowerCase()),h[y]=u}},this),p=null,s?function(u){return h[u.toLowerCase()]||o}:function(u){return h[u]||o}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),i.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,a){var r;r=function(){this.$behaviours={}},(function(){this.add=function(d,g,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][g]=l},this.addBehaviours=function(d){for(var g in d)for(var l in d[g])this.add(g,l,d[g][l])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,g){if(typeof d=="function")var l=new d().getBehaviours(g);else var l=d.getBehaviours(g);this.addBehaviours(l)},this.getBehaviours=function(d){if(d){for(var g={},l=0;l<d.length;l++)this.$behaviours[d[l]]&&(g[d[l]]=this.$behaviours[d[l]]);return g}else return this.$behaviours}}).call(r.prototype),i.Behaviour=r}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,a){var r=n("./range").Range,d=function(){function g(l,p,o){this.$session=l,this.$row=p,this.$rowTokens=l.getTokens(p);var s=l.getTokenAt(p,o);this.$tokenIndex=s?s.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var l;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var l=this.$rowTokens,p=this.$tokenIndex,o=l[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=l[p].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new r(this.$row,p,this.$row,p+l.value.length)},g}();i.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,a){var r=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,l=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],s,c={},h={'"':'"',"'":"'"},u=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return s=c[y];s=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,$,_){var S=v.end.row-v.start.row;return{text:$+y+_,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,$,_,S,b){var k=_.getCursorPosition(),M=S.doc.getLine(k.row);if(b=="{"){u(_);var L=_.getSelectionRange(),T=S.doc.getTextRange(L),E=S.getTokenAt(k.row,k.column);if(T!==""&&T!=="{"&&_.getWrapBehavioursEnabled())return f(L,T,"{","}");if(E&&/(?:string)\.quasi|\.xml/.test(E.type)){var C=[/tag\-(?:open|name)/,/attribute\-name/];return C.some(function(N){return N.test(E.type)})||/(string)\.quasi/.test(E.type)&&E.value[k.column-E.start-1]!=="$"?void 0:(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,S))return/[\]\}\)]/.test(M[k.column])||_.inMultiSelectMode||v.braces?(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){u(_);var x=M.substring(k.column,k.column+1);if(x=="}"){var w=S.$findOpeningBracket("}",{column:k.column+1,row:k.row});if(w!==null&&m.isAutoInsertedClosing(k,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
777
|
-
`||b==`\r
|
778
|
-
`){u(_);var A="";m.isMaybeInsertedClosing(k,M)&&(A=l.stringRepeat("}",s.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var x=M.substring(k.column,k.column+1);if(x==="}"){var R=S.findMatchingBracket({row:k.row,column:k.column+1},"}");if(!R)return null;var O=this.$getIndent(S.getLine(R.row))}else if(A)var O=this.$getIndent(M);else{m.clearMaybeInsertedClosing();return}var I=O+S.getTabString();return{text:`
|
779
|
-
`+I+`
|
780
|
-
`+O+A,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,$,_,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="{"){u(_);var M=S.doc.getLine(b.start.row),L=M.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,$,_,S,b){if(b=="("){u(_);var k=_.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&_.getWrapBehavioursEnabled())return f(k,M,"(",")");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){u(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),E=T.substring(L.column,L.column+1);if(E==")"){var C=S.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(C!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,$,_,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="("){u(_);var M=S.doc.getLine(b.start.row),L=M.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,$,_,S,b){if(b=="["){u(_);var k=_.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&_.getWrapBehavioursEnabled())return f(k,M,"[","]");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){u(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),E=T.substring(L.column,L.column+1);if(E=="]"){var C=S.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(C!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,$,_,S,b){var k=S.doc.getTextRange(b);if(!b.isMultiLine()&&k=="["){u(_);var M=S.doc.getLine(b.start.row),L=M.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,$,_,S,b){var k=S.$mode.$quotes||h;if(b.length==1&&k[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;u(_);var M=b,L=_.getSelectionRange(),T=S.doc.getTextRange(L);if(T!==""&&(T.length!=1||!k[T])&&_.getWrapBehavioursEnabled())return f(L,T,M,M);if(!T){var E=_.getCursorPosition(),C=S.doc.getLine(E.row),x=C.substring(E.column-1,E.column),w=C.substring(E.column,E.column+1),A=S.getTokenAt(E.row,E.column),R=S.getTokenAt(E.row,E.column+1);if(x=="\\"&&A&&/escape/.test(A.type))return null;var O=A&&/string|escape/.test(A.type),I=!R||/string|escape/.test(R.type),N;if(w==M)N=O!==I,N&&/string\.end/.test(R.type)&&(N=!1);else{if(O&&!I||O&&I)return null;var D=S.$mode.tokenRe;D.lastIndex=0;var H=D.test(x);D.lastIndex=0;var j=D.test(w),z=S.$mode.$pairQuotesAfter,B=z&&z[M]&&z[M].test(x);if(!B&&H||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var V=C[E.column-2];if(x==M&&(V==M||D.test(V)))return null;N=!0}return{text:N?M+M:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,$,_,S,b){var k=S.$mode.$quotes||h,M=S.doc.getTextRange(b);if(!b.isMultiLine()&&k.hasOwnProperty(M)){u(_);var L=S.doc.getLine(b.start.row),T=L.substring(b.start.column+1,b.start.column+2);if(T==M)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,$,_,S,b){if(y==="doc-start"&&(b===`
|
781
|
-
`||b===`\r
|
782
|
-
`)&&_.selection.isEmpty()){var k=_.getCursorPosition();if(k.column===0)return;for(var M=S.doc.getLine(k.row),L=S.doc.getLine(k.row+1),T=S.getTokens(k.row),E=0,C=0;C<T.length;C++){E+=T[C].value.length;var x=T[C];if(E>=k.column){if(E===k.column){if(!/\.doc/.test(x.type))return;if(/\*\//.test(x.value)){var w=T[C+1];if(!w||!/\.doc/.test(w.type))return}}var A=k.column-(E-x.value.length),R=x.value.indexOf("*/"),O=x.value.indexOf("/**",R>-1?R+2:0);if(O!==-1&&A>O&&A<O+3||R!==-1&&O!==-1&&A>=R&&A<=O||!/\.doc/.test(x.type))return;break}}var I=this.$getIndent(M);if(/\s*\*/.test(L))return/^\s*\*/.test(M)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(M.substring(0,k.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(v,y){var $=v.getCursorPosition(),_=new g(y,$.row,$.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine($.row)[$.column]))return!0;var S=new g(y,$.row,$.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return _.stepForward(),_.getCurrentTokenRow()!==$.row||this.$matchTokenType(_.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,S,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=_.row,s.autoInsertedLineEnd=$+S.substr(_.column),s.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,S)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=_.row,s.maybeInsertedLineStart=S.substr(0,_.column)+$,s.maybeInsertedLineEnd=S.substr(_.column),s.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,$){return s.autoInsertedBrackets>0&&v.row===s.autoInsertedRow&&$===s.autoInsertedLineEnd[0]&&y.substr(v.column)===s.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return s.maybeInsertedBrackets>0&&v.row===s.maybeInsertedRow&&y.substr(v.column)===s.maybeInsertedLineEnd&&y.substr(0,v.column)==s.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},r.inherits(m,d),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,a){for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,g=[],l=0;l<r.length;l+=2)g.push(d+=r[l]),r[l+1]&&g.push(45,d+=r[l+1]);i.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,i,a){var r=n("../config"),d=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,l=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),s=n("../token_iterator").TokenIterator,c=n("../range").Range,h;h=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new d(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(u,f,m,v){var y=f.doc,$=!0,_=!0,S=1/0,b=f.getTabSize(),k=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var T=this.lineCommentStart.map(o.escapeRegExp).join("|"),M=this.lineCommentStart[0];else var T=o.escapeRegExp(this.lineCommentStart),M=this.lineCommentStart;T=new RegExp("^(\\s*)(?:"+T+") ?"),k=f.getUseSoftTabs();var x=function(j,z){var B=j.match(T);if(B){var V=B[1].length,q=B[0].length;!R(j,V,q)&&B[0][q-1]==" "&&q--,y.removeInLine(z,V,q)}},A=M+" ",C=function(j,z){(!$||/\S/.test(j))&&(R(j,S,S)?y.insertInLine({row:z,column:S},A):y.insertInLine({row:z,column:S},M))},w=function(j,z){return T.test(j)},R=function(j,z,B){for(var V=0;z--&&j.charAt(z)==" ";)V++;if(V%b!=0)return!1;for(var V=0;j.charAt(B++)==" ";)V++;return b>2?V%b!=b-1:V%b==0}}else{if(!this.blockComment)return!1;var M=this.blockComment.start,L=this.blockComment.end,T=new RegExp("^(\\s*)(?:"+o.escapeRegExp(M)+")"),E=new RegExp("(?:"+o.escapeRegExp(L)+")\\s*$"),C=function(N,D){w(N,D)||(!$||/\S/.test(N))&&(y.insertInLine({row:D,column:N.length},L),y.insertInLine({row:D,column:S},M))},x=function(N,D){var H;(H=N.match(E))&&y.removeInLine(D,N.length-H[0].length,N.length),(H=N.match(T))&&y.removeInLine(D,H[1].length,H[0].length)},w=function(N,D){if(T.test(N))return!0;for(var H=f.getTokens(D),j=0;j<H.length;j++)if(H[j].type==="comment")return!0}}function O(N){for(var D=m;D<=v;D++)N(y.getLine(D),D)}var I=1/0;O(function(N,D){var H=N.search(/\S/);H!==-1?(H<S&&(S=H),_&&!w(N,D)&&(_=!1)):I>N.length&&(I=N.length)}),S==1/0&&(S=I,$=!1,_=!1),k&&S%b!=0&&(S=Math.floor(S/b)*b),O(_?x:C)},this.toggleBlockComment=function(u,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var $=new s(f,v.row,v.column),_=$.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),b,k;if(_&&/comment/.test(_.type)){for(var M,L;_&&/comment/.test(_.type);){var T=_.value.indexOf(y.start);if(T!=-1){var E=$.getCurrentTokenRow(),C=$.getCurrentTokenColumn()+T;M=new c(E,C,E,C+y.start.length);break}_=$.stepBackward()}for(var $=new s(f,v.row,v.column),_=$.getCurrentToken();_&&/comment/.test(_.type);){var T=_.value.indexOf(y.end);if(T!=-1){var E=$.getCurrentTokenRow(),C=$.getCurrentTokenColumn()+T;L=new c(E,C,E,C+y.end.length);break}_=$.stepForward()}L&&f.remove(L),M&&(f.remove(M),b=M.start.row,k=-y.start.length)}else k=y.start.length,b=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);S.start.row==b&&(S.start.column+=k),S.end.row==b&&(S.end.column+=k),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(u,f,m){return this.$getIndent(f)},this.checkOutdent=function(u,f,m){return!1},this.autoOutdent=function(u,f,m){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){this.$embeds=[],this.$modes={};for(var f in u)if(u[f]){var m=u[f],v=m.prototype.$id,y=r.$modes[v];y||(r.$modes[v]=y=new m),r.$modes[f]||(r.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_=function(b){(function(k){var M=$[b],L=k[M];k[$[b]]=function(){return this.$delegator(M,arguments,L)}})(S)},S=this,f=0;f<$.length;f++)_(f)},this.$delegator=function(u,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],$=this.$modes[y];if($)return $[u].apply($,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var _=0;_<this.$embeds.length;_++)if(this.$modes[this.$embeds[_]]){var S=v.split(this.$embeds[_]);if(!S[0]&&S[1]){f[0]=S[1];var $=this.$modes[this.$embeds[_]];return $[u].apply($,f)}}var b=m.apply(this,f);return m?b:void 0},this.transformAction=function(u,f,m,v,y){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var _ in $)if($[_][f]){var S=$[_][f].apply(this,arguments);if(S)return S}}},this.getKeywords=function(u){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var y=f[v],$=0,_=y.length;$<_;$++)if(typeof y[$].token=="string")/keyword|support|storage/.test(y[$].token)&&m.push(y[$].regex);else if(typeof y[$].token=="object"){for(var S=0,b=y[$].token.length;S<b;S++)if(/keyword|support|storage/.test(y[$].token[S])){var v=y[$].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return u?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(u,f,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(h.prototype),i.Mode=h}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,a){i.applyDelta=function(r,d,g){var l=d.start.row,p=d.start.column,o=r[l]||"";switch(d.action){case"insert":var s=d.lines;if(s.length===1)r[l]=o.substring(0,p)+d.lines[0]+o.substring(p);else{var c=[l,1].concat(d.lines);r.splice.apply(r,c),r[l]=o.substring(0,p)+r[l],r[l+d.lines.length-1]+=o.substring(p)}break;case"remove":var h=d.end.column,u=d.end.row;l===u?r[l]=o.substring(0,p)+o.substring(h):r.splice(l,u-l+1,o.substring(0,p)+r[u].substring(h));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,a){var r=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function o(s,c,h){this.$onChange=this.onChange.bind(this),this.attach(s),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,h)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(s){if(!(s.start.row==s.end.row&&s.start.row!=this.row)&&!(s.start.row>this.row)){var c=p(s,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},o.prototype.setPosition=function(s,c,h){var u;if(h?u={row:s,column:c}:u=this.$clipPositionToDocument(s,c),!(this.row==u.row&&this.column==u.column)){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(s){this.document=s||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(s,c){var h={};return s>=this.document.getLength()?(h.row=Math.max(0,this.document.getLength()-1),h.column=this.document.getLine(h.row).length):s<0?(h.row=0,h.column=0):(h.row=s,h.column=Math.min(this.document.getLine(h.row).length,Math.max(0,c))),c<0&&(h.column=0),h},o}();g.prototype.$insertRight=!1,r.implement(g.prototype,d);function l(o,s,c){var h=c?o.column<=s.column:o.column<s.column;return o.row<s.row||o.row==s.row&&h}function p(o,s,c){var h=o.action=="insert",u=(h?1:-1)*(o.end.row-o.start.row),f=(h?1:-1)*(o.end.column-o.start.column),m=o.start,v=h?m:o.end;return l(s,m,c)?{row:s.row,column:s.column}:l(v,s,!c)?{row:s.row+u,column:s.column+(s.row==v.row?f:0)}:{row:m.row,column:m.column}}i.Anchor=g}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,i,a){var r=n("./lib/oop"),d=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=n("./anchor").Anchor,o=function(){function s(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return s.prototype.setValue=function(c){var h=this.getLength()-1;this.remove(new l(0,0,h,this.getLine(h).length)),this.insert({row:0,column:0},c||"")},s.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},s.prototype.createAnchor=function(c,h){return new p(this,c,h)},s.prototype.$detectNewLine=function(c){var h=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=h?h[1]:`
|
783
|
-
`,this._signal("changeNewLineMode")},s.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
784
|
-
`;case"unix":return`
|
785
|
-
`;default:return this.$autoNewLine||`
|
786
|
-
`}},s.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},s.prototype.getNewLineMode=function(){return this.$newLineMode},s.prototype.isNewLine=function(c){return c==`\r
|
787
|
-
`||c=="\r"||c==`
|
788
|
-
`},s.prototype.getLine=function(c){return this.$lines[c]||""},s.prototype.getLines=function(c,h){return this.$lines.slice(c,h+1)},s.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},s.prototype.getLength=function(){return this.$lines.length},s.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},s.prototype.getLinesForRange=function(c){var h;if(c.start.row===c.end.row)h=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{h=this.getLines(c.start.row,c.end.row),h[0]=(h[0]||"").substring(c.start.column);var u=h.length-1;c.end.row-c.start.row==u&&(h[u]=h[u].substring(0,c.end.column))}return h},s.prototype.insertLines=function(c,h){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,h)},s.prototype.removeLines=function(c,h){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,h)},s.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},s.prototype.insert=function(c,h){return this.getLength()<=1&&this.$detectNewLine(h),this.insertMergedLines(c,this.$split(h))},s.prototype.insertInLine=function(c,h){var u=this.clippedPos(c.row,c.column),f=this.pos(c.row,c.column+h.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[h]},!0),this.clonePos(f)},s.prototype.clippedPos=function(c,h){var u=this.getLength();c===void 0?c=u:c<0?c=0:c>=u&&(c=u-1,h=void 0);var f=this.getLine(c);return h==null&&(h=f.length),h=Math.min(Math.max(h,0),f.length),{row:c,column:h}},s.prototype.clonePos=function(c){return{row:c.row,column:c.column}},s.prototype.pos=function(c,h){return{row:c,column:h}},s.prototype.$clipPosition=function(c){var h=this.getLength();return c.row>=h?(c.row=Math.max(0,h-1),c.column=this.getLine(h-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},s.prototype.insertFullLines=function(c,h){c=Math.min(Math.max(c,0),this.getLength());var u=0;c<this.getLength()?(h=h.concat([""]),u=0):(h=[""].concat(h),c--,u=this.$lines[c].length),this.insertMergedLines({row:c,column:u},h)},s.prototype.insertMergedLines=function(c,h){var u=this.clippedPos(c.row,c.column),f={row:u.row+h.length-1,column:(h.length==1?u.column:0)+h[h.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:h}),this.clonePos(f)},s.prototype.remove=function(c){var h=this.clippedPos(c.start.row,c.start.column),u=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:h,end:u,action:"remove",lines:this.getLinesForRange({start:h,end:u})}),this.clonePos(h)},s.prototype.removeInLine=function(c,h,u){var f=this.clippedPos(c,h),m=this.clippedPos(c,u);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},s.prototype.removeFullLines=function(c,h){c=Math.min(Math.max(0,c),this.getLength()-1),h=Math.min(Math.max(0,h),this.getLength()-1);var u=h==this.getLength()-1&&c>0,f=h<this.getLength()-1,m=u?c-1:c,v=u?this.getLine(m).length:0,y=f?h+1:h,$=f?0:this.getLine(y).length,_=new l(m,v,y,$),S=this.$lines.slice(c,h+1);return this.applyDelta({start:_.start,end:_.end,action:"remove",lines:this.getLinesForRange(_)}),S},s.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},s.prototype.replace=function(c,h){if(c instanceof l||(c=l.fromPoints(c.start,c.end)),h.length===0&&c.isEmpty())return c.start;if(h==this.getTextRange(c))return c.end;this.remove(c);var u;return h?u=this.insert(c.start,h):u=c.start,u},s.prototype.applyDeltas=function(c){for(var h=0;h<c.length;h++)this.applyDelta(c[h])},s.prototype.revertDeltas=function(c){for(var h=c.length-1;h>=0;h--)this.revertDelta(c[h])},s.prototype.applyDelta=function(c,h){var u=c.action=="insert";(u?c.lines.length<=1&&!c.lines[0]:!l.comparePoints(c.start,c.end))||(u&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(d(this.$lines,c,h),this._signal("change",c)))},s.prototype.$safeApplyDelta=function(c){var h=this.$lines.length;(c.action=="remove"&&c.start.row<h&&c.end.row<h||c.action=="insert"&&c.start.row<=h)&&this.applyDelta(c)},s.prototype.$splitAndapplyLargeDelta=function(c,h){for(var u=c.lines,f=u.length-h+1,m=c.start.row,v=c.start.column,y=0,$=0;y<f;y=$){$+=h-1;var _=u.slice(y,$);_.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+$,v=0),action:c.action,lines:_},!0)}c.lines=u.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},s.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},s.prototype.indexToPosition=function(c,h){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=h||0,v=u.length;m<v;m++)if(c-=u[m].length+f,c<0)return{row:m,column:c+u[m].length+f};return{row:v-1,column:c+u[v-1].length+f}},s.prototype.positionToIndex=function(c,h){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,u.length),y=h||0;y<v;++y)m+=u[y].length+f;return m+c.column},s.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},s}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",r.implement(o.prototype,g),i.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,a){var r=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function l(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var s=this;this.$worker=function(){if(s.running){for(var c=new Date,h=s.currentLine,u=-1,f=s.doc,m=h;s.lines[h];)h++;var v=f.getLength(),y=0;for(s.running=!1;h<v;){s.$tokenizeRow(h),u=h;do h++;while(s.lines[h]);if(y++,y%5===0&&new Date-c>20){s.running=setTimeout(s.$worker,20);break}}s.currentLine=h,u==-1&&(u=h),m<=u&&s.fireUpdateEvent(m,u)}}}return l.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},l.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},l.prototype.fireUpdateEvent=function(p,o){var s={first:p,last:o};this._signal("update",{data:s})},l.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},l.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},l.prototype.$updateOnChange=function(p){var o=p.start.row,s=p.end.row-o;if(s===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,s+1,null),this.states.splice(o,s+1,null);else{var c=Array(s+1);c.unshift(o,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},l.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},l.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},l.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},l.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),s=this.states[p-1],c=this.tokenizer.getLineTokens(o,s,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},l.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},l}();r.implement(g.prototype,d),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,a){var r=n("./lib/lang"),d=n("./range").Range,g=function(){function l(p,o,s){s===void 0&&(s="text"),this.setRegexp(p),this.clazz=o,this.type=s}return l.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},l.prototype.update=function(p,o,s,c){if(this.regExp)for(var h=c.firstRow,u=c.lastRow,f={},m=h;m<=u;m++){var v=this.cache[m];v==null&&(v=r.getMatchOffsets(s.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new d(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var $=v[y].toScreenRange(s),_=$.toString();f[_]||(f[_]=!0,o.drawSingleLineMarker(p,$,this.clazz,c))}}},l}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,a){var r=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,k,M){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),k===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,k){this.selections.push({value:b,rev:k||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,k){k==null&&(k=this.$rev+1);for(var M=this.$undoStack,L=M.length;L--;){var T=M[L][0];if(T.id<=b)break;T.id<k&&(T.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(b,k){for(var M=this.selections,L=M.length;L--;){var T=M[L];if(T.rev<b)return k&&(T=M[L+1]),T}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(b,k){k==null&&(k=this.$rev+1);for(var M=this.$undoStack,L=null,T=0,E=M.length;E--;){var C=M[E][0];if(C.id<k&&!L&&(L=E+1),C.id<=b){T=E+1;break}}return M.slice(T,L)},S.prototype.getChangedRanges=function(b,k){k==null&&(k=this.$rev+1)},S.prototype.getChangedLines=function(b,k){k==null&&(k=this.$rev+1)},S.prototype.undo=function(b,k){this.lastDeltas=null;var M=this.$undoStack;if(d(M,M.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=M.pop(),T=null;return L&&(T=b.undoChanges(L,k),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,T}},S.prototype.redo=function(b,k){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var M=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);_(this.$redoStack,M),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(E){E[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),T=null;return L&&(T=b.redoChanges(L,k),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,T},S.prototype.$syncRev=function(){var b=this.$undoStack,k=b[b.length-1],M=k&&k[0].id||0;this.$redoStackBaseRev=M,this.$rev=M},S.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},S.prototype.canUndo=function(){return this.$undoStack.length>0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?s(b):s(this.$undoStack)+`
|
789
|
-
---
|
790
|
-
`+s(this.$redoStack)},S}();r.prototype.hasUndo=r.prototype.canUndo,r.prototype.hasRedo=r.prototype.canRedo,r.prototype.isClean=r.prototype.isAtBookmark,r.prototype.markClean=r.prototype.bookmark;function d(S,b){for(var k=b;k--;){var M=S[k];if(M&&!M[0].ignore){for(;k<b-1;){var L=u(S[k],S[k+1]);S[k]=L[0],S[k+1]=L[1],k++}return!0}}}var g=n("./range").Range,l=g.comparePoints;g.comparePoints;function p(S){return{row:S.row,column:S.column}}function o(S){return{start:p(S.start),end:p(S.end),action:S.action,lines:S.lines.slice()}}function s(S){if(S=S||this,Array.isArray(S))return S.map(s).join(`
|
791
|
-
`);var b="";return S.action?(b=S.action=="insert"?"+":"-",b+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?b=S.value.map(c).join(`
|
792
|
-
`):b=c(S.value)),S.start&&(b+=c(S)),(S.id||S.rev)&&(b+=" ("+(S.id||S.rev)+")"),b}function c(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function h(S,b){var k=S.action=="insert",M=b.action=="insert";if(k&&M)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(k&&!M)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!k&&M)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(!k&&!M)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function u(S,b){for(var k=S.length;k--;)for(var M=0;M<b.length;M++)if(!h(S[k],b[M])){for(;k<S.length;){for(;M--;)h(b[M],S[k]);M=b.length,k++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function f(S,b){var k=S.action=="insert",M=b.action=="insert";if(k&&M)l(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(k&&!M)l(S.start,b.end)>=0?m(S,b,-1):(l(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!k&&M)l(b.start,S.end)>=0?m(b,S,-1):(l(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!k&&!M)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else{var L,T;return l(S.start,b.start)<0&&(L=S,S=y(S,b.start)),l(S.end,b.end)>0&&(T=y(S,b.end)),v(b.end,S.start,S.end,-1),T&&!L&&(S.lines=T.lines,S.start=T.start,S.end=T.end,T=S),[b,L,T].filter(Boolean)}return[b,S]}function m(S,b,k){v(S.start,b.start,b.end,k),v(S.end,b.start,b.end,k)}function v(S,b,k,M){S.row==(M==1?b:k).row&&(S.column+=M*(k.column-b.column)),S.row+=M*(k.row-b.row)}function y(S,b){var k=S.lines,M=S.end;S.end=p(b);var L=S.end.row-S.start.row,T=k.splice(L,k.length),E=L?b.column:b.column-S.start.column;k.push(T[0].substring(0,E)),T[0]=T[0].substr(E);var C={start:p(b),end:M,lines:T,action:S.action};return C}function $(S,b){b=o(b);for(var k=S.length;k--;){for(var M=S[k],L=0;L<M.length;L++){var T=M[L],E=f(T,b);b=E[0],E.length!=2&&(E[2]?(M.splice(L+1,1,E[1],E[2]),L++):E[1]||(M.splice(L,1),L--))}M.length||S.splice(k,1)}return S}function _(S,b){for(var k=0;k<b.length;k++)for(var M=b[k],L=0;L<M.length;L++)$(S,M[L])}i.UndoManager=r}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,a){var r=n("../range").Range,d=function(){function g(l,p){this.foldData=l,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new r(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(s){s.setFoldLine(this)},this)}return g.prototype.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(p){p.start.row+=l,p.end.row+=l})},g.prototype.addFold=function(l){if(l.sameRow){if(l.start.row<this.startRow||l.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(p,o){return-p.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},g.prototype.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},g.prototype.walk=function(l,p,o){var s=0,c=this.folds,h,u,f,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<c.length;v++){if(h=c[v],u=h.range.compareStart(p,o),u==-1){l(null,p,o,s,m);return}if(f=l(null,h.start.row,h.start.column,s,m),f=!f&&l(h.placeholder,h.start.row,h.start.column,s),f||u===0)return;m=!h.sameRow,s=h.end.column}l(null,p,o,s,m)},g.prototype.getNextFoldTo=function(l,p){for(var o,s,c=0;c<this.folds.length;c++){if(o=this.folds[c],s=o.range.compareEnd(l,p),s==-1)return{fold:o,kind:"after"};if(s===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(l,p,o){var s=this.getNextFoldTo(l,p),c,h;if(s){if(c=s.fold,s.kind=="inside"&&c.start.column!=p&&c.start.row!=l)window.console&&window.console.log(l,p,c);else if(c.start.row==l){h=this.folds;var u=h.indexOf(c);for(u===0&&(this.start.column+=o),u;u<h.length;u++){if(c=h[u],c.start.column+=o,!c.sameRow)return;c.end.column+=o}this.end.column+=o}}},g.prototype.split=function(l,p){var o=this.getNextFoldTo(l,p);if(!o||o.kind=="inside")return null;var s=o.fold,c=this.folds,h=this.foldData,u=c.indexOf(s),f=c[u-1];this.end.row=f.end.row,this.end.column=f.end.column,c=c.splice(u,c.length-u);var m=new g(h,c);return h.splice(h.indexOf(this)+1,0,m),m},g.prototype.merge=function(l){for(var p=l.folds,o=0;o<p.length;o++)this.addFold(p[o]);var s=this.foldData;s.splice(s.indexOf(l),1)},g.prototype.toString=function(){var l=[this.range.toString()+": ["];return this.folds.forEach(function(p){l.push(" "+p.toString())}),l.push("]"),l.join(`
|
793
|
-
`)},g.prototype.idxToPosition=function(l){for(var p=0,o=0;o<this.folds.length;o++){var s=this.folds[o];if(l-=s.start.column-p,l<0)return{row:s.start.row,column:s.start.column+l};if(l-=s.placeholder.length,l<0)return s.start;p=s.end.column}return{row:this.end.row,column:this.end.column+l}},g}();i.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,a){var r=n("./range").Range,d=r.comparePoints,g=function(){function l(){this.ranges=[],this.$bias=1}return l.prototype.pointIndex=function(p,o,s){for(var c=this.ranges,h=s||0;h<c.length;h++){var u=c[h],f=d(p,u.end);if(!(f>0)){var m=d(p,u.start);return f===0?o&&m!==0?-h-2:h:m>0||m===0&&!o?h:-h-1}}return-h-1},l.prototype.add=function(p){var o=!p.isEmpty(),s=this.pointIndex(p.start,o);s<0&&(s=-s-1);var c=this.pointIndex(p.end,o,s);return c<0?c=-c-1:c++,this.ranges.splice(s,c-s,p)},l.prototype.addList=function(p){for(var o=[],s=p.length;s--;)o.push.apply(o,this.add(p[s]));return o},l.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},l.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(f,m){return d(f.start,m.start)});for(var s=o[0],c,h=1;h<o.length;h++){c=s,s=o[h];var u=d(c.end,s.start);u<0||u==0&&!c.isEmpty()&&!s.isEmpty()||(d(c.end,s.end)<0&&(c.end.row=s.end.row,c.end.column=s.end.column),o.splice(h,1),p.push(s),s=c,h--)}return this.ranges=o,p},l.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},l.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},l.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},l.prototype.clipRows=function(p,o){var s=this.ranges;if(s[0].start.row>o||s[s.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var h=this.pointIndex({row:o,column:0},c);h<0&&(h=-h-1);for(var u=[],f=c;f<h;f++)u.push(s[f]);return u},l.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},l.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},l.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},l.prototype.$onChange=function(p){for(var o=p.start,s=p.end,c=o.row,h=s.row,u=this.ranges,f=0,m=u.length;f<m;f++){var v=u[f];if(v.end.row>=c)break}if(p.action=="insert")for(var y=h-c,$=-o.column+s.column;f<m;f++){var v=u[f];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=$,v.start.row+=y)),v.end.row==c&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&$>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==u[f+1].start.column&&(v.end.column-=$),v.end.column+=$,v.end.row+=y}}else for(var y=c-h,$=o.column-s.column;f<m;f++){var v=u[f];if(v.start.row>h)break;v.end.row<h&&(c<v.end.row||c==v.end.row&&o.column<v.end.column)?(v.end.row=c,v.end.column=o.column):v.end.row==h?v.end.column<=s.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=$,v.end.row+=y):v.end.row>h&&(v.end.row+=y),v.start.row<h&&(c<v.start.row||c==v.start.row&&o.column<v.start.column)?(v.start.row=c,v.start.column=o.column):v.start.row==h?v.start.column<=s.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=$,v.start.row+=y):v.start.row>h&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=u[f];v.start.row+=y,v.end.row+=y}},l}();g.prototype.comparePoints=d,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,a){var r=this&&this.__extends||function(){var c=function(h,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(h,u)};return function(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(h,u);function f(){this.constructor=h}h.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),d=n("../range_list").RangeList,g=function(c){r(h,c);function h(u,f){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=u,m.start=u.start,m.end=u.end,m.sameRow=u.start.row==u.end.row,m.subFolds=m.ranges=[],m}return h.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},h.prototype.setFoldLine=function(u){this.foldLine=u,this.subFolds.forEach(function(f){f.setFoldLine(u)})},h.prototype.clone=function(){var u=this.range.clone(),f=new h(u,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},h.prototype.addSubFold=function(u){if(!this.range.isEqual(u)){p(u,this.start);for(var $=u.start.row,_=u.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare($,_),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(u))return v.addSubFold(u);y=1}for(var $=u.range.end.row,_=u.range.end.column,S=f,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare($,_),m==1);S++);m==0&&S++;for(var b=this.subFolds.splice(f,S-f,u),k=m==0?b.length-1:b.length,M=y;M<k;M++)u.addSubFold(b[M]);return u.setFoldLine(this.foldLine),u}},h.prototype.restoreRange=function(u){return s(u,this.start)},h}(d);function l(c,h){c.row-=h.row,c.row==0&&(c.column-=h.column)}function p(c,h){l(c.start,h),l(c.end,h)}function o(c,h){c.row==0&&(c.column+=h.column),c.row+=h.row}function s(c,h){o(c.start,h),o(c.end,h)}i.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,i,a){var r=n("../range").Range,d=n("./fold_line").FoldLine,g=n("./fold").Fold,l=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(s,c,h){var u=this.getFoldLine(s);if(!u)return null;for(var f=u.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(s,c)){if(h==1&&v.isEnd(s,c)&&!v.isEmpty())continue;if(h==-1&&v.isStart(s,c)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(s){var c=s.start,h=s.end,u=this.$foldData,f=[];c.column+=1,h.column-=1;for(var m=0;m<u.length;m++){var v=u[m].range.compareRange(s);if(v!=2){if(v==-2)break;for(var y=u[m].folds,$=0;$<y.length;$++){var _=y[$];if(v=_.range.compareRange(s),v==-2)break;if(v==2)continue;if(v==42)break;f.push(_)}}}return c.column-=1,h.column+=1,f},this.getFoldsInRangeList=function(s){if(Array.isArray(s)){var c=[];s.forEach(function(h){c=c.concat(this.getFoldsInRange(h))},this)}else var c=this.getFoldsInRange(s);return c},this.getAllFolds=function(){for(var s=[],c=this.$foldData,h=0;h<c.length;h++)for(var u=0;u<c[h].folds.length;u++)s.push(c[h].folds[u]);return s},this.getFoldStringAt=function(s,c,h,u){if(u=u||this.getFoldLine(s),!u)return null;for(var f={end:{column:0}},m,v,y=0;y<u.folds.length;y++){v=u.folds[y];var $=v.range.compareEnd(s,c);if($==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if($===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),h==-1?m.substring(0,c-f.end.column):h==1?m.substring(c-f.end.column):m},this.getFoldLine=function(s,c){var h=this.$foldData,u=0;for(c&&(u=h.indexOf(c)),u==-1&&(u=0),u;u<h.length;u++){var f=h[u];if(f.start.row<=s&&f.end.row>=s)return f;if(f.end.row>s)return null}return null},this.getNextFoldLine=function(s,c){var h=this.$foldData,u=0;for(c&&(u=h.indexOf(c)),u==-1&&(u=0),u;u<h.length;u++){var f=h[u];if(f.end.row>=s)return f}return null},this.getFoldedRowCount=function(s,c){for(var h=this.$foldData,u=c-s+1,f=0;f<h.length;f++){var m=h[f],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=s?u-=c-y:u=0);break}else v>=s&&(y>=s?u-=v-y:u-=v-s+1)}return u},this.$addFoldLine=function(s){return this.$foldData.push(s),this.$foldData.sort(function(c,h){return c.start.row-h.start.row}),s},this.addFold=function(s,c){var h=this.$foldData,u=!1,f;s instanceof g?f=s:(f=new g(c,s),f.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,$=f.end.column,_=this.getFoldAt(m,v,1),S=this.getFoldAt(y,$,-1);if(_&&S==_)return _.addSubFold(f);_&&!_.range.isStart(m,v)&&this.removeFold(_),S&&!S.range.isEnd(y,$)&&this.removeFold(S);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(T){f.addSubFold(T)}));for(var k=0;k<h.length;k++){var M=h[k];if(y==M.start.row){M.addFold(f),u=!0;break}else if(m==M.end.row){if(M.addFold(f),u=!0,!f.sameRow){var L=h[k+1];if(L&&L.start.row==y){M.merge(L);break}}break}else if(y<=M.start.row)break}return u||(M=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(M.start.row,M.start.row):this.$updateRowLengthCache(M.start.row,M.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(s){s.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(s){var c=s.foldLine,h=c.start.row,u=c.end.row,f=this.$foldData,m=c.folds;if(m.length==1)f.splice(f.indexOf(c),1);else if(c.range.isEnd(s.end.row,s.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(s.start.row,s.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(s.sameRow)m.splice(m.indexOf(s),1);else{var v=c.split(s.start.row,s.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(h,u):this.$updateRowLengthCache(h,u)),this.$modified=!0,this._signal("changeFold",{data:s,action:"remove"})},this.removeFolds=function(s){for(var c=[],h=0;h<s.length;h++)c.push(s[h]);c.forEach(function(u){this.removeFold(u)},this),this.$modified=!0},this.expandFold=function(s){this.removeFold(s),s.subFolds.forEach(function(c){s.restoreRange(c),this.addFold(c)},this),s.collapseChildren>0&&this.foldAll(s.start.row+1,s.end.row,s.collapseChildren-1),s.subFolds=[]},this.expandFolds=function(s){s.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(s,c){var h,u;if(s==null)h=new r(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof s=="number")h=new r(s,0,s,this.getLine(s).length);else if("row"in s)h=r.fromPoints(s,s);else{if(Array.isArray(s))return u=[],s.forEach(function(m){u=u.concat(this.unfold(m))},this),u;h=s}u=this.getFoldsInRangeList(h);for(var f=u;u.length==1&&r.comparePoints(u[0].start,h.start)<0&&r.comparePoints(u[0].end,h.end)>0;)this.expandFolds(u),u=this.getFoldsInRangeList(h);if(c!=!1?this.removeFolds(u):this.expandFolds(u),f.length)return f},this.isRowFolded=function(s,c){return!!this.getFoldLine(s,c)},this.getRowFoldEnd=function(s,c){var h=this.getFoldLine(s,c);return h?h.end.row:s},this.getRowFoldStart=function(s,c){var h=this.getFoldLine(s,c);return h?h.start.row:s},this.getFoldDisplayLine=function(s,c,h,u,f){u==null&&(u=s.start.row),f==null&&(f=0),c==null&&(c=s.end.row),h==null&&(h=this.getLine(c).length);var m=this.doc,v="";return s.walk(function(y,$,_,S){if(!($<u)){if($==u){if(_<f)return;S=Math.max(f,S)}y!=null?v+=y:v+=m.getLine($).substring(S,_)}},c,h),v},this.getDisplayLine=function(s,c,h,u){var f=this.getFoldLine(s);if(f)return this.getFoldDisplayLine(f,s,c,h,u);var m;return m=this.doc.getLine(s),m.substring(u||0,c||m.length)},this.$cloneFoldData=function(){var s=[];return s=this.$foldData.map(function(c){var h=c.folds.map(function(u){return u.clone()});return new d(s,h)}),s},this.toggleFold=function(s){var c=this.selection,h=c.getRange(),u,f;if(h.isEmpty()){var m=h.start;if(u=this.getFoldAt(m.row,m.column),u){this.expandFold(u);return}else(f=this.findMatchingBracket(m))?h.comparePoint(f)==1?h.end=f:(h.start=f,h.start.column++,h.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(h.comparePoint(f)==1?h.end=f:h.start=f,h.start.column++):h=this.getCommentFoldRange(m.row,m.column)||h}else{var v=this.getFoldsInRange(h);if(s&&v.length){this.expandFolds(v);return}else v.length==1&&(u=v[0])}if(u||(u=this.getFoldAt(h.start.row,h.start.column)),u&&u.range.toString()==h.toString()){this.expandFold(u);return}var y="...";if(!h.isMultiLine()){if(y=this.getTextRange(h),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,h)},this.getCommentFoldRange=function(s,c,h){var u=new l(this,s,c),f=u.getCurrentToken(),m=f&&f.type;if(f&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new r;if(h!=1){do f=u.stepBackward();while(f&&v.test(f.type));f=u.stepForward()}y.start.row=u.getCurrentTokenRow(),y.start.column=u.getCurrentTokenColumn()+f.value.length,u=new l(this,s,c);var $=this.getState(u.$row);if(h!=-1){var _=-1;do if(f=u.stepForward(),_==-1){var S=this.getState(u.$row);$.toString()!==S.toString()&&(_=u.$row)}else if(u.$row>_)break;while(f&&v.test(f.type));f=u.stepBackward()}else f=u.getCurrentToken();return y.end.row=u.getCurrentTokenRow(),y.end.column=u.getCurrentTokenColumn(),y}},this.foldAll=function(s,c,h,u){h==null&&(h=1e5);var f=this.foldWidgets;if(f){c=c||this.getLength(),s=s||0;for(var m=s;m<c;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(u&&!u(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=s&&(m=v.end.row,v.collapseChildren=h,this.addFold("...",v))}}},this.foldToLevel=function(s){for(this.foldAll();s-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var s=this;this.foldAll(null,null,null,function(c){for(var h=s.getTokens(c),u=0;u<h.length;u++){var f=h[u];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(s){if(!this.$foldStyles[s])throw new Error("invalid fold style: "+s+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=s){this.$foldStyle=s,s=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(s){if(this.$foldMode!=s){if(this.$foldMode=s,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!s||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=s.getFoldWidget.bind(s,this,this.$foldStyle),this.getFoldWidgetRange=s.getFoldWidgetRange.bind(s,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(s,c){var h=this.foldWidgets;if(!h||c&&h[s])return{};for(var u=s-1,f;u>=0;){var m=h[u];if(m==null&&(m=h[u]=this.getFoldWidget(u)),m=="start"){var v=this.getFoldWidgetRange(u);if(f||(f=v),v&&v.end.row>=s)break}u--}return{range:u!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(s,c){c instanceof p&&(c=c.domEvent);var h={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},u=this.$toggleFoldWidget(s,h);if(!u){var f=c.target||c.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(s,c){if(this.getFoldWidget){var h=this.getFoldWidget(s),u=this.getLine(s),f=h==="end"?-1:1,m=this.getFoldAt(s,f===-1?0:u.length,f);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(s,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(s);if(y.range)var $=y.range.start.row+1,_=y.range.end.row;this.foldAll($,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(s+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(s){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var h=this.$toggleFoldWidget(c,{});if(!h){var u=this.getParentFoldRangeData(c,!0);if(h=u.range||u.firstRange,h){c=h.start.row;var f=this.getFoldAt(c,this.getLine(c).length,1);f?this.removeFold(f):this.addFold("...",h)}}},this.updateFoldWidgets=function(s){var c=s.start.row,h=s.end.row-c;if(h===0)this.foldWidgets[c]=null;else if(s.action=="remove")this.foldWidgets.splice(c,h+1,null);else{var u=Array(h+1);u.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(s){var c=s.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}i.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,a){var r=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(l,p){if(l.column==0)return null;var o=p||this.getLine(l.row).charAt(l.column-1);if(o=="")return null;var s=o.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],l):this.$findOpeningBracket(s[2],l):null},this.getBracketRange=function(l){var p=this.getLine(l.row),o=!0,s,c=p.charAt(l.column-1),h=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(h||(c=p.charAt(l.column),l={row:l.row,column:l.column+1},h=c&&c.match(/([\(\[\{])|([\)\]\}])/),o=!1),!h)return null;if(h[1]){var u=this.$findClosingBracket(h[1],l);if(!u)return null;s=d.fromPoints(l,u),o||(s.end.column++,s.start.column--),s.cursor=s.end}else{var u=this.$findOpeningBracket(h[2],l);if(!u)return null;s=d.fromPoints(u,l),o||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(l,p){var o=this.getLine(l.row),s=/([\(\[\{])|([\)\]\}])/,c=!p&&o.charAt(l.column-1),h=c&&c.match(s);if(h||(c=(p===void 0||p)&&o.charAt(l.column),l={row:l.row,column:l.column+1},h=c&&c.match(s)),!h)return null;var u=new d(l.row,l.column-1,l.row,l.column),f=h[1]?this.$findClosingBracket(h[1],l):this.$findOpeningBracket(h[2],l);if(!f)return[u];var m=new d(f.row,f.column,f.row,f.column+1);return[u,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,p,o){var s=this.$brackets[l],c=1,h=new r(this,p.row,p.column),u=h.getCurrentToken();if(u||(u=h.stepForward()),!!u){o||(o=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=p.column-h.getCurrentTokenColumn()-2,m=u.value;;){for(;f>=0;){var v=m.charAt(f);if(v==s){if(c-=1,c==0)return{row:h.getCurrentTokenRow(),column:f+h.getCurrentTokenColumn()}}else v==l&&(c+=1);f-=1}do u=h.stepBackward();while(u&&!o.test(u.type));if(u==null)break;m=u.value,f=m.length-1}return null}},this.$findClosingBracket=function(l,p,o){var s=this.$brackets[l],c=1,h=new r(this,p.row,p.column),u=h.getCurrentToken();if(u||(u=h.stepForward()),!!u){o||(o=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=p.column-h.getCurrentTokenColumn();;){for(var m=u.value,v=m.length;f<v;){var y=m.charAt(f);if(y==s){if(c-=1,c==0)return{row:h.getCurrentTokenRow(),column:f+h.getCurrentTokenColumn()}}else y==l&&(c+=1);f+=1}do u=h.stepForward();while(u&&!o.test(u.type));if(u==null)break;f=0}return null}},this.getMatchingTags=function(l){var p=new r(this,l.row,l.column),o=this.$findTagName(p);if(o){var s=p.stepBackward();return s.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(l){var p=l.getCurrentToken(),o=!1,s=!1;if(p&&p.type.indexOf("tag-name")===-1)do s?p=l.stepBackward():p=l.stepForward(),p&&(p.value==="/>"?s=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(l,p){var o,s=p.value,c=p.value,h=0,u=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);p=l.stepForward();var f=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length),m=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p=l.stepForward(),p){if(p.value===">"&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(s=p.value,c===s){if(o.value==="<")h++;else if(o.value==="</"&&(h--,h<0)){l.stepBackward();var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);p=l.stepForward();var $=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=l.stepForward()),p&&p.value===">")var _=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(c===s&&p.value==="/>"&&(h--,h<0))var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=y,_=$,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(p&&h>=0);if(u&&v&&y&&_&&f&&$)return{openTag:new d(u.start.row,u.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,_.end.row,_.end.column),openTagName:f,closeTagName:$}},this.$findOpeningTag=function(l,p){var o=l.getCurrentToken(),s=p.value,c=0,h=l.getCurrentTokenRow(),u=l.getCurrentTokenColumn(),f=u+2,m=new d(h,u,h,f);l.stepForward();var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=l.stepForward()),!(!p||p.value!==">")){var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(p=o,h=l.getCurrentTokenRow(),u=l.getCurrentTokenColumn(),f=u+p.value.length,o=l.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(s===p.value)if(o.value==="<"){if(c++,c>0){var $=new d(h,u,h,f),_=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do p=l.stepForward();while(p&&p.value!==">");var S=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else o.value==="</"&&c--}else if(p.value==="/>"){for(var b=0,k=o;k;){if(k.type.indexOf("tag-name")!==-1&&k.value===s){c--;break}else if(k.value==="<")break;k=l.stepBackward(),b++}for(var M=0;M<b;M++)l.stepForward()}}while(o&&c<=0);if(_&&S&&m&&y&&$&&v)return{openTag:new d(_.start.row,_.start.column,S.end.row,S.end.column),closeTag:new d(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:$,closeTagName:v}}}}i.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,a){var r=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,l=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,s=n("./mode/text").Mode,c=n("./range").Range,h=n("./document").Document,u=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function E(C,x){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++E.$uid,this.$foldData.toString=function(){return this.join(`
|
794
|
-
`)},this.bgTokenizer=new u(new s().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(A){w._signal("tokenizerUpdate",A)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof C!="object"||!C.getLine)&&(C=new h(C)),this.setDocument(C),this.selection=new o(this),this.$bidiHandler=new g(this),l.resetOptions(this),this.setMode(x),l._signal("session",this),this.destroyed=!1}return E.prototype.setDocument=function(C){this.doc&&this.doc.off("change",this.$onChange),this.doc=C,C.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},E.prototype.getDocument=function(){return this.doc},E.prototype.$resetRowCache=function(C){if(!C){this.$docRowCache=[],this.$screenRowCache=[];return}var x=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,C)+1;x>w&&(this.$docRowCache.splice(w,x),this.$screenRowCache.splice(w,x))},E.prototype.$getRowCacheIndex=function(C,x){for(var w=0,A=C.length-1;w<=A;){var R=w+A>>1,O=C[R];if(x>O)w=R+1;else if(x<O)A=R-1;else return R}return w-1},E.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},E.prototype.onChangeFold=function(C){var x=C.data;this.$resetRowCache(x.start.row)},E.prototype.onChange=function(C){this.$modified=!0,this.$bidiHandler.onChange(C),this.$resetRowCache(C.start.row);var x=this.$updateInternalDataOnChange(C);!this.$fromUndo&&this.$undoManager&&(x&&x.length&&(this.$undoManager.add({action:"removeFolds",folds:x},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(C,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(C),this._signal("change",C)},E.prototype.setValue=function(C){this.doc.setValue(C),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},E.fromJSON=function(C){typeof C=="string"&&(C=JSON.parse(C));var x=new m;x.$undoStack=C.history.undo,x.$redoStack=C.history.redo,x.mark=C.history.mark,x.$rev=C.history.rev;var w=new E(C.value);return C.folds.forEach(function(A){w.addFold("...",c.fromPoints(A.start,A.end))}),w.setAnnotations(C.annotations),w.setBreakpoints(C.breakpoints),w.setMode(C.mode),w.setScrollLeft(C.scrollLeft),w.setScrollTop(C.scrollTop),w.setUndoManager(x),w.selection.fromJSON(C.selection),w},E.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(C){return C.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},E.prototype.toString=function(){return this.doc.getValue()},E.prototype.getSelection=function(){return this.selection},E.prototype.getState=function(C){return this.bgTokenizer.getState(C)},E.prototype.getTokens=function(C){return this.bgTokenizer.getTokens(C)},E.prototype.getTokenAt=function(C,x){var w=this.bgTokenizer.getTokens(C),A,R=0;if(x==null){var O=w.length-1;R=this.getLine(C).length}else for(var O=0;O<w.length&&(R+=w[O].value.length,!(R>=x));O++);return A=w[O],A?(A.index=O,A.start=R-A.value.length,A):null},E.prototype.setUndoManager=function(C){if(this.$undoManager=C,this.$informUndoManager&&this.$informUndoManager.cancel(),C){var x=this;C.addSession(this),this.$syncInformUndoManager=function(){x.$informUndoManager.cancel(),x.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},E.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},E.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},E.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},E.prototype.setUseSoftTabs=function(C){this.setOption("useSoftTabs",C)},E.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},E.prototype.setTabSize=function(C){this.setOption("tabSize",C)},E.prototype.getTabSize=function(){return this.$tabSize},E.prototype.isTabStop=function(C){return this.$useSoftTabs&&C.column%this.$tabSize===0},E.prototype.setNavigateWithinSoftTabs=function(C){this.setOption("navigateWithinSoftTabs",C)},E.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},E.prototype.setOverwrite=function(C){this.setOption("overwrite",C)},E.prototype.getOverwrite=function(){return this.$overwrite},E.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},E.prototype.addGutterDecoration=function(C,x){this.$decorations[C]||(this.$decorations[C]=""),this.$decorations[C]+=" "+x,this._signal("changeBreakpoint",{})},E.prototype.removeGutterDecoration=function(C,x){this.$decorations[C]=(this.$decorations[C]||"").replace(" "+x,""),this._signal("changeBreakpoint",{})},E.prototype.getBreakpoints=function(){return this.$breakpoints},E.prototype.setBreakpoints=function(C){this.$breakpoints=[];for(var x=0;x<C.length;x++)this.$breakpoints[C[x]]="ace_breakpoint";this._signal("changeBreakpoint",{})},E.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},E.prototype.setBreakpoint=function(C,x){x===void 0&&(x="ace_breakpoint"),x?this.$breakpoints[C]=x:delete this.$breakpoints[C],this._signal("changeBreakpoint",{})},E.prototype.clearBreakpoint=function(C){delete this.$breakpoints[C],this._signal("changeBreakpoint",{})},E.prototype.addMarker=function(C,x,w,A){var R=this.$markerId++,O={range:C,type:w||"line",renderer:typeof w=="function"?w:null,clazz:x,inFront:!!A,id:R};return A?(this.$frontMarkers[R]=O,this._signal("changeFrontMarker")):(this.$backMarkers[R]=O,this._signal("changeBackMarker")),R},E.prototype.addDynamicMarker=function(C,x){if(C.update){var w=this.$markerId++;return C.id=w,C.inFront=!!x,x?(this.$frontMarkers[w]=C,this._signal("changeFrontMarker")):(this.$backMarkers[w]=C,this._signal("changeBackMarker")),C}},E.prototype.removeMarker=function(C){var x=this.$frontMarkers[C]||this.$backMarkers[C];if(x){var w=x.inFront?this.$frontMarkers:this.$backMarkers;delete w[C],this._signal(x.inFront?"changeFrontMarker":"changeBackMarker")}},E.prototype.getMarkers=function(C){return C?this.$frontMarkers:this.$backMarkers},E.prototype.highlight=function(C){if(!this.$searchHighlight){var x=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(x)}this.$searchHighlight.setRegexp(C)},E.prototype.highlightLines=function(C,x,w,A){typeof x!="number"&&(w=x,x=C),w||(w="ace_step");var R=new c(C,0,x,1/0);return R.id=this.addMarker(R,w,"fullLine",A),R},E.prototype.setAnnotations=function(C){this.$annotations=C,this._signal("changeAnnotation",{})},E.prototype.getAnnotations=function(){return this.$annotations||[]},E.prototype.clearAnnotations=function(){this.setAnnotations([])},E.prototype.$detectNewLine=function(C){var x=C.match(/^.*?(\r?\n)/m);x?this.$autoNewLine=x[1]:this.$autoNewLine=`
|
795
|
-
`},E.prototype.getWordRange=function(C,x){var w=this.getLine(C),A=!1;if(x>0&&(A=!!w.charAt(x-1).match(this.tokenRe)),A||(A=!!w.charAt(x).match(this.tokenRe)),A)var R=this.tokenRe;else if(/^\s+$/.test(w.slice(x-1,x+1)))var R=/\s/;else var R=this.nonTokenRe;var O=x;if(O>0){do O--;while(O>=0&&w.charAt(O).match(R));O++}for(var I=x;I<w.length&&w.charAt(I).match(R);)I++;return new c(C,O,C,I)},E.prototype.getAWordRange=function(C,x){for(var w=this.getWordRange(C,x),A=this.getLine(w.end.row);A.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},E.prototype.setNewLineMode=function(C){this.doc.setNewLineMode(C)},E.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},E.prototype.setUseWorker=function(C){this.setOption("useWorker",C)},E.prototype.getUseWorker=function(){return this.$useWorker},E.prototype.onReloadTokenizer=function(C){var x=C.data;this.bgTokenizer.start(x.first),this._signal("tokenizerUpdate",C)},E.prototype.setMode=function(C,x){if(C&&typeof C=="object"){if(C.getTokenizer)return this.$onChangeMode(C);var w=C,A=w.path}else A=C||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new s),this.$modes[A]&&!w){this.$onChangeMode(this.$modes[A]),x&&x();return}this.$modeId=A,l.loadModule(["mode",A],(function(R){if(this.$modeId!==A)return x&&x();this.$modes[A]&&!w?this.$onChangeMode(this.$modes[A]):R&&R.Mode&&(R=new R.Mode(w),w||(this.$modes[A]=R,R.$id=A),this.$onChangeMode(R)),x&&x()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},E.prototype.$onChangeMode=function(C,x){if(x||(this.$modeId=C.$id),this.$mode!==C){var w=this.$mode;this.$mode=C,this.$stopWorker(),this.$useWorker&&this.$startWorker();var A=C.getTokenizer();if(A.on!==void 0){var R=this.onReloadTokenizer.bind(this);A.on("update",R)}this.bgTokenizer.setTokenizer(A),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=C.tokenRe,this.nonTokenRe=C.nonTokenRe,x||(C.attachToSession&&C.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(C.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:C}))}},E.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},E.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(C){l.warn("Could not load worker",C),this.$worker=null}},E.prototype.getMode=function(){return this.$mode},E.prototype.setScrollTop=function(C){this.$scrollTop===C||isNaN(C)||(this.$scrollTop=C,this._signal("changeScrollTop",C))},E.prototype.getScrollTop=function(){return this.$scrollTop},E.prototype.setScrollLeft=function(C){this.$scrollLeft===C||isNaN(C)||(this.$scrollLeft=C,this._signal("changeScrollLeft",C))},E.prototype.getScrollLeft=function(){return this.$scrollLeft},E.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},E.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var C=0;return this.lineWidgets.forEach(function(x){x&&x.screenWidth>C&&(C=x.screenWidth)}),this.lineWidgetWidth=C},E.prototype.$computeWidth=function(C){if(this.$modified||C){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var x=this.doc.getAllLines(),w=this.$rowLengthCache,A=0,R=0,O=this.$foldData[R],I=O?O.start.row:1/0,N=x.length,D=0;D<N;D++){if(D>I){if(D=O.end.row+1,D>=N)break;O=this.$foldData[R++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(x[D])[0]),w[D]>A&&(A=w[D])}this.screenWidth=A}},E.prototype.getLine=function(C){return this.doc.getLine(C)},E.prototype.getLines=function(C,x){return this.doc.getLines(C,x)},E.prototype.getLength=function(){return this.doc.getLength()},E.prototype.getTextRange=function(C){return this.doc.getTextRange(C||this.selection.getRange())},E.prototype.insert=function(C,x){return this.doc.insert(C,x)},E.prototype.remove=function(C){return this.doc.remove(C)},E.prototype.removeFullLines=function(C,x){return this.doc.removeFullLines(C,x)},E.prototype.undoChanges=function(C,x){if(C.length){this.$fromUndo=!0;for(var w=C.length-1;w!=-1;w--){var A=C[w];A.action=="insert"||A.action=="remove"?this.doc.revertDelta(A):A.folds&&this.addFolds(A.folds)}!x&&this.$undoSelect&&(C.selectionBefore?this.selection.fromJSON(C.selectionBefore):this.selection.setRange(this.$getUndoSelection(C,!0))),this.$fromUndo=!1}},E.prototype.redoChanges=function(C,x){if(C.length){this.$fromUndo=!0;for(var w=0;w<C.length;w++){var A=C[w];(A.action=="insert"||A.action=="remove")&&this.doc.$safeApplyDelta(A)}!x&&this.$undoSelect&&(C.selectionAfter?this.selection.fromJSON(C.selectionAfter):this.selection.setRange(this.$getUndoSelection(C,!1))),this.$fromUndo=!1}},E.prototype.setUndoSelect=function(C){this.$undoSelect=C},E.prototype.$getUndoSelection=function(C,x){function w(N){return x?N.action!=="insert":N.action==="insert"}for(var A,R,O=0;O<C.length;O++){var I=C[O];if(I.start){if(!A){w(I)?A=c.fromPoints(I.start,I.end):A=c.fromPoints(I.start,I.start);continue}w(I)?(R=I.start,A.compare(R.row,R.column)==-1&&A.setStart(R),R=I.end,A.compare(R.row,R.column)==1&&A.setEnd(R)):(R=I.start,A.compare(R.row,R.column)==-1&&(A=c.fromPoints(I.start,I.start)))}}return A},E.prototype.replace=function(C,x){return this.doc.replace(C,x)},E.prototype.moveText=function(C,x,w){var A=this.getTextRange(C),R=this.getFoldsInRange(C),O=c.fromPoints(x,x);if(!w){this.remove(C);var I=C.start.row-C.end.row,N=I?-C.end.column:C.start.column-C.end.column;N&&(O.start.row==C.end.row&&O.start.column>C.end.column&&(O.start.column+=N),O.end.row==C.end.row&&O.end.column>C.end.column&&(O.end.column+=N)),I&&O.start.row>=C.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,A),R.length){var D=C.start,H=O.start,I=H.row-D.row,N=H.column-D.column;this.addFolds(R.map(function(B){return B=B.clone(),B.start.row==D.row&&(B.start.column+=N),B.end.row==D.row&&(B.end.column+=N),B.start.row+=I,B.end.row+=I,B}))}return O},E.prototype.indentRows=function(C,x,w){w=w.replace(/\t/g,this.getTabString());for(var A=C;A<=x;A++)this.doc.insertInLine({row:A,column:0},w)},E.prototype.outdentRows=function(C){for(var x=C.collapseRows(),w=new c(0,0,0,0),A=this.getTabSize(),R=x.start.row;R<=x.end.row;++R){var O=this.getLine(R);w.start.row=R,w.end.row=R;for(var I=0;I<A&&O.charAt(I)==" ";++I);I<A&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},E.prototype.$moveLines=function(C,x,w){if(C=this.getRowFoldStart(C),x=this.getRowFoldEnd(x),w<0){var A=this.getRowFoldStart(C+w);if(A<0)return 0;var R=A-C}else if(w>0){var A=this.getRowFoldEnd(x+w);if(A>this.doc.getLength()-1)return 0;var R=A-x}else{C=this.$clipRowToDocument(C),x=this.$clipRowToDocument(x);var R=x-C+1}var O=new c(C,0,x,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=R,D.end.row+=R,D}),N=w==0?this.doc.getLines(C,x):this.doc.removeFullLines(C,x);return this.doc.insertFullLines(C+R,N),I.length&&this.addFolds(I),R},E.prototype.moveLinesUp=function(C,x){return this.$moveLines(C,x,-1)},E.prototype.moveLinesDown=function(C,x){return this.$moveLines(C,x,1)},E.prototype.duplicateLines=function(C,x){return this.$moveLines(C,x,0)},E.prototype.$clipRowToDocument=function(C){return Math.max(0,Math.min(C,this.doc.getLength()-1))},E.prototype.$clipColumnToRow=function(C,x){return x<0?0:Math.min(this.doc.getLine(C).length,x)},E.prototype.$clipPositionToDocument=function(C,x){if(x=Math.max(0,x),C<0)C=0,x=0;else{var w=this.doc.getLength();C>=w?(C=w-1,x=this.doc.getLine(w-1).length):x=Math.min(this.doc.getLine(C).length,x)}return{row:C,column:x}},E.prototype.$clipRangeToDocument=function(C){C.start.row<0?(C.start.row=0,C.start.column=0):C.start.column=this.$clipColumnToRow(C.start.row,C.start.column);var x=this.doc.getLength()-1;return C.end.row>x?(C.end.row=x,C.end.column=this.doc.getLine(x).length):C.end.column=this.$clipColumnToRow(C.end.row,C.end.column),C},E.prototype.setUseWrapMode=function(C){if(C!=this.$useWrapMode){if(this.$useWrapMode=C,this.$modified=!0,this.$resetRowCache(0),C){var x=this.getLength();this.$wrapData=Array(x),this.$updateWrapData(0,x-1)}this._signal("changeWrapMode")}},E.prototype.getUseWrapMode=function(){return this.$useWrapMode},E.prototype.setWrapLimitRange=function(C,x){(this.$wrapLimitRange.min!==C||this.$wrapLimitRange.max!==x)&&(this.$wrapLimitRange={min:C,max:x},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},E.prototype.adjustWrapLimit=function(C,x){var w=this.$wrapLimitRange;w.max<0&&(w={min:x,max:x});var A=this.$constrainWrapLimit(C,w.min,w.max);return A!=this.$wrapLimit&&A>1?(this.$wrapLimit=A,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},E.prototype.$constrainWrapLimit=function(C,x,w){return x&&(C=Math.max(x,C)),w&&(C=Math.min(w,C)),C},E.prototype.getWrapLimit=function(){return this.$wrapLimit},E.prototype.setWrapLimit=function(C){this.setWrapLimitRange(C,C)},E.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},E.prototype.$updateInternalDataOnChange=function(C){var x=this.$useWrapMode,w=C.action,A=C.start,R=C.end,O=A.row,I=R.row,N=I-O,D=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[x?"$wrapData":"$rowLengthCache"].splice(O,N);var H=this.$foldData;D=this.getFoldsInRange(C),this.removeFolds(D);var j=this.getFoldLine(R.row),z=0;if(j){j.addRemoveChars(R.row,R.column,A.column-R.column),j.shiftRow(-N);var B=this.getFoldLine(O);B&&B!==j&&(B.merge(j),j=B),z=H.indexOf(j)+1}for(z;z<H.length;z++){var j=H[z];j.start.row>=R.row&&j.shiftRow(-N)}I=O}else{var V=Array(N);V.unshift(O,0);var q=x?this.$wrapData:this.$rowLengthCache;q.splice.apply(q,V);var H=this.$foldData,j=this.getFoldLine(O),z=0;if(j){var U=j.range.compareInside(A.row,A.column);U==0?(j=j.split(A.row,A.column),j&&(j.shiftRow(N),j.addRemoveChars(I,0,R.column-A.column))):U==-1&&(j.addRemoveChars(O,0,R.column-A.column),j.shiftRow(N)),z=H.indexOf(j)+1}for(z;z<H.length;z++){var j=H[z];j.start.row>=O&&j.shiftRow(N)}}else{N=Math.abs(C.start.column-C.end.column),w==="remove"&&(D=this.getFoldsInRange(C),this.removeFolds(D),N=-N);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,A.column,N)}return x&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,x?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},E.prototype.$updateRowLengthCache=function(C,x){this.$rowLengthCache[C]=null,this.$rowLengthCache[x]=null},E.prototype.$updateWrapData=function(C,x){var w=this.doc.getAllLines(),A=this.getTabSize(),R=this.$wrapData,O=this.$wrapLimit,I,N,D=C;for(x=Math.min(x,w.length-1);D<=x;)N=this.getFoldLine(D,N),N?(I=[],N.walk((function(H,j,z,B){var V;if(H!=null){V=this.$getDisplayTokens(H,I.length),V[0]=_;for(var q=1;q<V.length;q++)V[q]=S}else V=this.$getDisplayTokens(w[j].substring(B,z),I.length);I=I.concat(V)}).bind(this),N.end.row,w[N.end.row].length+1),R[N.start.row]=this.$computeWrapSplits(I,O,A),D=N.end.row+1):(I=this.$getDisplayTokens(w[D]),R[D]=this.$computeWrapSplits(I,O,A),D++)},E.prototype.$computeWrapSplits=function(C,x,w){if(C.length==0)return[];var A=[],R=C.length,O=0,I=0,N=this.$wrapAsCode,D=this.$indentedSoftWrap,H=x<=Math.max(2*w,8)||D===!1?0:Math.floor(x/2);function j(){var U=0;if(H===0)return U;if(D)for(var Y=0;Y<C.length;Y++){var X=C[Y];if(X==k)U+=1;else if(X==M)U+=w;else{if(X==L)continue;break}}return N&&D!==!1&&(U+=w),Math.min(U,H)}function z(U){for(var Y=U-O,X=O;X<U;X++){var Q=C[X];(Q===12||Q===2)&&(Y-=1)}A.length||(B=j(),A.indent=B),I+=Y,A.push(I),O=U}for(var B=0;R-O>x-B;){var V=O+x-B;if(C[V-1]>=k&&C[V]>=k){z(V);continue}if(C[V]==_||C[V]==S){for(V;V!=O-1&&C[V]!=_;V--);if(V>O){z(V);continue}for(V=O+x,V;V<C.length&&C[V]==S;V++);if(V==C.length)break;z(V);continue}for(var q=Math.max(V-(x-(x>>2)),O-1);V>q&&C[V]<_;)V--;if(N){for(;V>q&&C[V]<_;)V--;for(;V>q&&C[V]==b;)V--}else for(;V>q&&C[V]<k;)V--;if(V>q){z(++V);continue}V=O+x,C[V]==$&&V--,z(V-B)}return A},E.prototype.$getDisplayTokens=function(C,x){var w=[],A;x=x||0;for(var R=0;R<C.length;R++){var O=C.charCodeAt(R);if(O==9){A=this.getScreenTabSize(w.length+x),w.push(M);for(var I=1;I<A;I++)w.push(L)}else O==32?w.push(k):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&T(O)?w.push(y,$):w.push(y)}return w},E.prototype.$getStringScreenWidth=function(C,x,w){if(x==0)return[0,0];x==null&&(x=1/0),w=w||0;var A,R;for(R=0;R<C.length&&(A=C.charCodeAt(R),A==9?w+=this.getScreenTabSize(w):A>=4352&&T(A)?w+=2:w+=1,!(w>x));R++);return[w,R]},E.prototype.getRowLength=function(C){var x=1;return this.lineWidgets&&(x+=this.lineWidgets[C]&&this.lineWidgets[C].rowCount||0),!this.$useWrapMode||!this.$wrapData[C]?x:this.$wrapData[C].length+x},E.prototype.getRowLineCount=function(C){return!this.$useWrapMode||!this.$wrapData[C]?1:this.$wrapData[C].length+1},E.prototype.getRowWrapIndent=function(C){if(this.$useWrapMode){var x=this.screenToDocumentPosition(C,Number.MAX_VALUE),w=this.$wrapData[x.row];return w.length&&w[0]<x.column?w.indent:0}else return 0},E.prototype.getScreenLastRowColumn=function(C){var x=this.screenToDocumentPosition(C,Number.MAX_VALUE);return this.documentToScreenColumn(x.row,x.column)},E.prototype.getDocumentLastRowColumn=function(C,x){var w=this.documentToScreenRow(C,x);return this.getScreenLastRowColumn(w)},E.prototype.getDocumentLastRowColumnPosition=function(C,x){var w=this.documentToScreenRow(C,x);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},E.prototype.getRowSplitData=function(C){if(this.$useWrapMode)return this.$wrapData[C]},E.prototype.getScreenTabSize=function(C){return this.$tabSize-(C%this.$tabSize|0)},E.prototype.screenToDocumentRow=function(C,x){return this.screenToDocumentPosition(C,x).row},E.prototype.screenToDocumentColumn=function(C,x){return this.screenToDocumentPosition(C,x).column},E.prototype.screenToDocumentPosition=function(C,x,w){if(C<0)return{row:0,column:0};var A,R=0,O=0,I,N=0,D=0,H=this.$screenRowCache,j=this.$getRowCacheIndex(H,C),z=H.length;if(z&&j>=0)var N=H[j],R=this.$docRowCache[j],B=C>H[z-1];else var B=!z;for(var V=this.getLength()-1,q=this.getNextFoldLine(R),U=q?q.start.row:1/0;N<=C&&(D=this.getRowLength(R),!(N+D>C||R>=V));)N+=D,R++,R>U&&(R=q.end.row+1,q=this.getNextFoldLine(R,q),U=q?q.start.row:1/0),B&&(this.$docRowCache.push(R),this.$screenRowCache.push(N));if(q&&q.start.row<=R)A=this.getFoldDisplayLine(q),R=q.start.row;else{if(N+D<=C||R>V)return{row:V,column:this.getLine(V).length};A=this.getLine(R),q=null}var Y=0,X=Math.floor(C-N);if(this.$useWrapMode){var Q=this.$wrapData[R];Q&&(I=Q[X],X>0&&Q.length&&(Y=Q.indent,O=Q[X-1]||Q[Q.length-1],A=A.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+X,R,X)&&(x=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(A,x-Y)[1],this.$useWrapMode&&O>=I&&(O=I-1),q?q.idxToPosition(O):{row:R,column:O}},E.prototype.documentToScreenPosition=function(C,x){if(typeof x>"u")var w=this.$clipPositionToDocument(C.row,C.column);else w=this.$clipPositionToDocument(C,x);C=w.row,x=w.column;var A=0,R=null,O=null;O=this.getFoldAt(C,x,1),O&&(C=O.start.row,x=O.start.column);var I,N=0,D=this.$docRowCache,H=this.$getRowCacheIndex(D,C),j=D.length;if(j&&H>=0)var N=D[H],A=this.$screenRowCache[H],z=C>D[j-1];else var z=!j;for(var B=this.getNextFoldLine(N),V=B?B.start.row:1/0;N<C;){if(N>=V){if(I=B.end.row+1,I>C)break;B=this.getNextFoldLine(I,B),V=B?B.start.row:1/0}else I=N+1;A+=this.getRowLength(N),N=I,z&&(this.$docRowCache.push(N),this.$screenRowCache.push(A))}var q="";B&&N>=V?(q=this.getFoldDisplayLine(B,C,x),R=B.start.row):(q=this.getLine(C).substring(0,x),R=C);var U=0;if(this.$useWrapMode){var Y=this.$wrapData[R];if(Y){for(var X=0;q.length>=Y[X];)A++,X++;q=q.substring(Y[X-1]||0,q.length),U=X>0?Y.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(A+=this.lineWidgets[N].rowsAbove),{row:A,column:U+this.$getStringScreenWidth(q)[0]}},E.prototype.documentToScreenColumn=function(C,x){return this.documentToScreenPosition(C,x).column},E.prototype.documentToScreenRow=function(C,x){return this.documentToScreenPosition(C,x).row},E.prototype.getScreenLength=function(){var C=0,x=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,O=0,A=0,x=this.$foldData[A++],I=x?x.start.row:1/0;O<R;){var N=this.$wrapData[O];C+=N?N.length+1:1,O++,O>I&&(O=x.end.row+1,x=this.$foldData[A++],I=x?x.start.row:1/0)}else{C=this.getLength();for(var w=this.$foldData,A=0;A<w.length;A++)x=w[A],C-=x.end.row-x.start.row}return this.lineWidgets&&(C+=this.$getWidgetScreenLength()),C},E.prototype.$setFontMetrics=function(C){this.$enableVarChar&&(this.$getStringScreenWidth=function(x,w,A){if(w===0)return[0,0];w||(w=1/0),A=A||0;var R,O;for(O=0;O<x.length&&(R=x.charAt(O),R===" "?A+=this.getScreenTabSize(A):A+=C.getCharacterWidth(R),!(A>w));O++);return[A,O]})},E.prototype.getPrecedingCharacter=function(){var C=this.selection.getCursor();if(C.column===0)return C.row===0?"":this.doc.getNewLineCharacter();var x=this.getLine(C.row);return x[C.column-1]},E.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},E}();v.$uid=0,v.prototype.$modes=l.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=T,r.implement(v.prototype,p);var y=1,$=2,_=3,S=4,b=9,k=10,M=11,L=12;function T(E){return E<4352?!1:E>=4352&&E<=4447||E>=4515&&E<=4519||E>=4602&&E<=4607||E>=9001&&E<=9002||E>=11904&&E<=11929||E>=11931&&E<=12019||E>=12032&&E<=12245||E>=12272&&E<=12283||E>=12288&&E<=12350||E>=12353&&E<=12438||E>=12441&&E<=12543||E>=12549&&E<=12589||E>=12593&&E<=12686||E>=12688&&E<=12730||E>=12736&&E<=12771||E>=12784&&E<=12830||E>=12832&&E<=12871||E>=12880&&E<=13054||E>=13056&&E<=19903||E>=19968&&E<=42124||E>=42128&&E<=42182||E>=43360&&E<=43388||E>=44032&&E<=55203||E>=55216&&E<=55238||E>=55243&&E<=55291||E>=63744&&E<=64255||E>=65040&&E<=65049||E>=65072&&E<=65106||E>=65108&&E<=65126||E>=65128&&E<=65131||E>=65281&&E<=65376||E>=65504&&E<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),l.defineOptions(v.prototype,"session",{wrap:{set:function(E){if(!E||E=="off"?E=!1:E=="free"?E=!0:E=="printMargin"?E=-1:typeof E=="string"&&(E=parseInt(E,10)||!1),this.$wrap!=E)if(this.$wrap=E,!E)this.setUseWrapMode(!1);else{var C=typeof E=="number"?E:null;this.setWrapLimitRange(C,C),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(E){E=E=="auto"?this.$mode.type!="text":E!="text",E!=this.$wrapAsCode&&(this.$wrapAsCode=E,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(E){this.$useWorker=E,this.$stopWorker(),E&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(E){E=parseInt(E),E>0&&this.$tabSize!==E&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=E,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(E){this.setFoldStyle(E)},handlesSet:!0},overwrite:{set:function(E){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(E){this.doc.setNewLineMode(E)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(E){this.setMode(E)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,a){var r=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,l=function(){function o(){this.$options={}}return o.prototype.set=function(s){return d.mixin(this.$options,s),this},o.prototype.getOptions=function(){return r.copyObject(this.$options)},o.prototype.setOptions=function(s){this.$options=s},o.prototype.find=function(s){var c=this.$options,h=this.$matchIterator(s,c);if(!h)return!1;var u=null;return h.forEach(function(f,m,v,y){return u=new g(f,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&u.isEqual(c.start)?(u=null,!1):!0}),u},o.prototype.findAll=function(s){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var h=c.range,u=h?s.getLines(h.start.row,h.end.row):s.doc.getAllLines(),f=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=u.length-v,$;e:for(var _=m.offset||0;_<=y;_++){for(var S=0;S<v;S++)if(u[_+S].search(m[S])==-1)continue e;var b=u[_],k=u[_+v-1],M=b.length-b.match(m[0])[0].length,L=k.match(m[v-1])[0].length;$&&$.end.row===_&&$.end.column>M||(f.push($=new g(_,M,_+v-1,L)),v>2&&(_=_+v-2))}}else for(var T=0;T<u.length;T++)for(var E=r.getMatchOffsets(u[T],m),S=0;S<E.length;S++){var C=E[S];f.push(new g(T,C.offset,T,C.offset+C.length))}if(h){for(var x=h.start.column,w=h.end.column,T=0,S=f.length-1;T<S&&f[T].start.column<x&&f[T].start.row==0;)T++;for(var A=h.end.row-h.start.row;T<S&&f[S].end.column>w&&f[S].end.row==A;)S--;for(f=f.slice(T,S+1),T=0,S=f.length;T<S;T++)f[T].start.row+=h.start.row,f[T].end.row+=h.start.row}return f},o.prototype.replace=function(s,c){var h=this.$options,u=this.$assembleRegExp(h);if(h.$isMultiLine)return c;if(u){var f=u.exec(s);if(!f||f[0].length!=s.length)return null;if(h.regExp||(c=c.replace(/\$/g,"$$$$")),c=s.replace(u,c),h.preserveCase){c=c.split("");for(var m=Math.min(s.length,s.length);m--;){var v=s[m];v&&v.toLowerCase()!=v?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},o.prototype.$assembleRegExp=function(s,c){if(s.needle instanceof RegExp)return s.re=s.needle;var h=s.needle;if(!s.needle)return s.re=!1;s.regExp||(h=r.escapeRegExp(h));var u=s.caseSensitive?"gm":"gmi";try{new RegExp(h,"u"),s.$supportsUnicodeFlag=!0,u+="u"}catch{s.$supportsUnicodeFlag=!1}if(s.wholeWord&&(h=p(h,s)),s.$isMultiLine=!c&&/[\n\r]/.test(h),s.$isMultiLine)return s.re=this.$assembleMultilineRegExp(h,u);try{var f=new RegExp(h,u)}catch{f=!1}return s.re=f},o.prototype.$assembleMultilineRegExp=function(s,c){for(var h=s.replace(/\r\n|\r|\n/g,`$
|
796
|
-
^`).split(`
|
797
|
-
`),u=[],f=0;f<h.length;f++)try{u.push(new RegExp(h[f],c))}catch{return!1}return u},o.prototype.$matchIterator=function(s,c){var h=this.$assembleRegExp(c);if(!h)return!1;var u=c.backwards==!0,f=c.skipCurrent!=!1,m=h.unicode,v=c.range,y=c.start;y||(y=v?v[u?"end":"start"]:s.selection.getRange()),y.start&&(y=y[f!=u?"end":"start"]);var $=v?v.start.row:0,_=v?v.end.row:s.getLength()-1;if(u)var S=function(M){var L=y.row;if(!k(L,y.column,M)){for(L--;L>=$;L--)if(k(L,Number.MAX_VALUE,M))return;if(c.wrap!=!1){for(L=_,$=y.row;L>=$;L--)if(k(L,Number.MAX_VALUE,M))return}}};else var S=function(L){var T=y.row;if(!k(T,y.column,L)){for(T=T+1;T<=_;T++)if(k(T,0,L))return;if(c.wrap!=!1){for(T=$,_=y.row;T<=_;T++)if(k(T,0,L))return}}};if(c.$isMultiLine)var b=h.length,k=function(M,L,T){var E=u?M-b+1:M;if(!(E<0||E+b>s.getLength())){var C=s.getLine(E),x=C.search(h[0]);if(!(!u&&x<L||x===-1)){for(var w=1;w<b;w++)if(C=s.getLine(E+w),C.search(h[w])==-1)return;var A=C.match(h[b-1])[0].length;if(!(u&&A>L)&&T(E,x,E+b-1,A))return!0}}};else if(u)var k=function(L,T,E){var C=s.getLine(L),x=[],w,A=0;for(h.lastIndex=0;w=h.exec(C);){var R=w[0].length;if(A=w.index,!R){if(A>=C.length)break;h.lastIndex=A+=r.skipEmptyMatch(C,A,m)}if(w.index+R>T)break;x.push(w.index,R)}for(var O=x.length-1;O>=0;O-=2){var I=x[O-1],R=x[O];if(E(L,I,L,I+R))return!0}};else var k=function(L,T,E){var C=s.getLine(L),x,w;for(h.lastIndex=T;w=h.exec(C);){var A=w[0].length;if(x=w.index,E(L,x,L,x+A))return!0;if(!A&&(h.lastIndex=x+=r.skipEmptyMatch(C,x,m),x>=C.length))return!1}};return{forEach:S}},o}();function p(o,s){var c=r.supportsLookbehind();function h(v,y){y===void 0&&(y=!0);var $=c&&s.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return $.test(v)||s.regExp?c&&s.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var u=Array.from(o),f=u[0],m=u[u.length-1];return h(f)+o+h(m,!1)}i.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,a){var r=this&&this.__extends||function(){var c=function(h,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(h,u)};return function(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(h,u);function f(){this.constructor=h}h.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),l=d.KEY_MODS,p=function(){function c(h,u){this.$init(h,u,!1)}return c.prototype.$init=function(h,u,f){this.platform=u||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(h),this.$singleCommand=f},c.prototype.addCommand=function(h){this.commands[h.name]&&this.removeCommand(h),this.commands[h.name]=h,h.bindKey&&this._buildKeyHash(h)},c.prototype.removeCommand=function(h,u){var f=h&&(typeof h=="string"?h:h.name);h=this.commands[f],u||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==h)delete m[v];else if(Array.isArray(y)){var $=y.indexOf(h);$!=-1&&(y.splice($,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(h,u,f){if(typeof h=="object"&&h&&(f==null&&(f=h.position),h=h[this.platform]),!!h){if(typeof u=="function")return this.addCommand({exec:u,bindKey:h,name:u.name||h});h.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),k=l[b.hashId]+b.key;v+=(v?" ":"")+k,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var $=this.parseKeys(m),_=l[$.hashId]+$.key;this._addCommandToBinding(v+_,u,f)},this)}},c.prototype._addCommandToBinding=function(h,u,f){var m=this.commandKeyBinding,v;if(!u)delete m[h];else if(!m[h]||this.$singleCommand)m[h]=u;else{Array.isArray(m[h])?(v=m[h].indexOf(u))!=-1&&m[h].splice(v,1):m[h]=[m[h]],typeof f!="number"&&(f=o(u));var y=m[h];for(v=0;v<y.length;v++){var $=y[v],_=o($);if(_>f)break}y.splice(v,0,u)}},c.prototype.addCommands=function(h){h&&Object.keys(h).forEach(function(u){var f=h[u];if(f){if(typeof f=="string")return this.bindKey(f,u);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=u),this.addCommand(f))}},this)},c.prototype.removeCommands=function(h){Object.keys(h).forEach(function(u){this.removeCommand(h[u])},this)},c.prototype.bindKeys=function(h){Object.keys(h).forEach(function(u){this.bindKey(u,h[u])},this)},c.prototype._buildKeyHash=function(h){this.bindKey(h.bindKey,h)},c.prototype.parseKeys=function(h){var u=h.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),f=u.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(u.length){if(u.length==1&&u[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=u.length;y--;){var $=d.KEY_MODS[u[y]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+u[y]+" in "+h),!1;v|=$}return{key:f,hashId:v}},c.prototype.findKeyCommand=function(h,u){var f=l[h]+u;return this.commandKeyBinding[f]},c.prototype.handleKeyboard=function(h,u,f,m){if(!(m<0)){var v=l[u]+f,y=this.commandKeyBinding[v];return h.$keyChain&&(h.$keyChain+=" "+v,y=this.commandKeyBinding[h.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(h.$keyChain=h.$keyChain||v,{command:"null"}):(h.$keyChain&&((!u||u==4)&&f.length==1?h.$keyChain=h.$keyChain.slice(0,-v.length-1):(u==-1||m>0)&&(h.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(h,u){return u.$keyChain||""},c}();function o(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var s=function(c){r(h,c);function h(u,f){var m=c.call(this,u,f)||this;return m.$singleCommand=!0,m}return h}(p);s.call=function(c,h,u){p.prototype.$init.call(c,h,u,!0)},p.call=function(c,h,u){p.prototype.$init.call(c,h,u,!1)},i.HashHandler=s,i.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,a){var r=this&&this.__extends||function(){var o=function(s,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(h[f]=u[f])},o(s,c)};return function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");o(s,c);function h(){this.constructor=s}s.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,l=n("../lib/event_emitter").EventEmitter,p=function(o){r(s,o);function s(c,h){var u=o.call(this,h,c)||this;return u.byName=u.commands,u.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),u}return s.prototype.exec=function(c,h,u){if(Array.isArray(c)){for(var f=c.length;f--;)if(this.exec(c[f],h,u))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!this.canExecute(c,h))return!1;var m={editor:h,command:c,args:u};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},s.prototype.canExecute=function(c,h){return typeof c=="string"&&(c=this.commands[c]),!(!c||h&&h.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(h))},s.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(h){this.macro.push([h.command,h.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},s.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(h){typeof h=="string"?this.exec(h,c):this.exec(h[0],c,h[1])},this)}finally{this.$inReplay=!1}}},s.prototype.trimMacro=function(c){return c.map(function(h){return typeof h[0]!="string"&&(h[0]=h[0].name),h[1]||(h=h[0]),h})},s}(g);d.implement(p.prototype,l),i.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,a){var r=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function l(o,s){return{win:o,mac:s}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(o){d.loadModule("ace/ext/settings_menu",function(s){s.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(o,s){typeof s=="number"&&!isNaN(s)&&o.gotoLine(s),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(s){s.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(o,s){o.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(o,s){o.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(o,s){o.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(o,s){o.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var s=o.$copyWithEmptySelection&&o.selection.isEmpty(),c=s?o.selection.getLineRange():o.selection.getRange();o._emit("cut",c),c.isEmpty()||o.session.remove(c),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,s){o.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(s){s.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(o){var s=o.selection.getRange();s.start.column=0,o.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(o){var s=o.selection.getRange();s.end.column=Number.MAX_VALUE,o.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,s){o.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,s){o.insert(r.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(o){o.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var s=o.selection.getRange();s.start.column=s.end.column=0,s.end.row++,o.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(o){for(var s=o.selection.isBackwards(),c=s?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),h=s?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),u=o.session.doc.getLine(c.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=o.session.doc.getLine(c.row),y=c.row+1;y<=h.row+1;y++){var $=r.stringTrimLeft(r.stringTrimRight(o.session.doc.getLine(y)));$.length!==0&&($=" "+$),v+=$}h.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(c.row,0,h.row+2,0),v),m>0?(o.selection.moveCursorTo(c.row,c.column),o.selection.selectTo(c.row,c.column+m)):(u=o.session.doc.getLine(c.row).length>u?u+1:u,o.selection.moveCursorTo(c.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(o){var s=o.session.doc.getLength()-1,c=o.session.doc.getLine(s).length,h=o.selection.rangeList.ranges,u=[];h.length<1&&(h=[o.selection.getRange()]);for(var f=0;f<h.length;f++)f==h.length-1&&(h[f].end.row===s&&h[f].end.column===c||u.push(new g(h[f].end.row,h[f].end.column,s,c))),f===0?h[f].start.row===0&&h[f].start.column===0||u.push(new g(0,0,h[f].start.row,h[f].start.column)):u.push(new g(h[f-1].end.row,h[f-1].end.column,h[f].start.row,h[f].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var f=0;f<u.length;f++)o.selection.addRange(u[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(o){o.selection.clearSelection(),o.navigateLineEnd(),o.insert(`
|
798
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var s=o.getCursorPosition();o.selection.moveTo(s.row-1,Number.MAX_VALUE),o.insert(`
|
799
|
-
`),s.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:l("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)i.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,a){var r=n("./lib/dom"),d=function(){function g(l){this.session=l,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(l){var p;return this.lineWidgets?p=this.lineWidgets[l]&&this.lineWidgets[l].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[l]?1+p:this.$wrapData[l].length+1+p},g.prototype.$getWidgetScreenLength=function(){var l=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(l+=p.rowCount)}),l},g.prototype.$onChangeEditor=function(l){this.attach(l.editor)},g.prototype.attach=function(l){l&&l.widgetManager&&l.widgetManager!=this&&l.widgetManager.detach(),this.editor!=l&&(this.detach(),this.editor=l,l&&(l.widgetManager=this,l.renderer.on("beforeRender",this.measureWidgets),l.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(l){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(s){s&&s.el&&s.el.parentNode&&(s._inDocument=!1,s.el.parentNode.removeChild(s.el))})}},g.prototype.updateOnFold=function(l,p){var o=p.lineWidgets;if(!(!o||!l.action)){for(var s=l.data,c=s.start.row,h=s.end.row,u=l.action=="add",f=c+1;f<h;f++)o[f]&&(o[f].hidden=u);o[h]&&(u?o[c]?o[h].hidden=u:o[c]=o[h]:(o[c]==o[h]&&(o[c]=void 0),o[h].hidden=u))}},g.prototype.updateOnChange=function(l){var p=this.session.lineWidgets;if(p){var o=l.start.row,s=l.end.row-o;if(s!==0)if(l.action=="remove"){var c=p.splice(o+1,s);!p[o]&&c[c.length-1]&&(p[o]=c.pop()),c.forEach(function(u){u&&this.removeLineWidget(u)},this),this.$updateRows()}else{var h=new Array(s);p[o]&&p[o].column!=null&&l.start.column>p[o].column&&o++,h.unshift(o,0),p.splice.apply(p,h),this.$updateRows()}}},g.prototype.$updateRows=function(){var l=this.session.lineWidgets;if(l){var p=!0;l.forEach(function(o,s){if(o)for(p=!1,o.row=s;o.$oldWidget;)o.$oldWidget.row=s,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(l){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[l.row];return p&&(l.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[l.row]=l,l},g.prototype.addLineWidget=function(l){if(this.$registerLineWidget(l),l.session=this.session,!this.editor)return l;var p=this.editor.renderer;l.html&&!l.el&&(l.el=r.createElement("div"),l.el.innerHTML=l.html),l.text&&!l.el&&(l.el=r.createElement("div"),l.el.textContent=l.text),l.el&&(r.addCssClass(l.el,"ace_lineWidgetContainer"),l.className&&r.addCssClass(l.el,l.className),l.el.style.position="absolute",l.el.style.zIndex="5",p.container.appendChild(l.el),l._inDocument=!0,l.coverGutter||(l.el.style.zIndex="3"),l.pixelHeight==null&&(l.pixelHeight=l.el.offsetHeight)),l.rowCount==null&&(l.rowCount=l.pixelHeight/p.layerConfig.lineHeight);var o=this.session.getFoldAt(l.row,0);if(l.$fold=o,o){var s=this.session.lineWidgets;l.row==o.end.row&&!s[o.start.row]?s[o.start.row]=l:l.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(l),l},g.prototype.removeLineWidget=function(l){if(l._inDocument=!1,l.session=null,l.el&&l.el.parentNode&&l.el.parentNode.removeChild(l.el),l.editor&&l.editor.destroy)try{l.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[l.row];if(p==l)this.session.lineWidgets[l.row]=l.$oldWidget,l.$oldWidget&&this.onWidgetChanged(l.$oldWidget);else for(;p;){if(p.$oldWidget==l){p.$oldWidget=l.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(l){for(var p=this.session.lineWidgets,o=p&&p[l],s=[];o;)s.push(o),o=o.$oldWidget;return s},g.prototype.onWidgetChanged=function(l){this.session._changedWidgets.push(l),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(l,p){var o=this.session._changedWidgets,s=p.layerConfig;if(!(!o||!o.length)){for(var c=1/0,h=0;h<o.length;h++){var u=o[h];if(!(!u||!u.el)&&u.session==this.session){if(!u._inDocument){if(this.session.lineWidgets[u.row]!=u)continue;u._inDocument=!0,p.container.appendChild(u.el)}u.h=u.el.offsetHeight,u.fixedWidth||(u.w=u.el.offsetWidth,u.screenWidth=Math.ceil(u.w/s.characterWidth));var f=u.h/s.lineHeight;u.coverLine&&(f-=this.session.getRowLineCount(u.row),f<0&&(f=0)),u.rowCount!=f&&(u.rowCount=f,u.row<c&&(c=u.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(l,p){var o=p.layerConfig,s=this.session.lineWidgets;if(s){for(var c=Math.min(this.firstRow,o.firstRow),h=Math.max(this.lastRow,o.lastRow,s.length);c>0&&!s[c];)c--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var u=c;u<=h;u++){var f=s[u];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var m=p.$cursorLayer.getPixelPosition({row:u,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var v=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(v-=p.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,a){var r=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===r.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=r.enter)return;o.preventDefault();var s=this.editor.getCursorPosition().row;this.editor.isRowVisible(s)||this.editor.scrollToLine(s,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),h=this.$findNearestFoldWidget(c),u=this.$findNearestAnnotation(c);if(!(h===null&&u===null)){if(h===null&&u!==null){this.activeRowIndex=u,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(h!==null&&u===null){this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(u-c)<Math.abs(h-c)){this.activeRowIndex=u,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new l(o,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===r.tab){o.preventDefault();return}if(o.keyCode===r.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===r.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===r.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===r.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===r.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===r.enter||o.keyCode===r.space){switch(o.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var s=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==s&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(s),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],h=c.getBoundingClientRect(),u=this.annotationTooltip.getElement().style;u.left=h.right+"px",u.top=h.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),c=this.$getFoldWidget(o).style.display!=="none";return s&&c},p.prototype.$isAnnotationVisible=function(o){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),c=this.$getAnnotation(o).style.display!=="none";return s&&c},p.prototype.$getFoldWidget=function(o){var s=this.lines.get(o),c=s.element;return c.childNodes[1]},p.prototype.$getAnnotation=function(o){var s=this.lines.get(o),c=s.element;return c.childNodes[2]},p.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var s=0;o-s>0||o+s<this.lines.getLength()-1;){if(s++,o-s>=0&&this.$isFoldWidgetVisible(o-s))return o-s;if(o+s<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+s))return o+s}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var s=0;o-s>0||o+s<this.lines.getLength()-1;){if(s++,o-s>=0&&this.$isAnnotationVisible(o-s))return o-s;if(o+s<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+s))return o+s}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var s=this.$getFoldWidget(o);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},p.prototype.$focusAnnotation=function(o){if(o!=null){var s=this.$getAnnotation(o);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},p.prototype.$blurFoldWidget=function(o){var s=this.$getFoldWidget(o);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},p.prototype.$blurAnnotation=function(o){var s=this.$getAnnotation(o);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var s=this.$findNearestAnnotation(this.activeRowIndex);if(s==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldWidget(this.activeRowIndex);if(c==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(o){var s=this.lines.get(o);return s?s.row:null},p.prototype.$rowToRowIndex=function(o){for(var s=0;s<this.lines.getLength();s++){var c=this.lines.get(s);if(c.row==o)return s}return null},p}();i.GutterKeyboardHandler=g;var l=function(){function p(o,s){this.gutterKeyboardHandler=s,this.domEvent=o}return p.prototype.getKey=function(){return r.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();i.GutterKeyboardEvent=l}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,i,a){var r=this&&this.__values||function(x){var w=typeof Symbol=="function"&&Symbol.iterator,A=w&&x[w],R=0;if(A)return A.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&R>=x.length&&(x=void 0),{value:x&&x[R++],done:!x}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,s=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,h=n("./keyboard/keybinding").KeyBinding,u=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,$=n("./commands/default_commands").commands,_=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,k=n("./keyboard/gutter_handler").GutterKeyboardHandler,M=n("./config").nls,L=n("./clipboard"),T=n("./lib/keys"),E=function(){function x(w,A,R){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++x.$uid,this.commands=new y(p.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new c(this)),this.keyBinding=new h(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(A||R&&R.session||new u("")),_.resetOptions(this),R&&this.setOptions(R),_._signal("editor",this)}return x.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=l.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},x.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},x.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var A=this.curOp.command,R=A&&A.scrollIntoView;if(R){switch(R){case"center-animate":R="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},x.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var A=this.prevOp,R=this.$mergeableCommands,O=A.command&&w.command.name==A.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(A.args)),this.mergeNextCommand=!0}else O=O&&R.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:R.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},x.prototype.setKeyboardHandler=function(w,A){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var R=this;_.loadModule(["keybinding",w],function(O){R.$keybindingId==w&&R.keyBinding.setKeyboardHandler(O&&O.handler),A&&A()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),A&&A()},x.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},x.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var A=this.session;if(A){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:A}),this.curOp=null,A&&A._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},x.prototype.getSession=function(){return this.session},x.prototype.setValue=function(w,A){return this.session.doc.setValue(w),A?A==1?this.navigateFileEnd():A==-1&&this.navigateFileStart():this.selectAll(),w},x.prototype.getValue=function(){return this.session.getValue()},x.prototype.getSelection=function(){return this.selection},x.prototype.resize=function(w){this.renderer.onResize(w)},x.prototype.setTheme=function(w,A){this.renderer.setTheme(w,A)},x.prototype.getTheme=function(){return this.renderer.getTheme()},x.prototype.setStyle=function(w){this.renderer.setStyle(w)},x.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},x.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},x.prototype.setFontSize=function(w){this.setOption("fontSize",w)},x.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var A=w.session;if(!(!A||A.destroyed)){A.$bracketHighlight&&(A.$bracketHighlight.markerIds.forEach(function(B){A.removeMarker(B)}),A.$bracketHighlight=null);var R=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=A.getMatchingBracketRanges(R,I);if(!N){var D=new S(A,R.row,R.column),H=D.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var j=A.getMatchingTags(R);j&&(N=[j.openTagName.isEmpty()?j.openTag:j.openTagName,j.closeTagName.isEmpty()?j.closeTag:j.closeTagName])}}if(!N&&A.$mode.getMatching&&(N=A.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var z="ace_bracket";Array.isArray(N)?N.length==1&&(z="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),A.$bracketHighlight={ranges:N,markerIds:N.map(function(B){return A.addMarker(B,z,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},x.prototype.focus=function(){this.textInput.focus()},x.prototype.isFocused=function(){return this.textInput.isFocused()},x.prototype.blur=function(){this.textInput.blur()},x.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},x.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},x.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},x.prototype.onDocumentChange=function(w){var A=this.session.$useWrapMode,R=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,R,A),this._signal("change",w),this.$cursorChange()},x.prototype.onTokenizerUpdate=function(w){var A=w.data;this.renderer.updateLines(A.first,A.last)},x.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},x.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},x.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},x.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),A;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(A=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(A=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(A=!1)),w.$highlightLineMarker&&!A)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&A){var R=new m(A.row,A.column,A.row,1/0);R.id=w.addMarker(R,"ace_active-line","screenLine"),w.$highlightLineMarker=R}else A&&(w.$highlightLineMarker.start.row=A.row,w.$highlightLineMarker.end.row=A.row,w.$highlightLineMarker.start.column=A.column,w._signal("changeBackMarker"))},x.prototype.onSelectionChange=function(w){var A=this.session;if(A.$selectionMarker&&A.removeMarker(A.$selectionMarker),A.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),O=this.getSelectionStyle();A.$selectionMarker=A.addMarker(R,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},x.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,A=this.getSelectionRange();if(!(A.isEmpty()||A.isMultiLine())){var R=A.start.column,O=A.end.column,I=w.getLine(A.start.row),N=I.substring(R,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),H=I.substring(R-1,O+1);if(D.test(H))return D}}},x.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},x.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},x.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},x.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},x.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},x.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},x.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},x.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},x.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},x.prototype.getCopyText=function(){var w=this.getSelectedText(),A=this.session.doc.getNewLineCharacter(),R=!1;if(!w&&this.$copyWithEmptySelection){R=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var N=O[I];I&&O[I-1].start.row==N.start.row||(w+=this.session.getLine(N.start.row)+A)}}var D={text:w};return this._signal("copy",D),L.lineMode=R?D.text:!1,D.text},x.prototype.onCopy=function(){this.commands.exec("copy",this)},x.prototype.onCut=function(){this.commands.exec("cut",this)},x.prototype.onPaste=function(w,A){var R={text:w,event:A};this.commands.exec("paste",this,R)},x.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var A=w.text,R=A===L.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)R?O.insert({row:this.selection.lead.row,column:0},A):this.insert(A);else if(R)this.selection.rangeList.ranges.forEach(function(z){O.insert({row:z.start.row,column:0},A)});else{var I=A.split(/\r\n|\r|\n/),N=this.selection.rangeList.ranges,D=I.length==2&&(!I[0]||!I[1]);if(I.length!=N.length||D)return this.commands.exec("insertstring",this,A);for(var H=N.length;H--;){var j=N[H];j.isEmpty()||O.remove(j),O.insert(j.start,I[H])}}},x.prototype.execCommand=function(w,A){return this.commands.exec(w,this,A)},x.prototype.insert=function(w,A){var R=this.session,O=R.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!A){var N=O.transformAction(R.getState(I.row),"insertion",this,R,w);N&&(w!==N.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=N.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
|
800
|
-
`)==-1){var D=m.fromPoints(I,I);D.end.column+=w.length,this.session.remove(D)}}else{var D=this.getSelectionRange();I=this.session.remove(D),this.clearSelection()}if(w==`
|
801
|
-
`||w==`\r
|
802
|
-
`){var B=R.getLine(I.row);if(I.column>B.search(/\S|$/)){var H=B.substr(I.column).search(/\S|$/);R.doc.removeInLine(I.row,I.column,I.column+H)}}this.clearSelection();var j=I.column,z=R.getState(I.row),B=R.getLine(I.row),V=O.checkOutdent(z,B,w);if(R.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+N.selection[0],I.row,j+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine(w)){var q=O.getNextLineIndent(z,B.slice(0,I.column),R.getTabString());R.insert({row:I.row+1,column:0},q)}V&&O.autoOutdent(z,R,I.row)}},x.prototype.autoIndent=function(){for(var w=this.session,A=w.getMode(),R=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",D=w.getTabString(),H=0;H<R.length;H++)for(var j=R[H].start.row,z=R[H].end.row,B=j;B<=z;B++){B>0&&(O=w.getState(B-1),I=w.getLine(B-1),N=A.getNextLineIndent(O,I,D));var V=w.getLine(B),q=A.$getIndent(V);if(N!==q){if(q.length>0){var U=new m(B,0,B,q.length);w.remove(U)}N.length>0&&w.insert({row:B,column:0},N)}A.autoOutdent(O,w,B)}},x.prototype.onTextInput=function(w,A){if(!A)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,w,A);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},x.prototype.applyComposition=function(w,A){if(A.extendLeft||A.extendRight){var R=this.selection.getRange();R.start.column-=A.extendLeft,R.end.column+=A.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!w&&!R.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),A.restoreStart||A.restoreEnd){var R=this.selection.getRange();R.start.column-=A.restoreStart,R.end.column-=A.restoreEnd,this.selection.setRange(R)}},x.prototype.onCommandKey=function(w,A,R){return this.keyBinding.onCommandKey(w,A,R)},x.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},x.prototype.getOverwrite=function(){return this.session.getOverwrite()},x.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},x.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},x.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},x.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},x.prototype.getDragDelay=function(){return this.getOption("dragDelay")},x.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},x.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},x.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},x.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},x.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},x.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},x.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},x.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},x.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},x.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},x.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},x.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},x.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},x.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},x.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},x.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},x.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},x.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},x.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},x.prototype.getReadOnly=function(){return this.getOption("readOnly")},x.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},x.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},x.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},x.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},x.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},x.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},x.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var A=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,O=R.getState(A.start.row),I=R.getMode().transformAction(O,"deletion",this,R,A);if(A.end.column===0){var N=R.getTextRange(A);if(N[N.length-1]==`
|
803
|
-
`){var D=R.getLine(A.end.row);/^\s+$/.test(D)&&(A.end.column=D.length)}}I&&(A=I)}this.session.remove(A),this.clearSelection()},x.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},x.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
|
804
|
-
`),this.moveCursorToPosition(w)},x.prototype.setGhostText=function(w,A){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,A)},x.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},x.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),A=w.column;if(A!==0){var R=this.session.getLine(w.row),O,I;A<R.length?(O=R.charAt(A)+R.charAt(A-1),I=new m(w.row,A-1,w.row,A+1)):(O=R.charAt(A-1)+R.charAt(A-2),I=new m(w.row,A-2,w.row,A)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},x.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),R=this.session.getTextRange(A);this.session.replace(A,R.toLowerCase()),this.selection.setSelectionRange(w)},x.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),R=this.session.getTextRange(A);this.session.replace(A,R.toUpperCase()),this.selection.setSelectionRange(w)},x.prototype.indent=function(){var w=this.session,A=this.getSelectionRange();if(A.start.row<A.end.row){var R=this.$getSelectedRows();w.indentRows(R.first,R.last," ");return}else if(A.start.column<A.end.column){var O=w.getTextRange(A);if(!/^\s+$/.test(O)){var R=this.$getSelectedRows();w.indentRows(R.first,R.last," ");return}}var I=w.getLine(A.start.row),N=A.start,D=w.getTabSize(),H=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var j=D-H%D,z=l.stringRepeat(" ",j);else{for(var j=H%D;I[A.start.column-1]==" "&&j;)A.start.column--,j--;this.selection.setSelectionRange(A),z=" "}return this.insert(z)},x.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},x.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},x.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),A=this.session,R=[],O=w.first;O<=w.last;O++)R.push(A.getLine(O));R.sort(function(D,H){return D.toLowerCase()<H.toLowerCase()?-1:D.toLowerCase()>H.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=A.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,A.replace(I,R[O-w.first])}},x.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),A=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,A.first,A.last)},x.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),A=this.session.getState(w.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment(A,this.session,R,w)},x.prototype.getNumberAt=function(w,A){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var O=this.session.getLine(w);R.lastIndex<A;){var I=R.exec(O);if(I.index<=A&&I.index+I[0].length>=A){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},x.prototype.modifyNumber=function(w){var A=this.selection.getCursor().row,R=this.selection.getCursor().column,O=new m(A,R-1,A,R),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(A,R);if(N){var D=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,H=N.start+N.value.length-D,j=parseFloat(N.value);j*=Math.pow(10,H),D!==N.end&&R<D?w*=Math.pow(10,N.end-R-1):w*=Math.pow(10,N.end-R),j+=w,j/=Math.pow(10,H);var z=j.toFixed(H),B=new m(A,N.start,A,N.end);this.session.replace(B,z),this.moveCursorTo(A,Math.max(N.start+1,R+z.length-N.value.length))}}else this.toggleWord()},x.prototype.toggleWord=function(){var w=this.selection.getCursor().row,A=this.selection.getCursor().column;this.selection.selectWord();var R=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=R.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),N=A-O-1;N<0&&(N=0);var D=0,H=0,j=this;R.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ue,we){H=D+ue.length,N>=D&&N<=H&&(R=ue,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,H+O)),D=H});for(var z=this.$toggleWordPairs,B,V=0;V<z.length;V++)for(var q=z[V],U=0;U<=1;U++){var Y=+!U,X=R.match(new RegExp("^\\s?_?("+l.escapeRegExp(q[U])+")\\s?$","i"));if(X){var Q=R.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(X[1])+")($|\\s)","g"));Q&&(B=R.replace(new RegExp(l.escapeRegExp(q[U]),"i"),function(ue){var we=q[Y];return ue.toUpperCase()==ue?we=we.toUpperCase():ue.charAt(0).toUpperCase()==ue.charAt(0)&&(we=we.substr(0,0)+q[Y].charAt(0).toUpperCase()+we.substr(1)),we}),this.insert(B),B="")}}},x.prototype.findLinkAt=function(w,A){var R,O,I=this.session.getLine(w),N=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=A;D<0&&(D=0);var H=0,j=0,z;try{for(var B=r(N),V=B.next();!V.done;V=B.next()){var q=V.value;if(j=H+q.length,D>=H&&D<=j&&q.match(/((?:https?|ftp):\/\/[\S]+)/)){z=q.replace(/[\s:.,'";}\]]+$/,"");break}H=j}}catch(U){R={error:U}}finally{try{V&&!V.done&&(O=B.return)&&O.call(B)}finally{if(R)throw R.error}}return z},x.prototype.openLink=function(){var w=this.selection.getCursor(),A=this.findLinkAt(w.row,w.column);return A&&window.open(A,"_blank"),A!=null},x.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},x.prototype.duplicateSelection=function(){var w=this.selection,A=this.session,R=w.getRange(),O=w.isBackwards();if(R.isEmpty()){var I=R.start.row;A.duplicateLines(I,I)}else{var N=O?R.start:R.end,D=A.insert(N,A.getTextRange(R));R.start=N,R.end=D,w.setSelectionRange(R,O)}},x.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},x.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},x.prototype.moveText=function(w,A,R){return this.session.moveText(w,A,R)},x.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},x.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},x.prototype.$moveLines=function(w,A){var R,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var N=I.toOrientedRange();R=this.$getSelectedRows(N),O=this.session.$moveLines(R.first,R.last,A?0:w),A&&w==-1&&(O=0),N.moveBy(O,0),I.fromOrientedRange(N)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,j=0,z=D.length,B=0;B<z;B++){var V=B;D[B].moveBy(H,0),R=this.$getSelectedRows(D[B]);for(var q=R.first,U=R.last;++B<z;){j&&D[B].moveBy(j,0);var Y=this.$getSelectedRows(D[B]);if(A&&Y.first!=U)break;if(!A&&Y.first>U+1)break;U=Y.last}for(B--,H=this.session.$moveLines(q,U,A?0:w),A&&w==-1&&(V=B+1);V<=B;)D[V].moveBy(H,0),V++;A||(H=0),j+=H}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},x.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},x.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},x.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},x.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},x.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},x.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},x.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},x.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},x.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},x.prototype.$moveByPage=function(w,A){var R=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);A===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):A===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=R.scrollTop;R.scrollBy(0,I*O.lineHeight),A!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(N)},x.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},x.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},x.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},x.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},x.prototype.scrollPageDown=function(){this.$moveByPage(1)},x.prototype.scrollPageUp=function(){this.$moveByPage(-1)},x.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},x.prototype.scrollToLine=function(w,A,R,O){this.renderer.scrollToLine(w,A,R,O)},x.prototype.centerSelection=function(){var w=this.getSelectionRange(),A={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(A,.5)},x.prototype.getCursorPosition=function(){return this.selection.getCursor()},x.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},x.prototype.getSelectionRange=function(){return this.selection.getRange()},x.prototype.selectAll=function(){this.selection.selectAll()},x.prototype.clearSelection=function(){this.selection.clearSelection()},x.prototype.moveCursorTo=function(w,A){this.selection.moveCursorTo(w,A)},x.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},x.prototype.jumpToMatching=function(w,A){var R=this.getCursorPosition(),O=new S(this.session,R.row,R.column),I=O.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var H,j=!1,z={},B=R.column-D.start,V,q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;B<D.value.length&&!j;B++)if(q[D.value[B]])switch(V=q[D.value[B]]+"."+D.type.replace("rparen","lparen"),isNaN(z[V])&&(z[V]=0),D.value[B]){case"(":case"[":case"{":z[V]++;break;case")":case"]":case"}":z[V]--,z[V]===-1&&(H="bracket",j=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(z[D.value])&&(z[D.value]=0),I.value==="<"&&N>1?z[D.value]++:I.value==="</"&&z[D.value]--,z[D.value]===-1&&(H="tag",j=!0));j||(I=D,N++,D=O.stepForward(),B=0)}while(D&&!j);if(H){var U,Y;if(H==="bracket")U=this.session.getBracketRange(R),U||(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+B-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+B-1),Y=U.start,(A||Y.row===R.row&&Math.abs(Y.column-R.column)<2)&&(U=this.session.getBracketRange(Y)));else if(H==="tag"){if(!D||D.type.indexOf("tag-name")===-1)return;if(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),U.compare(R.row,R.column)===0){var X=this.session.getMatchingTags(R);X&&(X.openTag.contains(R.row,R.column)?(U=X.closeTag,Y=U.start):(U=X.openTag,X.closeTag.start.row===R.row&&X.closeTag.start.column===R.column?Y=U.end:Y=U.start))}Y=Y||U.start}Y=U&&U.cursor||Y,Y&&(w?U&&A?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Y.row,Y.column):this.selection.moveTo(Y.row,Y.column))}}},x.prototype.gotoLine=function(w,A,R){this.selection.clearSelection(),this.session.unfold({row:w-1,column:A||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,A||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,R)},x.prototype.navigateTo=function(w,A){this.selection.moveTo(w,A)},x.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},x.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},x.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var A=this.getSelectionRange().start;this.moveCursorToPosition(A)}this.clearSelection()},x.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var A=this.getSelectionRange().end;this.moveCursorToPosition(A)}this.clearSelection()},x.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},x.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},x.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},x.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},x.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},x.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},x.prototype.replace=function(w,A){A&&this.$search.set(A);var R=this.$search.find(this.session),O=0;return R&&(this.$tryReplace(R,w)&&(O=1),this.selection.setSelectionRange(R),this.renderer.scrollSelectionIntoView(R.start,R.end)),O},x.prototype.replaceAll=function(w,A){A&&this.$search.set(A);var R=this.$search.findAll(this.session),O=0;if(!R.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var N=R.length-1;N>=0;--N)this.$tryReplace(R[N],w)&&O++;return this.selection.setSelectionRange(I),O},x.prototype.$tryReplace=function(w,A){var R=this.session.getTextRange(w);return A=this.$search.replace(R,A),A!==null?(w.end=this.session.replace(w,A),w):null},x.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},x.prototype.find=function(w,A,R){A||(A={}),typeof w=="string"||w instanceof RegExp?A.needle=w:typeof w=="object"&&d.mixin(A,w);var O=this.selection.getRange();A.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(A),A.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(A.preventScroll)return I;if(I)return this.revealRange(I,R),I;A.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},x.prototype.findNext=function(w,A){this.find({skipCurrent:!0,backwards:!1},w,A)},x.prototype.findPrevious=function(w,A){this.find(w,{skipCurrent:!0,backwards:!0},A)},x.prototype.revealRange=function(w,A){this.session.unfold(w),this.selection.setSelectionRange(w);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),A!==!1&&this.renderer.animateScrolling(R)},x.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},x.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},x.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},x.prototype.setAutoScrollEditorIntoView=function(w){if(w){var A,R=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var N=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(A=R.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(O&&A&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var j=R.renderer,z=j.$cursorLayer.$pixelPos,B=j.layerConfig,V=z.top-B.offset;z.top>=0&&V+A.top<0?O=!0:z.top<B.height&&z.top+A.top+B.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=V+"px",I.style.left=z.left+"px",I.style.height=B.lineHeight+"px",I.scrollIntoView(O)),O=A=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",D))}}},x.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",A=this.renderer.$cursorLayer;A&&(A.setSmoothBlinking(/smooth/.test(w)),A.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(A.element,"ace_slim-cursors",/slim/.test(w)))},x.prototype.prompt=function(w,A,R){var O=this;_.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,A,R)})},x}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(E.prototype,v),_.defineOptions(E.prototype,"editor",{selectionStyle:{set:function(x){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:x})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(x){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(x){this.textInput.setReadOnly(x),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(x){this.textInput.setCopyWithEmptySelection(x)},initialValue:!1},cursorStyle:{set:function(x){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(x){this.setAutoScrollEditorIntoView(x)}},keyboardHandler:{set:function(x){this.setKeyboardHandler(x)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(x){this.session.setValue(x)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(x){this.setSession(x)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(x){this.renderer.$gutterLayer.setShowLineNumbers(x),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),x&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(x){this.$showLineNumbers&&x?C.attach(this):C.detach(this)}},placeholder:{set:function(x){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var A=g.createElement("div");A.className="ace_placeholder",A.textContent=this.$placeholder||"",this.renderer.placeholderNode=A,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(x){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},A=function(O){if(O.target==this.renderer.scroller&&O.keyCode===T.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},R;x?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",M("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",M("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",A.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",M("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",M("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),R||(R=new k(this)),R.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",A.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),R&&R.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(x){this.$textInputAriaLabel=x},initialValue:""},enableMobileMenu:{set:function(x){this.$enableMobileMenu=x},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var C={getText:function(x,w){return(Math.abs(x.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(x,w,A){return Math.max(w.toString().length,(A.lastRow+1).toString().length,2)*A.characterWidth},update:function(x,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(x){x.renderer.$gutterLayer.$renderer=this,x.on("changeSelection",this.update),this.update(null,x)},detach:function(x){x.renderer.$gutterLayer.$renderer==this&&(x.renderer.$gutterLayer.$renderer=null),x.off("changeSelection",this.update),this.update(null,x)}};i.Editor=E}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,a){var r=n("../lib/dom"),d=function(){function g(l,p){this.element=l,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(l){r.translate(this.element,0,-(l.firstRowScreen*l.lineHeight%this.canvasHeight)-l.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(l,p){return Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(l,p,o){var s=p.firstRowScreen*p.lineHeight,c=Math.floor(s/this.canvasHeight),h=o.documentToScreenRow(l,0)*p.lineHeight;return h-c*this.canvasHeight},g.prototype.computeLineHeight=function(l,p,o){return p.lineHeight*o.getRowLineCount(l)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(l){return this.cells[l]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(l){if(Array.isArray(l)){this.cells.push.apply(this.cells,l);for(var p=r.createFragment(this.element),o=0;o<l.length;o++)p.appendChild(l[o].element);this.element.appendChild(p)}else this.cells.push(l),this.element.appendChild(l.element)},g.prototype.unshift=function(l){if(Array.isArray(l)){this.cells.unshift.apply(this.cells,l);for(var p=r.createFragment(this.element),o=0;o<l.length;o++)p.appendChild(l[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(l),this.element.insertAdjacentElement("afterbegin",l.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(l){l&&(l.element.remove(),this.cellCache.push(l))},g.prototype.createCell=function(l,p,o,s){var c=this.cellCache.pop();if(!c){var h=r.createElement("div");s&&s(h),this.element.appendChild(h),c={element:h,text:"",row:l}}return c.row=l,c},g}();i.Lines=d}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,i,a){var r=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/lang"),l=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,s=function(){function h(u){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",u.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return h.prototype.setSession=function(u){this.session&&this.session.off("change",this.$updateAnnotations),this.session=u,u&&u.on("change",this.$updateAnnotations)},h.prototype.addGutterDecoration=function(u,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(u,f)},h.prototype.removeGutterDecoration=function(u,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(u,f)},h.prototype.setAnnotations=function(u){this.$annotations=[];for(var f=0;f<u.length;f++){var m=u[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var $=m.text,_=m.text,S=m.type;$=$?g.escapeHTML($):m.html||"",_=_||m.html||"",y.text.indexOf($)===-1&&(y.text.push($),y.type.push(S),y.displayText.push(_));var b=m.className;b?y.className=b:S=="error"?y.className=" ace_error":S=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":S=="info"&&!y.className&&(y.className=" ace_info")}},h.prototype.$updateAnnotations=function(u){if(this.$annotations.length){var f=u.start.row,m=u.end.row-f;if(m!==0)if(u.action=="remove")this.$annotations.splice(f,m+1,null);else{var v=new Array(m+1);v.unshift(f,1),this.$annotations.splice.apply(this.$annotations,v)}}},h.prototype.update=function(u){this.config=u;var f=this.session,m=u.firstRow,v=Math.min(u.lastRow+u.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=u,this.$lines.moveContainer(u),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),$=y?y.start.row:1/0,_=null,S=-1,b=m;;){if(b>$&&(b=y.end.row+1,y=f.getNextFoldLine(b,y),$=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}_=this.$lines.get(++S),_?_.row=b:(_=this.$lines.createCell(b,u,this.session,c),this.$lines.push(_)),this.$renderCell(_,u,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(u)},h.prototype.$updateGutterWidth=function(u){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var $=m?m.getWidth(f,y,u):y.toString().length*u.characterWidth,_=this.$padding||this.$computePadding();$+=_.left+_.right,$!==this.gutterWidth&&!isNaN($)&&(this.gutterWidth=$,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",$))},h.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var u=this.session.selection.getCursor();this.$cursorRow!==u.row&&(this.$cursorRow=u.row)}},h.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var u=this.session.selection.cursor.row;if(this.$cursorRow=u,!(this.$cursorCell&&this.$cursorCell.row==u)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<f.length;m++){var v=f[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},h.prototype.scrollLines=function(u){var f=this.config;if(this.config=u,this.$updateCursorRow(),this.$lines.pageChanged(f,u))return this.update(u);this.$lines.moveContainer(u);var m=Math.min(u.lastRow+u.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<u.firstRow)return this.update(u);if(m<f.firstRow)return this.update(u);if(f.firstRow<u.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,u.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();u.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(u,u.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(u,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(u)},h.prototype.$renderLines=function(u,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,u,this.session,c);this.$renderCell(S,u,$,y),v.push(S),y++}return v},h.prototype.$renderCell=function(u,f,m,v){var y=u.element,$=this.session,_=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],k=b.firstChild,M=$.$firstLineNumber,L=$.$breakpoints,T=$.$decorations,E=$.gutterRenderer||this.$renderer,C=this.$showFoldWidgets&&$.foldWidgets,x=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",A=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",R=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(E?E.getText($,v):v+M).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=x&&this.$cursorRow<=m.end.row)&&(A+="ace_gutter-active-line ",this.$cursorCell!=u&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=u)),L[v]&&(A+=L[v]),T[v]&&(A+=T[v]),this.$annotations[v]&&v!==x&&(A+=this.$annotations[v].className),C){var I=C[v];I==null&&(I=C[v]=$.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,D=I=="start"&&v==x&&v<m.end.row;if(D){N+=" ace_closed";for(var H="",j=!1,z=v+1;z<=m.end.row;z++)if(this.$annotations[z]){if(this.$annotations[z].className===" ace_error"){j=!0,H=" ace_error_fold";break}if(this.$annotations[z].className===" ace_warning"){j=!0,H=" ace_warning_fold";continue}}A+=H}else N+=" ace_open";S.className!=N&&(S.className=N),r.setStyle(S.style,"height",w),r.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var B=$.getFoldWidgetRange(v);B?S.setAttribute("aria-label",o("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[B.start.row+1,B.end.row+1])):m?S.setAttribute("aria-label",o("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",o("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),D?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",o("gutter.code-folding.closed.title","Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",o("gutter.code-folding.open.title","Fold code")))}else S&&(r.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));if(j&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",k.className=R,k.className+=H,r.setStyle(k.style,"height",w),r.setStyle(b.style,"display","block"),r.setStyle(b.style,"height",w);var V;switch(H){case" ace_error_fold":V=o("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning_fold":V=o("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break}b.setAttribute("aria-label",V),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",k.className=R,this.$useSvgGutterIcons?k.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),r.setStyle(k.style,"height",w),r.setStyle(b.style,"display","block"),r.setStyle(b.style,"height",w);var V;switch(this.$annotations[v].className){case" ace_error":V=o("gutter.annotation.aria-label.error","Read annotations row $0",[O]);break;case" ace_warning":V=o("gutter.annotation.aria-label.warning","Read annotations row $0",[O]);break;case" ace_info":V=o("gutter.annotation.aria-label.info","Read annotations row $0",[O]);break}b.setAttribute("aria-label",V),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else r.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return O!==_.data&&(_.data=O),y.className!=A&&(y.className=A),r.setStyle(u.element.style,"height",this.$lines.computeLineHeight(v,f,$)+"px"),r.setStyle(u.element.style,"top",this.$lines.computeLineTop(v,f,$)+"px"),u.text=O,b.style.display==="none"&&S.style.display==="none"?u.element.setAttribute("aria-hidden",!0):u.element.setAttribute("aria-hidden",!1),u},h.prototype.setHighlightGutterLine=function(u){this.$highlightGutterLine=u},h.prototype.setShowLineNumbers=function(u){this.$renderer=!u&&{getWidth:function(){return 0},getText:function(){return""}}},h.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},h.prototype.setShowFoldWidgets=function(u){u?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=u,this.$padding=null},h.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},h.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var u=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(u.borderLeftWidth)||0)+(parseInt(u.paddingLeft)||0)+1,this.$padding.right=(parseInt(u.borderRightWidth)||0)+(parseInt(u.paddingRight)||0),this.$padding},h.prototype.getRegion=function(u){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(u.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&u.x>m.right-f.right)return"foldWidgets"},h}();s.prototype.$fixedWidth=!1,s.prototype.$highlightGutterLine=!0,s.prototype.$renderer="",s.prototype.$showLineNumbers=!0,s.prototype.$showFoldWidgets=!0,d.implement(s.prototype,l);function c(h){var u=document.createTextNode("");h.appendChild(u);var f=r.createElement("span");h.appendChild(f);var m=r.createElement("span");h.appendChild(m);var v=r.createElement("span");return m.appendChild(v),h}i.Gutter=s}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,a){var r=n("../range").Range,d=n("../lib/dom"),g=function(){function p(o){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,s){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=s,c.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var s;for(var c in this.markers){var h=this.markers[c];if(!h.range){h.update(s,this,this.session,o);continue}var u=h.range.clipRows(o.firstRow,o.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),h.renderer){var f=this.$getTop(u.start.row,o),m=this.$padding+u.start.column*o.characterWidth;h.renderer(s,u,m,f,o)}else h.type=="fullLine"?this.drawFullLineMarker(s,u,h.clazz,o):h.type=="screenLine"?this.drawScreenLineMarker(s,u,h.clazz,o):u.isMultiLine()?h.type=="text"?this.drawTextMarker(s,u,h.clazz,o):this.drawMultiLineMarker(s,u,h.clazz,o):this.drawSingleLineMarker(s,u,h.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,s){return(o-s.firstRowScreen)*s.lineHeight},p.prototype.drawTextMarker=function(o,s,c,h,u){for(var f=this.session,m=s.start.row,v=s.end.row,y=m,$=0,_=0,S=f.getScreenLastRowColumn(y),b=new r(y,s.start.column,y,_);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?s.start.column:f.getRowWrapIndent(y),b.end.column=S,$=_,_=S,S=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:s.end.column,this.drawSingleLineMarker(o,b,c+(y==m?" ace_start":"")+" ace_br"+l(y==m||y==m+1&&s.start.column,$<_,_>S,y==v),h,y==v?0:1,u)},p.prototype.drawMultiLineMarker=function(o,s,c,h,u){var f=this.$padding,m=h.lineHeight,v=this.$getTop(s.start.row,h),y=f+s.start.column*h.characterWidth;if(u=u||"",this.session.$bidiHandler.isBidiRow(s.start.row)){var $=s.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(o,$,c+" ace_br1 ace_start",h,null,u)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(u||""));if(this.session.$bidiHandler.isBidiRow(s.end.row)){var $=s.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(o,$,c+" ace_br12",h,null,u)}else{v=this.$getTop(s.end.row,h);var _=s.end.column*h.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+_+"px;top:"+v+"px;left:"+f+"px;"+(u||""))}if(m=(s.end.row-s.start.row-1)*h.lineHeight,!(m<=0)){v=this.$getTop(s.start.row+1,h);var S=(s.start.column?1:0)|(s.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(u||""))}},p.prototype.drawSingleLineMarker=function(o,s,c,h,u,f){if(this.session.$bidiHandler.isBidiRow(s.start.row))return this.drawBidiSingleLineMarker(o,s,c,h,u,f);var m=h.lineHeight,v=(s.end.column+(u||0)-s.start.column)*h.characterWidth,y=this.$getTop(s.start.row,h),$=this.$padding+s.start.column*h.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+$+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(o,s,c,h,u,f){var m=h.lineHeight,v=this.$getTop(s.start.row,h),y=this.$padding,$=this.session.$bidiHandler.getSelections(s.start.column,s.end.column);$.forEach(function(_){this.elt(c,"height:"+m+"px;width:"+(_.width+(u||0))+"px;top:"+v+"px;left:"+(y+_.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(o,s,c,h,u){var f=this.$getTop(s.start.row,h),m=h.lineHeight;s.start.row!=s.end.row&&(m+=this.$getTop(s.end.row,h)-f),this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(u||""))},p.prototype.drawScreenLineMarker=function(o,s,c,h,u){var f=this.$getTop(s.start.row,h),m=h.lineHeight;this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(u||""))},p}();g.prototype.$padding=0;function l(p,o,s,c){return(p?1:0)|(o?2:0)|(s?4:0)|(c?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,a){var r=new Set(["text","rparen","lparen"]);i.isTextToken=function(d){return r.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,i,a){var r=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,s=n("./text_util").isTextToken,c=function(){function h(u){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",u.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)}return h.prototype.$updateEolChar=function(){var u=this.session.doc,f=u.getNewLineCharacter()==`
|
805
|
-
`&&u.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},h.prototype.setPadding=function(u){this.$padding=u,this.element.style.margin="0 "+u+"px"},h.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},h.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},h.prototype.$setFontMetrics=function(u){this.$fontMetrics=u,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},h.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},h.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},h.prototype.setSession=function(u){this.session=u,u&&this.$computeTabString()},h.prototype.setShowInvisibles=function(u){return this.showInvisibles==u?!1:(this.showInvisibles=u,typeof u=="string"?(this.showSpaces=/tab/i.test(u),this.showTabs=/space/i.test(u),this.showEOL=/eol/i.test(u)):this.showSpaces=this.showTabs=this.showEOL=u,this.$computeTabString(),!0)},h.prototype.setDisplayIndentGuides=function(u){return this.displayIndentGuides==u?!1:(this.displayIndentGuides=u,this.$computeTabString(),!0)},h.prototype.setHighlightIndentGuides=function(u){return this.$highlightIndentGuides===u?!1:(this.$highlightIndentGuides=u,u)},h.prototype.$computeTabString=function(){var u=this.session.getTabSize();this.tabSize=u;for(var f=this.$tabStrings=[0],m=1;m<u+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=g.stringRepeat(this.TAB_CHAR,m),f.push(v)}else f.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",$=this.showSpaces?" ace_invisible ace_invisible_space":"",_=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):_,v=this.dom.createElement("span");v.className=y+$,v.textContent=_,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+S,v.textContent=b,this.$tabStrings[" "]=v}},h.prototype.updateLines=function(u,f,m){if(this.config.lastRow!=u.lastRow||this.config.firstRow!=u.firstRow)return this.update(u);this.config=u;for(var v=Math.max(f,u.firstRow),y=Math.min(m,u.lastRow),$=this.element.childNodes,_=0,b=u.firstRow;b<v;b++){var k=this.session.getFoldLine(b);if(k)if(k.containsRow(v)){v=k.start.row;break}else b=k.end.row;_++}for(var S=!1,b=v,k=this.session.getNextFoldLine(b),M=k?k.start.row:1/0;b>M&&(b=k.end.row+1,k=this.session.getNextFoldLine(b,k),M=k?k.start.row:1/0),!(b>y);){var L=$[_++];if(L){this.dom.removeChildren(L),this.$renderLine(L,b,b==M?k:!1),S&&(L.style.top=this.$lines.computeLineTop(b,u,this.session)+"px");var T=u.lineHeight*this.session.getRowLength(b)+"px";L.style.height!=T&&(S=!0,L.style.height=T)}b++}if(S)for(;_<this.$lines.cells.length;){var E=this.$lines.cells[_++];E.element.style.top=this.$lines.computeLineTop(E.row,u,this.session)+"px"}},h.prototype.scrollLines=function(u){var f=this.config;if(this.config=u,this.$lines.pageChanged(f,u))return this.update(u);this.$lines.moveContainer(u);var m=u.lastRow,v=f?f.lastRow:-1;if(!f||v<u.firstRow)return this.update(u);if(m<f.firstRow)return this.update(u);if(!f||f.lastRow<u.firstRow)return this.update(u);if(u.lastRow<f.firstRow)return this.update(u);if(f.firstRow<u.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,u.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>u.lastRow)for(var y=this.session.getFoldedRowCount(u.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();u.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(u,u.firstRow,f.firstRow-1)),u.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(u,f.lastRow+1,u.lastRow)),this.$highlightIndentGuide()},h.prototype.$renderLinesFragment=function(u,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,u,this.session),b=S.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,u,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,u,this.session)+"px"),this.$renderLine(b,y,y==_?$:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},h.prototype.update=function(u){this.$lines.moveContainer(u),this.config=u;for(var f=u.firstRow,m=u.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(u,f,m))},h.prototype.$renderToken=function(u,f,m,v){for(var y=this,$=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),S,b=0;S=$.exec(v);){var k=S[1],M=S[2],L=S[3],T=S[4],E=S[5];if(!(!y.showSpaces&&M)){var C=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,C&&_.appendChild(this.dom.createTextNode(C,this.element)),k){var x=y.session.getScreenTabSize(f+S.index);_.appendChild(y.$tabStrings[x].cloneNode(!0)),f+=x-1}else if(M)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,M.length),_.appendChild(w)}else _.appendChild(this.dom.createTextNode(M,this.element));else if(L){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),_.appendChild(w)}else if(T){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:T,_.appendChild(w)}else if(E){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=E,_.appendChild(w)}}}if(_.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),s(m.type))u.appendChild(_);else{var A="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",o("inline-fold.closed.title","Unfold code"))),w.className=A,w.appendChild(_),u.appendChild(w)}return f+v.length},h.prototype.renderIndentGuide=function(u,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,$=0;$<y;$++)u.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var $=0;$<v;$++)u.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},h.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var u=this.session.doc.$lines;if(u){var f=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:f.row};var y=this.session.$bracketHighlight;if(y){for(var $=this.session.$bracketHighlight.ranges,_=0;_<$.length;_++)if(f.row!==$[_].start.row){this.$highlightIndentGuideMarker.end=$[_].start.row,f.row>$[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&u[f.row]!==""&&f.column===u[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=f.row+1;_<u.length;_++){var S=u[_],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=_,b<=m))break}}this.$renderHighlightIndentGuide()}}},h.prototype.$clearActiveIndentGuide=function(){for(var u=this.$lines.cells,f=0;f<u.length;f++){var m=u[f],v=m.element.childNodes;if(v.length>0){for(var y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},h.prototype.$setIndentGuideActive=function(u,f){var m=this.session.doc.getLine(u.row);if(m!==""){var v=u.element.childNodes;if(v){var y=v[f-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},h.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var u=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<u.length;m++){var v=u[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=u.length-1;m>=0;m--){var v=u[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},h.prototype.$createLineElement=function(u){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},h.prototype.$renderWrappedLine=function(u,f,m){var v=0,y=0,$=m[0],_=0,S=this.$createLineElement();u.appendChild(S);for(var b=0;b<f.length;b++){var k=f[b],M=k.value;if(b==0&&this.displayIndentGuides){if(v=M.length,M=this.renderIndentGuide(S,M,$),!M)continue;v-=M.length}if(v+M.length<$)_=this.$renderToken(S,_,k,M),v+=M.length;else{for(;v+M.length>=$;)_=this.$renderToken(S,_,k,M.substring(0,$-v)),M=M.substring($-v),v=$,S=this.$createLineElement(),u.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,_=0,$=m[y]||Number.MAX_VALUE;M.length!=0&&(v+=M.length,_=this.$renderToken(S,_,k,M))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,_,null,"",!0)},h.prototype.$renderSimpleLine=function(u,f){for(var m=0,v=0;v<f.length;v++){var y=f[v],$=y.value;if(!(v==0&&this.displayIndentGuides&&($=this.renderIndentGuide(u,$),!$))){if(m+$.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(u,m,y,$);m=this.$renderToken(u,m,y,$)}}},h.prototype.$renderOverflowMessage=function(u,f,m,v,y){m&&this.$renderToken(u,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var $=this.dom.createElement("span");$.className="ace_inline_button ace_keyword ace_toggle_wrap",$.textContent=y?"<hide>":"<click to see more...>",u.appendChild($)},h.prototype.$renderLine=function(u,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var y=u;if(v.length){var $=this.session.getRowSplitData(f);if($&&$.length){this.$renderWrappedLine(u,v,$);var y=u.lastChild}else{var y=u;this.$useLineGroups()&&(y=this.$createLineElement(),u.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),u.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(_)}},h.prototype.$getFoldLineTokens=function(u,f){var m=this.session,v=[];function y(_,S,b){for(var k=0,M=0;M+_[k].value.length<S;)if(M+=_[k].value.length,k++,k==_.length)return;if(M!=S){var L=_[k].value.substring(S-M);L.length>b-S&&(L=L.substring(0,b-S)),v.push({type:_[k].type,value:L}),M=S+L.length,k+=1}for(;M<b&&k<_.length;){var L=_[k].value;L.length+M>b?v.push({type:_[k].type,value:L.substring(0,b-M)}):v.push(_[k]),M+=L.length,k+=1}}var $=m.getTokens(u);return f.walk(function(_,S,b,k,M){_!=null?v.push({type:"fold",value:_}):(M&&($=m.getTokens(S)),$.length&&y($,k,b))},f.end.row,this.session.getLine(f.end.row).length),v},h.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},h}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,r.implement(c.prototype,p),i.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,a){var r=n("../lib/dom"),d=function(){function g(l){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(l){for(var p=this.cursors,o=p.length;o--;)r.setStyle(p[o].style,"opacity",l?"":"0")},g.prototype.$startCssAnimation=function(){for(var l=this.cursors,p=l.length;p--;)l[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(l){this.$padding=l},g.prototype.setSession=function(l){this.session=l},g.prototype.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},g.prototype.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},g.prototype.setSmoothBlinking=function(l){l!=this.smoothBlinking&&(this.smoothBlinking=l,r.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var l=r.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},g.prototype.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},g.prototype.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),l(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(l,p){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(l),s=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,l.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),c=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:c}},g.prototype.isCursorInView=function(l,p){return l.top>=0&&l.top<p.maxHeight},g.prototype.update=function(l){this.config=l;var p=this.session.$selectionMarkers,o=0,s=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,c=p.length;o<c;o++){var h=this.getPixelPosition(p[o].cursor,!0);if(!((h.top>l.height+l.offset||h.top<0)&&o>1)){var u=this.cursors[s++]||this.addCursor(),f=u.style;this.drawCursor?this.drawCursor(u,h,l,p[o],this.session):this.isCursorInView(h,l)?(r.setStyle(f,"display","block"),r.translate(u,h.left,h.top),r.setStyle(f,"width",Math.round(l.characterWidth)+"px"),r.setStyle(f,"height",l.lineHeight+"px")):r.setStyle(f,"display","none")}}for(;this.cursors.length>s;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=h,this.restartTimer()},g.prototype.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();d.prototype.$padding=0,d.prototype.drawCursor=null,i.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,a){var r=this&&this.__extends||function(){var u=function(f,m){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var $ in y)Object.prototype.hasOwnProperty.call(y,$)&&(v[$]=y[$])},u(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");u(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,s=function(){function u(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}return u.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},u}();d.implement(s.prototype,p);var c=function(u){r(f,u);function f(m,v){var y=u.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var h=function(u){r(f,u);function f(m,v){var y=u.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(s);i.ScrollBar=c,i.ScrollBarV=c,i.ScrollBarH=h,i.VScrollBar=c,i.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,a){var r=this&&this.__extends||function(){var h=function(u,f){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},h(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(u,f);function m(){this.constructor=u}u.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
806
|
-
position: absolute;
|
807
|
-
background: rgba(128, 128, 128, 0.6);
|
808
|
-
-moz-box-sizing: border-box;
|
809
|
-
box-sizing: border-box;
|
810
|
-
border: 1px solid #bbb;
|
811
|
-
border-radius: 2px;
|
812
|
-
z-index: 8;
|
813
|
-
}
|
814
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
815
|
-
position: absolute;
|
816
|
-
z-index: 6;
|
817
|
-
background: none;
|
818
|
-
overflow: hidden!important;
|
819
|
-
}
|
820
|
-
.ace_editor>.ace_sb-v {
|
821
|
-
z-index: 6;
|
822
|
-
right: 0;
|
823
|
-
top: 0;
|
824
|
-
width: 12px;
|
825
|
-
}
|
826
|
-
.ace_editor>.ace_sb-v div {
|
827
|
-
z-index: 8;
|
828
|
-
right: 0;
|
829
|
-
width: 100%;
|
830
|
-
}
|
831
|
-
.ace_editor>.ace_sb-h {
|
832
|
-
bottom: 0;
|
833
|
-
left: 0;
|
834
|
-
height: 12px;
|
835
|
-
}
|
836
|
-
.ace_editor>.ace_sb-h div {
|
837
|
-
bottom: 0;
|
838
|
-
height: 100%;
|
839
|
-
}
|
840
|
-
.ace_editor>.ace_sb_grabbed {
|
841
|
-
z-index: 8;
|
842
|
-
background: #000;
|
843
|
-
}`,"ace_scrollbar.css",!1);var o=function(){function h(u,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return h.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},h}();d.implement(o.prototype,p);var s=function(h){r(u,h);function u(f,m){var v=h.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return u.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,$=function(T){y=T.clientY},_=function(){clearInterval(M)},S=m.clientY,b=this.thumbTop,k=function(){if(y!==void 0){var T=v.scrollTopFromThumbTop(b+y-S);T!==v.scrollTop&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var M=setInterval(k,20);return l.preventDefault(m)}var L=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),l.preventDefault(m)}},u.prototype.getHeight=function(){return this.height},u.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},u.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},u.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},u}(o);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var c=function(h){r(u,h);function u(f,m){var v=h.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return u.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,$=function(T){y=T.clientX},_=function(){clearInterval(M)},S=m.clientX,b=this.thumbLeft,k=function(){if(y!==void 0){var T=v.scrollLeftFromThumbLeft(b+y-S);T!==v.scrollLeft&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var M=setInterval(k,20);return l.preventDefault(m)}var L=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),l.preventDefault(m)}},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},u.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},u.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},u.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},u}(o);c.prototype.setInnerWidth=c.prototype.setScrollWidth,i.ScrollBar=s,i.ScrollBarV=s,i.ScrollBarH=c,i.VScrollBar=s,i.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,a){var r=n("./lib/event"),d=function(){function g(l,p){this.onRender=l,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(s){o.pending=!1;var c=o.changes;if(c&&(r.blockIdle(100),o.changes=0,o.onRender(c)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(l){this.changes=this.changes|l,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(l){var p=this.changes;return this.changes=0,p},g}();i.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,i,a){var r=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,s=512,c=typeof ResizeObserver=="function",h=200,u=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",s),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=l.onIdle(function v(){m.checkForSizeChanges(),l.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/s};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,s);var v=this.$main.getBoundingClientRect();return v.width/s},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=d.buildDom([m(0,0),m(h,0),m(0,h),m(h,h)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function $(D,H,j){var z=D[1]*H[0]-D[0]*H[1];return[(-H[1]*j[0]+H[0]*j[1])/z,(+D[1]*j[0]-D[0]*j[1])/z]}function _(D,H){return[D[0]-H[0],D[1]-H[1]]}function S(D,H){return[D[0]+H[0],D[1]+H[1]]}function b(D,H){return[D*H[0],D*H[1]]}this.els||this.$initTransformMeasureNodes();function k(D){var H=D.getBoundingClientRect();return[H.left,H.top]}var M=k(this.els[0]),L=k(this.els[1]),T=k(this.els[2]),E=k(this.els[3]),C=$(_(E,L),_(E,T),_(S(L,T),S(E,M))),x=b(1+C[0],_(L,M)),w=b(1+C[1],_(T,M));if(v){var A=v,R=C[0]*A[0]/h+C[1]*A[1]/h+1,O=S(b(A[0],x),b(A[1],w));return S(b(1/R/h,O),M)}var I=_(m,M),N=$(_(x,b(C[0],I)),_(w,b(C[1],I)),I);return b(h,N)},f}();u.prototype.$characterSize={width:0,height:0},r.implement(u.prototype,o),i.FontMetrics=u}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,a){a.exports=`
|
844
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
845
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
846
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
847
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
848
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
849
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
850
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
851
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
852
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
853
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
854
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
855
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
856
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
857
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
858
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
859
|
-
|
860
|
-
|
861
|
-
.ace_editor {
|
862
|
-
position: relative;
|
863
|
-
overflow: hidden;
|
864
|
-
padding: 0;
|
865
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
866
|
-
direction: ltr;
|
867
|
-
text-align: left;
|
868
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
869
|
-
}
|
870
|
-
|
871
|
-
.ace_scroller {
|
872
|
-
position: absolute;
|
873
|
-
overflow: hidden;
|
874
|
-
top: 0;
|
875
|
-
bottom: 0;
|
876
|
-
background-color: inherit;
|
877
|
-
-ms-user-select: none;
|
878
|
-
-moz-user-select: none;
|
879
|
-
-webkit-user-select: none;
|
880
|
-
user-select: none;
|
881
|
-
cursor: text;
|
882
|
-
}
|
883
|
-
|
884
|
-
.ace_content {
|
885
|
-
position: absolute;
|
886
|
-
box-sizing: border-box;
|
887
|
-
min-width: 100%;
|
888
|
-
contain: style size layout;
|
889
|
-
font-variant-ligatures: no-common-ligatures;
|
890
|
-
}
|
891
|
-
|
892
|
-
.ace_keyboard-focus:focus {
|
893
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
894
|
-
outline: none;
|
895
|
-
}
|
896
|
-
|
897
|
-
.ace_dragging .ace_scroller:before{
|
898
|
-
position: absolute;
|
899
|
-
top: 0;
|
900
|
-
left: 0;
|
901
|
-
right: 0;
|
902
|
-
bottom: 0;
|
903
|
-
content: '';
|
904
|
-
background: rgba(250, 250, 250, 0.01);
|
905
|
-
z-index: 1000;
|
906
|
-
}
|
907
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
908
|
-
background: rgba(0, 0, 0, 0.01);
|
909
|
-
}
|
910
|
-
|
911
|
-
.ace_gutter {
|
912
|
-
position: absolute;
|
913
|
-
overflow : hidden;
|
914
|
-
width: auto;
|
915
|
-
top: 0;
|
916
|
-
bottom: 0;
|
917
|
-
left: 0;
|
918
|
-
cursor: default;
|
919
|
-
z-index: 4;
|
920
|
-
-ms-user-select: none;
|
921
|
-
-moz-user-select: none;
|
922
|
-
-webkit-user-select: none;
|
923
|
-
user-select: none;
|
924
|
-
contain: style size layout;
|
925
|
-
}
|
926
|
-
|
927
|
-
.ace_gutter-active-line {
|
928
|
-
position: absolute;
|
929
|
-
left: 0;
|
930
|
-
right: 0;
|
931
|
-
}
|
932
|
-
|
933
|
-
.ace_scroller.ace_scroll-left:after {
|
934
|
-
content: "";
|
935
|
-
position: absolute;
|
936
|
-
top: 0;
|
937
|
-
right: 0;
|
938
|
-
bottom: 0;
|
939
|
-
left: 0;
|
940
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
941
|
-
pointer-events: none;
|
942
|
-
}
|
943
|
-
|
944
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
945
|
-
position: absolute;
|
946
|
-
top: 0;
|
947
|
-
left: 0;
|
948
|
-
right: 0;
|
949
|
-
padding-left: 19px;
|
950
|
-
padding-right: 6px;
|
951
|
-
background-repeat: no-repeat;
|
952
|
-
}
|
953
|
-
|
954
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
955
|
-
margin-left: -14px;
|
956
|
-
float: left;
|
957
|
-
}
|
958
|
-
|
959
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
960
|
-
margin-left: -19px;
|
961
|
-
float: left;
|
962
|
-
}
|
963
|
-
|
964
|
-
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
|
965
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
966
|
-
background-repeat: no-repeat;
|
967
|
-
background-position: 2px center;
|
968
|
-
}
|
969
|
-
|
970
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
971
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
972
|
-
background-repeat: no-repeat;
|
973
|
-
background-position: 2px center;
|
974
|
-
}
|
975
|
-
|
976
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
|
977
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
978
|
-
background-repeat: no-repeat;
|
979
|
-
background-position: 2px center;
|
980
|
-
}
|
981
|
-
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
|
982
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
983
|
-
}
|
984
|
-
|
985
|
-
.ace_icon_svg.ace_error {
|
986
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
987
|
-
background-color: crimson;
|
988
|
-
}
|
989
|
-
.ace_icon_svg.ace_warning {
|
990
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
991
|
-
background-color: darkorange;
|
992
|
-
}
|
993
|
-
.ace_icon_svg.ace_info {
|
994
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
995
|
-
background-color: royalblue;
|
996
|
-
}
|
997
|
-
|
998
|
-
.ace_icon_svg.ace_error_fold {
|
999
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1000
|
-
background-color: crimson;
|
1001
|
-
}
|
1002
|
-
.ace_icon_svg.ace_warning_fold {
|
1003
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
1004
|
-
background-color: darkorange;
|
1005
|
-
}
|
1006
|
-
|
1007
|
-
.ace_scrollbar {
|
1008
|
-
contain: strict;
|
1009
|
-
position: absolute;
|
1010
|
-
right: 0;
|
1011
|
-
bottom: 0;
|
1012
|
-
z-index: 6;
|
1013
|
-
}
|
1014
|
-
|
1015
|
-
.ace_scrollbar-inner {
|
1016
|
-
position: absolute;
|
1017
|
-
cursor: text;
|
1018
|
-
left: 0;
|
1019
|
-
top: 0;
|
1020
|
-
}
|
1021
|
-
|
1022
|
-
.ace_scrollbar-v{
|
1023
|
-
overflow-x: hidden;
|
1024
|
-
overflow-y: scroll;
|
1025
|
-
top: 0;
|
1026
|
-
}
|
1027
|
-
|
1028
|
-
.ace_scrollbar-h {
|
1029
|
-
overflow-x: scroll;
|
1030
|
-
overflow-y: hidden;
|
1031
|
-
left: 0;
|
1032
|
-
}
|
1033
|
-
|
1034
|
-
.ace_print-margin {
|
1035
|
-
position: absolute;
|
1036
|
-
height: 100%;
|
1037
|
-
}
|
1038
|
-
|
1039
|
-
.ace_text-input {
|
1040
|
-
position: absolute;
|
1041
|
-
z-index: 0;
|
1042
|
-
width: 0.5em;
|
1043
|
-
height: 1em;
|
1044
|
-
opacity: 0;
|
1045
|
-
background: transparent;
|
1046
|
-
-moz-appearance: none;
|
1047
|
-
appearance: none;
|
1048
|
-
border: none;
|
1049
|
-
resize: none;
|
1050
|
-
outline: none;
|
1051
|
-
overflow: hidden;
|
1052
|
-
font: inherit;
|
1053
|
-
padding: 0 1px;
|
1054
|
-
margin: 0 -1px;
|
1055
|
-
contain: strict;
|
1056
|
-
-ms-user-select: text;
|
1057
|
-
-moz-user-select: text;
|
1058
|
-
-webkit-user-select: text;
|
1059
|
-
user-select: text;
|
1060
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
1061
|
-
white-space: pre!important;
|
1062
|
-
}
|
1063
|
-
.ace_text-input.ace_composition {
|
1064
|
-
background: transparent;
|
1065
|
-
color: inherit;
|
1066
|
-
z-index: 1000;
|
1067
|
-
opacity: 1;
|
1068
|
-
}
|
1069
|
-
.ace_composition_placeholder { color: transparent }
|
1070
|
-
.ace_composition_marker {
|
1071
|
-
border-bottom: 1px solid;
|
1072
|
-
position: absolute;
|
1073
|
-
border-radius: 0;
|
1074
|
-
margin-top: 1px;
|
1075
|
-
}
|
1076
|
-
|
1077
|
-
[ace_nocontext=true] {
|
1078
|
-
transform: none!important;
|
1079
|
-
filter: none!important;
|
1080
|
-
clip-path: none!important;
|
1081
|
-
mask : none!important;
|
1082
|
-
contain: none!important;
|
1083
|
-
perspective: none!important;
|
1084
|
-
mix-blend-mode: initial!important;
|
1085
|
-
z-index: auto;
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
.ace_layer {
|
1089
|
-
z-index: 1;
|
1090
|
-
position: absolute;
|
1091
|
-
overflow: hidden;
|
1092
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
1093
|
-
word-wrap: normal;
|
1094
|
-
white-space: pre;
|
1095
|
-
height: 100%;
|
1096
|
-
width: 100%;
|
1097
|
-
box-sizing: border-box;
|
1098
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
1099
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
1100
|
-
pointer-events: none;
|
1101
|
-
}
|
1102
|
-
|
1103
|
-
.ace_gutter-layer {
|
1104
|
-
position: relative;
|
1105
|
-
width: auto;
|
1106
|
-
text-align: right;
|
1107
|
-
pointer-events: auto;
|
1108
|
-
height: 1000000px;
|
1109
|
-
contain: style size layout;
|
1110
|
-
}
|
1111
|
-
|
1112
|
-
.ace_text-layer {
|
1113
|
-
font: inherit !important;
|
1114
|
-
position: absolute;
|
1115
|
-
height: 1000000px;
|
1116
|
-
width: 1000000px;
|
1117
|
-
contain: style size layout;
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
1121
|
-
contain: style size layout;
|
1122
|
-
position: absolute;
|
1123
|
-
top: 0;
|
1124
|
-
left: 0;
|
1125
|
-
right: 0;
|
1126
|
-
}
|
1127
|
-
|
1128
|
-
.ace_hidpi .ace_text-layer,
|
1129
|
-
.ace_hidpi .ace_gutter-layer,
|
1130
|
-
.ace_hidpi .ace_content,
|
1131
|
-
.ace_hidpi .ace_gutter {
|
1132
|
-
contain: strict;
|
1133
|
-
}
|
1134
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
1135
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
1136
|
-
contain: strict;
|
1137
|
-
}
|
1138
|
-
|
1139
|
-
.ace_cjk {
|
1140
|
-
display: inline-block;
|
1141
|
-
text-align: center;
|
1142
|
-
}
|
1143
|
-
|
1144
|
-
.ace_cursor-layer {
|
1145
|
-
z-index: 4;
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
.ace_cursor {
|
1149
|
-
z-index: 4;
|
1150
|
-
position: absolute;
|
1151
|
-
box-sizing: border-box;
|
1152
|
-
border-left: 2px solid;
|
1153
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
1154
|
-
transform: translatez(0);
|
1155
|
-
}
|
1156
|
-
|
1157
|
-
.ace_multiselect .ace_cursor {
|
1158
|
-
border-left-width: 1px;
|
1159
|
-
}
|
1160
|
-
|
1161
|
-
.ace_slim-cursors .ace_cursor {
|
1162
|
-
border-left-width: 1px;
|
1163
|
-
}
|
1164
|
-
|
1165
|
-
.ace_overwrite-cursors .ace_cursor {
|
1166
|
-
border-left-width: 0;
|
1167
|
-
border-bottom: 1px solid;
|
1168
|
-
}
|
1169
|
-
|
1170
|
-
.ace_hidden-cursors .ace_cursor {
|
1171
|
-
opacity: 0.2;
|
1172
|
-
}
|
1173
|
-
|
1174
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
1175
|
-
opacity: 0;
|
1176
|
-
}
|
1177
|
-
|
1178
|
-
.ace_smooth-blinking .ace_cursor {
|
1179
|
-
transition: opacity 0.18s;
|
1180
|
-
}
|
1181
|
-
|
1182
|
-
.ace_animate-blinking .ace_cursor {
|
1183
|
-
animation-duration: 1000ms;
|
1184
|
-
animation-timing-function: step-end;
|
1185
|
-
animation-name: blink-ace-animate;
|
1186
|
-
animation-iteration-count: infinite;
|
1187
|
-
}
|
1188
|
-
|
1189
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
1190
|
-
animation-duration: 1000ms;
|
1191
|
-
animation-timing-function: ease-in-out;
|
1192
|
-
animation-name: blink-ace-animate-smooth;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
@keyframes blink-ace-animate {
|
1196
|
-
from, to { opacity: 1; }
|
1197
|
-
60% { opacity: 0; }
|
1198
|
-
}
|
1199
|
-
|
1200
|
-
@keyframes blink-ace-animate-smooth {
|
1201
|
-
from, to { opacity: 1; }
|
1202
|
-
45% { opacity: 1; }
|
1203
|
-
60% { opacity: 0; }
|
1204
|
-
85% { opacity: 0; }
|
1205
|
-
}
|
1206
|
-
|
1207
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
1208
|
-
position: absolute;
|
1209
|
-
z-index: 3;
|
1210
|
-
}
|
1211
|
-
|
1212
|
-
.ace_marker-layer .ace_selection {
|
1213
|
-
position: absolute;
|
1214
|
-
z-index: 5;
|
1215
|
-
}
|
1216
|
-
|
1217
|
-
.ace_marker-layer .ace_bracket {
|
1218
|
-
position: absolute;
|
1219
|
-
z-index: 6;
|
1220
|
-
}
|
1221
|
-
|
1222
|
-
.ace_marker-layer .ace_error_bracket {
|
1223
|
-
position: absolute;
|
1224
|
-
border-bottom: 1px solid #DE5555;
|
1225
|
-
border-radius: 0;
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
.ace_marker-layer .ace_active-line {
|
1229
|
-
position: absolute;
|
1230
|
-
z-index: 2;
|
1231
|
-
}
|
1232
|
-
|
1233
|
-
.ace_marker-layer .ace_selected-word {
|
1234
|
-
position: absolute;
|
1235
|
-
z-index: 4;
|
1236
|
-
box-sizing: border-box;
|
1237
|
-
}
|
1238
|
-
|
1239
|
-
.ace_line .ace_fold {
|
1240
|
-
box-sizing: border-box;
|
1241
|
-
|
1242
|
-
display: inline-block;
|
1243
|
-
height: 11px;
|
1244
|
-
margin-top: -2px;
|
1245
|
-
vertical-align: middle;
|
1246
|
-
|
1247
|
-
background-image:
|
1248
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1249
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
1250
|
-
background-repeat: no-repeat, repeat-x;
|
1251
|
-
background-position: center center, top left;
|
1252
|
-
color: transparent;
|
1253
|
-
|
1254
|
-
border: 1px solid black;
|
1255
|
-
border-radius: 2px;
|
1256
|
-
|
1257
|
-
cursor: pointer;
|
1258
|
-
pointer-events: auto;
|
1259
|
-
}
|
1260
|
-
|
1261
|
-
.ace_dark .ace_fold {
|
1262
|
-
}
|
1263
|
-
|
1264
|
-
.ace_fold:hover{
|
1265
|
-
background-image:
|
1266
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1267
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
1268
|
-
}
|
1269
|
-
|
1270
|
-
.ace_tooltip {
|
1271
|
-
background-color: #f5f5f5;
|
1272
|
-
border: 1px solid gray;
|
1273
|
-
border-radius: 1px;
|
1274
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
1275
|
-
color: black;
|
1276
|
-
max-width: 100%;
|
1277
|
-
padding: 3px 4px;
|
1278
|
-
position: fixed;
|
1279
|
-
z-index: 999999;
|
1280
|
-
box-sizing: border-box;
|
1281
|
-
cursor: default;
|
1282
|
-
white-space: pre-wrap;
|
1283
|
-
word-wrap: break-word;
|
1284
|
-
line-height: normal;
|
1285
|
-
font-style: normal;
|
1286
|
-
font-weight: normal;
|
1287
|
-
letter-spacing: normal;
|
1288
|
-
pointer-events: none;
|
1289
|
-
overflow: auto;
|
1290
|
-
max-width: min(60em, 66vw);
|
1291
|
-
overscroll-behavior: contain;
|
1292
|
-
}
|
1293
|
-
.ace_tooltip pre {
|
1294
|
-
white-space: pre-wrap;
|
1295
|
-
}
|
1296
|
-
|
1297
|
-
.ace_tooltip.ace_dark {
|
1298
|
-
background-color: #636363;
|
1299
|
-
color: #fff;
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
.ace_tooltip:focus {
|
1303
|
-
outline: 1px solid #5E9ED6;
|
1304
|
-
}
|
1305
|
-
|
1306
|
-
.ace_icon {
|
1307
|
-
display: inline-block;
|
1308
|
-
width: 18px;
|
1309
|
-
vertical-align: top;
|
1310
|
-
}
|
1311
|
-
|
1312
|
-
.ace_icon_svg {
|
1313
|
-
display: inline-block;
|
1314
|
-
width: 12px;
|
1315
|
-
vertical-align: top;
|
1316
|
-
-webkit-mask-repeat: no-repeat;
|
1317
|
-
-webkit-mask-size: 12px;
|
1318
|
-
-webkit-mask-position: center;
|
1319
|
-
}
|
1320
|
-
|
1321
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
1322
|
-
padding-right: 13px;
|
1323
|
-
}
|
1324
|
-
|
1325
|
-
.ace_fold-widget {
|
1326
|
-
box-sizing: border-box;
|
1327
|
-
|
1328
|
-
margin: 0 -12px 0 1px;
|
1329
|
-
display: none;
|
1330
|
-
width: 11px;
|
1331
|
-
vertical-align: top;
|
1332
|
-
|
1333
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
1334
|
-
background-repeat: no-repeat;
|
1335
|
-
background-position: center;
|
1336
|
-
|
1337
|
-
border-radius: 3px;
|
1338
|
-
|
1339
|
-
border: 1px solid transparent;
|
1340
|
-
cursor: pointer;
|
1341
|
-
}
|
1342
|
-
|
1343
|
-
.ace_folding-enabled .ace_fold-widget {
|
1344
|
-
display: inline-block;
|
1345
|
-
}
|
1346
|
-
|
1347
|
-
.ace_fold-widget.ace_end {
|
1348
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
1349
|
-
}
|
1350
|
-
|
1351
|
-
.ace_fold-widget.ace_closed {
|
1352
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
1353
|
-
}
|
1354
|
-
|
1355
|
-
.ace_fold-widget:hover {
|
1356
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
1357
|
-
background-color: rgba(255, 255, 255, 0.2);
|
1358
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
1359
|
-
}
|
1360
|
-
|
1361
|
-
.ace_fold-widget:active {
|
1362
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
1363
|
-
background-color: rgba(0, 0, 0, 0.05);
|
1364
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
1365
|
-
}
|
1366
|
-
/**
|
1367
|
-
* Dark version for fold widgets
|
1368
|
-
*/
|
1369
|
-
.ace_dark .ace_fold-widget {
|
1370
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
1371
|
-
}
|
1372
|
-
.ace_dark .ace_fold-widget.ace_end {
|
1373
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
1374
|
-
}
|
1375
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
1376
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
1377
|
-
}
|
1378
|
-
.ace_dark .ace_fold-widget:hover {
|
1379
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1380
|
-
background-color: rgba(255, 255, 255, 0.1);
|
1381
|
-
}
|
1382
|
-
.ace_dark .ace_fold-widget:active {
|
1383
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1384
|
-
}
|
1385
|
-
|
1386
|
-
.ace_inline_button {
|
1387
|
-
border: 1px solid lightgray;
|
1388
|
-
display: inline-block;
|
1389
|
-
margin: -1px 8px;
|
1390
|
-
padding: 0 5px;
|
1391
|
-
pointer-events: auto;
|
1392
|
-
cursor: pointer;
|
1393
|
-
}
|
1394
|
-
.ace_inline_button:hover {
|
1395
|
-
border-color: gray;
|
1396
|
-
background: rgba(200,200,200,0.2);
|
1397
|
-
display: inline-block;
|
1398
|
-
pointer-events: auto;
|
1399
|
-
}
|
1400
|
-
|
1401
|
-
.ace_fold-widget.ace_invalid {
|
1402
|
-
background-color: #FFB4B4;
|
1403
|
-
border-color: #DE5555;
|
1404
|
-
}
|
1405
|
-
|
1406
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
1407
|
-
transition: opacity 0.4s ease 0.05s;
|
1408
|
-
opacity: 0;
|
1409
|
-
}
|
1410
|
-
|
1411
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
1412
|
-
transition: opacity 0.05s ease 0.05s;
|
1413
|
-
opacity:1;
|
1414
|
-
}
|
1415
|
-
|
1416
|
-
.ace_underline {
|
1417
|
-
text-decoration: underline;
|
1418
|
-
}
|
1419
|
-
|
1420
|
-
.ace_bold {
|
1421
|
-
font-weight: bold;
|
1422
|
-
}
|
1423
|
-
|
1424
|
-
.ace_nobold .ace_bold {
|
1425
|
-
font-weight: normal;
|
1426
|
-
}
|
1427
|
-
|
1428
|
-
.ace_italic {
|
1429
|
-
font-style: italic;
|
1430
|
-
}
|
1431
|
-
|
1432
|
-
|
1433
|
-
.ace_error-marker {
|
1434
|
-
background-color: rgba(255, 0, 0,0.2);
|
1435
|
-
position: absolute;
|
1436
|
-
z-index: 9;
|
1437
|
-
}
|
1438
|
-
|
1439
|
-
.ace_highlight-marker {
|
1440
|
-
background-color: rgba(255, 255, 0,0.2);
|
1441
|
-
position: absolute;
|
1442
|
-
z-index: 8;
|
1443
|
-
}
|
1444
|
-
|
1445
|
-
.ace_mobile-menu {
|
1446
|
-
position: absolute;
|
1447
|
-
line-height: 1.5;
|
1448
|
-
border-radius: 4px;
|
1449
|
-
-ms-user-select: none;
|
1450
|
-
-moz-user-select: none;
|
1451
|
-
-webkit-user-select: none;
|
1452
|
-
user-select: none;
|
1453
|
-
background: white;
|
1454
|
-
box-shadow: 1px 3px 2px grey;
|
1455
|
-
border: 1px solid #dcdcdc;
|
1456
|
-
color: black;
|
1457
|
-
}
|
1458
|
-
.ace_dark > .ace_mobile-menu {
|
1459
|
-
background: #333;
|
1460
|
-
color: #ccc;
|
1461
|
-
box-shadow: 1px 3px 2px grey;
|
1462
|
-
border: 1px solid #444;
|
1463
|
-
|
1464
|
-
}
|
1465
|
-
.ace_mobile-button {
|
1466
|
-
padding: 2px;
|
1467
|
-
cursor: pointer;
|
1468
|
-
overflow: hidden;
|
1469
|
-
}
|
1470
|
-
.ace_mobile-button:hover {
|
1471
|
-
background-color: #eee;
|
1472
|
-
opacity:1;
|
1473
|
-
}
|
1474
|
-
.ace_mobile-button:active {
|
1475
|
-
background-color: #ddd;
|
1476
|
-
}
|
1477
|
-
|
1478
|
-
.ace_placeholder {
|
1479
|
-
position: relative;
|
1480
|
-
font-family: arial;
|
1481
|
-
transform: scale(0.9);
|
1482
|
-
transform-origin: left;
|
1483
|
-
white-space: pre;
|
1484
|
-
opacity: 0.7;
|
1485
|
-
margin: 0 10px;
|
1486
|
-
z-index: 1;
|
1487
|
-
}
|
1488
|
-
|
1489
|
-
.ace_ghost_text {
|
1490
|
-
opacity: 0.5;
|
1491
|
-
font-style: italic;
|
1492
|
-
}
|
1493
|
-
|
1494
|
-
.ace_ghost_text_container > div {
|
1495
|
-
white-space: pre;
|
1496
|
-
}
|
1497
|
-
|
1498
|
-
.ghost_text_line_wrapped::after {
|
1499
|
-
content: "↩";
|
1500
|
-
position: absolute;
|
1501
|
-
}
|
1502
|
-
|
1503
|
-
.ace_lineWidgetContainer.ace_ghost_text {
|
1504
|
-
margin: 0px 4px
|
1505
|
-
}
|
1506
|
-
|
1507
|
-
.ace_screenreader-only {
|
1508
|
-
position:absolute;
|
1509
|
-
left:-10000px;
|
1510
|
-
top:auto;
|
1511
|
-
width:1px;
|
1512
|
-
height:1px;
|
1513
|
-
overflow:hidden;
|
1514
|
-
}
|
1515
|
-
|
1516
|
-
.ace_hidden_token {
|
1517
|
-
display: none;
|
1518
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,a){var r=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,l=function(){function p(o,s){this.canvas=r.createElement("canvas"),this.renderer=s,this.pixelRatio=1,this.maxHeight=s.layerConfig.maxHeight,this.lineHeight=s.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var s=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var c=(o.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var h=this.canvas.getContext("2d");function u(E,C){return E.priority<C.priority?-1:E.priority>C.priority?1:0}var f=this.renderer.session.$annotations;if(h.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(E){E.priority=m[E.type]||null}),f=f.sort(u);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var $=f[y].row,_=this.compensateFoldRows($,v),S=Math.round(($-_)*this.lineHeight*this.heightRatio),b=Math.round(($-_)*this.lineHeight*this.heightRatio),k=Math.round((($-_)*this.lineHeight+this.lineHeight)*this.heightRatio),M=k-b;if(M<this.minDecorationHeight){var L=(b+k)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),k=Math.round(L+this.halfMinDecorationHeight)}h.fillStyle=s[f[y].type]||null,h.fillRect(0,S,this.canvasWidth,k-b)}}var T=this.renderer.session.selection.getCursor();if(T){var _=this.compensateFoldRows(T.row,v),S=Math.round((T.row-_)*this.lineHeight*this.heightRatio);h.fillStyle="rgba(0, 0, 0, 0.5)",h.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,s){var c=0;if(s&&s.length>0)for(var h=0;h<s.length;h++)o>s[h].start.row&&o<s[h].end.row?c+=o-s[h].start.row:o>=s[h].end.row&&(c+=s[h].end.row-s[h].start.row);return c},p}();d.implement(l.prototype,g),i.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(n,i,a){var r=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),l=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,s=n("./layer/text").Text,c=n("./layer/cursor").Cursor,h=n("./scrollbar").HScrollBar,u=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,$=n("./lib/event_emitter").EventEmitter,_=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent"),k=n("./layer/text_util").isTextToken;d.importCssString(_,"ace_editor.css",!1);var M=function(){function L(T,E){var C=this;this.container=T||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(E),l.get("useStrictCSP")==null&&l.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var x=this.$textLayer=new s(this.content);this.canvas=x.element,this.$markerFront=new o(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function(w){C.$scrollAnimation||C.session.setScrollTop(w.data-C.scrollMargin.top)}),this.scrollBarH.on("scroll",function(w){C.$scrollAnimation||C.session.setScrollLeft(w.data-C.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(w){C.updateCharacterSize(),C.onResize(!0,C.gutterWidth,C.$size.width,C.$size.height),C._signal("changeCharacterSize",w)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),l.resetOptions(this),l._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(T,E,C){if(E===void 0&&(E=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<E&&(this.$changedLines.lastRow=E)):this.$changedLines={firstRow:T,lastRow:E},this.$changedLines.lastRow<this.layerConfig.firstRow)if(C)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(T,E,C,x){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var w=this.container;x||(x=w.clientHeight||w.scrollHeight),!x&&this.$maxLines&&this.lineHeight>1&&(!w.style.height||w.style.height=="0px")&&(w.style.height="1px",x=w.clientHeight||w.scrollHeight),C||(C=w.clientWidth||w.scrollWidth);var A=this.$updateCachedSize(T,E,C,x);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!C&&!x)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(A|this.$changes,!0):this.$loop.schedule(A|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(T,E,C,x){x-=this.$extraHeight||0;var w=0,A=this.$size,R={width:A.width,height:A.height,scrollerHeight:A.scrollerHeight,scrollerWidth:A.scrollerWidth};if(x&&(T||A.height!=x)&&(A.height=x,w|=this.CHANGE_SIZE,A.scrollerHeight=A.height,this.$horizScroll&&(A.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(A.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",w=w|this.CHANGE_SCROLL),C&&(T||A.width!=C)){w|=this.CHANGE_SIZE,A.width=C,E==null&&(E=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=E,d.setStyle(this.scrollBarH.element.style,"left",E+"px"),d.setStyle(this.scroller.style,"left",E+this.margin.left+"px"),A.scrollerWidth=Math.max(0,C-E-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var O=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",O),d.setStyle(this.scroller.style,"right",O),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(A.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(w|=this.CHANGE_FULL)}return A.$dirty=!C||!x,w&&this._signal("resize",R),w},L.prototype.onGutterResize=function(T){var E=this.$showGutter?T:0;E!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,E,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var T=this.$size.scrollerWidth-this.$padding*2,E=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(E,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},L.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},L.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=d.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var E=this.$printMarginEl.style;E.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",E.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,E=this.$composition;if(!this.$keepTextAreaAtCursor&&!E){d.translate(this.textarea,-100,0);return}var C=this.$cursorLayer.$pixelPos;if(C){E&&E.markerRange&&(C=this.$cursorLayer.getPixelPosition(E.markerRange.start,!0));var x=this.layerConfig,w=C.top,A=C.left;w-=x.offset;var R=E&&E.useTextareaForIME||b.isMobile?this.lineHeight:1;if(w<0||w>x.height-R){d.translate(this.textarea,0,0);return}var O=1,I=this.$size.height-R;if(!E)w+=this.lineHeight;else if(E.useTextareaForIME){var N=this.textarea.value;O=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else w+=this.lineHeight+2;A-=this.scrollLeft,A>this.$size.scrollerWidth-O&&(A=this.$size.scrollerWidth-O),A+=this.gutterWidth+this.margin.left,d.setStyle(T,"height",R+"px"),d.setStyle(T,"width",O+"px"),d.translate(this.textarea,Math.min(A,this.$size.scrollerWidth-O),Math.min(w,I))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,E=T.lastRow,C=this.session.documentToScreenRow(E,0)*T.lineHeight;return C-this.session.getScrollTop()>T.height-T.lineHeight?E-1:E},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(T,E,C,x){var w=this.scrollMargin;w.top=T|0,w.bottom=E|0,w.right=x|0,w.left=C|0,w.v=w.top+w.bottom,w.h=w.left+w.right,w.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-w.top),this.updateFull()},L.prototype.setMargin=function(T,E,C,x){var w=this.margin;w.top=T|0,w.bottom=E|0,w.right=x|0,w.left=C|0,w.v=w.top+w.bottom,w.h=w.left+w.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},L.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,E=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(E-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-E&&(T=this.scrollTop+E,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(T,E){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!E){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var C=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),C.firstRow!=this.layerConfig.firstRow&&C.firstRowScreen==this.layerConfig.firstRowScreen){var x=this.scrollTop+(C.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;x>0&&(this.scrollTop=x,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}C=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-C.offset);var w=C.width+2*this.$padding+"px",A=C.minHeight+"px";d.setStyle(this.content.style,"width",w),d.setStyle(this.content.style,"height",A)}if(T&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-C.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(C):this.$textLayer.scrollLines(C),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(C):this.$gutterLayer.scrollLines(C)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(C),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(C),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(C),this._signal("afterRender",T)},L.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,E=this.$maxLines*this.lineHeight,C=Math.min(E,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(C+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&C>this.$maxPixelHeight&&(C=this.$maxPixelHeight);var x=C<=2*this.lineHeight,w=!x&&T>E;if(C!=this.desiredHeight||this.$size.height!=this.desiredHeight||w!=this.$vScroll){w!=this.$vScroll&&(this.$vScroll=w,this.scrollBarV.setVisible(w));var A=this.container.clientWidth;this.container.style.height=C+"px",this.$updateCachedSize(!0,this.$gutterWidth,A,C),this.desiredHeight=C,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var T=this.session,E=this.$size,C=E.height<=2*this.lineHeight,x=this.session.getScreenLength(),w=x*this.lineHeight,A=this.$getLongestLine(),R=!C&&(this.$hScrollBarAlwaysVisible||E.scrollerWidth-A-2*this.$padding<0),O=this.$horizScroll!==R;O&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var N=E.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?(E.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;w+=D;var H=this.scrollMargin;this.session.setScrollTop(Math.max(-H.top,Math.min(this.scrollTop,w-E.scrollerHeight+H.bottom))),this.session.setScrollLeft(Math.max(-H.left,Math.min(this.scrollLeft,A+2*this.$padding-E.scrollerWidth+H.right)));var j=!C&&(this.$vScrollBarAlwaysVisible||E.scrollerHeight-w+D<0||this.scrollTop>H.top),z=I!==j;z&&(this.$vScroll=j,this.scrollBarV.setVisible(j));var B=this.scrollTop%this.lineHeight,V=Math.ceil(N/this.lineHeight)-1,q=Math.max(0,Math.round((this.scrollTop-B)/this.lineHeight)),U=q+V,Y,X,Q=this.lineHeight;q=T.screenToDocumentRow(q,0);var ue=T.getFoldLine(q);ue&&(q=ue.start.row),Y=T.documentToScreenRow(q,0),X=T.getRowLength(q)*Q,U=Math.min(T.screenToDocumentRow(U,0),T.getLength()-1),N=E.scrollerHeight+T.getRowLength(U)*Q+X,B=this.scrollTop-Y*Q;var we=0;return(this.layerConfig.width!=A||O)&&(we=this.CHANGE_H_SCROLL),(O||z)&&(we|=this.$updateCachedSize(!0,this.gutterWidth,E.width,E.height),this._signal("scrollbarVisibilityChanged"),z&&(A=this.$getLongestLine())),this.layerConfig={width:A,padding:this.$padding,firstRow:q,firstRowScreen:Y,lastRow:U,lineHeight:Q,characterWidth:this.characterWidth,minHeight:N,maxHeight:w,offset:B,gutterOffset:Q?Math.max(0,Math.ceil((B+E.height-E.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),we},L.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,E=this.$changedLines.lastRow;this.$changedLines=null;var C=this.layerConfig;if(!(T>C.lastRow+1)&&!(E<C.firstRow)){if(E===1/0){this.$showGutter&&this.$gutterLayer.update(C),this.$textLayer.update(C);return}return this.$textLayer.updateLines(C,T,E),!0}}},L.prototype.$getLongestLine=function(){var T=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(T+=1),this.$textLayer&&T>this.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(T,E){this.$gutterLayer.addGutterDecoration(T,E)},L.prototype.removeGutterDecoration=function(T,E){this.$gutterLayer.removeGutterDecoration(T,E)},L.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(T,E,C){this.scrollCursorIntoView(T,C),this.scrollCursorIntoView(E,C)},L.prototype.scrollCursorIntoView=function(T,E,C){if(this.$size.scrollerHeight!==0){var x=this.$cursorLayer.getPixelPosition(T),w=x.left,A=x.top,R=C&&C.top||0,O=C&&C.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+R>A?(E&&I+R>A+this.lineHeight&&(A-=E*this.$size.scrollerHeight),A===0&&(A=-this.scrollMargin.top),this.session.setScrollTop(A)):I+this.$size.scrollerHeight-O<A+this.lineHeight&&(E&&I+this.$size.scrollerHeight-O<A-this.lineHeight&&(A+=E*this.$size.scrollerHeight),this.session.setScrollTop(A+this.lineHeight+O-this.$size.scrollerHeight));var N=this.scrollLeft,D=2*this.layerConfig.characterWidth;w-D<N?(w-=D,w<this.$padding+D&&(w=-this.scrollMargin.left),this.session.setScrollLeft(w)):(w+=D,N+this.$size.scrollerWidth<w+this.characterWidth?this.session.setScrollLeft(Math.round(w+this.characterWidth-this.$size.scrollerWidth)):N<=this.$padding&&w-N<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(T){this.session.setScrollTop(T*this.lineHeight)},L.prototype.alignCursor=function(T,E){typeof T=="number"&&(T={row:T,column:0});var C=this.$cursorLayer.getPixelPosition(T),x=this.$size.scrollerHeight-this.lineHeight,w=C.top-x*(E||0);return this.session.setScrollTop(w),w},L.prototype.$calcSteps=function(T,E){var C=0,x=this.STEPS,w=[],A=function(R,O,I){return I*(Math.pow(R-1,3)+1)+O};for(C=0;C<x;++C)w.push(A(C/this.STEPS,T,E-T));return w},L.prototype.scrollToLine=function(T,E,C,x){var w=this.$cursorLayer.getPixelPosition({row:T,column:0}),A=w.top;E&&(A-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(A),C!==!1&&this.animateScrolling(R,x)},L.prototype.animateScrolling=function(T,E){var C=this.scrollTop;if(!this.$animatedScroll)return;var x=this;if(T==C)return;if(this.$scrollAnimation){var w=this.$scrollAnimation.steps;if(w.length&&(T=w[0],T==C))return}var A=x.$calcSteps(T,C);this.$scrollAnimation={from:T,to:C,steps:A},clearInterval(this.$timer),x.session.setScrollTop(A.shift()),x.session.$scrollTop=C;function R(){x.$timer=clearInterval(x.$timer),x.$scrollAnimation=null,x.$stopAnimation=!1,E&&E()}this.$timer=setInterval(function(){if(x.$stopAnimation){R();return}if(!x.session)return clearInterval(x.$timer);A.length?(x.session.setScrollTop(A.shift()),x.session.$scrollTop=C):C!=null?(x.session.$scrollTop=-1,x.session.setScrollTop(C),C=null):R()},10)},L.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},L.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(T,E){this.session.setScrollTop(E),this.session.setScrollLeft(T)},L.prototype.scrollBy=function(T,E){E&&this.session.setScrollTop(this.session.getScrollTop()+E),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},L.prototype.isScrollableBy=function(T,E){if(E<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||E>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(T,E){var C;if(this.$hasCssTransforms){C={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([T,E]);T=x[1]-this.gutterWidth-this.margin.left,E=x[0]}else C=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-C.left-this.$padding,A=w/this.characterWidth,R=Math.floor((E+this.scrollTop-C.top)/this.lineHeight),O=this.$blockCursor?Math.floor(A):Math.round(A);return{row:R,column:O,side:A-O>0?1:-1,offsetX:w}},L.prototype.screenToTextCoordinates=function(T,E){var C;if(this.$hasCssTransforms){C={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([T,E]);T=x[1]-this.gutterWidth-this.margin.left,E=x[0]}else C=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-C.left-this.$padding,A=w/this.characterWidth,R=this.$blockCursor?Math.floor(A):Math.round(A),O=Math.floor((E+this.scrollTop-C.top)/this.lineHeight);return this.session.screenToDocumentPosition(O,Math.max(R,0),w)},L.prototype.textToScreenCoordinates=function(T,E){var C=this.scroller.getBoundingClientRect(),x=this.session.documentToScreenPosition(T,E),w=this.$padding+(this.session.$bidiHandler.isBidiRow(x.row,T)?this.session.$bidiHandler.getPosLeft(x.column):Math.round(x.column*this.characterWidth)),A=x.row*this.lineHeight;return{pageX:C.left+w-this.scrollLeft,pageY:C.top+A-this.scrollTop}},L.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(T){var E=this.session.selection.cursor;this.addToken(T,"composition_placeholder",E.row,E.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(T,E){var C=this.session.selection.cursor,x=E||{row:C.row,column:C.column};this.removeGhostText();var w=this.$calculateWrappedTextChunks(T,x);this.addToken(w[0].text,"ghost_text",x.row,x.column),this.$ghostText={text:T,position:{row:x.row,column:x.column}};var A=d.createElement("div");if(w.length>1){var R=this.hideTokensAfterPosition(x.row,x.column),O;w.slice(1).forEach(function(z){var B=d.createElement("div"),V=d.createElement("span");V.className="ace_ghost_text",z.wrapped&&(B.className="ghost_text_line_wrapped"),z.text.length===0&&(z.text=" "),V.appendChild(d.createTextNode(z.text)),B.appendChild(V),A.appendChild(B),O=B}),R.forEach(function(z){var B=d.createElement("span");k(z.type)||(B.className="ace_"+z.type.replace(/\./g," ace_")),B.appendChild(d.createTextNode(z.value)),O.appendChild(B)}),this.$ghostTextWidget={el:A,row:x.row,column:x.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition(x,!0),N=this.container,D=N.getBoundingClientRect().height,H=w.length*this.lineHeight,j=H<D-I.top;if(j)return;H<D?this.scrollBy(0,(w.length-1)*this.lineHeight):this.scrollToRow(x.row)}},L.prototype.$calculateWrappedTextChunks=function(T,E){var C=this.$size.scrollerWidth-this.$padding*2,x=Math.floor(C/this.characterWidth)-2;x=x<=0?60:x;for(var w=T.split(/\r?\n/),A=[],R=0;R<w.length;R++){var O=this.session.$getDisplayTokens(w[R],E.column),I=this.session.$computeWrapSplits(O,x,this.session.$tabSize);if(I.length>0){var N=0;I.push(w[R].length);for(var D=0;D<I.length;D++){var H=w[R].slice(N,I[D]);A.push({text:H,wrapped:!0}),N=I[D]}}else A.push({text:w[R],wrapped:!1})}return A},L.prototype.removeGhostText=function(){if(this.$ghostText){var T=this.$ghostText.position;this.removeExtraToken(T.row,T.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(T,E,C,x){var w=this.session;w.bgTokenizer.lines[C]=null;var A={type:E,value:T},R=w.getTokens(C);if(x==null||!R.length)R.push(A);else for(var O=0,I=0;I<R.length;I++){var N=R[I];if(O+=N.value.length,x<=O){var D=N.value.length-(O-x),H=N.value.slice(0,D),j=N.value.slice(D);R.splice(I,1,{type:N.type,value:H},A,{type:N.type,value:j});break}}this.updateLines(C,C)},L.prototype.hideTokensAfterPosition=function(T,E){for(var C=this.session.getTokens(T),x=0,w=!1,A=[],R=0;R<C.length;R++){var O=C[R];if(x+=O.value.length,O.type!=="ghost_text"){if(w){A.push({type:O.type,value:O.value}),O.type="hidden_token";continue}x===E&&(w=!0)}}return this.updateLines(T,T),A},L.prototype.removeExtraToken=function(T,E){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},L.prototype.setTheme=function(T,E){var C=this;if(this.$themeId=T,C._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var x=T||this.$options.theme.initialValue;l.loadModule(["theme",x],w)}else w(T);function w(A){if(C.$themeId!=T)return E&&E();if(!A||!A.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");A.$id&&(C.$themeId=A.$id),d.importCssString(A.cssText,A.cssClass,C.container),C.theme&&d.removeCssClass(C.container,C.theme.cssClass);var R="padding"in A?A.padding:"padding"in(C.theme||{})?4:C.$padding;C.$padding&&R!=C.$padding&&C.setPadding(R),C.$theme=A.cssClass,C.theme=A,d.addCssClass(C.container,A.cssClass),d.setCssClass(C.container,"ace_dark",A.isDark),C.$size&&(C.$size.width=0,C.$updateSizeAsync()),C._dispatchEvent("themeLoaded",{theme:A}),E&&E(),b.isSafari&&C.scroller&&(C.scroller.style.background="red",C.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(T,E){d.setCssClass(this.container,T,E!==!1)},L.prototype.unsetStyle=function(T){d.removeCssClass(this.container,T)},L.prototype.setCursorStyle=function(T){d.setStyle(this.scroller.style,"cursor",T)},L.prototype.setMouseCursor=function(T){d.setStyle(this.scroller.style,"cursor",T)},L.prototype.attachToShadowRoot=function(){d.importCssString(_,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(T){var E=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,T===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(C){E.$scrollAnimation||E.session.setScrollTop(C.data-E.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){E.$scrollAnimation||E.session.setScrollLeft(C.data-E.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new u(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",function(C){E.$scrollAnimation||E.session.setScrollTop(C.data-E.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){E.$scrollAnimation||E.session.setScrollLeft(C.data-E.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var T=this;this.$resizeTimer=g.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(E){var C=E[0].contentRect.width,x=E[0].contentRect.height;Math.abs(T.$size.width-C)>1||Math.abs(T.$size.height-x)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();M.prototype.CHANGE_CURSOR=1,M.prototype.CHANGE_MARKER=2,M.prototype.CHANGE_GUTTER=4,M.prototype.CHANGE_SCROLL=8,M.prototype.CHANGE_LINES=16,M.prototype.CHANGE_TEXT=32,M.prototype.CHANGE_SIZE=64,M.prototype.CHANGE_MARKER_BACK=128,M.prototype.CHANGE_MARKER_FRONT=256,M.prototype.CHANGE_FULL=512,M.prototype.CHANGE_H_SCROLL=1024,M.prototype.$changes=0,M.prototype.$padding=null,M.prototype.$frozen=!1,M.prototype.STEPS=8,r.implement(M.prototype,$),l.defineOptions(M.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),i.VirtualRenderer=M}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,a){var r=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,l=n("../config");function p(h){var u="importScripts('"+d.qualifyURL(h)+"');";try{return new Blob([u],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(u),m.getBlob("application/javascript")}}function o(h){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var u=p(h),f=window.URL||window.webkitURL,m=f.createObjectURL(u);return new Worker(m)}return new Worker(h)}var s=function(h){h.postMessage||(h=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=h,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,g),this.$createWorkerFromOldConfig=function(h,u,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),l.get("packaged")||!n.toUrl)m=m||l.moduleUrl(u,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var $={};h.forEach(function(_){$[_]=y(n.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:$,module:u,classname:f}),this.$worker},this.onMessage=function(h){var u=h.data;switch(u.type){case"event":this._signal(u.name,{data:u.data});break;case"call":var f=this.callbacks[u.id];f&&(f(u.data),delete this.callbacks[u.id]);break;case"error":this.reportError(u.data);break;case"log":window.console&&console.log&&console.log.apply(console,u.data);break}},this.reportError=function(h){window.console&&console.error&&console.error(h)},this.$normalizePath=function(h){return d.qualifyURL(h)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(h){h.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(h,u){this.$worker.postMessage({command:h,args:u})},this.call=function(h,u,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,u.push(m)}this.send(h,u)},this.emit=function(h,u){try{u.data&&u.data.err&&(u.data.err={message:u.data.err.message,stack:u.data.err.stack,code:u.data.err.code}),this.$worker&&this.$worker.postMessage({event:h,data:{data:u.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(h){this.$doc&&this.terminate(),this.$doc=h,this.call("setValue",[h.getValue()]),h.on("change",this.changeListener,!0)},this.changeListener=function(h){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),h.action=="insert"?this.deltaQueue.push(h.start,h.lines):this.deltaQueue.push(h.start,h.end)},this.$sendDeltaQueue=function(){var h=this.deltaQueue;h&&(this.deltaQueue=null,h.length>50&&h.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:h}))}}).call(s.prototype);var c=function(h,u,f){var m=null,v=!1,y=Object.create(g),$=[],_=new s({messageBuffer:$,terminate:function(){},postMessage:function(b){$.push(b),m&&(v?setTimeout(S):S())}});_.setEmitSync=function(b){v=b};var S=function(){var b=$.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){_.onMessage({data:b})},y.callback=function(b,k){this.postMessage({type:"call",id:k,data:b})},y.emit=function(b,k){this.postMessage({type:"event",name:b,data:k})},l.loadModule(["worker",u],function(b){for(m=new b[f](y);$.length;)S()}),_};i.UIWorkerClient=c,i.WorkerClient=s,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,a){var r=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),l=function(){function p(o,s,c,h,u,f){var m=this;this.length=s,this.session=o,this.doc=o.getDocument(),this.mainClass=u,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=h,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,s=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=s.createAnchor(this.$pos.row,this.$pos.column);var h=this.pos;h.$insertRight=!0,h.detach(),h.markerId=c.addMarker(new r(h.row,h.column,h.row,h.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var f=s.createAnchor(u.row,u.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,s=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=o.addMarker(new r(c.row,c.column,c.row,c.column+s.length),s.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var s=o;if(s.start.row===s.end.row&&s.start.row===this.pos.row){this.$updating=!0;var c=o.action==="insert"?s.end.column-s.start.column:s.start.column-s.end.column,h=s.start.column>=this.pos.column&&s.start.column<=this.pos.column+this.length+1,u=s.start.column-this.pos.column;if(this.updateAnchors(o),h&&(this.length+=c),h&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+u};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+u};this.doc.remove(new r(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var s=this.others.length;s--;)this.others[s].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,s=this.session,c=function(u,f){s.removeMarker(u.markerId),u.markerId=s.addMarker(new r(u.row,u.column,u.row,u.column+o.length),f,null,!1)};c(this.pos,this.mainClass);for(var h=this.others.length;h--;)c(this.others[h],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var s=this.session.selection.getCursor();s.row===this.pos.row&&s.column>=this.pos.column&&s.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),s=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,c=0;c<s;c++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(l.prototype,d),i.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,a){var r=n("../lib/event"),d=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function l(p){var o=p.domEvent,s=o.altKey,c=o.shiftKey,h=o.ctrlKey,u=p.getAccelKey(),f=p.getButton();if(h&&d.isMac&&(f=o.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!h&&!s&&!u){f===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(f===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,$=p.getDocumentPosition(),_=v.getCursor(),S=p.inSelection()||v.isEmpty()&&g($,_),b=p.x,k=p.y,M=function(H){b=H.clientX,k=H.clientY},L=m.session,T=m.renderer.pixelToScreenCoordinates(b,k),E=T,C;if(m.$mouseHandler.$enableJumpToDef)h&&s||u&&s?C=c?"block":"add":s&&m.$blockSelectEnabled&&(C="block");else if(u&&!s){if(C="add",!y&&c)return}else s&&m.$blockSelectEnabled&&(C="block");if(C&&d.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),C=="add"){if(!y&&S)return;if(!y){var x=v.toOrientedRange();m.addSelectionMarker(x)}var w=v.rangeList.rangeAtPoint($);m.inVirtualSelectionMode=!0,c&&(w=null,x=v.ranges[0]||x,m.removeSelectionMarker(x)),m.once("mouseup",function(){var H=v.toOrientedRange();w&&H.isEmpty()&&g(w.cursor,H.cursor)?v.substractPoint(H.cursor):(c?v.substractPoint(x.cursor):x&&(m.removeSelectionMarker(x),v.addRange(x)),v.addRange(H)),m.inVirtualSelectionMode=!1})}else if(C=="block"){p.stop(),m.inVirtualSelectionMode=!0;var A,R=[],O=function(){var H=m.renderer.pixelToScreenCoordinates(b,k),j=L.screenToDocumentPosition(H.row,H.column,H.offsetX);g(E,H)&&g(j,v.lead)||(E=H,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(R),R=v.rectangularRangeBlock(E,T),m.$mouseHandler.$clickSelection&&R.length==1&&R[0].isEmpty()&&(R[0]=m.$mouseHandler.$clickSelection.clone()),R.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!u?v.toSingleRange():!y&&u&&(A=v.toOrientedRange(),m.addSelectionMarker(A)),c?T=L.documentToScreenPosition(v.lead):v.moveToPosition($),E={row:-1,column:-1};var I=function(H){O(),clearInterval(D),m.removeSelectionMarkers(R),R.length||(R=[v.toOrientedRange()]),A&&(m.removeSelectionMarker(A),v.toSingleRange(A));for(var j=0;j<R.length;j++)v.addRange(R[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=O;r.capture(m.container,M,I);var D=setInterval(function(){N()},20);return p.preventDefault()}}}i.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,a){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(d){d.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(d){d.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(d){d.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(d){d.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(d){d.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(d){d.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(d){d.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(d){d.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(d){d.multiSelect.rangeCount>1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var r=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new r(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,i,a){var r=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,l=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),s=n("./commands/multi_select_commands");i.commands=s.defaultCommands.concat(s.multiSelectCommands);var c=n("./search").Search,h=new c;function u(_,S,b){return h.$options.wrap=!0,h.$options.needle=S,h.$options.backwards=b==-1,h.find(_)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,S){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}_.cursor||(_.cursor=_.end);var k=this.rangeList.add(_);return this.$onAddRange(_),k.length&&this.$onRemoveRange(k),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var S=this.rangeList.substractPoint(_);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();_.push(S),this.rangeCount=0}for(var b=_.length;b--;){var k=this.ranges.indexOf(_[b]);this.ranges.splice(k,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],S=[],b=0;b<_.length;b++){var k=_[b],M=k.start.row,L=k.end.row;if(M===L)S.push(k.clone());else{for(S.push(new d(M,k.start.column,M,this.session.getLine(M).length));++M<L;)S.push(this.getLineRange(M,!0));S.push(new d(L,0,L,k.end.column))}b==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var b=S.length;b--;)this.addRange(S[b])},this.joinSelections=function(){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var k=this.session.documentToScreenPosition(this.cursor),M=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(k,M);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,S,b){var k=[],M=_.column<S.column;if(M)var L=_.column,T=S.column,E=_.offsetX,C=S.offsetX;else var L=S.column,T=_.column,E=S.offsetX,C=_.offsetX;var x=_.row<S.row;if(x)var w=_.row,A=S.row;else var w=S.row,A=_.row;L<0&&(L=0),w<0&&(w=0),w==A&&(b=!0);for(var R,O=w;O<=A;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,L,E),this.session.screenToDocumentPosition(O,T,C));if(I.isEmpty()){if(R&&v(I.end,R))break;R=I.end}I.cursor=M?I.start:I.end,k.push(I)}if(x&&k.reverse(),!b){for(var N=k.length-1;k[N].isEmpty()&&N>0;)N--;if(N>0)for(var D=0;k[D].isEmpty();)D++;for(var H=N;H>=D;H--)k[H].isEmpty()&&k.splice(H,1)}return k}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var S=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",S),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var S=this.session.$selectionMarkers.indexOf(_);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var S=this.session.$selectionMarkers,b=_.length;b--;){var k=_[b];if(k.marker){this.session.removeMarker(k.marker);var M=S.indexOf(k);M!=-1&&S.splice(M,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var S=_.command,b=_.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?k=b.forEachSelection(S,_.args):S.multiSelectAction=="forEachLine"?k=b.forEachSelection(S,_.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),k=S.exec(b,_.args||{})):k=S.multiSelectAction(b,_.args||{});else{var k=S.exec(b,_.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return k}},this.forEachSelection=function(_,S,b){if(!this.inVirtualSelectionMode){var k=b&&b.keepOrder,M=b==!0||b&&b.$byLines,L=this.session,T=this.selection,E=T.rangeList,C=(k?T:E).ranges,x;if(!C.length)return _.exec?_.exec(this,S||{}):_(this,S||{});var w=T._eventRegistry;T._eventRegistry={};var A=new g(L);this.inVirtualSelectionMode=!0;for(var R=C.length;R--;){if(M)for(;R>0&&C[R].start.row==C[R-1].end.row;)R--;A.fromOrientedRange(C[R]),A.index=R,this.selection=L.selection=A;var O=_.exec?_.exec(this,S||{}):_(this,S||{});!x&&O!==void 0&&(x=O),A.toOrientedRange(C[R])}A.detach(),this.selection=L.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=w,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),x}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],k=0;k<S.length;k++)b.push(this.session.getTextRange(S[k]));var M=this.session.getDocument().getNewLineCharacter();_=b.join(M),_.length==(b.length-1)*M.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var k=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;k.row!=S.row||this.session.$clipPositionToDocument(k.row,k.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,S,b){if(S=S||{},S.needle=_||S.needle,S.needle==null){var k=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(k)}this.$search.set(S);var M=this.$search.findAll(this.session);if(!M.length)return 0;var L=this.multiSelect;b||L.toSingleRange(M[0]);for(var T=M.length;T--;)L.addRange(M[T],!0);return k&&L.rangeList.rangeAtPoint(k.start)&&L.addRange(k,!0),M.length},this.selectMoreLines=function(_,S){var b=this.selection.toOrientedRange(),k=b.cursor==b.end,M=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(M.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(M.row+_,M.column);if(b.isEmpty())var E=L;else var T=this.session.documentToScreenPosition(k?b.end:b.start),E=this.session.screenToDocumentPosition(T.row+_,T.column);if(k){var C=d.fromPoints(L,E);C.cursor=C.start}else{var C=d.fromPoints(E,L);C.cursor=C.end}if(C.desiredColumn=M.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var x=b.cursor;this.selection.addRange(C),x&&this.selection.substractPoint(x)},this.transposeSelections=function(_){for(var S=this.session,b=S.multiSelect,k=b.ranges,M=k.length;M--;){var L=k[M];if(L.isEmpty()){var T=S.getWordRange(L.start.row,L.start.column);L.start.row=T.start.row,L.start.column=T.start.column,L.end.row=T.end.row,L.end.column=T.end.column}}b.mergeOverlappingRanges();for(var E=[],M=k.length;M--;){var L=k[M];E.unshift(S.getTextRange(L))}_<0?E.unshift(E.pop()):E.push(E.shift());for(var M=k.length;M--;){var L=k[M],C=L.clone();S.replace(L,E[M]),L.start.row=C.start.row,L.start.column=C.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(_,S,b){var k=this.session,M=k.multiSelect,L=M.toOrientedRange();if(!(L.isEmpty()&&(L=k.getWordRange(L.start.row,L.start.column),L.cursor=_==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var T=k.getTextRange(L),E=u(k,T,_);E&&(E.cursor=_==-1?E.start:E.end,this.session.unfold(E),this.multiSelect.addRange(E),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var _=this.session,S=_.multiSelect,b=S.ranges,k=-1,M=b.filter(function(N){if(N.cursor.row==k)return!0;k=N.cursor.row});if(!b.length||M.length==b.length-1){var L=this.selection.getRange(),T=L.start.row,E=L.end.row,C=T==E;if(C){var x=this.session.getLength(),w;do w=this.session.getLine(E);while(/[=:]/.test(w)&&++E<x);do w=this.session.getLine(T);while(/[=:]/.test(w)&&--T>0);T<0&&(T=0),E>=x&&(E=x-1)}var A=this.session.removeFullLines(T,E);A=this.$reAlignText(A,C),this.session.insert({row:T,column:0},A.join(`
|
1519
|
-
`)+`
|
1520
|
-
`),C||(L.start.column=0,L.end.column=A[A.length-1].length),this.selection.setRange(L)}else{M.forEach(function(N){S.substractPoint(N.cursor)});var R=0,O=1/0,I=b.map(function(N){var D=N.cursor,H=_.getLine(D.row),j=H.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>R&&(R=D.column),j<O&&(O=j),j});b.forEach(function(N,D){var H=N.cursor,j=R-H.column,z=I[D]-O;j>z?_.insert(H,o.stringRepeat(" ",j-z)):_.remove(new d(H.row,H.column,H.row,H.column-j+z)),N.start.column=N.end.column=R,N.start.row=N.end.row=H.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,S){var b=!0,k=!0,M,L,T;return _.map(function(A){var R=A.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?M==null?(M=R[1].length,L=R[2].length,T=R[3].length,R):(M+L+T!=R[1].length+R[2].length+R[3].length&&(k=!1),M!=R[1].length&&(b=!1),M>R[1].length&&(M=R[1].length),L<R[2].length&&(L=R[2].length),T>R[3].length&&(T=R[3].length),R):[A]}).map(S?C:b?k?x:C:w);function E(A){return o.stringRepeat(" ",A)}function C(A){return A[2]?E(M)+A[2]+E(L-A[2].length+T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function x(A){return A[2]?E(M+L-A[2].length)+A[2]+E(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function w(A){return A[2]?E(M)+A[2]+E(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}}}).call(m.prototype);function v(_,S){return _.row==S.row&&_.column==S.column}i.onSessionChange=function(_){var S=_.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var b=_.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=i.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",l),_.commands.addCommands(s.defaultCommands),$(_))}function $(_){if(!_.textInput)return;var S=_.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(M){var L=M.keyCode==18&&!(M.ctrlKey||M.shiftKey||M.metaKey);_.$blockSelectEnabled&&L?b||(_.renderer.setMouseCursor("crosshair"),b=!0):b&&k()},_),p.addListener(S,"keyup",k,_),p.addListener(S,"blur",k,_);function k(M){b&&(_.renderer.setMouseCursor(""),b=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(_){y(this),_?this.on("mousedown",l):this.off("mousedown",l)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,a){var r=n("../../range").Range,d=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,l,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,l,p){return null},this.indentationBlock=function(g,l,p){var o=/\S/,s=g.getLine(l),c=s.search(o);if(c!=-1){for(var h=p||s.length,u=g.getLength(),f=l,m=l;++l<u;){var v=g.getLine(l).search(o);if(v!=-1){if(v<=c){var y=g.getTokenAt(l,0);if(!y||y.type!=="string")break}m=l}}if(m>f){var $=g.getLine(m).length;return new r(f,h,m,$)}}},this.openingBracketBlock=function(g,l,p,o,s){var c={row:p,column:o+1},h=g.$findClosingBracket(l,c,s);if(h){var u=g.foldWidgets[h.row];return u==null&&(u=g.getFoldWidget(h.row)),u=="start"&&h.row>c.row&&(h.row--,h.column=g.getLine(h.row).length),r.fromPoints(c,h)}},this.closingBracketBlock=function(g,l,p,o,s){var c={row:p,column:o},h=g.$findOpeningBracket(l,c);if(h)return h.column++,c.column--,r.fromPoints(h,c)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,a){var r=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,l=n("../config").nls;function p(s,c,h){for(var u=0,f=s.length-1;u<=f;){var m=u+f>>1,v=h(c,s[m]);if(v>0)u=m+1;else if(v<0)f=m-1;else return m}return-(u+1)}function o(s,c,h){var u=s.getAnnotations().sort(g.comparePoints);if(u.length){var f=p(u,{row:c,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=u.length?f=h>0?0:u.length-1:f===0&&h<0&&(f=u.length-1);var m=u[f];if(!(!m||!h)){if(m.row===c){do m=u[f+=h];while(m&&m.row===c);if(!m)return u.slice()}var v=[];c=m.row;do v[h<0?"unshift":"push"](m),m=u[f+=h];while(m&&m.row==c);return v.length&&v}}}i.showErrorMarker=function(s,c){var h=s.session;h.widgetManager||(h.widgetManager=new r(h),h.widgetManager.attach(s));var u=s.getCursorPosition(),f=u.row,m=h.widgetManager.getWidgetsAtRow(f).filter(function(L){return L.type=="errorMarker"})[0];m?m.destroy():f-=c;var v=o(h,f,c),y;if(v){var $=v[0];u.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,u.row=$.row,y=s.renderer.$gutterLayer.$annotations[u.row]}else{if(m)return;y={displayText:[l("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(u.row),s.selection.moveToPosition(u);var _={row:u.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=_.el.appendChild(d.createElement("div")),b=_.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var k=s.renderer.$cursorLayer.getPixelPosition(u).left;b.style.left=k+s.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",S.className="error_widget "+y.className,y.displayText.forEach(function(L,T){S.appendChild(d.createTextNode(L)),T<y.displayText.length-1&&S.appendChild(d.createElement("br"))}),S.appendChild(d.createElement("div"));var M=function(L,T,E){if(T===0&&(E==="esc"||E==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(M),h.widgetManager.removeLineWidget(_),s.off("changeSelection",_.destroy),s.off("changeSession",_.destroy),s.off("mouseup",_.destroy),s.off("change",_.destroy))},s.keyBinding.addKeyboardHandler(M),s.on("changeSelection",_.destroy),s.on("changeSession",_.destroy),s.on("mouseup",_.destroy),s.on("change",_.destroy),s.session.widgetManager.addLineWidget(_),_.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},d.importCssString(`
|
1521
|
-
.error_widget_wrapper {
|
1522
|
-
background: inherit;
|
1523
|
-
color: inherit;
|
1524
|
-
border:none
|
1525
|
-
}
|
1526
|
-
.error_widget {
|
1527
|
-
border-top: solid 2px;
|
1528
|
-
border-bottom: solid 2px;
|
1529
|
-
margin: 5px 0;
|
1530
|
-
padding: 10px 40px;
|
1531
|
-
white-space: pre-wrap;
|
1532
|
-
}
|
1533
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
1534
|
-
border-color: #ff5a5a
|
1535
|
-
}
|
1536
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
1537
|
-
border-color: #F1D817
|
1538
|
-
}
|
1539
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
1540
|
-
border-color: #5a5a5a
|
1541
|
-
}
|
1542
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
1543
|
-
border-color: #5aaa5a
|
1544
|
-
}
|
1545
|
-
.error_widget_arrow {
|
1546
|
-
position: absolute;
|
1547
|
-
border: solid 5px;
|
1548
|
-
border-top-color: transparent!important;
|
1549
|
-
border-right-color: transparent!important;
|
1550
|
-
border-left-color: transparent!important;
|
1551
|
-
top: -5px;
|
1552
|
-
}
|
1553
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,i,a){n("./loader_build")(i);var r=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,l=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),i.config=n("./config"),i.edit=function(s,c){if(typeof s=="string"){var h=s;if(s=document.getElementById(h),!s)throw new Error("ace.edit can't find div #"+h)}if(s&&s.env&&s.env.editor instanceof g)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var f=s;u=f.value,s=r.createElement("pre"),f.parentNode.replaceChild(s,f)}else s&&(u=s.textContent,s.innerHTML="");var m=i.createEditSession(u),v=new g(new o(s),m,c),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(y.textarea=f),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},i.createEditSession=function(s,c){var h=new l(s,c);return h.setUndoManager(new p),h},i.Range=d,i.Editor=g,i.EditSession=l,i.UndoManager=p,i.VirtualRenderer=o,i.version=i.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=n);for(var a in n)n.hasOwnProperty(a)&&(i.ace[a]=n[a]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(pp);var lk=pp.exports;const zl=zi(lk),ck="/assets/mode-yaml-ELgwiJiP.js",uk="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";zl.config.setModuleUrl("ace/mode/yaml",ck);zl.config.setModuleUrl("ace/theme/monokai",uk);var gp=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(a,r){return a[0]===n?(i=r,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),a=this.__entries__[i];return a&&a[1]},t.prototype.set=function(n,i){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,a=e(i,n);~a&&i.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var a=0,r=this.__entries__;a<r.length;a++){var d=r[a];n.call(i,d[1],d[0])}},t}()}(),Pa=typeof window<"u"&&typeof document<"u"&&window.document===document,Os=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),hk=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Os):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),dk=2;function fk(e,t){var n=!1,i=!1,a=0;function r(){n&&(n=!1,e()),i&&g()}function d(){hk(r)}function g(){var l=Date.now();if(n){if(l-a<dk)return;i=!0}else n=!0,i=!1,setTimeout(d,t);a=l}return g}var pk=20,gk=["top","right","bottom","left","width","height","size","weight"],mk=typeof MutationObserver<"u",vk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=fk(this.refresh.bind(this),pk)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Pa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Pa||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,a=gk.some(function(r){return!!~i.indexOf(r)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),mp=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Fi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Os},vp=mo(0,0,0,0);function Is(e){return parseFloat(e)||0}function Hu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,a){var r=e["border-"+a+"-width"];return i+Is(r)},0)}function yk(e){for(var t=["top","right","bottom","left"],n={},i=0,a=t;i<a.length;i++){var r=a[i],d=e["padding-"+r];n[r]=Is(d)}return n}function bk(e){var t=e.getBBox();return mo(0,0,t.width,t.height)}function wk(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return vp;var i=Fi(e).getComputedStyle(e),a=yk(i),r=a.left+a.right,d=a.top+a.bottom,g=Is(i.width),l=Is(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+r)!==t&&(g-=Hu(i,"left","right")+r),Math.round(l+d)!==n&&(l-=Hu(i,"top","bottom")+d)),!Sk(e)){var p=Math.round(g+r)-t,o=Math.round(l+d)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(l-=o)}return mo(a.left,a.top,g,l)}var _k=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Fi(e).SVGGraphicsElement}:function(e){return e instanceof Fi(e).SVGElement&&typeof e.getBBox=="function"}}();function Sk(e){return e===Fi(e).document.documentElement}function $k(e){return Pa?_k(e)?bk(e):wk(e):vp}function xk(e){var t=e.x,n=e.y,i=e.width,a=e.height,r=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(r.prototype);return mp(d,{x:t,y:n,width:i,height:a,top:n,right:t+i,bottom:a+n,left:t}),d}function mo(e,t,n,i){return{x:e,y:t,width:n,height:i}}var Ck=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=$k(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ak=function(){function e(t,n){var i=xk(n);mp(this,{target:t,contentRect:i})}return e}(),kk=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new gp,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Fi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Ck(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Fi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new Ak(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),yp=typeof WeakMap<"u"?new WeakMap:new gp,bp=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vk.getInstance(),i=new kk(t,n,this);yp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){bp.prototype[e]=function(){var t;return(t=yp.get(this))[e].apply(t,arguments)}});var Ek=function(){return typeof Os.ResizeObserver<"u"?Os.ResizeObserver:bp}();const zu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],wp=xe({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...zu],render(){return qs("div")},mounted(){const e=this._editor=Vh(zl.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,e.on("change",()=>{if(this._isSettingContent)return;const t=e.getValue();this._contentBackup=t,this.$emit("update:value",t)}),zu.forEach(t=>{const n="on"+Ir(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new Ek(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),Rk={class:"block"},_p=xe({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,i=t,a=cl(n,"yaml");return yl(()=>{i("update-yaml",a.value)}),(r,d)=>(K(),ie("div",Rk,[ae(ce(wp),{class:"vue-ace-editor",value:a.value,"onUpdate:value":d[0]||(d[0]=g=>a.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),Tk={class:"block"},Lk={class:"is-size-2 block"},Mk={class:"field is-grouped is-grouped-centered"},Ok={class:"control"},Ik={class:"icon is-small"},Nk=F("span",null,"Edit",-1),Fk={key:0,class:"block"},Dk=F("hr",null,null,-1),Pk=xe({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=Wi(),i=cl(t.rule.yaml),a=bS(),r=g=>{i.value=g},d=async()=>{const g=await a.perform({yaml:i.value});n.push({name:"Rule",params:{id:g.id}})};return(g,l)=>{var o,s;const p=Ye("font-awesome-icon");return K(),ie(Pe,null,[F("div",Tk,[F("h2",Lk,"Edit rule: "+Se(e.rule.id),1),ae(_p,{yaml:i.value,"onUpdate:yaml":l[0]||(l[0]=c=>i.value=c),onUpdateYaml:r},null,8,["yaml"]),F("div",Mk,[F("p",Ok,[F("a",{class:"button is-primary",onClick:d},[F("span",Ik,[ae(p,{icon:"edit"})]),Nk])])])]),(o=ce(a).last)!=null&&o.error?(K(),ie("div",Fk,[Dk,ae(pt,{error:(s=ce(a).last)==null?void 0:s.error},null,8,["error"])])):ge("",!0)],64)}}}),Wk=xe({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=jf(),i=async()=>{await n.perform(t.id)};return at(async()=>{await i()}),qe(t,async()=>{await i()}),(a,r)=>{var d,g;return K(),ie(Pe,null,[ce(n).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(n).isError?(K(),$e(pt,{key:1,error:(d=ce(n).last)==null?void 0:d.error},null,8,["error"])):ge("",!0),(g=ce(n).last)!=null&&g.value?(K(),$e(Pk,{key:2,rule:ce(n).last.value},null,8,["rule"])):ge("",!0)],64)}}}),Bk=xe({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{bn(`Edit rule:${t.id} - Mihari`)};return at(()=>{n()}),qe(()=>t.id,()=>{n()}),(i,a)=>(K(),$e(Wk,{id:e.id},null,8,["id"]))}});function Hk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.reduce(function(g,l){var p=l.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var s,c;return(c=(s=o.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&c!==void 0?c:0})):g},[]);if(a.length){var r=new RegExp(`
|
1554
|
-
[ ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(g){return g.replace(r,`
|
1555
|
-
`)})}i[0]=i[0].replace(/^\r?\n/,"");var d=i[0];return t.forEach(function(g,l){var p=d.match(/(?:^|\n)( *)$/),o=p?p[1]:"",s=g;typeof g=="string"&&g.includes(`
|
1556
|
-
`)&&(s=String(g).split(`
|
1557
|
-
`).map(function(c,h){return h===0?c:""+o+c}).join(`
|
1558
|
-
`)),d+=s+i[l+1]}),d}var ts,zk=new Uint8Array(16);function Uk(){if(!ts&&(ts=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ts))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ts(zk)}const jk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Vk(e){return typeof e=="string"&&jk.test(e)}var ht=[];for(var zo=0;zo<256;++zo)ht.push((zo+256).toString(16).substr(1));function Gk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ht[e[t+0]]+ht[e[t+1]]+ht[e[t+2]]+ht[e[t+3]]+"-"+ht[e[t+4]]+ht[e[t+5]]+"-"+ht[e[t+6]]+ht[e[t+7]]+"-"+ht[e[t+8]]+ht[e[t+9]]+"-"+ht[e[t+10]]+ht[e[t+11]]+ht[e[t+12]]+ht[e[t+13]]+ht[e[t+14]]+ht[e[t+15]]).toLowerCase();if(!Vk(n))throw TypeError("Stringified UUID is invalid");return n}function Kk(e,t,n){e=e||{};var i=e.random||(e.rng||Uk)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Gk(i)}function Yk(){const e=Kk(),t=go();return Hk`---
|
1559
|
-
id: ${e}
|
1560
|
-
title: Title goes here
|
1561
|
-
description: Description goes here
|
1562
|
-
created_on: ${t.format("YYYY-MM-DD")}
|
1563
|
-
queries: []`}const Zk={class:"block"},Xk=F("h2",{class:"is-size-2 block"},"New rule",-1),qk={class:"field is-grouped is-grouped-centered"},Qk={class:"control"},Jk={class:"icon is-small"},eE=F("span",null,"Create",-1),tE={key:0,class:"block"},nE=F("hr",null,null,-1),iE=xe({__name:"NewRule",setup(e){const t=Wi(),n=Ue(Yk()),i=yS(),a=d=>{n.value=d},r=async()=>{const d=await i.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})};return(d,g)=>{var p,o;const l=Ye("font-awesome-icon");return K(),ie(Pe,null,[F("div",Zk,[Xk,ae(_p,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=s=>n.value=s),onUpdateYaml:a},null,8,["yaml"]),F("div",qk,[F("p",Qk,[F("a",{class:"button is-primary",onClick:r},[F("span",Jk,[ae(l,{icon:"plus"})]),eE])])])]),(p=ce(i).last)!=null&&p.error?(K(),ie("div",tE,[nE,ae(pt,{error:(o=ce(i).last)==null?void 0:o.error},null,8,["error"])])):ge("",!0)],64)}}}),rE=xe({__name:"NewRule",setup(e){const t=()=>{bn("New rule - Mihari")};return at(()=>{t()}),(n,i)=>(K(),$e(iE))}}),sE={class:"buttons is-pulled-right"},oE=F("span",null,"Alerts:",-1),aE=F("span",null,"Artifacts:",-1),lE=["href"],cE=F("span",null,"JSON",-1),uE={class:"icon is-small"},hE=F("span",null,"Search",-1),dE={class:"icon is-small"},fE=F("span",null,"Edit",-1),pE={class:"icon is-small"},gE=F("span",null,"Delete",-1),mE={class:"icon is-small"},Sp=xe({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,a=Ee(()=>`/api/rules/${n.rule.id}`),r=Ee(()=>`rule.id:"${n.rule.id}"`),d=mS(),g=vS(),l=uo(),p=Dl(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await d.perform(n.rule.id),i("delete")}catch(h){Qe.isAxiosError(h)&&i("set-error",h)}},s=async()=>{try{const c=await g.perform(n.rule.id);i("set-message",c)}catch(c){Qe.isAxiosError(c)&&i("set-error",c)}};return at(()=>{l.perform({q:r.value,page:1,limit:0}),p.perform({q:r.value,page:1,limit:0})}),(c,h)=>{const u=Ye("router-link"),f=Ye("font-awesome-icon");return K(),ie("span",sE,[ae(u,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:r.value}}},{default:et(()=>{var m,v;return[oE,F("span",null,Se((v=(m=ce(l).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),ae(u,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:r.value}}},{default:et(()=>{var m,v;return[aE,F("span",null,Se((v=(m=ce(p).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),F("a",{class:"button is-link is-light is-small",href:a.value,target:"_blank"},[cE,F("span",uE,[ae(f,{icon:"barcode"})])],8,lE),F("button",{class:"button is-primary is-light is-small",onClick:s},[hE,F("span",dE,[ce(g).isRunning?(K(),$e(f,{key:0,icon:"spinner",spin:""})):(K(),$e(f,{key:1,icon:"magnifying-glass"}))])]),ae(u,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:et(()=>[fE,F("span",pE,[ae(f,{icon:"edit"})])]),_:1},8,["to"]),F("button",{class:"button is-light is-small",onClick:o},[gE,F("span",mE,[ae(f,{icon:"times"})])])])}}}),vE={class:"box"},yE={class:"block"},bE={class:"table is-fullwidth is-completely-borderless"},wE=F("th",null,"Title",-1),_E=F("th",null,"Description",-1),SE={key:0},$E=F("th",null,"Tags",-1),xE=F("p",{class:"block is-clearfix"},null,-1),CE={class:"help"},AE=xe({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),a=Ue(),r=o=>{i.value=o},d=()=>{i.value=void 0},g=o=>{a.value=o},l=()=>{a.value=void 0},p=()=>{n("delete")};return(o,s)=>{const c=Ye("router-link");return K(),ie("div",vE,[i.value?(K(),$e(pt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),a.value?(K(),$e(ho,{key:1,class:"block",message:a.value,disposable:!0,onDispose:l},null,8,["message"])):ge("",!0),F("div",yE,[F("p",null,[ae(Sp,{rule:e.rule,onSetError:r,onDelete:p,onSetMessage:g},null,8,["rule"])]),ae(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:et(()=>[tt(Se(e.rule.id),1)]),_:1},8,["to"])]),F("table",bE,[F("tr",null,[wE,F("td",null,Se(e.rule.title),1)]),F("tr",null,[_E,F("td",null,Se(e.rule.description),1)]),e.rule.tags.length>0?(K(),ie("tr",SE,[$E,F("td",null,[ae(jr,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),xE,F("p",CE,"Created at: "+Se(e.rule.createdAt),1)])}}}),kE={key:0,class:"block"},EE={class:"help"},RE={key:1,class:"block"},TE=F("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),LE=[TE],ME=xe({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,a=g=>{i("update-page",g)},r=()=>{i("refresh")},d=Ee(()=>n.rules.results.length>0);return(g,l)=>d.value?(K(),ie("div",kE,[(K(!0),ie(Pe,null,Ft(e.rules.results,p=>(K(),$e(AE,{rule:p,key:p.id,onRefresh:r,onDelete:r},null,8,["rule"]))),128)),ae(Pl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:a},null,8,["currentPage","total","pageSize"]),F("p",EE,"("+Se(e.rules.total)+" results in total, "+Se(e.rules.results.length)+" shown)",1)])):(K(),ie("div",RE,LE))}}),OE={class:"block"},IE={class:"field has-addons"},NE={class:"control is-expanded"},FE={class:"control"},DE={class:"icon is-small"},PE=F("span",null,"Search",-1),WE={class:"control"},BE={class:"icon is-small"},HE=F("span",null,"Help",-1),zE={key:0,class:"content mt-3"},UE=wl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),jE={key:0,class:"block"},VE=xe({__name:"RulesWrapper",setup(e){const t=Mi("page","1"),n=Mi("q",""),i=Ue(!1),a=Uf(),r=async()=>{const o={q:n.value,page:parseInt(t.value)};return await a.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await r()},l=g,p=Pr(i);return at(async()=>{await r()}),qe(t,async()=>{await r()}),qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,s)=>{var u,f;const c=Ye("font-awesome-icon"),h=Ye("router-link");return K(),ie(Pe,null,[F("div",OE,[F("div",IE,[F("p",NE,[pl(F("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=m=>lt(n)?n.value=m:null)},null,512),[[$l,ce(n)]])]),F("p",FE,[F("a",{class:"button is-primary",onClick:g},[F("span",DE,[ae(c,{icon:"search"})]),PE])]),F("p",WE,[F("a",{class:"button is-info",onClick:s[1]||(s[1]=m=>ce(p)())},[F("span",BE,[ae(c,{icon:"question"})]),HE])])]),i.value?(K(),ie("div",zE,[UE,F("ul",null,[F("li",null,[ae(h,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:et(()=>[tt("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),ce(a).performCount>0?(K(),ie("div",jE,[ce(a).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(a).isError?(K(),$e(pt,{key:1,error:(u=ce(a).last)==null?void 0:u.error},null,8,["error"])):ge("",!0),(f=ce(a).last)!=null&&f.value?(K(),$e(ME,{key:2,rules:ce(a).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["rules","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),GE=xe({__name:"RulesView",setup(e){return bn("Rules - Mihari"),(t,n)=>(K(),$e(VE))}}),KE={class:"block"},YE=xe({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(K(),ie("div",KE,[ae(ce(wp),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),ZE={class:"block"},XE={class:"is-size-2 block"},qE={class:"block is-clearfix"},QE=F("hr",null,null,-1),JE={class:"block"},eR=F("h2",{class:"is-size-2 block"},"Alerts",-1),tR=xe({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,i=Ue(),a=Ue(),r=()=>{n("delete")},d=o=>{i.value=o},g=()=>{i.value=void 0},l=o=>{o.queued?a.value=o:n("refresh")},p=()=>{a.value=void 0};return(o,s)=>(K(),ie(Pe,null,[F("div",ZE,[F("h2",XE,Se(e.rule.id),1),i.value?(K(),$e(pt,{key:0,class:"mt-3 mb-3",error:i.value,disposable:!0,onDispose:g},null,8,["error"])):ge("",!0),a.value?(K(),$e(ho,{key:1,class:"block",message:a.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),F("p",qE,[ae(Sp,{rule:e.rule,onSetMessage:l,onDelete:r,onSetError:d},null,8,["rule"])]),ae(YE,{yaml:e.rule.yaml},null,8,["yaml"])]),QE,F("div",JE,[eR,ae(Jf,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),nR=xe({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=jf(),i=Wi(),a=async()=>{await n.perform(t.id)},r=async()=>{await a()},d=()=>{i.push("/")};return at(async()=>{await a()}),qe(t,async()=>{await a()}),(g,l)=>{var p,o;return K(),ie(Pe,null,[ce(n).isRunning?(K(),$e(wn,{key:0})):ge("",!0),ce(n).isError?(K(),$e(pt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(n).last)!=null&&o.value?(K(),$e(tR,{key:2,rule:ce(n).last.value,onRefresh:r,onDelete:d},null,8,["rule"])):ge("",!0)],64)}}}),iR=xe({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{bn(`Rule:${t.id} - Mihari`)};return at(()=>{n()}),qe(()=>t.id,()=>{n()}),(i,a)=>(K(),$e(nR,{id:e.id},null,8,["id"]))}}),rR=[{path:"/",name:"Alerts",component:dx},{path:"/alerts/:id",name:"Alert",component:kx,props:!0},{path:"/config",name:"Config",component:ak},{path:"/artifacts/",name:"Artifacts",component:xC},{path:"/artifacts/:id",name:"Artifact",component:V2,props:!0},{path:"/rules",name:"Rules",component:GE},{path:"/rules/new",name:"NewRule",component:rE},{path:"/rules/:id",name:"Rule",component:iR,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:Bk,props:!0}],sR=Yb({history:Sb(),routes:rR});hm.add(vm,Om,Tm,gm,Mm,bm,fm,Cm,xm,Em,km,mm,wh,$m,Sm,wm,Lm,Rm,_m);const $p=Jy(j0);$p.component("font-awesome-icon",f0);$p.use(sR).mount("#app");
|