mihari 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1756 +0,0 @@
1
- var mp=Object.defineProperty;var vp=(e,t,n)=>t in e?mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(vp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))i(p);new MutationObserver(p=>{for(const u of p)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function n(p){const u={};return p.integrity&&(u.integrity=p.integrity),p.referrerPolicy&&(u.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?u.credentials="include":p.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(p){if(p.ep)return;p.ep=!0;const u=n(p);fetch(p.href,u)}})();function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(i){et(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function lo(e){"@babel/helpers - typeof";return lo=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},lo(e)}function yp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bp(e,t,n){return t&&Ml(e.prototype,t),n&&Ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _a(e,t){return $p(e)||Cp(e,t)||xu(e,t)||Ap()}function $r(e){return wp(e)||_p(e)||xu(e)||Sp()}function wp(e){if(Array.isArray(e))return Is(e)}function $p(e){if(Array.isArray(e))return e}function _p(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],p=!0,u=!1,f,g;try{for(n=n.call(e);!(p=(f=n.next()).done)&&(i.push(f.value),!(t&&i.length===t));p=!0);}catch(s){u=!0,g=s}finally{try{!p&&n.return!=null&&n.return()}finally{if(u)throw g}}return i}}function xu(e,t){if(e){if(typeof e=="string")return Is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Is(e,t)}}function Is(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 Sp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ap(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ol=function(){},Ca={},Eu={},Ru=null,Tu={mark:Ol,measure:Ol};try{typeof window<"u"&&(Ca=window),typeof document<"u"&&(Eu=document),typeof MutationObserver<"u"&&(Ru=MutationObserver),typeof performance<"u"&&(Tu=performance)}catch{}var kp=Ca.navigator||{},Il=kp.userAgent,Fl=Il===void 0?"":Il,An=Ca,Ve=Eu,Nl=Ru,Mr=Tu;An.document;var ln=!!Ve.documentElement&&!!Ve.head&&typeof Ve.addEventListener=="function"&&typeof Ve.createElement=="function",Lu=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),Or,Ir,Fr,Nr,Pr,on="___FONT_AWESOME___",Fs=16,Mu="fa",Ou="svg-inline--fa",Kn="data-fa-i2svg",Ns="data-fa-pseudo-element",xp="data-fa-pseudo-element-pending",Sa="data-prefix",Aa="data-icon",Pl="fontawesome-i2svg",Ep="async",Rp=["HTML","HEAD","STYLE","SCRIPT"],Iu=function(){try{return!0}catch{return!1}}(),ze="classic",Ze="sharp",ka=[ze,Ze];function _r(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[ze]}})}var rr=_r((Or={},et(Or,ze,{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",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),et(Or,Ze,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Or)),or=_r((Ir={},et(Ir,ze,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),et(Ir,Ze,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Ir)),sr=_r((Fr={},et(Fr,ze,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),et(Fr,Ze,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Fr)),Tp=_r((Nr={},et(Nr,ze,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),et(Nr,Ze,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Nr)),Lp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Fu="fa-layers-text",Mp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Op=_r((Pr={},et(Pr,ze,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),et(Pr,Ze,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Pr)),Nu=[1,2,3,4,5,6,7,8,9,10],Ip=Nu.concat([11,12,13,14,15,16,17,18,19,20]),Fp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Wn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ar=new Set;Object.keys(or[ze]).map(ar.add.bind(ar));Object.keys(or[Ze]).map(ar.add.bind(ar));var Np=[].concat(ka,$r(ar),["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",Wn.GROUP,Wn.SWAP_OPACITY,Wn.PRIMARY,Wn.SECONDARY]).concat(Nu.map(function(e){return"".concat(e,"x")})).concat(Ip.map(function(e){return"w-".concat(e)})),Ki=An.FontAwesomeConfig||{};function Pp(e){var t=Ve.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Dp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ve&&typeof Ve.querySelector=="function"){var Bp=[["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"]];Bp.forEach(function(e){var t=_a(e,2),n=t[0],i=t[1],p=Dp(Pp(n));p!=null&&(Ki[i]=p)})}var Pu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Mu,replacementClass:Ou,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ki.familyPrefix&&(Ki.cssPrefix=Ki.familyPrefix);var gi=pe(pe({},Pu),Ki);gi.autoReplaceSvg||(gi.observeMutations=!1);var ye={};Object.keys(Pu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){gi[e]=n,Yi.forEach(function(i){return i(ye)})},get:function(){return gi[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){gi.cssPrefix=t,Yi.forEach(function(n){return n(ye)})},get:function(){return gi.cssPrefix}});An.FontAwesomeConfig=ye;var Yi=[];function Wp(e){return Yi.push(e),function(){Yi.splice(Yi.indexOf(e),1)}}var dn=Fs,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Hp(e){if(!(!e||!ln)){var t=Ve.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ve.head.childNodes,i=null,p=n.length-1;p>-1;p--){var u=n[p],f=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(i=u)}return Ve.head.insertBefore(t,i),e}}var Up="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lr(){for(var e=12,t="";e-- >0;)t+=Up[Math.random()*62|0];return t}function xi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function xa(e){return e.classList?xi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Du(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Du(e[n]),'" ')},"").trim()}function Ro(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ea(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function Vp(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,p={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),f="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(u," ").concat(f," ").concat(g)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:p,inner:s,path:h}}function jp(e){var t=e.transform,n=e.width,i=n===void 0?Fs:n,p=e.height,u=p===void 0?Fs:p,f=e.startCentered,g=f===void 0?!1:f,s="";return g&&Lu?s+="translate(".concat(t.x/dn-i/2,"em, ").concat(t.y/dn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/dn,"em), calc(-50% + ").concat(t.y/dn,"em)) "):s+="translate(".concat(t.x/dn,"em, ").concat(t.y/dn,"em) "),s+="scale(".concat(t.size/dn*(t.flipX?-1:1),", ").concat(t.size/dn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Gp=`:root, :host {
4
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
5
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
6
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
7
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
8
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
9
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
10
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
11
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
12
- --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
13
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
14
- }
15
-
16
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
17
- overflow: visible;
18
- box-sizing: content-box;
19
- }
20
-
21
- .svg-inline--fa {
22
- display: var(--fa-display, inline-block);
23
- height: 1em;
24
- overflow: visible;
25
- vertical-align: -0.125em;
26
- }
27
- .svg-inline--fa.fa-2xs {
28
- vertical-align: 0.1em;
29
- }
30
- .svg-inline--fa.fa-xs {
31
- vertical-align: 0em;
32
- }
33
- .svg-inline--fa.fa-sm {
34
- vertical-align: -0.0714285705em;
35
- }
36
- .svg-inline--fa.fa-lg {
37
- vertical-align: -0.2em;
38
- }
39
- .svg-inline--fa.fa-xl {
40
- vertical-align: -0.25em;
41
- }
42
- .svg-inline--fa.fa-2xl {
43
- vertical-align: -0.3125em;
44
- }
45
- .svg-inline--fa.fa-pull-left {
46
- margin-right: var(--fa-pull-margin, 0.3em);
47
- width: auto;
48
- }
49
- .svg-inline--fa.fa-pull-right {
50
- margin-left: var(--fa-pull-margin, 0.3em);
51
- width: auto;
52
- }
53
- .svg-inline--fa.fa-li {
54
- width: var(--fa-li-width, 2em);
55
- top: 0.25em;
56
- }
57
- .svg-inline--fa.fa-fw {
58
- width: var(--fa-fw-width, 1.25em);
59
- }
60
-
61
- .fa-layers svg.svg-inline--fa {
62
- bottom: 0;
63
- left: 0;
64
- margin: auto;
65
- position: absolute;
66
- right: 0;
67
- top: 0;
68
- }
69
-
70
- .fa-layers-counter, .fa-layers-text {
71
- display: inline-block;
72
- position: absolute;
73
- text-align: center;
74
- }
75
-
76
- .fa-layers {
77
- display: inline-block;
78
- height: 1em;
79
- position: relative;
80
- text-align: center;
81
- vertical-align: -0.125em;
82
- width: 1em;
83
- }
84
- .fa-layers svg.svg-inline--fa {
85
- -webkit-transform-origin: center center;
86
- transform-origin: center center;
87
- }
88
-
89
- .fa-layers-text {
90
- left: 50%;
91
- top: 50%;
92
- -webkit-transform: translate(-50%, -50%);
93
- transform: translate(-50%, -50%);
94
- -webkit-transform-origin: center center;
95
- transform-origin: center center;
96
- }
97
-
98
- .fa-layers-counter {
99
- background-color: var(--fa-counter-background-color, #ff253a);
100
- border-radius: var(--fa-counter-border-radius, 1em);
101
- box-sizing: border-box;
102
- color: var(--fa-inverse, #fff);
103
- line-height: var(--fa-counter-line-height, 1);
104
- max-width: var(--fa-counter-max-width, 5em);
105
- min-width: var(--fa-counter-min-width, 1.5em);
106
- overflow: hidden;
107
- padding: var(--fa-counter-padding, 0.25em 0.5em);
108
- right: var(--fa-right, 0);
109
- text-overflow: ellipsis;
110
- top: var(--fa-top, 0);
111
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
112
- transform: scale(var(--fa-counter-scale, 0.25));
113
- -webkit-transform-origin: top right;
114
- transform-origin: top right;
115
- }
116
-
117
- .fa-layers-bottom-right {
118
- bottom: var(--fa-bottom, 0);
119
- right: var(--fa-right, 0);
120
- top: auto;
121
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
122
- transform: scale(var(--fa-layers-scale, 0.25));
123
- -webkit-transform-origin: bottom right;
124
- transform-origin: bottom right;
125
- }
126
-
127
- .fa-layers-bottom-left {
128
- bottom: var(--fa-bottom, 0);
129
- left: var(--fa-left, 0);
130
- right: auto;
131
- top: auto;
132
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
133
- transform: scale(var(--fa-layers-scale, 0.25));
134
- -webkit-transform-origin: bottom left;
135
- transform-origin: bottom left;
136
- }
137
-
138
- .fa-layers-top-right {
139
- top: var(--fa-top, 0);
140
- right: var(--fa-right, 0);
141
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
142
- transform: scale(var(--fa-layers-scale, 0.25));
143
- -webkit-transform-origin: top right;
144
- transform-origin: top right;
145
- }
146
-
147
- .fa-layers-top-left {
148
- left: var(--fa-left, 0);
149
- right: auto;
150
- top: var(--fa-top, 0);
151
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
152
- transform: scale(var(--fa-layers-scale, 0.25));
153
- -webkit-transform-origin: top left;
154
- transform-origin: top left;
155
- }
156
-
157
- .fa-1x {
158
- font-size: 1em;
159
- }
160
-
161
- .fa-2x {
162
- font-size: 2em;
163
- }
164
-
165
- .fa-3x {
166
- font-size: 3em;
167
- }
168
-
169
- .fa-4x {
170
- font-size: 4em;
171
- }
172
-
173
- .fa-5x {
174
- font-size: 5em;
175
- }
176
-
177
- .fa-6x {
178
- font-size: 6em;
179
- }
180
-
181
- .fa-7x {
182
- font-size: 7em;
183
- }
184
-
185
- .fa-8x {
186
- font-size: 8em;
187
- }
188
-
189
- .fa-9x {
190
- font-size: 9em;
191
- }
192
-
193
- .fa-10x {
194
- font-size: 10em;
195
- }
196
-
197
- .fa-2xs {
198
- font-size: 0.625em;
199
- line-height: 0.1em;
200
- vertical-align: 0.225em;
201
- }
202
-
203
- .fa-xs {
204
- font-size: 0.75em;
205
- line-height: 0.0833333337em;
206
- vertical-align: 0.125em;
207
- }
208
-
209
- .fa-sm {
210
- font-size: 0.875em;
211
- line-height: 0.0714285718em;
212
- vertical-align: 0.0535714295em;
213
- }
214
-
215
- .fa-lg {
216
- font-size: 1.25em;
217
- line-height: 0.05em;
218
- vertical-align: -0.075em;
219
- }
220
-
221
- .fa-xl {
222
- font-size: 1.5em;
223
- line-height: 0.0416666682em;
224
- vertical-align: -0.125em;
225
- }
226
-
227
- .fa-2xl {
228
- font-size: 2em;
229
- line-height: 0.03125em;
230
- vertical-align: -0.1875em;
231
- }
232
-
233
- .fa-fw {
234
- text-align: center;
235
- width: 1.25em;
236
- }
237
-
238
- .fa-ul {
239
- list-style-type: none;
240
- margin-left: var(--fa-li-margin, 2.5em);
241
- padding-left: 0;
242
- }
243
- .fa-ul > li {
244
- position: relative;
245
- }
246
-
247
- .fa-li {
248
- left: calc(var(--fa-li-width, 2em) * -1);
249
- position: absolute;
250
- text-align: center;
251
- width: var(--fa-li-width, 2em);
252
- line-height: inherit;
253
- }
254
-
255
- .fa-border {
256
- border-color: var(--fa-border-color, #eee);
257
- border-radius: var(--fa-border-radius, 0.1em);
258
- border-style: var(--fa-border-style, solid);
259
- border-width: var(--fa-border-width, 0.08em);
260
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
261
- }
262
-
263
- .fa-pull-left {
264
- float: left;
265
- margin-right: var(--fa-pull-margin, 0.3em);
266
- }
267
-
268
- .fa-pull-right {
269
- float: right;
270
- margin-left: var(--fa-pull-margin, 0.3em);
271
- }
272
-
273
- .fa-beat {
274
- -webkit-animation-name: fa-beat;
275
- animation-name: fa-beat;
276
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
277
- animation-delay: var(--fa-animation-delay, 0s);
278
- -webkit-animation-direction: var(--fa-animation-direction, normal);
279
- animation-direction: var(--fa-animation-direction, normal);
280
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
281
- animation-duration: var(--fa-animation-duration, 1s);
282
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
283
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
284
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
285
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
286
- }
287
-
288
- .fa-bounce {
289
- -webkit-animation-name: fa-bounce;
290
- animation-name: fa-bounce;
291
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
292
- animation-delay: var(--fa-animation-delay, 0s);
293
- -webkit-animation-direction: var(--fa-animation-direction, normal);
294
- animation-direction: var(--fa-animation-direction, normal);
295
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
296
- animation-duration: var(--fa-animation-duration, 1s);
297
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
298
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
299
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
300
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
301
- }
302
-
303
- .fa-fade {
304
- -webkit-animation-name: fa-fade;
305
- animation-name: fa-fade;
306
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
307
- animation-delay: var(--fa-animation-delay, 0s);
308
- -webkit-animation-direction: var(--fa-animation-direction, normal);
309
- animation-direction: var(--fa-animation-direction, normal);
310
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
311
- animation-duration: var(--fa-animation-duration, 1s);
312
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
313
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
314
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
315
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
316
- }
317
-
318
- .fa-beat-fade {
319
- -webkit-animation-name: fa-beat-fade;
320
- animation-name: fa-beat-fade;
321
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
322
- animation-delay: var(--fa-animation-delay, 0s);
323
- -webkit-animation-direction: var(--fa-animation-direction, normal);
324
- animation-direction: var(--fa-animation-direction, normal);
325
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
326
- animation-duration: var(--fa-animation-duration, 1s);
327
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
328
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
329
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
330
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
331
- }
332
-
333
- .fa-flip {
334
- -webkit-animation-name: fa-flip;
335
- animation-name: fa-flip;
336
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
337
- animation-delay: var(--fa-animation-delay, 0s);
338
- -webkit-animation-direction: var(--fa-animation-direction, normal);
339
- animation-direction: var(--fa-animation-direction, normal);
340
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
341
- animation-duration: var(--fa-animation-duration, 1s);
342
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
343
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
344
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
345
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
346
- }
347
-
348
- .fa-shake {
349
- -webkit-animation-name: fa-shake;
350
- animation-name: fa-shake;
351
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
352
- animation-delay: var(--fa-animation-delay, 0s);
353
- -webkit-animation-direction: var(--fa-animation-direction, normal);
354
- animation-direction: var(--fa-animation-direction, normal);
355
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
356
- animation-duration: var(--fa-animation-duration, 1s);
357
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
358
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
359
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
360
- animation-timing-function: var(--fa-animation-timing, linear);
361
- }
362
-
363
- .fa-spin {
364
- -webkit-animation-name: fa-spin;
365
- animation-name: fa-spin;
366
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
367
- animation-delay: var(--fa-animation-delay, 0s);
368
- -webkit-animation-direction: var(--fa-animation-direction, normal);
369
- animation-direction: var(--fa-animation-direction, normal);
370
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
371
- animation-duration: var(--fa-animation-duration, 2s);
372
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
373
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
374
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
375
- animation-timing-function: var(--fa-animation-timing, linear);
376
- }
377
-
378
- .fa-spin-reverse {
379
- --fa-animation-direction: reverse;
380
- }
381
-
382
- .fa-pulse,
383
- .fa-spin-pulse {
384
- -webkit-animation-name: fa-spin;
385
- animation-name: fa-spin;
386
- -webkit-animation-direction: var(--fa-animation-direction, normal);
387
- animation-direction: var(--fa-animation-direction, normal);
388
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
389
- animation-duration: var(--fa-animation-duration, 1s);
390
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
391
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
392
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
393
- animation-timing-function: var(--fa-animation-timing, steps(8));
394
- }
395
-
396
- @media (prefers-reduced-motion: reduce) {
397
- .fa-beat,
398
- .fa-bounce,
399
- .fa-fade,
400
- .fa-beat-fade,
401
- .fa-flip,
402
- .fa-pulse,
403
- .fa-shake,
404
- .fa-spin,
405
- .fa-spin-pulse {
406
- -webkit-animation-delay: -1ms;
407
- animation-delay: -1ms;
408
- -webkit-animation-duration: 1ms;
409
- animation-duration: 1ms;
410
- -webkit-animation-iteration-count: 1;
411
- animation-iteration-count: 1;
412
- -webkit-transition-delay: 0s;
413
- transition-delay: 0s;
414
- -webkit-transition-duration: 0s;
415
- transition-duration: 0s;
416
- }
417
- }
418
- @-webkit-keyframes fa-beat {
419
- 0%, 90% {
420
- -webkit-transform: scale(1);
421
- transform: scale(1);
422
- }
423
- 45% {
424
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
425
- transform: scale(var(--fa-beat-scale, 1.25));
426
- }
427
- }
428
- @keyframes fa-beat {
429
- 0%, 90% {
430
- -webkit-transform: scale(1);
431
- transform: scale(1);
432
- }
433
- 45% {
434
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
435
- transform: scale(var(--fa-beat-scale, 1.25));
436
- }
437
- }
438
- @-webkit-keyframes fa-bounce {
439
- 0% {
440
- -webkit-transform: scale(1, 1) translateY(0);
441
- transform: scale(1, 1) translateY(0);
442
- }
443
- 10% {
444
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
445
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
446
- }
447
- 30% {
448
- -webkit-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));
449
- 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));
450
- }
451
- 50% {
452
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
453
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
454
- }
455
- 57% {
456
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
457
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
458
- }
459
- 64% {
460
- -webkit-transform: scale(1, 1) translateY(0);
461
- transform: scale(1, 1) translateY(0);
462
- }
463
- 100% {
464
- -webkit-transform: scale(1, 1) translateY(0);
465
- transform: scale(1, 1) translateY(0);
466
- }
467
- }
468
- @keyframes fa-bounce {
469
- 0% {
470
- -webkit-transform: scale(1, 1) translateY(0);
471
- transform: scale(1, 1) translateY(0);
472
- }
473
- 10% {
474
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
475
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
476
- }
477
- 30% {
478
- -webkit-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));
479
- 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));
480
- }
481
- 50% {
482
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
483
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
484
- }
485
- 57% {
486
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
487
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
488
- }
489
- 64% {
490
- -webkit-transform: scale(1, 1) translateY(0);
491
- transform: scale(1, 1) translateY(0);
492
- }
493
- 100% {
494
- -webkit-transform: scale(1, 1) translateY(0);
495
- transform: scale(1, 1) translateY(0);
496
- }
497
- }
498
- @-webkit-keyframes fa-fade {
499
- 50% {
500
- opacity: var(--fa-fade-opacity, 0.4);
501
- }
502
- }
503
- @keyframes fa-fade {
504
- 50% {
505
- opacity: var(--fa-fade-opacity, 0.4);
506
- }
507
- }
508
- @-webkit-keyframes fa-beat-fade {
509
- 0%, 100% {
510
- opacity: var(--fa-beat-fade-opacity, 0.4);
511
- -webkit-transform: scale(1);
512
- transform: scale(1);
513
- }
514
- 50% {
515
- opacity: 1;
516
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
517
- transform: scale(var(--fa-beat-fade-scale, 1.125));
518
- }
519
- }
520
- @keyframes fa-beat-fade {
521
- 0%, 100% {
522
- opacity: var(--fa-beat-fade-opacity, 0.4);
523
- -webkit-transform: scale(1);
524
- transform: scale(1);
525
- }
526
- 50% {
527
- opacity: 1;
528
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
529
- transform: scale(var(--fa-beat-fade-scale, 1.125));
530
- }
531
- }
532
- @-webkit-keyframes fa-flip {
533
- 50% {
534
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
535
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
536
- }
537
- }
538
- @keyframes fa-flip {
539
- 50% {
540
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
541
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
542
- }
543
- }
544
- @-webkit-keyframes fa-shake {
545
- 0% {
546
- -webkit-transform: rotate(-15deg);
547
- transform: rotate(-15deg);
548
- }
549
- 4% {
550
- -webkit-transform: rotate(15deg);
551
- transform: rotate(15deg);
552
- }
553
- 8%, 24% {
554
- -webkit-transform: rotate(-18deg);
555
- transform: rotate(-18deg);
556
- }
557
- 12%, 28% {
558
- -webkit-transform: rotate(18deg);
559
- transform: rotate(18deg);
560
- }
561
- 16% {
562
- -webkit-transform: rotate(-22deg);
563
- transform: rotate(-22deg);
564
- }
565
- 20% {
566
- -webkit-transform: rotate(22deg);
567
- transform: rotate(22deg);
568
- }
569
- 32% {
570
- -webkit-transform: rotate(-12deg);
571
- transform: rotate(-12deg);
572
- }
573
- 36% {
574
- -webkit-transform: rotate(12deg);
575
- transform: rotate(12deg);
576
- }
577
- 40%, 100% {
578
- -webkit-transform: rotate(0deg);
579
- transform: rotate(0deg);
580
- }
581
- }
582
- @keyframes fa-shake {
583
- 0% {
584
- -webkit-transform: rotate(-15deg);
585
- transform: rotate(-15deg);
586
- }
587
- 4% {
588
- -webkit-transform: rotate(15deg);
589
- transform: rotate(15deg);
590
- }
591
- 8%, 24% {
592
- -webkit-transform: rotate(-18deg);
593
- transform: rotate(-18deg);
594
- }
595
- 12%, 28% {
596
- -webkit-transform: rotate(18deg);
597
- transform: rotate(18deg);
598
- }
599
- 16% {
600
- -webkit-transform: rotate(-22deg);
601
- transform: rotate(-22deg);
602
- }
603
- 20% {
604
- -webkit-transform: rotate(22deg);
605
- transform: rotate(22deg);
606
- }
607
- 32% {
608
- -webkit-transform: rotate(-12deg);
609
- transform: rotate(-12deg);
610
- }
611
- 36% {
612
- -webkit-transform: rotate(12deg);
613
- transform: rotate(12deg);
614
- }
615
- 40%, 100% {
616
- -webkit-transform: rotate(0deg);
617
- transform: rotate(0deg);
618
- }
619
- }
620
- @-webkit-keyframes fa-spin {
621
- 0% {
622
- -webkit-transform: rotate(0deg);
623
- transform: rotate(0deg);
624
- }
625
- 100% {
626
- -webkit-transform: rotate(360deg);
627
- transform: rotate(360deg);
628
- }
629
- }
630
- @keyframes fa-spin {
631
- 0% {
632
- -webkit-transform: rotate(0deg);
633
- transform: rotate(0deg);
634
- }
635
- 100% {
636
- -webkit-transform: rotate(360deg);
637
- transform: rotate(360deg);
638
- }
639
- }
640
- .fa-rotate-90 {
641
- -webkit-transform: rotate(90deg);
642
- transform: rotate(90deg);
643
- }
644
-
645
- .fa-rotate-180 {
646
- -webkit-transform: rotate(180deg);
647
- transform: rotate(180deg);
648
- }
649
-
650
- .fa-rotate-270 {
651
- -webkit-transform: rotate(270deg);
652
- transform: rotate(270deg);
653
- }
654
-
655
- .fa-flip-horizontal {
656
- -webkit-transform: scale(-1, 1);
657
- transform: scale(-1, 1);
658
- }
659
-
660
- .fa-flip-vertical {
661
- -webkit-transform: scale(1, -1);
662
- transform: scale(1, -1);
663
- }
664
-
665
- .fa-flip-both,
666
- .fa-flip-horizontal.fa-flip-vertical {
667
- -webkit-transform: scale(-1, -1);
668
- transform: scale(-1, -1);
669
- }
670
-
671
- .fa-rotate-by {
672
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
673
- transform: rotate(var(--fa-rotate-angle, none));
674
- }
675
-
676
- .fa-stack {
677
- display: inline-block;
678
- vertical-align: middle;
679
- height: 2em;
680
- position: relative;
681
- width: 2.5em;
682
- }
683
-
684
- .fa-stack-1x,
685
- .fa-stack-2x {
686
- bottom: 0;
687
- left: 0;
688
- margin: auto;
689
- position: absolute;
690
- right: 0;
691
- top: 0;
692
- z-index: var(--fa-stack-z-index, auto);
693
- }
694
-
695
- .svg-inline--fa.fa-stack-1x {
696
- height: 1em;
697
- width: 1.25em;
698
- }
699
- .svg-inline--fa.fa-stack-2x {
700
- height: 2em;
701
- width: 2.5em;
702
- }
703
-
704
- .fa-inverse {
705
- color: var(--fa-inverse, #fff);
706
- }
707
-
708
- .sr-only,
709
- .fa-sr-only {
710
- position: absolute;
711
- width: 1px;
712
- height: 1px;
713
- padding: 0;
714
- margin: -1px;
715
- overflow: hidden;
716
- clip: rect(0, 0, 0, 0);
717
- white-space: nowrap;
718
- border-width: 0;
719
- }
720
-
721
- .sr-only-focusable:not(:focus),
722
- .fa-sr-only-focusable:not(:focus) {
723
- position: absolute;
724
- width: 1px;
725
- height: 1px;
726
- padding: 0;
727
- margin: -1px;
728
- overflow: hidden;
729
- clip: rect(0, 0, 0, 0);
730
- white-space: nowrap;
731
- border-width: 0;
732
- }
733
-
734
- .svg-inline--fa .fa-primary {
735
- fill: var(--fa-primary-color, currentColor);
736
- opacity: var(--fa-primary-opacity, 1);
737
- }
738
-
739
- .svg-inline--fa .fa-secondary {
740
- fill: var(--fa-secondary-color, currentColor);
741
- opacity: var(--fa-secondary-opacity, 0.4);
742
- }
743
-
744
- .svg-inline--fa.fa-swap-opacity .fa-primary {
745
- opacity: var(--fa-secondary-opacity, 0.4);
746
- }
747
-
748
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
749
- opacity: var(--fa-primary-opacity, 1);
750
- }
751
-
752
- .svg-inline--fa mask .fa-primary,
753
- .svg-inline--fa mask .fa-secondary {
754
- fill: black;
755
- }
756
-
757
- .fad.fa-inverse,
758
- .fa-duotone.fa-inverse {
759
- color: var(--fa-inverse, #fff);
760
- }`;function Bu(){var e=Mu,t=Ou,n=ye.cssPrefix,i=ye.replacementClass,p=Gp;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");p=p.replace(u,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(i))}return p}var Dl=!1;function fs(){ye.autoAddCss&&!Dl&&(Hp(Bu()),Dl=!0)}var Kp={mixout:function(){return{dom:{css:Bu,insertCss:fs}}},hooks:function(){return{beforeDOMElementCreation:function(){fs()},beforeI2svg:function(){fs()}}}},sn=An||{};sn[on]||(sn[on]={});sn[on].styles||(sn[on].styles={});sn[on].hooks||(sn[on].hooks={});sn[on].shims||(sn[on].shims=[]);var It=sn[on],Wu=[],Yp=function e(){Ve.removeEventListener("DOMContentLoaded",e),co=1,Wu.map(function(t){return t()})},co=!1;ln&&(co=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),co||Ve.addEventListener("DOMContentLoaded",Yp));function Xp(e){ln&&(co?setTimeout(e,0):Wu.push(e))}function Cr(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,p=e.children,u=p===void 0?[]:p;return typeof e=="string"?Du(e):"<".concat(t," ").concat(zp(i),">").concat(u.map(Cr).join(""),"</").concat(t,">")}function Bl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Zp=function(t,n){return function(i,p,u,f){return t.call(n,i,p,u,f)}},ds=function(t,n,i,p){var u=Object.keys(t),f=u.length,g=p!==void 0?Zp(n,p):n,s,h,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s<f;s++)h=u[s],o=g(o,t[h],h,t);return o};function Qp(e){for(var t=[],n=0,i=e.length;n<i;){var p=e.charCodeAt(n++);if(p>=55296&&p<=56319&&n<i){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((p&1023)<<10)+(u&1023)+65536):(t.push(p),n--)}else t.push(p)}return t}function Ps(e){var t=Qp(e);return t.length===1?t[0].toString(16):null}function Jp(e,t){var n=e.length,i=e.charCodeAt(t),p;return i>=55296&&i<=56319&&n>t+1&&(p=e.charCodeAt(t+1),p>=56320&&p<=57343)?(i-55296)*1024+p-56320+65536:i}function Wl(e){return Object.keys(e).reduce(function(t,n){var i=e[n],p=!!i.icon;return p?t[i.iconName]=i.icon:t[n]=i,t},{})}function Ds(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,p=i===void 0?!1:i,u=Wl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Wl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Ds("fa",t)}var Dr,Br,Wr,si=It.styles,qp=It.shims,eg=(Dr={},et(Dr,ze,Object.values(sr[ze])),et(Dr,Ze,Object.values(sr[Ze])),Dr),Ra=null,Hu={},Uu={},zu={},Vu={},ju={},tg=(Br={},et(Br,ze,Object.keys(rr[ze])),et(Br,Ze,Object.keys(rr[Ze])),Br);function ng(e){return~Np.indexOf(e)}function ig(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!ng(p)?p:null}var Gu=function(){var t=function(u){return ds(si,function(f,g,s){return f[s]=ds(g,u,{}),f},{})};Hu=t(function(p,u,f){if(u[3]&&(p[u[3]]=f),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){p[s.toString(16)]=f})}return p}),Uu=t(function(p,u,f){if(p[f]=f,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){p[s]=f})}return p}),ju=t(function(p,u,f){var g=u[2];return p[f]=f,g.forEach(function(s){p[s]=f}),p});var n="far"in si||ye.autoFetchSvg,i=ds(qp,function(p,u){var f=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof f=="string"&&(p.names[f]={prefix:g,iconName:s}),typeof f=="number"&&(p.unicodes[f.toString(16)]={prefix:g,iconName:s}),p},{names:{},unicodes:{}});zu=i.names,Vu=i.unicodes,Ra=To(ye.styleDefault,{family:ye.familyDefault})};Wp(function(e){Ra=To(e.styleDefault,{family:ye.familyDefault})});Gu();function Ta(e,t){return(Hu[e]||{})[t]}function rg(e,t){return(Uu[e]||{})[t]}function Hn(e,t){return(ju[e]||{})[t]}function Ku(e){return zu[e]||{prefix:null,iconName:null}}function og(e){var t=Vu[e],n=Ta("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return Ra}var La=function(){return{prefix:null,iconName:null,rest:[]}};function To(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?ze:n,p=rr[i][e],u=or[i][e]||or[i][p],f=e in It.styles?e:null;return u||f||null}var Hl=(Wr={},et(Wr,ze,Object.keys(sr[ze])),et(Wr,Ze,Object.keys(sr[Ze])),Wr);function Lo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},et(t,ze,"".concat(ye.cssPrefix,"-").concat(ze)),et(t,Ze,"".concat(ye.cssPrefix,"-").concat(Ze)),t),f=null,g=ze;(e.includes(u[ze])||e.some(function(h){return Hl[ze].includes(h)}))&&(g=ze),(e.includes(u[Ze])||e.some(function(h){return Hl[Ze].includes(h)}))&&(g=Ze);var s=e.reduce(function(h,o){var r=ig(ye.cssPrefix,o);if(si[o]?(o=eg[g].includes(o)?Tp[g][o]:o,f=o,h.prefix=o):tg[g].indexOf(o)>-1?(f=o,h.prefix=To(o,{family:g})):r?h.iconName=r:o!==ye.replacementClass&&o!==u[ze]&&o!==u[Ze]&&h.rest.push(o),!p&&h.prefix&&h.iconName){var a=f==="fa"?Ku(h.iconName):{},l=Hn(h.prefix,h.iconName);a.prefix&&(f=null),h.iconName=a.iconName||l||h.iconName,h.prefix=a.prefix||h.prefix,h.prefix==="far"&&!si.far&&si.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},La());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Ze&&(si.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=Hn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||f==="fa")&&(s.prefix=kn()||"fas"),s}var sg=function(){function e(){yp(this,e),this.definitions={}}return bp(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,p=new Array(i),u=0;u<i;u++)p[u]=arguments[u];var f=p.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(g){n.definitions[g]=pe(pe({},n.definitions[g]||{}),f[g]),Ds(g,f[g]);var s=sr[ze][g];s&&Ds(s,f[g]),Gu()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var p=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(p).map(function(u){var f=p[u],g=f.prefix,s=f.iconName,h=f.icon,o=h[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=h)}),n[g][s]=h}),n}}]),e}(),Ul=[],ai={},ci={},ag=Object.keys(ci);function lg(e,t){var n=t.mixoutsTo;return Ul=e,ai={},Object.keys(ci).forEach(function(i){ag.indexOf(i)===-1&&delete ci[i]}),Ul.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(f){typeof p[f]=="function"&&(n[f]=p[f]),lo(p[f])==="object"&&Object.keys(p[f]).forEach(function(g){n[f]||(n[f]={}),n[f][g]=p[f][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(f){ai[f]||(ai[f]=[]),ai[f].push(u[f])})}i.provides&&i.provides(ci)}),n}function Bs(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),p=2;p<n;p++)i[p-2]=arguments[p];var u=ai[e]||[];return u.forEach(function(f){t=f.apply(null,[t].concat(i))}),t}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var p=ai[e]||[];p.forEach(function(u){u.apply(null,n)})}function an(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ci[e]?ci[e].apply(null,t):void 0}function Ws(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||kn();if(t)return t=Hn(n,t)||t,Bl(Yu.definitions,n,t)||Bl(It.styles,n,t)}var Yu=new sg,cg=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Yn("noAuto")},ug={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ln?(Yn("beforeI2svg",t),an("pseudoElements2svg",t),an("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Xp(function(){fg({autoReplaceSvgRoot:n}),Yn("watch",t)})}},hg={icon:function(t){if(t===null)return null;if(lo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Hn(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=To(t[0]);return{prefix:i,iconName:Hn(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(Lp))){var p=Lo(t.split(" "),{skipLookups:!0});return{prefix:p.prefix||kn(),iconName:Hn(p.prefix,p.iconName)||p.iconName}}if(typeof t=="string"){var u=kn();return{prefix:u,iconName:Hn(u,t)||t}}}},_t={noAuto:cg,config:ye,dom:ug,parse:hg,library:Yu,findIconDefinition:Ws,toHtml:Cr},fg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?Ve:n;(Object.keys(It.styles).length>0||ye.autoFetchSvg)&&ln&&ye.autoReplaceSvg&&_t.dom.i2svg({node:i})};function Mo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(ln){var i=Ve.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function dg(e){var t=e.children,n=e.main,i=e.mask,p=e.attributes,u=e.styles,f=e.transform;if(Ea(f)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};p.style=Ro(pe(pe({},u),{},{"transform-origin":"".concat(h.x+f.x/16,"em ").concat(h.y+f.y/16,"em")}))}return[{tag:"svg",attributes:p,children:t}]}function pg(e){var t=e.prefix,n=e.iconName,i=e.children,p=e.attributes,u=e.symbol,f=u===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},p),{},{id:f}),children:i}]}]}function Ma(e){var t=e.icons,n=t.main,i=t.mask,p=e.prefix,u=e.iconName,f=e.transform,g=e.symbol,s=e.title,h=e.maskId,o=e.titleId,r=e.extra,a=e.watchable,l=a===void 0?!1:a,c=i.found?i:n,d=c.width,m=c.height,v=p==="fak",y=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(x){return r.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(r.classes).join(" "),k={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":p,"data-icon":u,class:y,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)})},C=v&&!~r.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};l&&(k.attributes[Kn]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(o||lr())},children:[s]}),delete k.attributes.title);var S=pe(pe({},k),{},{prefix:p,iconName:u,main:n,mask:i,maskId:h,transform:f,symbol:g,styles:pe(pe({},C),r.styles)}),$=i.found&&n.found?an("generateAbstractMask",S)||{children:[],attributes:{}}:an("generateAbstractIcon",S)||{children:[],attributes:{}},R=$.children,L=$.attributes;return S.children=R,S.attributes=L,g?pg(S):dg(S)}function zl(e){var t=e.content,n=e.width,i=e.height,p=e.transform,u=e.title,f=e.extra,g=e.watchable,s=g===void 0?!1:g,h=pe(pe(pe({},f.attributes),u?{title:u}:{}),{},{class:f.classes.join(" ")});s&&(h[Kn]="");var o=pe({},f.styles);Ea(p)&&(o.transform=jp({transform:p,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=Ro(o);r.length>0&&(h.style=r);var a=[];return a.push({tag:"span",attributes:h,children:[t]}),u&&a.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),a}function gg(e){var t=e.content,n=e.title,i=e.extra,p=pe(pe(pe({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),u=Ro(i.styles);u.length>0&&(p.style=u);var f=[];return f.push({tag:"span",attributes:p,children:[t]}),n&&f.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),f}var ps=It.styles;function Hs(e){var t=e[0],n=e[1],i=e.slice(4),p=_a(i,1),u=p[0],f=null;return Array.isArray(u)?f={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Wn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Wn.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Wn.PRIMARY),fill:"currentColor",d:u[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:f}}var mg={found:!1,width:512,height:512};function vg(e,t){!Iu&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Us(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=kn()),new Promise(function(i,p){if(an("missingIconAbstract"),n==="fa"){var u=Ku(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&ps[t]&&ps[t][e]){var f=ps[t][e];return i(Hs(f))}vg(e,t),i(pe(pe({},mg),{},{icon:ye.showMissingIcons&&e?an("missingIconAbstract")||{}:{}}))})}var Vl=function(){},zs=ye.measurePerformance&&Mr&&Mr.mark&&Mr.measure?Mr:{mark:Vl,measure:Vl},zi='FA "6.5.1"',yg=function(t){return zs.mark("".concat(zi," ").concat(t," begins")),function(){return Xu(t)}},Xu=function(t){zs.mark("".concat(zi," ").concat(t," ends")),zs.measure("".concat(zi," ").concat(t),"".concat(zi," ").concat(t," begins"),"".concat(zi," ").concat(t," ends"))},Oa={begin:yg,end:Xu},eo=function(){};function jl(e){var t=e.getAttribute?e.getAttribute(Kn):null;return typeof t=="string"}function bg(e){var t=e.getAttribute?e.getAttribute(Sa):null,n=e.getAttribute?e.getAttribute(Aa):null;return t&&n}function wg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function $g(){if(ye.autoReplaceSvg===!0)return to.replace;var e=to[ye.autoReplaceSvg];return e||to.replace}function _g(e){return Ve.createElementNS("http://www.w3.org/2000/svg",e)}function Cg(e){return Ve.createElement(e)}function Zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?_g:Cg:n;if(typeof e=="string")return Ve.createTextNode(e);var p=i(e.tag);Object.keys(e.attributes||[]).forEach(function(f){p.setAttribute(f,e.attributes[f])});var u=e.children||[];return u.forEach(function(f){p.appendChild(Zu(f,{ceFn:i}))}),p}function Sg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var to={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(Zu(p),n)}),n.getAttribute(Kn)===null&&ye.keepOriginalSource){var i=Ve.createComment(Sg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~xa(n).indexOf(ye.replacementClass))return to.replace(t);var p=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var u=i[0].attributes.class.split(" ").reduce(function(g,s){return s===ye.replacementClass||s.match(p)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});i[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var f=i.map(function(g){return Cr(g)}).join(`
761
- `);n.setAttribute(Kn,""),n.innerHTML=f}};function Gl(e){e()}function Qu(e,t){var n=typeof t=="function"?t:eo;if(e.length===0)n();else{var i=Gl;ye.mutateApproach===Ep&&(i=An.requestAnimationFrame||Gl),i(function(){var p=$g(),u=Oa.begin("mutate");e.map(p),u(),n()})}}var Ia=!1;function Ju(){Ia=!0}function Vs(){Ia=!1}var uo=null;function Kl(e){if(Nl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?eo:t,i=e.nodeCallback,p=i===void 0?eo:i,u=e.pseudoElementsCallback,f=u===void 0?eo:u,g=e.observeMutationsRoot,s=g===void 0?Ve:g;uo=new Nl(function(h){if(!Ia){var o=kn();xi(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!jl(r.addedNodes[0])&&(ye.searchPseudoElements&&f(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&f(r.target.parentNode),r.type==="attributes"&&jl(r.target)&&~Fp.indexOf(r.attributeName))if(r.attributeName==="class"&&bg(r.target)){var a=Lo(xa(r.target)),l=a.prefix,c=a.iconName;r.target.setAttribute(Sa,l||o),c&&r.target.setAttribute(Aa,c)}else wg(r.target)&&p(r.target)})}}),ln&&uo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ag(){uo&&uo.disconnect()}function kg(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,p){var u=p.split(":"),f=u[0],g=u.slice(1);return f&&g.length>0&&(i[f]=g.join(":").trim()),i},{})),n}function xg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=Lo(xa(e));return p.prefix||(p.prefix=kn()),t&&n&&(p.prefix=t,p.iconName=n),p.iconName&&p.prefix||(p.prefix&&i.length>0&&(p.iconName=rg(p.prefix,e.innerText)||Ta(p.prefix,Ps(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function Eg(e){var t=xi(e.attributes).reduce(function(p,u){return p.name!=="class"&&p.name!=="style"&&(p[u.name]=u.value),p},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||lr()):(t["aria-hidden"]="true",t.focusable="false")),t}function Rg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=xg(e),i=n.iconName,p=n.prefix,u=n.rest,f=Eg(e),g=Bs("parseNodeAttributes",{},e),s=t.styleParser?kg(e):[];return pe({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:p,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:f}},g)}var Tg=It.styles;function qu(e){var t=ye.autoReplaceSvg==="nest"?Yl(e,{styleParser:!1}):Yl(e);return~t.extra.classes.indexOf(Fu)?an("generateLayersText",e,t):an("generateSvgReplacementMutation",e,t)}var xn=new Set;ka.map(function(e){xn.add("fa-".concat(e))});Object.keys(rr[ze]).map(xn.add.bind(xn));Object.keys(rr[Ze]).map(xn.add.bind(xn));xn=$r(xn);function Xl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ln)return Promise.resolve();var n=Ve.documentElement.classList,i=function(r){return n.add("".concat(Pl,"-").concat(r))},p=function(r){return n.remove("".concat(Pl,"-").concat(r))},u=ye.autoFetchSvg?xn:ka.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Tg));u.includes("fa")||u.push("fa");var f=[".".concat(Fu,":not([").concat(Kn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Kn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var g=[];try{g=xi(e.querySelectorAll(f))}catch{}if(g.length>0)i("pending"),p("complete");else return Promise.resolve();var s=Oa.begin("onTree"),h=g.reduce(function(o,r){try{var a=qu(r);a&&o.push(a)}catch(l){Iu||l.name==="MissingIcon"&&console.error(l)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(a){Qu(a,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(a){s(),r(a)})})}function Lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;qu(e).then(function(n){n&&Qu([n],t)})}function Mg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ws(t||{}),p=n.mask;return p&&(p=(p||{}).icon?p:Ws(p||{})),e(i,pe(pe({},n),{},{mask:p}))}}var Og=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,p=i===void 0?Ht:i,u=n.symbol,f=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,h=n.maskId,o=h===void 0?null:h,r=n.title,a=r===void 0?null:r,l=n.titleId,c=l===void 0?null:l,d=n.classes,m=d===void 0?[]:d,v=n.attributes,y=v===void 0?{}:v,k=n.styles,C=k===void 0?{}:k;if(t){var S=t.prefix,$=t.iconName,R=t.icon;return Mo(pe({type:"icon"},t),function(){return Yn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(a?y["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(c||lr()):(y["aria-hidden"]="true",y.focusable="false")),Ma({icons:{main:Hs(R),mask:s?Hs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:$,transform:pe(pe({},Ht),p),symbol:f,title:a,maskId:o,titleId:c,extra:{attributes:y,styles:C,classes:m}})})}},Ig={mixout:function(){return{icon:Mg(Og)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Xl,n.nodeCallback=Lg,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,p=i===void 0?Ve:i,u=n.callback,f=u===void 0?function(){}:u;return Xl(p,f)},t.generateSvgReplacementMutation=function(n,i){var p=i.iconName,u=i.title,f=i.titleId,g=i.prefix,s=i.transform,h=i.symbol,o=i.mask,r=i.maskId,a=i.extra;return new Promise(function(l,c){Promise.all([Us(p,g),o.iconName?Us(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(d){var m=_a(d,2),v=m[0],y=m[1];l([n,Ma({icons:{main:v,mask:y},prefix:g,iconName:p,transform:s,symbol:h,maskId:r,title:u,titleId:f,extra:a,watchable:!0})])}).catch(c)})},t.generateAbstractIcon=function(n){var i=n.children,p=n.attributes,u=n.main,f=n.transform,g=n.styles,s=Ro(g);s.length>0&&(p.style=s);var h;return Ea(f)&&(h=an("generateAbstractTransformGrouping",{main:u,transform:f,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:p}}}},Fg={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.classes,u=p===void 0?[]:p;return Mo({type:"layer"},function(){Yn("beforeDOMElementCreation",{assembler:n,params:i});var f=[];return n(function(g){Array.isArray(g)?g.map(function(s){f=f.concat(s.abstract)}):f=f.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat($r(u)).join(" ")},children:f}]})}}}},Ng={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.title,u=p===void 0?null:p,f=i.classes,g=f===void 0?[]:f,s=i.attributes,h=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return Mo({type:"counter",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:i}),gg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat($r(g))}})})}}}},Pg={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.transform,u=p===void 0?Ht:p,f=i.title,g=f===void 0?null:f,s=i.classes,h=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,a=i.styles,l=a===void 0?{}:a;return Mo({type:"text",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:i}),zl({content:n,transform:pe(pe({},Ht),u),title:g,extra:{attributes:r,styles:l,classes:["".concat(ye.cssPrefix,"-layers-text")].concat($r(h))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var p=i.title,u=i.transform,f=i.extra,g=null,s=null;if(Lu){var h=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/h,s=o.height/h}return ye.autoA11y&&!p&&(f.attributes["aria-hidden"]="true"),Promise.resolve([n,zl({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:f,watchable:!0})])}}},Dg=new RegExp('"',"ug"),Zl=[1105920,1112319];function Bg(e){var t=e.replace(Dg,""),n=Jp(t,0),i=n>=Zl[0]&&n<=Zl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Ps(p?t[0]:t),isSecondary:i||p}}function Ql(e,t){var n="".concat(xp).concat(t.replace(":","-"));return new Promise(function(i,p){if(e.getAttribute(n)!==null)return i();var u=xi(e.children),f=u.filter(function(R){return R.getAttribute(Ns)===t})[0],g=An.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Mp),h=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(f&&!s)return e.removeChild(f),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),a=~["Sharp"].indexOf(s[2])?Ze:ze,l=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?or[a][s[2].toLowerCase()]:Op[a][h],c=Bg(r),d=c.value,m=c.isSecondary,v=s[0].startsWith("FontAwesome"),y=Ta(l,d),k=y;if(v){var C=og(d);C.iconName&&C.prefix&&(y=C.iconName,l=C.prefix)}if(y&&!m&&(!f||f.getAttribute(Sa)!==l||f.getAttribute(Aa)!==k)){e.setAttribute(n,k),f&&e.removeChild(f);var S=Rg(),$=S.extra;$.attributes[Ns]=t,Us(y,l).then(function(R){var L=Ma(pe(pe({},S),{},{icons:{main:R,mask:La()},prefix:l,iconName:k,extra:$,watchable:!0})),x=Ve.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=L.map(function(M){return Cr(M)}).join(`
762
- `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Wg(e){return Promise.all([Ql(e,"::before"),Ql(e,"::after")])}function Hg(e){return e.parentNode!==document.head&&!~Rp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ns)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Jl(e){if(ln)return new Promise(function(t,n){var i=xi(e.querySelectorAll("*")).filter(Hg).map(Wg),p=Oa.begin("searchPseudoElements");Ju(),Promise.all(i).then(function(){p(),Vs(),t()}).catch(function(){p(),Vs(),n()})})}var Ug={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Jl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?Ve:i;ye.searchPseudoElements&&Jl(p)}}},ql=!1,zg={mixout:function(){return{dom:{unwatch:function(){Ju(),ql=!0}}}},hooks:function(){return{bootstrap:function(){Kl(Bs("mutationObserverCallbacks",{}))},noAuto:function(){Ag()},watch:function(n){var i=n.observeMutationsRoot;ql?Vs():Kl(Bs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},ec=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,p){var u=p.toLowerCase().split("-"),f=u[0],g=u.slice(1).join("-");if(f&&g==="h")return i.flipX=!0,i;if(f&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(f){case"grow":i.size=i.size+g;break;case"shrink":i.size=i.size-g;break;case"left":i.x=i.x-g;break;case"right":i.x=i.x+g;break;case"up":i.y=i.y-g;break;case"down":i.y=i.y+g;break;case"rotate":i.rotate=i.rotate+g;break}return i},n)},Vg={mixout:function(){return{parse:{transform:function(n){return ec(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=ec(p)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,p=n.transform,u=n.containerWidth,f=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(p.x*32,", ").concat(p.y*32,") "),h="scale(".concat(p.size/16*(p.flipX?-1:1),", ").concat(p.size/16*(p.flipY?-1:1),") "),o="rotate(".concat(p.rotate," 0 0)"),r={transform:"".concat(s," ").concat(h," ").concat(o)},a={transform:"translate(".concat(f/2*-1," -256)")},l={outer:g,inner:r,path:a};return{tag:"g",attributes:pe({},l.outer),children:[{tag:"g",attributes:pe({},l.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:pe(pe({},i.icon.attributes),l.path)}]}]}}}},gs={x:0,y:0,width:"100%",height:"100%"};function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function jg(e){return e.tag==="g"?e.children:[e]}var Gg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?Lo(p.split(" ").map(function(f){return f.trim()})):La();return u.prefix||(u.prefix=kn()),n.mask=u,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,p=n.attributes,u=n.main,f=n.mask,g=n.maskId,s=n.transform,h=u.width,o=u.icon,r=f.width,a=f.icon,l=Vp({transform:s,containerWidth:r,iconWidth:h}),c={tag:"rect",attributes:pe(pe({},gs),{},{fill:"white"})},d=o.children?{children:o.children.map(tc)}:{},m={tag:"g",attributes:pe({},l.inner),children:[tc(pe({tag:o.tag,attributes:pe(pe({},o.attributes),l.path)},d))]},v={tag:"g",attributes:pe({},l.outer),children:[m]},y="mask-".concat(g||lr()),k="clip-".concat(g||lr()),C={tag:"mask",attributes:pe(pe({},gs),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:jg(a)},C]};return i.push(S,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},gs)}),{children:i,attributes:p}}}},Kg={provides:function(t){var n=!1;An.matchMedia&&(n=An.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],p={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},p),{},{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"})});var f=pe(pe({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:pe(pe({},p),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:pe(pe({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:pe(pe({},f),{},{values:"1;0;1;1;0;1;"})}),i.push(g),i.push({tag:"path",attributes:pe(pe({},p),{},{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:n?[]:[{tag:"animate",attributes:pe(pe({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},p),{},{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:pe(pe({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Yg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-symbol"),u=p===null?!1:p===""?!0:p;return n.symbol=u,n}}}},Xg=[Kp,Ig,Fg,Ng,Pg,Ug,zg,Vg,Gg,Kg,Yg];lg(Xg,{mixoutsTo:_t});_t.noAuto;_t.config;var Zg=_t.library;_t.dom;var js=_t.parse;_t.findIconDefinition;_t.toHtml;var Qg=_t.icon;_t.layer;_t.text;_t.counter;var Jg={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 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.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 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"]},qg={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 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},em=qg,tm={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"]},nm={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 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-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"]},im=nm,rm={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"]},om=rm,sm={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},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"]},lm=am,cm={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"]},um={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"]},hm={prefix:"fas",iconName:"exclamation",icon:[64,512,[10069,10071,61738],"21","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM32 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},fm={prefix:"fas",iconName:"barcode",icon:[512,512,[],"f02a","M24 32C10.7 32 0 42.7 0 56V456c0 13.3 10.7 24 24 24H40c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H24zm88 0c-8.8 0-16 7.2-16 16V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16zm72 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H184zm96 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H280zM448 56V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H472c-13.3 0-24 10.7-24 24zm-64-8V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16z"]};function Oo(e,t){const n=Object.create(null),i=e.split(",");for(let p=0;p<i.length;p++)n[i[p]]=!0;return t?p=>!!n[p.toLowerCase()]:p=>!!n[p]}const Be={},ui=[],Nt=()=>{},dm=()=>!1,pm=/^on[^a-z]/,Sr=e=>pm.test(e),Fa=e=>e.startsWith("onUpdate:"),je=Object.assign,Na=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gm=Object.prototype.hasOwnProperty,Fe=(e,t)=>gm.call(e,t),ge=Array.isArray,hi=e=>Ei(e)==="[object Map]",qn=e=>Ei(e)==="[object Set]",nc=e=>Ei(e)==="[object Date]",mm=e=>Ei(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",mi=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Pa=e=>(We(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),eh=Object.prototype.toString,Ei=e=>eh.call(e),vm=e=>Ei(e).slice(8,-1),th=e=>Ei(e)==="[object Object]",Da=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xi=Oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Io=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ym=/-(\w)/g,mt=Io(e=>e.replace(ym,(t,n)=>n?n.toUpperCase():"")),bm=/\B([A-Z])/g,At=Io(e=>e.replace(bm,"-$1").toLowerCase()),Ri=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zi=Io(e=>e?`on${Ri(e)}`:""),En=(e,t)=>!Object.is(e,t),fi=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ho=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},po=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let ic;const Gs=()=>ic||(ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),wm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",$m=Oo(wm);function Ar(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],p=Ge(i)?Am(i):Ar(i);if(p)for(const u in p)t[u]=p[u]}return t}else if(Ge(e)||We(e))return e}const _m=/;(?![^(]*\))/g,Cm=/:([^]+)/,Sm=/\/\*[^]*?\*\//g;function Am(e){const t={};return e.replace(Sm,"").split(_m).forEach(n=>{if(n){const i=n.split(Cm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function kr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=kr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function km(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=kr(t)),n&&(e.style=Ar(n)),e}const xm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Em=Oo(xm);function nh(e){return!!e||e===""}function Rm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Rn(e[i],t[i]);return n}function Rn(e,t){if(e===t)return!0;let n=nc(e),i=nc(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=mi(e),i=mi(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?Rm(e,t):!1;if(n=We(e),i=We(t),n||i){if(!n||!i)return!1;const p=Object.keys(e).length,u=Object.keys(t).length;if(p!==u)return!1;for(const f in e){const g=e.hasOwnProperty(f),s=t.hasOwnProperty(f);if(g&&!s||!g&&s||!Rn(e[f],t[f]))return!1}}return String(e)===String(t)}function Fo(e,t){return e.findIndex(n=>Rn(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===eh||!Ce(e.toString))?JSON.stringify(e,ih,2):String(e),ih=(e,t)=>t&&t.__v_isRef?ih(e,t.value):hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:qn(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!th(t)?String(t):t;let yt;class Ba{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}}on(){yt=this}off(){yt=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 p=this.parent.scopes.pop();p&&p!==this&&(this.parent.scopes[this.index]=p,p.index=this.index)}this.parent=void 0,this._active=!1}}}function rh(e){return new Ba(e)}function oh(e,t=yt){t&&t.active&&t.effects.push(e)}function Wa(){return yt}function sh(e){yt&&yt.cleanups.push(e)}const Ha=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ah=e=>(e.w&Tn)>0,lh=e=>(e.n&Tn)>0,Tm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Tn},Lm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const p=t[i];ah(p)&&!lh(p)?p.delete(e):t[n++]=p,p.w&=~Tn,p.n&=~Tn}t.length=n}},go=new WeakMap;let Vi=0,Tn=1;const Ks=30;let Lt;const zn=Symbol(""),Ys=Symbol("");class vi{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,oh(this,i)}run(){if(!this.active)return this.fn();let t=Lt,n=Cn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Lt,Lt=this,Cn=!0,Tn=1<<++Vi,Vi<=Ks?Tm(this):rc(this),this.fn()}finally{Vi<=Ks&&Lm(this),Tn=1<<--Vi,Lt=this.parent,Cn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Lt===this?this.deferStop=!0:this.active&&(rc(this),this.onStop&&this.onStop(),this.active=!1)}}function rc(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Mm(e,t){e.effect instanceof vi&&(e=e.effect.fn);const n=new vi(e);t&&(je(n,t),t.scope&&oh(n,t.scope)),(!t||!t.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function Om(e){e.effect.stop()}let Cn=!0;const ch=[];function Ti(){ch.push(Cn),Cn=!1}function Li(){const e=ch.pop();Cn=e===void 0?!0:e}function vt(e,t,n){if(Cn&&Lt){let i=go.get(e);i||go.set(e,i=new Map);let p=i.get(n);p||i.set(n,p=Ha()),uh(p)}}function uh(e,t){let n=!1;Vi<=Ks?lh(e)||(e.n|=Tn,n=!ah(e)):n=!e.has(Lt),n&&(e.add(Lt),Lt.deps.push(e))}function en(e,t,n,i,p,u){const f=go.get(e);if(!f)return;let g=[];if(t==="clear")g=[...f.values()];else if(n==="length"&&ge(e)){const s=Number(i);f.forEach((h,o)=>{(o==="length"||!mi(o)&&o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(f.get(n)),t){case"add":ge(e)?Da(n)&&g.push(f.get("length")):(g.push(f.get(zn)),hi(e)&&g.push(f.get(Ys)));break;case"delete":ge(e)||(g.push(f.get(zn)),hi(e)&&g.push(f.get(Ys)));break;case"set":hi(e)&&g.push(f.get(zn));break}if(g.length===1)g[0]&&Xs(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);Xs(Ha(s))}}function Xs(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&oc(i);for(const i of n)i.computed||oc(i)}function oc(e,t){(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Im(e,t){var n;return(n=go.get(e))==null?void 0:n.get(t)}const Fm=Oo("__proto__,__v_isRef,__isVue"),hh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mi)),sc=Nm();function Nm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Me(this);for(let u=0,f=this.length;u<f;u++)vt(i,"get",u+"");const p=i[t](...n);return p===-1||p===!1?i[t](...n.map(Me)):p}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ti();const i=Me(this)[t].apply(this,n);return Li(),i}}),e}function Pm(e){const t=Me(this);return vt(t,"has",e),t.hasOwnProperty(e)}class fh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const p=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!p;if(n==="__v_isReadonly")return p;if(n==="__v_isShallow")return u;if(n==="__v_raw"&&i===(p?u?yh:vh:u?mh:gh).get(t))return t;const f=ge(t);if(!p){if(f&&Fe(sc,n))return Reflect.get(sc,n,i);if(n==="hasOwnProperty")return Pm}const g=Reflect.get(t,n,i);return(mi(n)?hh.has(n):Fm(n))||(p||vt(t,"get",n),u)?g:qe(g)?f&&Da(n)?g:g.value:We(g)?p?Do(g):Mi(g):g}}class dh extends fh{constructor(t=!1){super(!1,t)}set(t,n,i,p){let u=t[n];if(Xn(u)&&qe(u)&&!qe(i))return!1;if(!this._shallow&&(!cr(i)&&!Xn(i)&&(u=Me(u),i=Me(i)),!ge(t)&&qe(u)&&!qe(i)))return u.value=i,!0;const f=ge(t)&&Da(n)?Number(n)<t.length:Fe(t,n),g=Reflect.set(t,n,i,p);return t===Me(p)&&(f?En(i,u)&&en(t,"set",n,i):en(t,"add",n,i)),g}deleteProperty(t,n){const i=Fe(t,n);t[n];const p=Reflect.deleteProperty(t,n);return p&&i&&en(t,"delete",n,void 0),p}has(t,n){const i=Reflect.has(t,n);return(!mi(n)||!hh.has(n))&&vt(t,"has",n),i}ownKeys(t){return vt(t,"iterate",ge(t)?"length":zn),Reflect.ownKeys(t)}}class ph extends fh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dm=new dh,Bm=new ph,Wm=new dh(!0),Hm=new ph(!0),Ua=e=>e,No=e=>Reflect.getPrototypeOf(e);function Hr(e,t,n=!1,i=!1){e=e.__v_raw;const p=Me(e),u=Me(t);n||(En(t,u)&&vt(p,"get",t),vt(p,"get",u));const{has:f}=No(p),g=i?Ua:n?ja:ur;if(f.call(p,t))return g(e.get(t));if(f.call(p,u))return g(e.get(u));e!==p&&e.get(t)}function Ur(e,t=!1){const n=this.__v_raw,i=Me(n),p=Me(e);return t||(En(e,p)&&vt(i,"has",e),vt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function zr(e,t=!1){return e=e.__v_raw,!t&&vt(Me(e),"iterate",zn),Reflect.get(e,"size",e)}function ac(e){e=Me(e);const t=Me(this);return No(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function lc(e,t){t=Me(t);const n=Me(this),{has:i,get:p}=No(n);let u=i.call(n,e);u||(e=Me(e),u=i.call(n,e));const f=p.call(n,e);return n.set(e,t),u?En(t,f)&&en(n,"set",e,t):en(n,"add",e,t),this}function cc(e){const t=Me(this),{has:n,get:i}=No(t);let p=n.call(t,e);p||(e=Me(e),p=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return p&&en(t,"delete",e,void 0),u}function uc(){const e=Me(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function Vr(e,t){return function(i,p){const u=this,f=u.__v_raw,g=Me(f),s=t?Ua:e?ja:ur;return!e&&vt(g,"iterate",zn),f.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function jr(e,t,n){return function(...i){const p=this.__v_raw,u=Me(p),f=hi(u),g=e==="entries"||e===Symbol.iterator&&f,s=e==="keys"&&f,h=p[e](...i),o=n?Ua:t?ja:ur;return!t&&vt(u,"iterate",s?Ys:zn),{next(){const{value:r,done:a}=h.next();return a?{value:r,done:a}:{value:g?[o(r[0]),o(r[1])]:o(r),done:a}},[Symbol.iterator](){return this}}}}function pn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Um(){const e={get(u){return Hr(this,u)},get size(){return zr(this)},has:Ur,add:ac,set:lc,delete:cc,clear:uc,forEach:Vr(!1,!1)},t={get(u){return Hr(this,u,!1,!0)},get size(){return zr(this)},has:Ur,add:ac,set:lc,delete:cc,clear:uc,forEach:Vr(!1,!0)},n={get(u){return Hr(this,u,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Vr(!0,!1)},i={get(u){return Hr(this,u,!0,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=jr(u,!1,!1),n[u]=jr(u,!0,!1),t[u]=jr(u,!1,!0),i[u]=jr(u,!0,!0)}),[e,n,t,i]}const[zm,Vm,jm,Gm]=Um();function Po(e,t){const n=t?e?Gm:jm:e?Vm:zm;return(i,p,u)=>p==="__v_isReactive"?!e:p==="__v_isReadonly"?e:p==="__v_raw"?i:Reflect.get(Fe(n,p)&&p in i?n:i,p,u)}const Km={get:Po(!1,!1)},Ym={get:Po(!1,!0)},Xm={get:Po(!0,!1)},Zm={get:Po(!0,!0)},gh=new WeakMap,mh=new WeakMap,vh=new WeakMap,yh=new WeakMap;function Qm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jm(e){return e.__v_skip||!Object.isExtensible(e)?0:Qm(vm(e))}function Mi(e){return Xn(e)?e:Bo(e,!1,Dm,Km,gh)}function za(e){return Bo(e,!1,Wm,Ym,mh)}function Do(e){return Bo(e,!0,Bm,Xm,vh)}function qm(e){return Bo(e,!0,Hm,Zm,yh)}function Bo(e,t,n,i,p){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=p.get(e);if(u)return u;const f=Jm(e);if(f===0)return e;const g=new Proxy(e,f===2?i:n);return p.set(e,g),g}function Vn(e){return Xn(e)?Vn(e.__v_raw):!!(e&&e.__v_isReactive)}function Xn(e){return!!(e&&e.__v_isReadonly)}function cr(e){return!!(e&&e.__v_isShallow)}function Va(e){return Vn(e)||Xn(e)}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function Wo(e){return ho(e,"__v_skip",!0),e}const ur=e=>We(e)?Mi(e):e,ja=e=>We(e)?Do(e):e;function Ga(e){Cn&&Lt&&(e=Me(e),uh(e.dep||(e.dep=Ha())))}function Ho(e,t){e=Me(e);const n=e.dep;n&&Xs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Ie(e){return wh(e,!1)}function bh(e){return wh(e,!0)}function wh(e,t){return qe(e)?e:new ev(e,t)}class ev{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Me(t),this._value=n?t:ur(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||cr(t)||Xn(t);t=n?t:Me(t),En(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ur(t),Ho(this))}}function tv(e){Ho(e)}function tn(e){return qe(e)?e.value:e}function nv(e){return Ce(e)?e():tn(e)}const iv={get:(e,t,n)=>tn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const p=e[t];return qe(p)&&!qe(n)?(p.value=n,!0):Reflect.set(e,t,n,i)}};function Ka(e){return Vn(e)?e:new Proxy(e,iv)}class rv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ga(this),()=>Ho(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Ya(e){return new rv(e)}function ov(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=$h(e,n);return t}class sv{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 Im(Me(this._object),this._key)}}class av{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yi(e,t,n){return qe(e)?e:Ce(e)?new av(e):We(e)&&arguments.length>1?$h(e,t,n):Ie(e)}function $h(e,t,n){const i=e[t];return qe(i)?i:new sv(e,t,n)}class lv{constructor(t,n,i,p){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vi(t,()=>{this._dirty||(this._dirty=!0,Ho(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=i}get value(){const t=Me(this);return Ga(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function cv(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Nt):(i=e.get,p=e.set),new lv(i,p,u||!p,n)}function uv(e,...t){}function hv(e,t){}function nn(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){ei(u,t,n)}return p}function $t(e,t,n,i){if(Ce(e)){const u=nn(e,t,n,i);return u&&Pa(u)&&u.catch(f=>{ei(f,t,n)}),u}const p=[];for(let u=0;u<e.length;u++)p.push($t(e[u],t,n,i));return p}function ei(e,t,n,i=!0){const p=t?t.vnode:null;if(t){let u=t.parent;const f=t.proxy,g=n;for(;u;){const h=u.ec;if(h){for(let o=0;o<h.length;o++)if(h[o](e,f,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){nn(s,null,10,[e,f,g]);return}}fv(e,n,p,i)}function fv(e,t,n,i=!0){console.error(e)}let hr=!1,Zs=!1;const st=[];let Wt=0;const di=[];let Zt=null,Dn=0;const _h=Promise.resolve();let Xa=null;function Vt(e){const t=Xa||_h;return e?t.then(this?e.bind(this):e):t}function dv(e){let t=Wt+1,n=st.length;for(;t<n;){const i=t+n>>>1,p=st[i],u=fr(p);u<e||u===e&&p.pre?t=i+1:n=i}return t}function Uo(e){(!st.length||!st.includes(e,hr&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?st.push(e):st.splice(dv(e.id),0,e),Ch())}function Ch(){!hr&&!Zs&&(Zs=!0,Xa=_h.then(Sh))}function pv(e){const t=st.indexOf(e);t>Wt&&st.splice(t,1)}function mo(e){ge(e)?di.push(...e):(!Zt||!Zt.includes(e,e.allowRecurse?Dn+1:Dn))&&di.push(e),Ch()}function hc(e,t=hr?Wt+1:0){for(;t<st.length;t++){const n=st[t];n&&n.pre&&(st.splice(t,1),t--,n())}}function vo(e){if(di.length){const t=[...new Set(di)];if(di.length=0,Zt){Zt.push(...t);return}for(Zt=t,Zt.sort((n,i)=>fr(n)-fr(i)),Dn=0;Dn<Zt.length;Dn++)Zt[Dn]();Zt=null,Dn=0}}const fr=e=>e.id==null?1/0:e.id,gv=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sh(e){Zs=!1,hr=!0,st.sort(gv);const t=Nt;try{for(Wt=0;Wt<st.length;Wt++){const n=st[Wt];n&&n.active!==!1&&nn(n,null,14)}}finally{Wt=0,st.length=0,vo(),hr=!1,Xa=null,(st.length||di.length)&&Sh()}}let ri,Gr=[];function Ah(e,t){var n,i;ri=e,ri?(ri.enabled=!0,Gr.forEach(({event:p,args:u})=>ri.emit(p,...u)),Gr=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{Ah(u,t)}),setTimeout(()=>{ri||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gr=[])},3e3)):Gr=[]}function mv(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Be;let p=n;const u=t.startsWith("update:"),f=u&&t.slice(7);if(f&&f in i){const o=`${f==="modelValue"?"model":f}Modifiers`,{number:r,trim:a}=i[o]||Be;a&&(p=n.map(l=>Ge(l)?l.trim():l)),r&&(p=n.map(fo))}let g,s=i[g=Zi(t)]||i[g=Zi(mt(t))];!s&&u&&(s=i[g=Zi(At(t))]),s&&$t(s,e,6,p);const h=i[g+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,$t(h,e,6,p)}}function kh(e,t,n=!1){const i=t.emitsCache,p=i.get(e);if(p!==void 0)return p;const u=e.emits;let f={},g=!1;if(!Ce(e)){const s=h=>{const o=kh(h,t,!0);o&&(g=!0,je(f,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(We(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>f[s]=null):je(f,u),We(e)&&i.set(e,f),f)}function zo(e,t){return!e||!Sr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,At(t))||Fe(e,t))}let nt=null,Vo=null;function dr(e){const t=nt;return nt=e,Vo=e&&e.type.__scopeId||null,t}function Za(e){Vo=e}function Qa(){Vo=null}const vv=e=>kt;function kt(e,t=nt,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&ia(-1);const u=dr(t);let f;try{f=e(...p)}finally{dr(u),i._d&&ia(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function no(e){const{type:t,vnode:n,proxy:i,withProxy:p,props:u,propsOptions:[f],slots:g,attrs:s,emit:h,render:o,renderCache:r,data:a,setupState:l,ctx:c,inheritAttrs:d}=e;let m,v;const y=dr(e);try{if(n.shapeFlag&4){const C=p||i,S=C;m=bt(o.call(S,C,r,u,l,a,c)),v=s}else{const C=t;m=bt(C.length>1?C(u,{attrs:s,slots:g,emit:h}):C(u,null)),v=t.props?s:bv(s)}}catch(C){er.length=0,ei(C,e,1),m=fe(at)}let k=m;if(v&&d!==!1){const C=Object.keys(v),{shapeFlag:S}=k;C.length&&S&7&&(f&&C.some(Fa)&&(v=wv(v,f)),k=jt(k,v))}return n.dirs&&(k=jt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,dr(y),m}function yv(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Ln(i)){if(i.type!==at||i.children==="v-if"){if(t)return;t=i}}else return}return t}const bv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sr(n))&&((t||(t={}))[n]=e[n]);return t},wv=(e,t)=>{const n={};for(const i in e)(!Fa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function $v(e,t,n){const{props:i,children:p,component:u}=e,{props:f,children:g,patchFlag:s}=t,h=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?fc(i,f,h):!!f;if(s&8){const o=t.dynamicProps;for(let r=0;r<o.length;r++){const a=o[r];if(f[a]!==i[a]&&!zo(h,a))return!0}}}else return(p||g)&&(!g||!g.$stable)?!0:i===f?!1:i?f?fc(i,f,h):!0:!!f;return!1}function fc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let p=0;p<i.length;p++){const u=i[p];if(t[u]!==e[u]&&!zo(n,u))return!0}return!1}function Ja({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const qa="components",_v="directives";function he(e,t){return el(qa,e,!0,t)||e}const xh=Symbol.for("v-ndc");function Cv(e){return Ge(e)?el(qa,e,!1)||e:e||xh}function Sv(e){return el(_v,e)}function el(e,t,n=!0,i=!1){const p=nt||Qe;if(p){const u=p.type;if(e===qa){const g=sa(u,!1);if(g&&(g===t||g===mt(t)||g===Ri(mt(t))))return u}const f=dc(p[e]||u[e],t)||dc(p.appContext[e],t);return!f&&i?u:f}}function dc(e,t){return e&&(e[t]||e[mt(t)]||e[Ri(mt(t))])}const Eh=e=>e.__isSuspense,Av={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,f,g,s,h){e==null?xv(t,n,i,p,u,f,g,s,h):Ev(e,t,n,i,p,f,g,s,h)},hydrate:Rv,create:tl,normalize:Tv},kv=Av;function pr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function xv(e,t,n,i,p,u,f,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),a=e.suspense=tl(e,p,i,t,r,n,u,f,g,s);h(null,a.pendingBranch=e.ssContent,r,null,i,a,u,f),a.deps>0?(pr(e,"onPending"),pr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,f),pi(a,e.ssFallback)):a.resolve(!1,!0)}function Ev(e,t,n,i,p,u,f,g,{p:s,um:h,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const a=t.ssContent,l=t.ssFallback,{activeBranch:c,pendingBranch:d,isInFallback:m,isHydrating:v}=r;if(d)r.pendingBranch=a,Ot(a,d)?(s(d,a,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0?r.resolve():m&&(s(c,l,n,i,p,null,u,f,g),pi(r,l))):(r.pendingId++,v?(r.isHydrating=!1,r.activeBranch=d):h(d,p,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,a,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0?r.resolve():(s(c,l,n,i,p,null,u,f,g),pi(r,l))):c&&Ot(a,c)?(s(c,a,n,i,p,r,u,f,g),r.resolve(!0)):(s(null,a,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0&&r.resolve()));else if(c&&Ot(a,c))s(c,a,n,i,p,r,u,f,g),pi(r,a);else if(pr(t,"onPending"),r.pendingBranch=a,r.pendingId++,s(null,a,r.hiddenContainer,null,p,r,u,f,g),r.deps<=0)r.resolve();else{const{timeout:y,pendingId:k}=r;y>0?setTimeout(()=>{r.pendingId===k&&r.fallback(l)},y):y===0&&r.fallback(l)}}function tl(e,t,n,i,p,u,f,g,s,h,o=!1){const{p:r,m:a,um:l,n:c,o:{parentNode:d,remove:m}}=h;let v;const y=Lv(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?po(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,isSVG:f,container:i,hiddenContainer:p,anchor:u,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(S=!1,$=!1){const{vnode:R,activeBranch:L,pendingBranch:x,pendingId:M,effects:b,parentComponent:A,container:_}=C;let w=!1;if(C.isHydrating)C.isHydrating=!1;else if(!S){w=L&&x.transition&&x.transition.mode==="out-in",w&&(L.transition.afterLeave=()=>{M===C.pendingId&&(a(x,_,O,0),mo(b))});let{anchor:O}=C;L&&(O=c(L),l(L,A,C,!0)),w||a(x,_,O,0)}pi(C,x),C.pendingBranch=null,C.isInFallback=!1;let E=C.parent,T=!1;for(;E;){if(E.pendingBranch){E.effects.push(...b),T=!0;break}E=E.parent}!T&&!w&&mo(b),C.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),pr(R,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:$,activeBranch:R,parentComponent:L,container:x,isSVG:M}=C;pr($,"onFallback");const b=c(R),A=()=>{C.isInFallback&&(r(null,S,x,b,L,null,M,g,s),pi(C,S))},_=S.transition&&S.transition.mode==="out-in";_&&(R.transition.afterLeave=A),C.isInFallback=!0,l(R,L,null,!0),_||A()},move(S,$,R){C.activeBranch&&a(C.activeBranch,S,$,R),C.container=S},next(){return C.activeBranch&&c(C.activeBranch)},registerDep(S,$){const R=!!C.pendingBranch;R&&C.deps++;const L=S.vnode.el;S.asyncDep.catch(x=>{ei(x,S,0)}).then(x=>{if(S.isUnmounted||C.isUnmounted||C.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;ra(S,x,!1),L&&(M.el=L);const b=!L&&S.subTree.el;$(S,M,d(L||S.subTree.el),L?null:c(S.subTree),C,f,s),b&&m(b),Ja(S,M.el),R&&--C.deps===0&&C.resolve()})},unmount(S,$){C.isUnmounted=!0,C.activeBranch&&l(C.activeBranch,n,S,$),C.pendingBranch&&l(C.pendingBranch,n,S,$)}};return C}function Rv(e,t,n,i,p,u,f,g,s){const h=t.suspense=tl(t,i,n,e.parentNode,document.createElement("div"),null,p,u,f,g,!0),o=s(e,h.pendingBranch=t.ssContent,n,h,u,f);return h.deps===0&&h.resolve(!1,!0),o}function Tv(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=pc(i?n.default:n),e.ssFallback=i?pc(n.fallback):fe(at)}function pc(e){let t;if(Ce(e)){const n=Jn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=gt,of())}return ge(e)&&(e=yv(e)),e=bt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Rh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function pi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,Ja(i,p))}function Lv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Th(e,t){return xr(e,null,t)}function Lh(e,t){return xr(e,null,{flush:"post"})}function Mv(e,t){return xr(e,null,{flush:"sync"})}const Kr={};function Ye(e,t,n){return xr(e,t,n)}function xr(e,t,{immediate:n,deep:i,flush:p,onTrack:u,onTrigger:f}=Be){var g;const s=Wa()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=cr(e)):Vn(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(C=>Vn(C)||cr(C)),h=()=>e.map(C=>{if(qe(C))return C.value;if(Vn(C))return Un(C);if(Ce(C))return nn(C,s,2)})):Ce(e)?t?h=()=>nn(e,s,2):h=()=>{if(!(s&&s.isUnmounted))return a&&a(),$t(e,s,3,[l])}:h=Nt,t&&i){const C=h;h=()=>Un(C())}let a,l=C=>{a=y.onStop=()=>{nn(C,s,4),a=y.onStop=void 0}},c;if(wi)if(l=Nt,t?n&&$t(t,s,3,[h(),r?[]:void 0,l]):h(),p==="sync"){const C=mf();c=C.__watcherHandles||(C.__watcherHandles=[])}else return Nt;let d=r?new Array(e.length).fill(Kr):Kr;const m=()=>{if(y.active)if(t){const C=y.run();(i||o||(r?C.some((S,$)=>En(S,d[$])):En(C,d)))&&(a&&a(),$t(t,s,3,[C,d===Kr?void 0:r&&d[0]===Kr?[]:d,l]),d=C)}else y.run()};m.allowRecurse=!!t;let v;p==="sync"?v=m:p==="post"?v=()=>rt(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>Uo(m));const y=new vi(h,v);t?n?m():d=y.run():p==="post"?rt(y.run.bind(y),s&&s.suspense):y.run();const k=()=>{y.stop(),s&&s.scope&&Na(s.scope.effects,y)};return c&&c.push(k),k}function Ov(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Mh(i,e):()=>i[e]:e.bind(i,i);let u;Ce(t)?u=t:(u=t.handler,n=t);const f=Qe;Mn(this);const g=xr(p,u.bind(i),n);return f?Mn(f):Sn(),g}function Mh(e,t){const n=t.split(".");return()=>{let i=e;for(let p=0;p<n.length&&i;p++)i=i[n[p]];return i}}function Un(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qe(e))Un(e.value,t);else if(ge(e))for(let n=0;n<e.length;n++)Un(e[n],t);else if(qn(e)||hi(e))e.forEach(n=>{Un(n,t)});else if(th(e))for(const n in e)Un(e[n],t);return e}function Mt(e,t){const n=nt;if(n===null)return e;const i=Zo(n)||n.proxy,p=e.dirs||(e.dirs=[]);for(let u=0;u<t.length;u++){let[f,g,s,h=Be]=t[u];f&&(Ce(f)&&(f={mounted:f,updated:f}),f.deep&&Un(g),p.push({dir:f,instance:i,value:g,oldValue:void 0,arg:s,modifiers:h}))}return e}function Bt(e,t,n,i){const p=e.dirs,u=t&&t.dirs;for(let f=0;f<p.length;f++){const g=p[f];u&&(g.oldValue=u[f].value);let s=g.dir[i];s&&(Ti(),$t(s,n,8,[e.el,g,e,t]),Li())}}const wn=Symbol("_leaveCb"),Yr=Symbol("_enterCb");function nl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],il={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},Iv={name:"BaseTransition",props:il,setup(e,{slots:t}){const n=Dt(),i=nl();let p;return()=>{const u=t.default&&jo(t.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const d of u)if(d.type!==at){f=d;break}}const g=Me(e),{mode:s}=g;if(i.isLeaving)return ms(f);const h=gc(f);if(!h)return ms(f);const o=bi(h,g,i,n);Zn(h,o);const r=n.subTree,a=r&&gc(r);let l=!1;const{getTransitionKey:c}=h.type;if(c){const d=c();p===void 0?p=d:d!==p&&(p=d,l=!0)}if(a&&a.type!==at&&(!Ot(h,a)||l)){const d=bi(a,g,i,n);if(Zn(a,d),s==="out-in")return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},ms(f);s==="in-out"&&h.type!==at&&(d.delayLeave=(m,v,y)=>{const k=Ih(i,a);k[String(a.key)]=a,m[wn]=()=>{v(),m[wn]=void 0,delete o.delayedLeave},o.delayedLeave=y})}return f}}},Oh=Iv;function Ih(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function bi(e,t,n,i){const{appear:p,mode:u,persisted:f=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:h,onEnterCancelled:o,onBeforeLeave:r,onLeave:a,onAfterLeave:l,onLeaveCancelled:c,onBeforeAppear:d,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),C=Ih(n,e),S=(L,x)=>{L&&$t(L,i,9,x)},$=(L,x)=>{const M=x[1];S(L,x),ge(L)?L.every(b=>b.length<=1)&&M():L.length<=1&&M()},R={mode:u,persisted:f,beforeEnter(L){let x=g;if(!n.isMounted)if(p)x=d||g;else return;L[wn]&&L[wn](!0);const M=C[k];M&&Ot(e,M)&&M.el[wn]&&M.el[wn](),S(x,[L])},enter(L){let x=s,M=h,b=o;if(!n.isMounted)if(p)x=m||s,M=v||h,b=y||o;else return;let A=!1;const _=L[Yr]=w=>{A||(A=!0,w?S(b,[L]):S(M,[L]),R.delayedLeave&&R.delayedLeave(),L[Yr]=void 0)};x?$(x,[L,_]):_()},leave(L,x){const M=String(e.key);if(L[Yr]&&L[Yr](!0),n.isUnmounting)return x();S(r,[L]);let b=!1;const A=L[wn]=_=>{b||(b=!0,x(),_?S(c,[L]):S(l,[L]),L[wn]=void 0,C[M]===e&&delete C[M])};C[M]=e,a?$(a,[L,A]):A()},clone(L){return bi(L,t,n,i)}};return R}function ms(e){if(Er(e))return e=jt(e),e.children=null,e}function gc(e){return Er(e)?e.children?e.children[0]:void 0:e}function Zn(e,t){e.shapeFlag&6&&e.component?Zn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let i=[],p=0;for(let u=0;u<e.length;u++){let f=e[u];const g=n==null?f.key:String(n)+String(f.key!=null?f.key:u);f.type===Se?(f.patchFlag&128&&p++,i=i.concat(jo(f.children,t,g))):(t||f.type!==at)&&i.push(g!=null?jt(f,{key:g}):f)}if(p>1)for(let u=0;u<i.length;u++)i[u].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function $e(e,t){return Ce(e)?(()=>je({name:e.name},t,{setup:e}))():e}const jn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fv(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:p=200,timeout:u,suspensible:f=!0,onError:g}=e;let s=null,h,o=0;const r=()=>(o++,s=null,a()),a=()=>{let l;return s||(l=s=t().catch(c=>{if(c=c instanceof Error?c:new Error(String(c)),g)return new Promise((d,m)=>{g(c,()=>d(r()),()=>m(c),o+1)});throw c}).then(c=>l!==s&&s?s:(c&&(c.__esModule||c[Symbol.toStringTag]==="Module")&&(c=c.default),h=c,c)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:a,get __asyncResolved(){return h},setup(){const l=Qe;if(h)return()=>vs(h,l);const c=y=>{s=null,ei(y,l,13,!i)};if(f&&l.suspense||wi)return a().then(y=>()=>vs(y,l)).catch(y=>(c(y),()=>i?fe(i,{error:y}):null));const d=Ie(!1),m=Ie(),v=Ie(!!p);return p&&setTimeout(()=>{v.value=!1},p),u!=null&&setTimeout(()=>{if(!d.value&&!m.value){const y=new Error(`Async component timed out after ${u}ms.`);c(y),m.value=y}},u),a().then(()=>{d.value=!0,l.parent&&Er(l.parent.vnode)&&Uo(l.parent.update)}).catch(y=>{c(y),m.value=y}),()=>{if(d.value&&h)return vs(h,l);if(m.value&&i)return fe(i,{error:m.value});if(n&&!v.value)return fe(n)}}})}function vs(e,t){const{ref:n,props:i,children:p,ce:u}=t.vnode,f=fe(e,i,p);return f.ref=n,f.ce=u,delete t.vnode.ce,f}const Er=e=>e.type.__isKeepAlive,Nv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Dt(),i=n.ctx;if(!i.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const p=new Map,u=new Set;let f=null;const g=n.suspense,{renderer:{p:s,m:h,um:o,o:{createElement:r}}}=i,a=r("div");i.activate=(y,k,C,S,$)=>{const R=y.component;h(y,k,C,0,g),s(R.vnode,y,k,C,R,g,S,y.slotScopeIds,$),rt(()=>{R.isDeactivated=!1,R.a&&fi(R.a);const L=y.props&&y.props.onVnodeMounted;L&&pt(L,R.parent,y)},g)},i.deactivate=y=>{const k=y.component;h(y,a,null,1,g),rt(()=>{k.da&&fi(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&pt(C,k.parent,y),k.isDeactivated=!0},g)};function l(y){ys(y),o(y,n,g,!0)}function c(y){p.forEach((k,C)=>{const S=sa(k.type);S&&(!y||!y(S))&&d(C)})}function d(y){const k=p.get(y);!f||!Ot(k,f)?l(k):f&&ys(f),p.delete(y),u.delete(y)}Ye(()=>[e.include,e.exclude],([y,k])=>{y&&c(C=>ji(y,C)),k&&c(C=>!ji(k,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&p.set(m,bs(n.subTree))};return tt(v),Ko(v),Rr(()=>{p.forEach(y=>{const{subTree:k,suspense:C}=n,S=bs(k);if(y.type===S.type&&y.key===S.key){ys(S);const $=S.component.da;$&&rt($,C);return}l(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return f=null,y;if(!Ln(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return f=null,k;let C=bs(k);const S=C.type,$=sa(jn(C)?C.type.__asyncResolved||{}:S),{include:R,exclude:L,max:x}=e;if(R&&(!$||!ji(R,$))||L&&$&&ji(L,$))return f=C,k;const M=C.key==null?S:C.key,b=p.get(M);return C.el&&(C=jt(C),k.shapeFlag&128&&(k.ssContent=C)),m=M,b?(C.el=b.el,C.component=b.component,C.transition&&Zn(C,C.transition),C.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),x&&u.size>parseInt(x,10)&&d(u.values().next().value)),C.shapeFlag|=256,f=C,Eh(k.type)?k:C}}},Pv=Nv;function ji(e,t){return ge(e)?e.some(n=>ji(n,t)):Ge(e)?e.split(",").includes(t):mm(e)?e.test(t):!1}function Fh(e,t){Ph(e,"a",t)}function Nh(e,t){Ph(e,"da",t)}function Ph(e,t,n=Qe){const i=e.__wdc||(e.__wdc=()=>{let p=n;for(;p;){if(p.isDeactivated)return;p=p.parent}return e()});if(Go(t,i,n),n){let p=n.parent;for(;p&&p.parent;)Er(p.parent.vnode)&&Dv(i,t,n,p),p=p.parent}}function Dv(e,t,n,i){const p=Go(t,e,i,!0);Yo(()=>{Na(i[t],p)},n)}function ys(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bs(e){return e.shapeFlag&128?e.ssContent:e}function Go(e,t,n=Qe,i=!1){if(n){const p=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...f)=>{if(n.isUnmounted)return;Ti(),Mn(n);const g=$t(t,n,e,f);return Sn(),Li(),g});return i?p.unshift(u):p.push(u),u}}const cn=e=>(t,n=Qe)=>(!wi||e==="sp")&&Go(e,(...i)=>t(...i),n),Dh=cn("bm"),tt=cn("m"),Bh=cn("bu"),Ko=cn("u"),Rr=cn("bum"),Yo=cn("um"),Wh=cn("sp"),Hh=cn("rtg"),Uh=cn("rtc");function zh(e,t=Qe){Go("ec",e,t)}function lt(e,t,n,i){let p;const u=n&&n[i];if(ge(e)||Ge(e)){p=new Array(e.length);for(let f=0,g=e.length;f<g;f++)p[f]=t(e[f],f,void 0,u&&u[f])}else if(typeof e=="number"){p=new Array(e);for(let f=0;f<e;f++)p[f]=t(f+1,f,void 0,u&&u[f])}else if(We(e))if(e[Symbol.iterator])p=Array.from(e,(f,g)=>t(f,g,void 0,u&&u[g]));else{const f=Object.keys(e);p=new Array(f.length);for(let g=0,s=f.length;g<s;g++){const h=f[g];p[g]=t(e[h],h,g,u&&u[g])}}else p=[];return n&&(n[i]=p),p}function Bv(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(ge(i))for(let p=0;p<i.length;p++)e[i[p].name]=i[p].fn;else i&&(e[i.name]=i.key?(...p)=>{const u=i.fn(...p);return u&&(u.key=i.key),u}:i.fn)}return e}function Wv(e,t,n={},i,p){if(nt.isCE||nt.parent&&jn(nt.parent)&&nt.parent.isCE)return t!=="default"&&(n.name=t),fe("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const f=u&&Vh(u(n)),g=Le(Se,{key:n.key||f&&f.key||`_${t}`},f||(i?i():[]),f&&e._===1?64:-2);return!p&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function Vh(e){return e.some(t=>Ln(t)?!(t.type===at||t.type===Se&&!Vh(t.children)):!0)?e:null}function Hv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Zi(i)]=e[i];return n}const Qs=e=>e?hf(e)?Zo(e)||e.proxy:Qs(e.parent):null,Qi=je(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=>Qs(e.parent),$root:e=>Qs(e.root),$emit:e=>e.emit,$options:e=>rl(e),$forceUpdate:e=>e.f||(e.f=()=>Uo(e.update)),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>Ov.bind(e)}),ws=(e,t)=>e!==Be&&!e.__isScriptSetup&&Fe(e,t),Js={get({_:e},t){const{ctx:n,setupState:i,data:p,props:u,accessCache:f,type:g,appContext:s}=e;let h;if(t[0]!=="$"){const l=f[t];if(l!==void 0)switch(l){case 1:return i[t];case 2:return p[t];case 4:return n[t];case 3:return u[t]}else{if(ws(i,t))return f[t]=1,i[t];if(p!==Be&&Fe(p,t))return f[t]=2,p[t];if((h=e.propsOptions[0])&&Fe(h,t))return f[t]=3,u[t];if(n!==Be&&Fe(n,t))return f[t]=4,n[t];qs&&(f[t]=0)}}const o=Qi[t];let r,a;if(o)return t==="$attrs"&&vt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Be&&Fe(n,t))return f[t]=4,n[t];if(a=s.config.globalProperties,Fe(a,t))return a[t]},set({_:e},t,n){const{data:i,setupState:p,ctx:u}=e;return ws(p,t)?(p[t]=n,!0):i!==Be&&Fe(i,t)?(i[t]=n,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:p,propsOptions:u}},f){let g;return!!n[f]||e!==Be&&Fe(e,f)||ws(t,f)||(g=u[0])&&Fe(g,f)||Fe(i,f)||Fe(Qi,f)||Fe(p.config.globalProperties,f)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Uv=je({},Js,{get(e,t){if(t!==Symbol.unscopables)return Js.get(e,t,e)},has(e,t){return t[0]!=="_"&&!$m(t)}});function zv(){return null}function Vv(){return null}function jv(e){}function Gv(e){}function Kv(){return null}function Yv(){}function Xv(e,t){return null}function Zv(){return jh().slots}function Qv(){return jh().attrs}function Jv(e,t,n){const i=Dt();if(n&&n.local){const p=Ie(e[t]);return Ye(()=>e[t],u=>p.value=u),Ye(p,u=>{u!==e[t]&&i.emit(`update:${t}`,u)}),p}else return{__v_isRef:!0,get value(){return e[t]},set value(p){i.emit(`update:${t}`,p)}}}function jh(){const e=Dt();return e.setupContext||(e.setupContext=pf(e))}function gr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function qv(e,t){const n=gr(e);for(const i in t){if(i.startsWith("__skip"))continue;let p=n[i];p?ge(p)||Ce(p)?p=n[i]={type:p,default:t[i]}:p.default=t[i]:p===null&&(p=n[i]={default:t[i]}),p&&t[`__skip_${i}`]&&(p.skipFactory=!0)}return n}function ey(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):je({},gr(e),gr(t))}function ty(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function ny(e){const t=Dt();let n=e();return Sn(),Pa(n)&&(n=n.catch(i=>{throw Mn(t),i})),[n,()=>Mn(t)]}let qs=!0;function iy(e){const t=rl(e),n=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&mc(t.beforeCreate,e,"bc");const{data:p,computed:u,methods:f,watch:g,provide:s,inject:h,created:o,beforeMount:r,mounted:a,beforeUpdate:l,updated:c,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:C,render:S,renderTracked:$,renderTriggered:R,errorCaptured:L,serverPrefetch:x,expose:M,inheritAttrs:b,components:A,directives:_,filters:w}=t;if(h&&ry(h,i,null),f)for(const O in f){const I=f[O];Ce(I)&&(i[O]=I.bind(n))}if(p){const O=p.call(n,n);We(O)&&(e.data=Mi(O))}if(qs=!0,u)for(const O in u){const I=u[O],F=Ce(I)?I.bind(n,n):Ce(I.get)?I.get.bind(n,n):Nt,D=!Ce(I)&&Ce(I.set)?I.set.bind(n):Nt,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)Gh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Ji(I,O[I])})}o&&mc(o,e,"c");function T(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Dh,r),T(tt,a),T(Bh,l),T(Ko,c),T(Fh,d),T(Nh,m),T(zh,L),T(Uh,$),T(Hh,R),T(Rr,y),T(Yo,C),T(Wh,x),ge(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});S&&e.render===Nt&&(e.render=S),b!=null&&(e.inheritAttrs=b),A&&(e.components=A),_&&(e.directives=_)}function ry(e,t,n=Nt){ge(e)&&(e=ea(e));for(const i in e){const p=e[i];let u;We(p)?"default"in p?u=xt(p.from||i,p.default,!0):u=xt(p.from||i):u=xt(p),qe(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):t[i]=u}}function mc(e,t,n){$t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gh(e,t,n,i){const p=i.includes(".")?Mh(n,i):()=>n[i];if(Ge(e)){const u=t[e];Ce(u)&&Ye(p,u)}else if(Ce(e))Ye(p,e.bind(n));else if(We(e))if(ge(e))e.forEach(u=>Gh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function rl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:p,optionsCache:u,config:{optionMergeStrategies:f}}=e.appContext,g=u.get(t);let s;return g?s=g:!p.length&&!n&&!i?s=t:(s={},p.length&&p.forEach(h=>yo(s,h,f,!0)),yo(s,t,f)),We(t)&&u.set(t,s),s}function yo(e,t,n,i=!1){const{mixins:p,extends:u}=t;u&&yo(e,u,n,!0),p&&p.forEach(f=>yo(e,f,n,!0));for(const f in t)if(!(i&&f==="expose")){const g=oy[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const oy={data:vc,props:yc,emits:yc,methods:Gi,computed:Gi,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Gi,directives:Gi,watch:ay,provide:vc,inject:sy};function vc(e,t){return t?e?function(){return je(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function sy(e,t){return Gi(ea(e),ea(t))}function ea(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ht(e,t){return e?[...new Set([].concat(e,t))]:t}function Gi(e,t){return e?je(Object.create(null),e,t):t}function yc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:je(Object.create(null),gr(e),gr(t??{})):t}function ay(e,t){if(!e)return t;if(!t)return e;const n=je(Object.create(null),e);for(const i in t)n[i]=ht(e[i],t[i]);return n}function Kh(){return{app:null,config:{isNativeTag:dm,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 ly=0;function cy(e,t){return function(i,p=null){Ce(i)||(i=je({},i)),p!=null&&!We(p)&&(p=null);const u=Kh(),f=new WeakSet;let g=!1;const s=u.app={_uid:ly++,_component:i,_props:p,_container:null,_context:u,_instance:null,version:yf,get config(){return u.config},set config(h){},use(h,...o){return f.has(h)||(h&&Ce(h.install)?(f.add(h),h.install(s,...o)):Ce(h)&&(f.add(h),h(s,...o))),s},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),s},component(h,o){return o?(u.components[h]=o,s):u.components[h]},directive(h,o){return o?(u.directives[h]=o,s):u.directives[h]},mount(h,o,r){if(!g){const a=fe(i,p);return a.appContext=u,o&&t?t(a,h):e(a,h,r),g=!0,s._container=h,h.__vue_app__=s,Zo(a.component)||a.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(h,o){return u.provides[h]=o,s},runWithContext(h){mr=s;try{return h()}finally{mr=null}}};return s}}let mr=null;function Ji(e,t){if(Qe){let n=Qe.provides;const i=Qe.parent&&Qe.parent.provides;i===n&&(n=Qe.provides=Object.create(i)),n[e]=t}}function xt(e,t,n=!1){const i=Qe||nt;if(i||mr){const p=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:mr._context.provides;if(p&&e in p)return p[e];if(arguments.length>1)return n&&Ce(t)?t.call(i&&i.proxy):t}}function uy(){return!!(Qe||nt||mr)}function hy(e,t,n,i=!1){const p={},u={};ho(u,Xo,1),e.propsDefaults=Object.create(null),Yh(e,t,p,u);for(const f in e.propsOptions[0])f in p||(p[f]=void 0);n?e.props=i?p:za(p):e.type.props?e.props=p:e.props=u,e.attrs=u}function fy(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:f}}=e,g=Me(p),[s]=e.propsOptions;let h=!1;if((i||f>0)&&!(f&16)){if(f&8){const o=e.vnode.dynamicProps;for(let r=0;r<o.length;r++){let a=o[r];if(zo(e.emitsOptions,a))continue;const l=t[a];if(s)if(Fe(u,a))l!==u[a]&&(u[a]=l,h=!0);else{const c=mt(a);p[c]=ta(s,g,c,l,e,!1)}else l!==u[a]&&(u[a]=l,h=!0)}}}else{Yh(e,t,p,u)&&(h=!0);let o;for(const r in g)(!t||!Fe(t,r)&&((o=At(r))===r||!Fe(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(p[r]=ta(s,g,r,void 0,e,!0)):delete p[r]);if(u!==g)for(const r in u)(!t||!Fe(t,r))&&(delete u[r],h=!0)}h&&en(e,"set","$attrs")}function Yh(e,t,n,i){const[p,u]=e.propsOptions;let f=!1,g;if(t)for(let s in t){if(Xi(s))continue;const h=t[s];let o;p&&Fe(p,o=mt(s))?!u||!u.includes(o)?n[o]=h:(g||(g={}))[o]=h:zo(e.emitsOptions,s)||(!(s in i)||h!==i[s])&&(i[s]=h,f=!0)}if(u){const s=Me(n),h=g||Be;for(let o=0;o<u.length;o++){const r=u[o];n[r]=ta(p,s,r,h[r],e,!Fe(h,r))}}return f}function ta(e,t,n,i,p,u){const f=e[n];if(f!=null){const g=Fe(f,"default");if(g&&i===void 0){const s=f.default;if(f.type!==Function&&!f.skipFactory&&Ce(s)){const{propsDefaults:h}=p;n in h?i=h[n]:(Mn(p),i=h[n]=s.call(null,t),Sn())}else i=s}f[0]&&(u&&!g?i=!1:f[1]&&(i===""||i===At(n))&&(i=!0))}return i}function Xh(e,t,n=!1){const i=t.propsCache,p=i.get(e);if(p)return p;const u=e.props,f={},g=[];let s=!1;if(!Ce(e)){const o=r=>{s=!0;const[a,l]=Xh(r,t,!0);je(f,a),l&&g.push(...l)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return We(e)&&i.set(e,ui),ui;if(ge(u))for(let o=0;o<u.length;o++){const r=mt(u[o]);bc(r)&&(f[r]=Be)}else if(u)for(const o in u){const r=mt(o);if(bc(r)){const a=u[o],l=f[r]=ge(a)||Ce(a)?{type:a}:je({},a);if(l){const c=_c(Boolean,l.type),d=_c(String,l.type);l[0]=c>-1,l[1]=d<0||c<d,(c>-1||Fe(l,"default"))&&g.push(r)}}}const h=[f,g];return We(e)&&i.set(e,h),h}function bc(e){return e[0]!=="$"}function wc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function $c(e,t){return wc(e)===wc(t)}function _c(e,t){return ge(t)?t.findIndex(n=>$c(n,e)):Ce(t)&&$c(t,e)?0:-1}const Zh=e=>e[0]==="_"||e==="$stable",ol=e=>ge(e)?e.map(bt):[bt(e)],dy=(e,t,n)=>{if(t._n)return t;const i=kt((...p)=>ol(t(...p)),n);return i._c=!1,i},Qh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(Zh(p))continue;const u=e[p];if(Ce(u))t[p]=dy(p,u,i);else if(u!=null){const f=ol(u);t[p]=()=>f}}},Jh=(e,t)=>{const n=ol(t);e.slots.default=()=>n},py=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Me(t),ho(t,"_",n)):Qh(t,e.slots={})}else e.slots={},t&&Jh(e,t);ho(e.slots,Xo,1)},gy=(e,t,n)=>{const{vnode:i,slots:p}=e;let u=!0,f=Be;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(je(p,t),!n&&g===1&&delete p._):(u=!t.$stable,Qh(t,p)),f=t}else t&&(Jh(e,t),f={default:1});if(u)for(const g in p)!Zh(g)&&f[g]==null&&delete p[g]};function bo(e,t,n,i,p=!1){if(ge(e)){e.forEach((a,l)=>bo(a,t&&(ge(t)?t[l]:t),n,i,p));return}if(jn(i)&&!p)return;const u=i.shapeFlag&4?Zo(i.component)||i.component.proxy:i.el,f=p?null:u,{i:g,r:s}=e,h=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,r=g.setupState;if(h!=null&&h!==s&&(Ge(h)?(o[h]=null,Fe(r,h)&&(r[h]=null)):qe(h)&&(h.value=null)),Ce(s))nn(s,g,12,[f,o]);else{const a=Ge(s),l=qe(s);if(a||l){const c=()=>{if(e.f){const d=a?Fe(r,s)?r[s]:o[s]:s.value;p?ge(d)&&Na(d,u):ge(d)?d.includes(u)||d.push(u):a?(o[s]=[u],Fe(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else a?(o[s]=f,Fe(r,s)&&(r[s]=f)):l&&(s.value=f,e.k&&(o[e.k]=f))};f?(c.id=-1,rt(c,n)):c()}}}let gn=!1;const Xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Zr=e=>e.nodeType===8;function my(e){const{mt:t,p:n,o:{patchProp:i,createText:p,nextSibling:u,parentNode:f,remove:g,insert:s,createComment:h}}=e,o=(k,C)=>{if(!C.hasChildNodes()){n(null,k,C),vo(),C._vnode=k;return}gn=!1,r(C.firstChild,k,null,null,null),vo(),C._vnode=k,gn&&console.error("Hydration completed but contains mismatches.")},r=(k,C,S,$,R,L=!1)=>{const x=Zr(k)&&k.data==="[",M=()=>d(k,C,S,$,R,x),{type:b,ref:A,shapeFlag:_,patchFlag:w}=C;let E=k.nodeType;C.el=k,w===-2&&(L=!1,C.dynamicChildren=null);let T=null;switch(b){case Qn:E!==3?C.children===""?(s(C.el=p(""),f(k),k),T=k):T=M():(k.data!==C.children&&(gn=!0,k.data=C.children),T=u(k));break;case at:y(k)?(T=u(k),v(C.el=k.content.firstChild,k,S)):E!==8||x?T=M():T=u(k);break;case Gn:if(x&&(k=u(k),E=k.nodeType),E===1||E===3){T=k;const O=!C.children.length;for(let I=0;I<C.staticCount;I++)O&&(C.children+=T.nodeType===1?T.outerHTML:T.data),I===C.staticCount-1&&(C.anchor=T),T=u(T);return x?u(T):T}else M();break;case Se:x?T=c(k,C,S,$,R,L):T=M();break;default:if(_&1)(E!==1||C.type.toLowerCase()!==k.tagName.toLowerCase())&&!y(k)?T=M():T=a(k,C,S,$,R,L);else if(_&6){C.slotScopeIds=R;const O=f(k);if(x?T=m(k):Zr(k)&&k.data==="teleport start"?T=m(k,k.data,"teleport end"):T=u(k),t(C,O,null,S,$,Xr(O),L),jn(C)){let I;x?(I=fe(Se),I.anchor=T?T.previousSibling:O.lastChild):I=k.nodeType===3?ft(""):fe("div"),I.el=k,C.component.subTree=I}}else _&64?E!==8?T=M():T=C.type.hydrate(k,C,S,$,R,L,e,l):_&128&&(T=C.type.hydrate(k,C,S,$,Xr(f(k)),R,L,e,r))}return A!=null&&bo(A,null,$,C),T},a=(k,C,S,$,R,L)=>{L=L||!!C.dynamicChildren;const{type:x,props:M,patchFlag:b,shapeFlag:A,dirs:_,transition:w}=C,E=x==="input"||x==="option";if(E||b!==-1){if(_&&Bt(C,null,S,"created"),M)if(E||!L||b&48)for(const I in M)(E&&(I.endsWith("value")||I==="indeterminate")||Sr(I)&&!Xi(I)||I[0]===".")&&i(k,I,null,M[I],!1,void 0,S);else M.onClick&&i(k,"onClick",null,M.onClick,!1,void 0,S);let T;(T=M&&M.onVnodeBeforeMount)&&pt(T,S,C);let O=!1;if(y(k)){O=nf($,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=k.content.firstChild;O&&w.beforeEnter(I),v(I,k,S),C.el=k=I}if(_&&Bt(C,null,S,"beforeMount"),((T=M&&M.onVnodeMounted)||_||O)&&Rh(()=>{T&&pt(T,S,C),O&&w.enter(k),_&&Bt(C,null,S,"mounted")},$),A&16&&!(M&&(M.innerHTML||M.textContent))){let I=l(k.firstChild,C,k,S,$,R,L);for(;I;){gn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&k.textContent!==C.children&&(gn=!0,k.textContent=C.children)}return k.nextSibling},l=(k,C,S,$,R,L,x)=>{x=x||!!C.dynamicChildren;const M=C.children,b=M.length;for(let A=0;A<b;A++){const _=x?M[A]:M[A]=bt(M[A]);if(k)k=r(k,_,$,R,L,x);else{if(_.type===Qn&&!_.children)continue;gn=!0,n(null,_,S,null,$,R,Xr(S),L)}}return k},c=(k,C,S,$,R,L)=>{const{slotScopeIds:x}=C;x&&(R=R?R.concat(x):x);const M=f(k),b=l(u(k),C,M,S,$,R,L);return b&&Zr(b)&&b.data==="]"?u(C.anchor=b):(gn=!0,s(C.anchor=h("]"),M,b),b)},d=(k,C,S,$,R,L)=>{if(gn=!0,C.el=null,L){const b=m(k);for(;;){const A=u(k);if(A&&A!==b)g(A);else break}}const x=u(k),M=f(k);return g(k),n(null,C,M,x,S,$,Xr(M),R),x},m=(k,C="[",S="]")=>{let $=0;for(;k;)if(k=u(k),k&&Zr(k)&&(k.data===C&&$++,k.data===S)){if($===0)return u(k);$--}return k},v=(k,C,S)=>{const $=C.parentNode;$&&$.replaceChild(k,C);let R=S;for(;R;)R.vnode.el===C&&(R.vnode.el=R.subTree.el=k),R=R.parent},y=k=>k.nodeType===1&&k.tagName.toLowerCase()==="template";return[o,r]}const rt=Rh;function qh(e){return tf(e)}function ef(e){return tf(e,my)}function tf(e,t){const n=Gs();n.__VUE__=!0;const{insert:i,remove:p,patchProp:u,createElement:f,createText:g,createComment:s,setText:h,setElementText:o,parentNode:r,nextSibling:a,setScopeId:l=Nt,insertStaticContent:c}=e,d=(P,B,G,Q=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(P===B)return;P&&!Ot(P,B)&&(Q=z(P),j(P,te,ie,!0),P=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case Qn:m(P,B,G,Q);break;case at:v(P,B,G,Q);break;case Gn:P==null&&y(B,G,Q,le);break;case Se:A(P,B,G,Q,te,ie,le,se,ce);break;default:de&1?S(P,B,G,Q,te,ie,le,se,ce):de&6?_(P,B,G,Q,te,ie,le,se,ce):(de&64||de&128)&&re.process(P,B,G,Q,te,ie,le,se,ce,Y)}ve!=null&&te&&bo(ve,P&&P.ref,ie,B||P,!B)},m=(P,B,G,Q)=>{if(P==null)i(B.el=g(B.children),G,Q);else{const te=B.el=P.el;B.children!==P.children&&h(te,B.children)}},v=(P,B,G,Q)=>{P==null?i(B.el=s(B.children||""),G,Q):B.el=P.el},y=(P,B,G,Q)=>{[P.el,P.anchor]=c(P.children,B,G,Q,P.el,P.anchor)},k=({el:P,anchor:B},G,Q)=>{let te;for(;P&&P!==B;)te=a(P),i(P,G,Q),P=te;i(B,G,Q)},C=({el:P,anchor:B})=>{let G;for(;P&&P!==B;)G=a(P),p(P),P=G;p(B)},S=(P,B,G,Q,te,ie,le,se,ce)=>{le=le||B.type==="svg",P==null?$(B,G,Q,te,ie,le,se,ce):x(P,B,te,ie,le,se,ce)},$=(P,B,G,Q,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:J}=P;if(ce=P.el=f(P.type,ie,de&&de.is,de),me&8?o(ce,P.children):me&16&&L(P.children,ce,null,Q,te,ie&&ve!=="foreignObject",le,se),J&&Bt(P,null,Q,"created"),R(ce,P,P.scopeId,le,Q),de){for(const ue in de)ue!=="value"&&!Xi(ue)&&u(ce,ue,null,de[ue],ie,P.children,Q,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&pt(re,Q,P)}J&&Bt(P,null,Q,"beforeMount");const ae=nf(te,_e);ae&&_e.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||J)&&rt(()=>{re&&pt(re,Q,P),ae&&_e.enter(ce),J&&Bt(P,null,Q,"mounted")},te)},R=(P,B,G,Q,te)=>{if(G&&l(P,G),Q)for(let ie=0;ie<Q.length;ie++)l(P,Q[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;R(P,le,le.scopeId,le.slotScopeIds,te.parent)}}},L=(P,B,G,Q,te,ie,le,se,ce=0)=>{for(let re=ce;re<P.length;re++){const ve=P[re]=se?$n(P[re]):bt(P[re]);d(null,ve,B,G,Q,te,ie,le,se)}},x=(P,B,G,Q,te,ie,le)=>{const se=B.el=P.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=P.patchFlag&16;const de=P.props||Be,me=B.props||Be;let _e;G&&Nn(G,!1),(_e=me.onVnodeBeforeUpdate)&&pt(_e,G,B,P),ve&&Bt(B,P,G,"beforeUpdate"),G&&Nn(G,!0);const J=te&&B.type!=="foreignObject";if(re?M(P.dynamicChildren,re,se,G,Q,J,ie):le||I(P,B,se,null,G,Q,J,ie,!1),ce>0){if(ce&16)b(se,B,de,me,G,Q,te);else if(ce&2&&de.class!==me.class&&u(se,"class",null,me.class,te),ce&4&&u(se,"style",de.style,me.style,te),ce&8){const ae=B.dynamicProps;for(let ue=0;ue<ae.length;ue++){const be=ae[ue],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,P.children,G,Q,Z)}}ce&1&&P.children!==B.children&&o(se,B.children)}else!le&&re==null&&b(se,B,de,me,G,Q,te);((_e=me.onVnodeUpdated)||ve)&&rt(()=>{_e&&pt(_e,G,B,P),ve&&Bt(B,P,G,"updated")},Q)},M=(P,B,G,Q,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=P[se],re=B[se],ve=ce.el&&(ce.type===Se||!Ot(ce,re)||ce.shapeFlag&70)?r(ce.el):G;d(ce,re,ve,null,Q,te,ie,le,!0)}},b=(P,B,G,Q,te,ie,le)=>{if(G!==Q){if(G!==Be)for(const se in G)!Xi(se)&&!(se in Q)&&u(P,se,G[se],null,le,B.children,te,ie,Z);for(const se in Q){if(Xi(se))continue;const ce=Q[se],re=G[se];ce!==re&&se!=="value"&&u(P,se,re,ce,le,B.children,te,ie,Z)}"value"in Q&&u(P,"value",G.value,Q.value)}},A=(P,B,G,Q,te,ie,le,se,ce)=>{const re=B.el=P?P.el:g(""),ve=B.anchor=P?P.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),P==null?(i(re,G,Q),i(ve,G,Q),L(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&P.dynamicChildren?(M(P.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&sl(P,B,!0)):I(P,B,G,ve,te,ie,le,se,ce)},_=(P,B,G,Q,te,ie,le,se,ce)=>{B.slotScopeIds=se,P==null?B.shapeFlag&512?te.ctx.activate(B,G,Q,le,ce):w(B,G,Q,te,ie,le,ce):E(P,B,ce)},w=(P,B,G,Q,te,ie,le)=>{const se=P.component=uf(P,Q,te);if(Er(P)&&(se.ctx.renderer=Y),ff(se),se.asyncDep){if(te&&te.registerDep(se,T),!P.el){const ce=se.subTree=fe(at);v(null,ce,B,G)}return}T(se,P,B,G,te,ie,le)},E=(P,B,G)=>{const Q=B.component=P.component;if($v(P,B,G))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,G);return}else Q.next=B,pv(Q.update),Q.update();else B.el=P.el,Q.vnode=B},T=(P,B,G,Q,te,ie,le)=>{const se=()=>{if(P.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:J}=P,ae=ve,ue;Nn(P,!1),ve?(ve.el=J.el,O(P,ve,le)):ve=J,de&&fi(de),(ue=ve.props&&ve.props.onVnodeBeforeUpdate)&&pt(ue,_e,ve,J),Nn(P,!0);const be=no(P),Re=P.subTree;P.subTree=be,d(Re,be,r(Re.el),z(Re),P,te,ie),ve.el=be.el,ae===null&&Ja(P,be.el),me&&rt(me,te),(ue=ve.props&&ve.props.onVnodeUpdated)&&rt(()=>pt(ue,_e,ve,J),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:J,parent:ae}=P,ue=jn(B);if(Nn(P,!1),_e&&fi(_e),!ue&&(ve=me&&me.onVnodeBeforeMount)&&pt(ve,ae,B),Nn(P,!0),de&&ee){const be=()=>{P.subTree=no(P),ee(de,P.subTree,P,te,null)};ue?B.type.__asyncLoader().then(()=>!P.isUnmounted&&be()):be()}else{const be=P.subTree=no(P);d(null,be,G,Q,P,te,ie),B.el=be.el}if(J&&rt(J,te),!ue&&(ve=me&&me.onVnodeMounted)){const be=B;rt(()=>pt(ve,ae,be),te)}(B.shapeFlag&256||ae&&jn(ae.vnode)&&ae.vnode.shapeFlag&256)&&P.a&&rt(P.a,te),P.isMounted=!0,B=G=Q=null}},ce=P.effect=new vi(se,()=>Uo(re),P.scope),re=P.update=()=>ce.run();re.id=P.uid,Nn(P,!0),re()},O=(P,B,G)=>{B.component=P;const Q=P.vnode.props;P.vnode=B,P.next=null,fy(P,B.props,Q,G),gy(P,B.children,G),Ti(),hc(),Li()},I=(P,B,G,Q,te,ie,le,se,ce=!1)=>{const re=P&&P.children,ve=P?P.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:_e}=B;if(me>0){if(me&128){D(re,de,G,Q,te,ie,le,se,ce);return}else if(me&256){F(re,de,G,Q,te,ie,le,se,ce);return}}_e&8?(ve&16&&Z(re,te,ie),de!==re&&o(G,de)):ve&16?_e&16?D(re,de,G,Q,te,ie,le,se,ce):Z(re,te,ie,!0):(ve&8&&o(G,""),_e&16&&L(de,G,Q,te,ie,le,se,ce))},F=(P,B,G,Q,te,ie,le,se,ce)=>{P=P||ui,B=B||ui;const re=P.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;me<de;me++){const _e=B[me]=ce?$n(B[me]):bt(B[me]);d(P[me],_e,G,null,te,ie,le,se,ce)}re>ve?Z(P,te,ie,!0,!1,de):L(B,G,Q,te,ie,le,se,ce,de)},D=(P,B,G,Q,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=P.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=P[re],J=B[re]=ce?$n(B[re]):bt(B[re]);if(Ot(_e,J))d(_e,J,G,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const _e=P[de],J=B[me]=ce?$n(B[me]):bt(B[me]);if(Ot(_e,J))d(_e,J,G,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const _e=me+1,J=_e<ve?B[_e].el:Q;for(;re<=me;)d(null,B[re]=ce?$n(B[re]):bt(B[re]),G,J,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)j(P[re],te,ie,!0),re++;else{const _e=re,J=re,ae=new Map;for(re=J;re<=me;re++){const xe=B[re]=ce?$n(B[re]):bt(B[re]);xe.key!=null&&ae.set(xe.key,re)}let ue,be=0;const Re=me-J+1;let Ne=!1,Ke=0;const De=new Array(Re);for(re=0;re<Re;re++)De[re]=0;for(re=_e;re<=de;re++){const xe=P[re];if(be>=Re){j(xe,te,ie,!0);continue}let Ue;if(xe.key!=null)Ue=ae.get(xe.key);else for(ue=J;ue<=me;ue++)if(De[ue-J]===0&&Ot(xe,B[ue])){Ue=ue;break}Ue===void 0?j(xe,te,ie,!0):(De[Ue-J]=re+1,Ue>=Ke?Ke=Ue:Ne=!0,d(xe,B[Ue],G,null,te,ie,le,se,ce),be++)}const He=Ne?vy(De):ui;for(ue=He.length-1,re=Re-1;re>=0;re--){const xe=J+re,Ue=B[xe],fn=xe+1<ve?B[xe+1].el:Q;De[re]===0?d(null,Ue,G,fn,te,ie,le,se,ce):Ne&&(ue<0||re!==He[ue]?W(Ue,G,fn,2):ue--)}}},W=(P,B,G,Q,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=P;if(re&6){W(P.component.subTree,B,G,Q);return}if(re&128){P.suspense.move(B,G,Q);return}if(re&64){le.move(P,B,G,Y);return}if(le===Se){i(ie,B,G);for(let de=0;de<ce.length;de++)W(ce[de],B,G,Q);i(P.anchor,B,G);return}if(le===Gn){k(P,B,G);return}if(Q!==2&&re&1&&se)if(Q===0)se.beforeEnter(ie),i(ie,B,G),rt(()=>se.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:_e}=se,J=()=>i(ie,B,G),ae=()=>{de(ie,()=>{J(),_e&&_e()})};me?me(ie,J,ae):ae()}else i(ie,B,G)},j=(P,B,G,Q=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=P;if(se!=null&&bo(se,null,G,P,!0),ve&256){B.ctx.deactivate(P);return}const _e=ve&1&&me,J=!jn(P);let ae;if(J&&(ae=le&&le.onVnodeBeforeUnmount)&&pt(ae,B,P),ve&6)K(P.component,G,Q);else{if(ve&128){P.suspense.unmount(G,Q);return}_e&&Bt(P,null,B,"beforeUnmount"),ve&64?P.type.remove(P,B,G,te,Y,Q):re&&(ie!==Se||de>0&&de&64)?Z(re,B,G,!1,!0):(ie===Se&&de&384||!te&&ve&16)&&Z(ce,B,G),Q&&H(P)}(J&&(ae=le&&le.onVnodeUnmounted)||_e)&&rt(()=>{ae&&pt(ae,B,P),_e&&Bt(P,null,B,"unmounted")},G)},H=P=>{const{type:B,el:G,anchor:Q,transition:te}=P;if(B===Se){U(G,Q);return}if(B===Gn){C(P);return}const ie=()=>{p(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(P.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(P.el,ie,ce):ce()}else ie()},U=(P,B)=>{let G;for(;P!==B;)G=a(P),p(P),P=G;p(B)},K=(P,B,G)=>{const{bum:Q,scope:te,update:ie,subTree:le,um:se}=P;Q&&fi(Q),te.stop(),ie&&(ie.active=!1,j(le,P,B,G)),se&&rt(se,B),rt(()=>{P.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(P,B,G,Q=!1,te=!1,ie=0)=>{for(let le=ie;le<P.length;le++)j(P[le],B,G,Q,te)},z=P=>P.shapeFlag&6?z(P.component.subTree):P.shapeFlag&128?P.suspense.next():a(P.anchor||P.el),X=(P,B,G)=>{P==null?B._vnode&&j(B._vnode,null,null,!0):d(B._vnode||null,P,B,null,null,null,G),hc(),vo(),B._vnode=P},Y={p:d,um:j,m:W,r:H,mt:w,mc:L,pc:I,pbc:M,n:z,o:e};let V,ee;return t&&([V,ee]=t(Y)),{render:X,hydrate:V,createApp:cy(X,V)}}function Nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const i=e.children,p=t.children;if(ge(i)&&ge(p))for(let u=0;u<i.length;u++){const f=i[u];let g=p[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=p[u]=$n(p[u]),g.el=f.el),n||sl(f,g)),g.type===Qn&&(g.el=f.el)}}function vy(e){const t=e.slice(),n=[0];let i,p,u,f,g;const s=e.length;for(i=0;i<s;i++){const h=e[i];if(h!==0){if(p=n[n.length-1],e[p]<h){t[i]=p,n.push(i);continue}for(u=0,f=n.length-1;u<f;)g=u+f>>1,e[n[g]]<h?u=g+1:f=g;h<e[n[u]]&&(u>0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,f=n[u-1];u-- >0;)n[u]=f,f=t[f];return n}const yy=e=>e.__isTeleport,qi=e=>e&&(e.disabled||e.disabled===""),Cc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,na=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},by={name:"Teleport",__isTeleport:!0,process(e,t,n,i,p,u,f,g,s,h){const{mc:o,pc:r,pbc:a,o:{insert:l,querySelector:c,createText:d,createComment:m}}=h,v=qi(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const S=t.el=d(""),$=t.anchor=d("");l(S,n,i),l($,n,i);const R=t.target=na(t.props,c),L=t.targetAnchor=d("");R&&(l(L,R),f=f||Cc(R));const x=(M,b)=>{y&16&&o(k,M,b,p,u,f,g,s)};v?x(n,$):R&&x(R,L)}else{t.el=e.el;const S=t.anchor=e.anchor,$=t.target=e.target,R=t.targetAnchor=e.targetAnchor,L=qi(e.props),x=L?n:$,M=L?S:R;if(f=f||Cc($),C?(a(e.dynamicChildren,C,x,p,u,f,g),sl(e,t,!0)):s||r(e,t,x,M,p,u,f,g,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qr(t,n,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const b=t.target=na(t.props,c);b&&Qr(t,b,null,h,0)}else L&&Qr(t,$,R,h,1)}rf(t)},remove(e,t,n,i,{um:p,o:{remove:u}},f){const{shapeFlag:g,children:s,anchor:h,targetAnchor:o,target:r,props:a}=e;if(r&&u(o),f&&u(h),g&16){const l=f||!qi(a);for(let c=0;c<s.length;c++){const d=s[c];p(d,t,n,l,!!d.dynamicChildren)}}},move:Qr,hydrate:wy};function Qr(e,t,n,{o:{insert:i},m:p},u=2){u===0&&i(e.targetAnchor,t,n);const{el:f,anchor:g,shapeFlag:s,children:h,props:o}=e,r=u===2;if(r&&i(f,t,n),(!r||qi(o))&&s&16)for(let a=0;a<h.length;a++)p(h[a],t,n,2);r&&i(g,t,n)}function wy(e,t,n,i,p,u,{o:{nextSibling:f,parentNode:g,querySelector:s}},h){const o=t.target=na(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(qi(t.props))t.anchor=h(f(e),t,g(e),n,i,p,u),t.targetAnchor=r;else{t.anchor=f(e);let a=r;for(;a;)if(a=f(a),a&&a.nodeType===8&&a.data==="teleport anchor"){t.targetAnchor=a,o._lpa=t.targetAnchor&&f(t.targetAnchor);break}h(r,t,o,n,i,p,u)}rf(t)}return t.anchor&&f(t.anchor)}const $y=by;function rf(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Se=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Gn=Symbol.for("v-stc"),er=[];let gt=null;function q(e=!1){er.push(gt=e?null:[])}function of(){er.pop(),gt=er[er.length-1]||null}let Jn=1;function ia(e){Jn+=e}function sf(e){return e.dynamicChildren=Jn>0?gt||ui:null,of(),Jn>0&&gt&&gt.push(e),e}function oe(e,t,n,i,p,u){return sf(N(e,t,n,i,p,u,!0))}function Le(e,t,n,i,p){return sf(fe(e,t,n,i,p,!0))}function Ln(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}function _y(e){}const Xo="__vInternal",af=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,i=0,p=null,u=e===Se?0:1,f=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&af(t),ref:t&&io(t),scopeId:Vo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:i,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:nt};return g?(al(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),Jn>0&&!f&&gt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&gt.push(s),s}const fe=Cy;function Cy(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===xh)&&(e=at),Ln(e)){const g=jt(e,t,!0);return n&&al(g,n),Jn>0&&!u&&gt&&(g.shapeFlag&6?gt[gt.indexOf(e)]=g:gt.push(g)),g.patchFlag|=-2,g}if(Ly(e)&&(e=e.__vccOpts),t){t=lf(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=kr(g)),We(s)&&(Va(s)&&!ge(s)&&(s=je({},s)),t.style=Ar(s))}const f=Ge(e)?1:Eh(e)?128:yy(e)?64:We(e)?4:Ce(e)?2:0;return N(e,t,n,i,p,f,u,!0)}function lf(e){return e?Va(e)||Xo in e?je({},e):e:null}function jt(e,t,n=!1){const{props:i,ref:p,patchFlag:u,children:f}=e,g=t?cf(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&af(g),ref:t&&t.ref?n&&p?ge(p)?p.concat(io(t)):[p,io(t)]:io(t):p,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ft(e=" ",t=0){return fe(Qn,null,e,t)}function Sy(e,t){const n=fe(Gn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Le(at,null,e)):fe(at,null,e)}function bt(e){return e==null||typeof e=="boolean"?fe(at):ge(e)?fe(Se,null,e.slice()):typeof e=="object"?$n(e):fe(Qn,null,String(e))}function $n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function al(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(i&65){const p=t.default;p&&(p._c&&(p._d=!1),al(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(Xo in t)?t._ctx=nt:p===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),i&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function cf(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const p in i)if(p==="class")t.class!==i.class&&(t.class=kr([t.class,i.class]));else if(p==="style")t.style=Ar([t.style,i.style]);else if(Sr(p)){const u=t[p],f=i[p];f&&u!==f&&!(ge(u)&&u.includes(f))&&(t[p]=u?[].concat(u,f):f)}else p!==""&&(t[p]=i[p])}return t}function pt(e,t,n,i=null){$t(e,t,7,[n,i])}const Ay=Kh();let ky=0;function uf(e,t,n){const i=e.type,p=(t?t.appContext:e.appContext)||Ay,u={uid:ky++,vnode:e,type:i,parent:t,appContext:p,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ba(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(p.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xh(i,p),emitsOptions:kh(i,p),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:i.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,setupContext:null,attrsProxy:null,slotsProxy: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 u.ctx={_:u},u.root=t?t.root:u,u.emit=mv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Dt=()=>Qe||nt;let ll,ii,Sc="__VUE_INSTANCE_SETTERS__";(ii=Gs()[Sc])||(ii=Gs()[Sc]=[]),ii.push(e=>Qe=e),ll=e=>{ii.length>1?ii.forEach(t=>t(e)):ii[0](e)};const Mn=e=>{ll(e),e.scope.on()},Sn=()=>{Qe&&Qe.scope.off(),ll(null)};function hf(e){return e.vnode.shapeFlag&4}let wi=!1;function ff(e,t=!1){wi=t;const{props:n,children:i}=e.vnode,p=hf(e);hy(e,n,p,t),py(e,i);const u=p?xy(e,t):void 0;return wi=!1,u}function xy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wo(new Proxy(e.ctx,Js));const{setup:i}=n;if(i){const p=e.setupContext=i.length>1?pf(e):null;Mn(e),Ti();const u=nn(i,e,0,[e.props,p]);if(Li(),Sn(),Pa(u)){if(u.then(Sn,Sn),t)return u.then(f=>{ra(e,f,t)}).catch(f=>{ei(f,e,0)});e.asyncDep=u}else ra(e,u,t)}else df(e,t)}function ra(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Ka(t)),df(e,n)}let wo,oa;function Ey(e){wo=e,oa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Uv))}}const Ry=()=>!wo;function df(e,t,n){const i=e.type;if(!e.render){if(!t&&wo&&!i.render){const p=i.template||rl(e).template;if(p){const{isCustomElement:u,compilerOptions:f}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,h=je(je({isCustomElement:u,delimiters:g},f),s);i.render=wo(p,h)}}e.render=i.render||Nt,oa&&oa(e)}{Mn(e),Ti();try{iy(e)}finally{Li(),Sn()}}}function Ty(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return vt(e,"get","$attrs"),t[n]}}))}function pf(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ty(e)},slots:e.slots,emit:e.emit,expose:t}}function Zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ka(Wo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qi)return Qi[n](e)},has(t,n){return n in t||n in Qi}}))}function sa(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Ly(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>cv(e,t,wi);function Oi(e,t,n){const i=arguments.length;return i===2?We(t)&&!ge(t)?Ln(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ln(n)&&(n=[n]),fe(e,t,n))}const gf=Symbol.for("v-scx"),mf=()=>xt(gf);function My(){}function Oy(e,t,n,i){const p=n[i];if(p&&vf(p,e))return p;const u=t();return u.memo=e.slice(),n[i]=u}function vf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(En(n[i],t[i]))return!1;return Jn>0&&gt&&gt.push(e),!0}const yf="3.3.9",Iy={createComponentInstance:uf,setupComponent:ff,renderComponentRoot:no,setCurrentRenderingInstance:dr,isVNode:Ln,normalizeVNode:bt},Fy=Iy,Ny=null,Py=null,Dy="http://www.w3.org/2000/svg",Bn=typeof document<"u"?document:null,Ac=Bn&&Bn.createElement("template"),By={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 p=t?Bn.createElementNS(Dy,e):Bn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&p.setAttribute("multiple",i.multiple),p},createText:e=>Bn.createTextNode(e),createComment:e=>Bn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,p,u){const f=n?n.previousSibling:t.lastChild;if(p&&(p===u||p.nextSibling))for(;t.insertBefore(p.cloneNode(!0),n),!(p===u||!(p=p.nextSibling)););else{Ac.innerHTML=i?`<svg>${e}</svg>`:e;const g=Ac.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mn="transition",Di="animation",$i=Symbol("_vtc"),cl=(e,{slots:t})=>Oi(Oh,wf(e),t);cl.displayName="Transition";const bf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Wy=cl.props=je({},il,bf),Pn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},kc=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function wf(e){const t={};for(const A in e)A in bf||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:p,enterFromClass:u=`${n}-enter-from`,enterActiveClass:f=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:h=f,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:a=`${n}-leave-active`,leaveToClass:l=`${n}-leave-to`}=e,c=Hy(p),d=c&&c[0],m=c&&c[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:S,onBeforeAppear:$=v,onAppear:R=y,onAppearCancelled:L=k}=t,x=(A,_,w)=>{bn(A,_?o:g),bn(A,_?h:f),w&&w()},M=(A,_)=>{A._isLeaving=!1,bn(A,r),bn(A,l),bn(A,a),_&&_()},b=A=>(_,w)=>{const E=A?R:y,T=()=>x(_,A,w);Pn(E,[_,T]),xc(()=>{bn(_,A?s:u),Xt(_,A?o:g),kc(E)||Ec(_,i,d,T)})};return je(t,{onBeforeEnter(A){Pn(v,[A]),Xt(A,u),Xt(A,f)},onBeforeAppear(A){Pn($,[A]),Xt(A,s),Xt(A,h)},onEnter:b(!1),onAppear:b(!0),onLeave(A,_){A._isLeaving=!0;const w=()=>M(A,_);Xt(A,r),_f(),Xt(A,a),xc(()=>{A._isLeaving&&(bn(A,r),Xt(A,l),kc(C)||Ec(A,i,m,w))}),Pn(C,[A,w])},onEnterCancelled(A){x(A,!1),Pn(k,[A])},onAppearCancelled(A){x(A,!0),Pn(L,[A])},onLeaveCancelled(A){M(A),Pn(S,[A])}})}function Hy(e){if(e==null)return null;if(We(e))return[$s(e.enter),$s(e.leave)];{const t=$s(e);return[t,t]}}function $s(e){return po(e)}function Xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$i]||(e[$i]=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function xc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Uy=0;function Ec(e,t,n,i){const p=e._endId=++Uy,u=()=>{p===e._endId&&i()};if(n)return setTimeout(u,n);const{type:f,timeout:g,propCount:s}=$f(e,t);if(!f)return i();const h=f+"end";let o=0;const r=()=>{e.removeEventListener(h,a),u()},a=l=>{l.target===e&&++o>=s&&r()};setTimeout(()=>{o<s&&r()},g+1),e.addEventListener(h,a)}function $f(e,t){const n=window.getComputedStyle(e),i=c=>(n[c]||"").split(", "),p=i(`${mn}Delay`),u=i(`${mn}Duration`),f=Rc(p,u),g=i(`${Di}Delay`),s=i(`${Di}Duration`),h=Rc(g,s);let o=null,r=0,a=0;t===mn?f>0&&(o=mn,r=f,a=u.length):t===Di?h>0&&(o=Di,r=h,a=s.length):(r=Math.max(f,h),o=r>0?f>h?mn:Di:null,a=o?o===mn?u.length:s.length:0);const l=o===mn&&/\b(transform|all)(,|$)/.test(i(`${mn}Property`).toString());return{type:o,timeout:r,propCount:a,hasTransform:l}}function Rc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Tc(n)+Tc(e[i])))}function Tc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _f(){return document.body.offsetHeight}function zy(e,t,n){const i=e[$i];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ul=Symbol("_vod"),Cf={beforeMount(e,{value:t},{transition:n}){e[ul]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Bi(e,!0),i.enter(e)):i.leave(e,()=>{Bi(e,!1)}):Bi(e,t))},beforeUnmount(e,{value:t}){Bi(e,t)}};function Bi(e,t){e.style.display=t?e[ul]:"none"}function Vy(){Cf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function jy(e,t,n){const i=e.style,p=Ge(n);if(n&&!p){if(t&&!Ge(t))for(const u in t)n[u]==null&&aa(i,u,"");for(const u in n)aa(i,u,n[u])}else{const u=i.display;p?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),ul in e&&(i.display=u)}}const Lc=/\s*!important$/;function aa(e,t,n){if(ge(n))n.forEach(i=>aa(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Gy(e,t);Lc.test(n)?e.setProperty(At(i),n.replace(Lc,""),"important"):e[i]=n}}const Mc=["Webkit","Moz","ms"],_s={};function Gy(e,t){const n=_s[t];if(n)return n;let i=mt(t);if(i!=="filter"&&i in e)return _s[t]=i;i=Ri(i);for(let p=0;p<Mc.length;p++){const u=Mc[p]+i;if(u in e)return _s[t]=u}return t}const Oc="http://www.w3.org/1999/xlink";function Ky(e,t,n,i,p){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Oc,t.slice(6,t.length)):e.setAttributeNS(Oc,t,n);else{const u=Em(t);n==null||u&&!nh(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function Yy(e,t,n,i,p,u,f){if(t==="innerHTML"||t==="textContent"){i&&f(i,p,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const h=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";h!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=nh(n):n==null&&h==="string"?(n="",s=!0):h==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Qt(e,t,n,i){e.addEventListener(t,n,i)}function Xy(e,t,n,i){e.removeEventListener(t,n,i)}const Ic=Symbol("_vei");function Zy(e,t,n,i,p=null){const u=e[Ic]||(e[Ic]={}),f=u[t];if(i&&f)f.value=i;else{const[g,s]=Qy(t);if(i){const h=u[t]=e0(i,p);Qt(e,g,h,s)}else f&&(Xy(e,g,f,s),u[t]=void 0)}}const Fc=/(?:Once|Passive|Capture)$/;function Qy(e){let t;if(Fc.test(e)){t={};let i;for(;i=e.match(Fc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let Cs=0;const Jy=Promise.resolve(),qy=()=>Cs||(Jy.then(()=>Cs=0),Cs=Date.now());function e0(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;$t(t0(i,n.value),t,5,[i])};return n.value=e,n.attached=qy(),n}function t0(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>p=>!p._stopped&&i&&i(p))}else return t}const Nc=/^on[a-z]/,n0=(e,t,n,i,p=!1,u,f,g,s)=>{t==="class"?zy(e,i,p):t==="style"?jy(e,n,i):Sr(t)?Fa(t)||Zy(e,t,n,i,f):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):i0(e,t,i,p))?Yy(e,t,i,u,f,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ky(e,t,i,p))};function i0(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Nc.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nc.test(t)&&Ge(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Sf(e,t){const n=$e(e);class i extends Qo{constructor(u){super(n,u,t)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const r0=e=>Sf(e,If),o0=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends o0{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Vt(()=>{this._connected||(ua(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const p of i)this._setAttr(p.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,p=!1)=>{const{props:u,styles:f}=i;let g;if(u&&!ge(u))for(const s in u){const h=u[s];(h===Number||h&&h.type===Number)&&(s in this._props&&(this._props[s]=po(this._props[s])),(g||(g=Object.create(null)))[mt(s)]=!0)}this._numberProps=g,p&&this._resolveProps(i),this._applyStyles(f),this._update()},n=this._def.__asyncLoader;n?n().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,i=ge(n)?n:Object.keys(n||{});for(const p of Object.keys(this))p[0]!=="_"&&i.includes(p)&&this._setProp(p,this[p],!0,!1);for(const p of i.map(mt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=mt(t);this._numberProps&&this._numberProps[i]&&(n=po(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,p=!0){n!==this._props[t]&&(this._props[t]=n,p&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){ua(this._createVNode(),this.shadowRoot)}_createVNode(){const t=fe(this._def,je({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,f)=>{this.dispatchEvent(new CustomEvent(u,{detail:f}))};n.emit=(u,...f)=>{i(u,f),At(u)!==u&&i(At(u),f)};let p=this;for(;p=p&&(p.parentNode||p.host);)if(p instanceof Qo){n.parent=p._instance,n.provides=p._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i)})}}function s0(e="$style"){{const t=Dt();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const i=n[e];return i||Be}}function a0(e){const t=Dt();if(!t)return;const n=t.ut=(p=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>ca(u,p))},i=()=>{const p=e(t.proxy);la(t.subTree,p),n(p)};Lh(i),tt(()=>{const p=new MutationObserver(i);p.observe(t.subTree.el.parentNode,{childList:!0}),Yo(()=>p.disconnect())})}function la(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{la(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ca(e.el,t);else if(e.type===Se)e.children.forEach(n=>la(n,t));else if(e.type===Gn){let{el:n,anchor:i}=e;for(;n&&(ca(n,t),n!==i);)n=n.nextSibling}}function ca(e,t){if(e.nodeType===1){const n=e.style;for(const i in t)n.setProperty(`--${i}`,t[i])}}const Af=new WeakMap,kf=new WeakMap,$o=Symbol("_moveCb"),Pc=Symbol("_enterCb"),xf={name:"TransitionGroup",props:je({},Wy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=nl();let p,u;return Ko(()=>{if(!p.length)return;const f=e.moveClass||`${e.name||"v"}-move`;if(!d0(p[0].el,n.vnode.el,f))return;p.forEach(u0),p.forEach(h0);const g=p.filter(f0);_f(),g.forEach(s=>{const h=s.el,o=h.style;Xt(h,f),o.transform=o.webkitTransform=o.transitionDuration="";const r=h[$o]=a=>{a&&a.target!==h||(!a||/transform$/.test(a.propertyName))&&(h.removeEventListener("transitionend",r),h[$o]=null,bn(h,f))};h.addEventListener("transitionend",r)})}),()=>{const f=Me(e),g=wf(f);let s=f.tag||Se;p=u,u=t.default?jo(t.default()):[];for(let h=0;h<u.length;h++){const o=u[h];o.key!=null&&Zn(o,bi(o,g,i,n))}if(p)for(let h=0;h<p.length;h++){const o=p[h];Zn(o,bi(o,g,i,n)),Af.set(o,o.el.getBoundingClientRect())}return fe(s,null,u)}}},l0=e=>delete e.mode;xf.props;const c0=xf;function u0(e){const t=e.el;t[$o]&&t[$o](),t[Pc]&&t[Pc]()}function h0(e){kf.set(e,e.el.getBoundingClientRect())}function f0(e){const t=Af.get(e),n=kf.get(e),i=t.left-n.left,p=t.top-n.top;if(i||p){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${i}px,${p}px)`,u.transitionDuration="0s",e}}function d0(e,t,n){const i=e.cloneNode(),p=e[$i];p&&p.forEach(g=>{g.split(/\s+/).forEach(s=>s&&i.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&i.classList.add(g)),i.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(i);const{hasTransform:f}=$f(i);return u.removeChild(i),f}const On=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>fi(t,n):t};function p0(e){e.target.composing=!0}function Dc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Et=Symbol("_assign"),Ft={created(e,{modifiers:{lazy:t,trim:n,number:i}},p){e[Et]=On(p);const u=i||p.props&&p.props.type==="number";Qt(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=fo(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",p0),Qt(e,"compositionend",Dc),Qt(e,"change",Dc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:p}},u){if(e[Et]=On(u),e.composing)return;const f=p||e.type==="number"?fo(e.value):e.value,g=t??"";f!==g&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===g)||(e.value=g))}},hl={deep:!0,created(e,t,n){e[Et]=On(n),Qt(e,"change",()=>{const i=e._modelValue,p=_i(e),u=e.checked,f=e[Et];if(ge(i)){const g=Fo(i,p),s=g!==-1;if(u&&!s)f(i.concat(p));else if(!u&&s){const h=[...i];h.splice(g,1),f(h)}}else if(qn(i)){const g=new Set(i);u?g.add(p):g.delete(p),f(g)}else f(Ef(e,u))})},mounted:Bc,beforeUpdate(e,t,n){e[Et]=On(n),Bc(e,t,n)}};function Bc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Fo(t,i.props.value)>-1:qn(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Rn(t,Ef(e,!0)))}const fl={created(e,{value:t},n){e.checked=Rn(t,n.props.value),e[Et]=On(n),Qt(e,"change",()=>{e[Et](_i(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Et]=On(i),t!==n&&(e.checked=Rn(t,i.props.value))}},vr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=qn(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>n?fo(_i(f)):_i(f));e[Et](e.multiple?p?new Set(u):u:u[0])}),e[Et]=On(i)},mounted(e,{value:t}){Wc(e,t)},beforeUpdate(e,t,n){e[Et]=On(n)},updated(e,{value:t}){Wc(e,t)}};function Wc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!qn(t))){for(let i=0,p=e.options.length;i<p;i++){const u=e.options[i],f=_i(u);if(n)ge(t)?u.selected=Fo(t,f)>-1:u.selected=t.has(f);else if(Rn(_i(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _i(e){return"_value"in e?e._value:e.value}function Ef(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Rf={created(e,t,n){Jr(e,t,n,null,"created")},mounted(e,t,n){Jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Jr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Jr(e,t,n,i,"updated")}};function Tf(e,t){switch(e){case"SELECT":return vr;case"TEXTAREA":return Ft;default:switch(t){case"checkbox":return hl;case"radio":return fl;default:return Ft}}}function Jr(e,t,n,i,p){const f=Tf(e.tagName,n.props&&n.props.type)[p];f&&f(e,t,n,i)}function g0(){Ft.getSSRProps=({value:e})=>({value:e}),fl.getSSRProps=({value:e},t)=>{if(t.props&&Rn(t.props.value,e))return{checked:!0}},hl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Fo(e,t.props.value)>-1)return{checked:!0}}else if(qn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Tf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const m0=["ctrl","shift","alt","meta"],v0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>m0.some(n=>e[`${n}Key`]&&!t.includes(n))},y0=(e,t)=>(n,...i)=>{for(let p=0;p<t.length;p++){const u=v0[t[p]];if(u&&u(n,t))return}return e(n,...i)},b0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},w0=(e,t)=>n=>{if(!("key"in n))return;const i=At(n.key);if(t.some(p=>p===i||b0[p]===i))return e(n)},Lf=je({patchProp:n0},By);let tr,Hc=!1;function Mf(){return tr||(tr=qh(Lf))}function Of(){return tr=Hc?tr:ef(Lf),Hc=!0,tr}const ua=(...e)=>{Mf().render(...e)},If=(...e)=>{Of().hydrate(...e)},Ff=(...e)=>{const t=Mf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Nf(i);if(!p)return;const u=t._component;!Ce(u)&&!u.render&&!u.template&&(u.template=p.innerHTML),p.innerHTML="";const f=n(p,!1,p instanceof SVGElement);return p instanceof Element&&(p.removeAttribute("v-cloak"),p.setAttribute("data-v-app","")),f},t},$0=(...e)=>{const t=Of().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Nf(i);if(p)return n(p,!0,p instanceof SVGElement)},t};function Nf(e){return Ge(e)?document.querySelector(e):e}let Uc=!1;const _0=()=>{Uc||(Uc=!0,g0(),Vy())},C0=()=>{},S0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Oh,BaseTransitionPropsValidators:il,Comment:at,EffectScope:Ba,Fragment:Se,KeepAlive:Pv,ReactiveEffect:vi,Static:Gn,Suspense:kv,Teleport:$y,Text:Qn,Transition:cl,TransitionGroup:c0,VueElement:Qo,assertNumber:hv,callWithAsyncErrorHandling:$t,callWithErrorHandling:nn,camelize:mt,capitalize:Ri,cloneVNode:jt,compatUtils:Py,compile:C0,computed:Ee,createApp:Ff,createBlock:Le,createCommentVNode:we,createElementBlock:oe,createElementVNode:N,createHydrationRenderer:ef,createPropsRestProxy:ty,createRenderer:qh,createSSRApp:$0,createSlots:Bv,createStaticVNode:Sy,createTextVNode:ft,createVNode:fe,customRef:Ya,defineAsyncComponent:Fv,defineComponent:$e,defineCustomElement:Sf,defineEmits:Vv,defineExpose:jv,defineModel:Yv,defineOptions:Gv,defineProps:zv,defineSSRCustomElement:r0,defineSlots:Kv,get devtools(){return ri},effect:Mm,effectScope:rh,getCurrentInstance:Dt,getCurrentScope:Wa,getTransitionRawChildren:jo,guardReactiveProps:lf,h:Oi,handleError:ei,hasInjectionContext:uy,hydrate:If,initCustomFormatter:My,initDirectivesForSSR:_0,inject:xt,isMemoSame:vf,isProxy:Va,isReactive:Vn,isReadonly:Xn,isRef:qe,isRuntimeOnly:Ry,isShallow:cr,isVNode:Ln,markRaw:Wo,mergeDefaults:qv,mergeModels:ey,mergeProps:cf,nextTick:Vt,normalizeClass:kr,normalizeProps:km,normalizeStyle:Ar,onActivated:Fh,onBeforeMount:Dh,onBeforeUnmount:Rr,onBeforeUpdate:Bh,onDeactivated:Nh,onErrorCaptured:zh,onMounted:tt,onRenderTracked:Uh,onRenderTriggered:Hh,onScopeDispose:sh,onServerPrefetch:Wh,onUnmounted:Yo,onUpdated:Ko,openBlock:q,popScopeId:Qa,provide:Ji,proxyRefs:Ka,pushScopeId:Za,queuePostFlushCb:mo,reactive:Mi,readonly:Do,ref:Ie,registerRuntimeCompiler:Ey,render:ua,renderList:lt,renderSlot:Wv,resolveComponent:he,resolveDirective:Sv,resolveDynamicComponent:Cv,resolveFilter:Ny,resolveTransitionHooks:bi,setBlockTracking:ia,setDevtoolsHook:Ah,setTransitionHooks:Zn,shallowReactive:za,shallowReadonly:qm,shallowRef:bh,ssrContextKey:gf,ssrUtils:Fy,stop:Om,toDisplayString:Ae,toHandlerKey:Zi,toHandlers:Hv,toRaw:Me,toRef:yi,toRefs:ov,toValue:nv,transformVNodeArgs:_y,triggerRef:tv,unref:tn,useAttrs:Qv,useCssModule:s0,useCssVars:a0,useModel:Jv,useSSRContext:mf,useSlots:Zv,useTransitionState:nl,vModelCheckbox:hl,vModelDynamic:Rf,vModelRadio:fl,vModelSelect:vr,vModelText:Ft,vShow:Cf,version:yf,warn:uv,watch:Ye,watchEffect:Th,watchPostEffect:Lh,watchSyncEffect:Mv,withAsyncContext:ny,withCtx:kt,withDefaults:Xv,withDirectives:Mt,withKeys:w0,withMemo:Oy,withModifiers:y0,withScopeId:vv},Symbol.toStringTag,{value:"Module"}));function zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(n),!0).forEach(function(i){dt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function dt(e,t,n){return t=E0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A0(e,t){if(e==null)return{};var n={},i=Object.keys(e),p,u;for(u=0;u<i.length;u++)p=i[u],!(t.indexOf(p)>=0)&&(n[p]=e[p]);return n}function k0(e,t){if(e==null)return{};var n=A0(e,t),i,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(p=0;p<u.length;p++)i=u[p],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function x0(e,t){if(typeof e!="object"||e===null)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 E0(e){var t=x0(e,"string");return typeof t=="symbol"?t:String(t)}var R0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pf={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!h(y)||r(y)||a(y)||l(y)||s(y))return y;var C,S=0,$=0;if(o(y))for(C=[],$=y.length;S<$;S++)C.push(n(v,y[S],k));else{C={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(C[v(R,k)]=n(v,y[R],k))}return C},i=function(v,y){y=y||{};var k=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(k)},p=function(v){return c(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,k){return k?k.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},u=function(v){var y=p(v);return y.substr(0,1).toUpperCase()+y.substr(1)},f=function(v,y){return i(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},h=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},r=function(v){return g.call(v)=="[object Date]"},a=function(v){return g.call(v)=="[object RegExp]"},l=function(v){return g.call(v)=="[object Boolean]"},c=function(v){return v=v-0,v===v},d=function(v,y){var k=y&&"process"in y?y.process:y;return typeof k!="function"?v:function(C,S){return k(C,v,S)}},m={camelize:p,decamelize:f,pascalize:u,depascalize:f,camelizeKeys:function(v,y){return n(d(p,y),v)},decamelizeKeys:function(v,y){return n(d(f,y),v,y)},pascalizeKeys:function(v,y){return n(d(u,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(R0)})(Pf);var T0=Pf.exports,L0=["class","style"];function M0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=T0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function O0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Df(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(s){return Df(s)}),p=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=O0(o);break;case"style":s.style=M0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,f=u===void 0?{}:u,g=k0(n,L0);return Oi(e.tag,Jt(Jt(Jt({},t),{},{class:p.class,style:Jt(Jt({},p.style),f)},p.attrs),g),i)}var Bf=!1;try{Bf=!0}catch{}function I0(){if(!Bf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ss(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?dt({},e,t):{}}function F0(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"},dt(t,"fa-".concat(e.size),e.size!==null),dt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),dt(t,"fa-pull-".concat(e.pull),e.pull!==null),dt(t,"fa-swap-opacity",e.swapOpacity),dt(t,"fa-bounce",e.bounce),dt(t,"fa-shake",e.shake),dt(t,"fa-beat",e.beat),dt(t,"fa-fade",e.fade),dt(t,"fa-beat-fade",e.beatFade),dt(t,"fa-flash",e.flash),dt(t,"fa-spin-pulse",e.spinPulse),dt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function Vc(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(js.icon)return js.icon(e);if(e===null)return null;if(_o(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 N0=$e({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,p=Ee(function(){return Vc(t.icon)}),u=Ee(function(){return Ss("classes",F0(t))}),f=Ee(function(){return Ss("transform",typeof t.transform=="string"?js.transform(t.transform):t.transform)}),g=Ee(function(){return Ss("mask",Vc(t.mask))}),s=Ee(function(){return Qg(p.value,Jt(Jt(Jt(Jt({},u.value),f.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Ye(s,function(o){if(!o)return I0("Could not find one or more icon(s)",p.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Df(s.value.abstract[0],{},i):null});return function(){return h.value}}});const P0=$e({name:"NavbarItem"});const ke=(e,t)=>{const n=e.__vccOpts||e;for(const[i,p]of t)n[i]=p;return n},Jo=e=>(Za("data-v-19d4e9a4"),e=e(),Qa(),e),D0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},B0=Jo(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")]),N("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"})])],-1)),W0={class:"navbar-menu"},H0=Jo(()=>N("div",{class:"navbar-start"},null,-1)),U0={class:"navbar-end"},z0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),V0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function j0(e,t,n,i,p,u){const f=he("router-link");return q(),oe("nav",D0,[B0,N("div",W0,[H0,N("div",U0,[fe(f,{class:"navbar-item",to:{name:"Alerts"}},{default:kt(()=>[ft("Alerts")]),_:1}),fe(f,{class:"navbar-item",to:{name:"NewRule"}},{default:kt(()=>[ft("New rule")]),_:1}),fe(f,{class:"navbar-item",to:{name:"Rules"}},{default:kt(()=>[ft("Rules")]),_:1}),fe(f,{class:"navbar-item",to:{name:"Configs"}},{default:kt(()=>[ft("Configs")]),_:1}),z0,V0])])])}const G0=ke(P0,[["render",j0],["__scopeId","data-v-19d4e9a4"]]),K0=$e({name:"App",components:{Navbar:G0}});const Y0={class:"section is-medium"},X0={class:"container"};function Z0(e,t,n,i,p,u){const f=he("Navbar"),g=he("router-view");return q(),oe(Se,null,[fe(f),N("section",Y0,[N("div",X0,[fe(g)])])],64)}const Q0=ke(K0,[["render",Z0]]);/*!
763
- * vue-router v4.2.5
764
- * (c) 2023 Eduardo San Martin Morote
765
- * @license MIT
766
- */const oi=typeof window<"u";function J0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function As(e,t){const n={};for(const i in t){const p=t[i];n[i]=Pt(p)?p.map(e):e(p)}return n}const nr=()=>{},Pt=Array.isArray,q0=/\/$/,eb=e=>e.replace(q0,"");function ks(e,t,n="/"){let i,p={},u="",f="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(i=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),p=e(u)),g>-1&&(i=i||t.slice(0,g),f=t.slice(g,t.length)),i=rb(i??t,n),{fullPath:i+(u&&"?")+u+f,path:i,query:p,hash:f}}function tb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nb(e,t,n){const i=t.matched.length-1,p=n.matched.length-1;return i>-1&&i===p&&Ci(t.matched[i],n.matched[p])&&Wf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ci(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ib(e[n],t[n]))return!1;return!0}function ib(e,t){return Pt(e)?Gc(e,t):Pt(t)?Gc(t,e):e===t}function Gc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function rb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),p=i[i.length-1];(p===".."||p===".")&&i.push("");let u=n.length-1,f,g;for(f=0;f<i.length;f++)if(g=i[f],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(f-(f===i.length?1:0)).join("/")}var yr;(function(e){e.pop="pop",e.push="push"})(yr||(yr={}));var ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ir||(ir={}));function ob(e){if(!e)if(oi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eb(e)}const sb=/^[^#]+#/;function ab(e,t){return e.replace(sb,"#")+t}function lb(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 qo=()=>({left:window.pageXOffset,top:window.pageYOffset});function cb(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),p=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!p)return;t=lb(p,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Kc(e,t){return(history.state?history.state.position-t:-1)+e}const ha=new Map;function ub(e,t){ha.set(e,t)}function hb(e){const t=ha.get(e);return ha.delete(e),t}let fb=()=>location.protocol+"//"+location.host;function Hf(e,t){const{pathname:n,search:i,hash:p}=t,u=e.indexOf("#");if(u>-1){let g=p.includes(e.slice(u))?e.slice(u).length:1,s=p.slice(g);return s[0]!=="/"&&(s="/"+s),jc(s,"")}return jc(n,e)+i+p}function db(e,t,n,i){let p=[],u=[],f=null;const g=({state:a})=>{const l=Hf(e,location),c=n.value,d=t.value;let m=0;if(a){if(n.value=l,t.value=a,f&&f===c){f=null;return}m=d?a.position-d.position:0}else i(l);p.forEach(v=>{v(n.value,c,{delta:m,type:yr.pop,direction:m?m>0?ir.forward:ir.back:ir.unknown})})};function s(){f=n.value}function h(a){p.push(a);const l=()=>{const c=p.indexOf(a);c>-1&&p.splice(c,1)};return u.push(l),l}function o(){const{history:a}=window;a.state&&a.replaceState(Pe({},a.state,{scroll:qo()}),"")}function r(){for(const a of u)a();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:h,destroy:r}}function Yc(e,t,n,i=!1,p=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:p?qo():null}}function pb(e){const{history:t,location:n}=window,i={value:Hf(e,n)},p={value:t.state};p.value||u(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,h,o){const r=e.indexOf("#"),a=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:fb()+e+s;try{t[o?"replaceState":"pushState"](h,"",a),p.value=h}catch(l){console.error(l),n[o?"replace":"assign"](a)}}function f(s,h){const o=Pe({},t.state,Yc(p.value.back,s,p.value.forward,!0),h,{position:p.value.position});u(s,o,!0),i.value=s}function g(s,h){const o=Pe({},p.value,t.state,{forward:s,scroll:qo()});u(o.current,o,!0);const r=Pe({},Yc(i.value,s,null),{position:o.position+1},h);u(s,r,!1),i.value=s}return{location:i,state:p,push:g,replace:f}}function gb(e){e=ob(e);const t=pb(e),n=db(e,t.state,t.location,t.replace);function i(u,f=!0){f||n.pauseListeners(),history.go(u)}const p=Pe({location:"",base:e,go:i,createHref:ab.bind(null,e)},t,n);return Object.defineProperty(p,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(p,"state",{enumerable:!0,get:()=>t.state.value}),p}function mb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gb(e)}function vb(e){return typeof e=="string"||e&&typeof e=="object"}function Uf(e){return typeof e=="string"||typeof e=="symbol"}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},zf=Symbol("");var Xc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xc||(Xc={}));function Si(e,t){return Pe(new Error,{type:e,[zf]:!0},t)}function Yt(e,t){return e instanceof Error&&zf in e&&(t==null||!!(e.type&t))}const Zc="[^/]+?",yb={sensitive:!1,strict:!1,start:!0,end:!0},bb=/[.+*?^${}()[\]/\\]/g;function wb(e,t){const n=Pe({},yb,t),i=[];let p=n.start?"^":"";const u=[];for(const h of e){const o=h.length?[]:[90];n.strict&&!h.length&&(p+="/");for(let r=0;r<h.length;r++){const a=h[r];let l=40+(n.sensitive?.25:0);if(a.type===0)r||(p+="/"),p+=a.value.replace(bb,"\\$&"),l+=40;else if(a.type===1){const{value:c,repeatable:d,optional:m,regexp:v}=a;u.push({name:c,repeatable:d,optional:m});const y=v||Zc;if(y!==Zc){l+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${c}" (${y}): `+C.message)}}let k=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;r||(k=m&&h.length<2?`(?:/${k})`:"/"+k),m&&(k+="?"),p+=k,l+=20,m&&(l+=-8),d&&(l+=-20),y===".*"&&(l+=-50)}o.push(l)}i.push(o)}if(n.strict&&n.end){const h=i.length-1;i[h][i[h].length-1]+=.7000000000000001}n.strict||(p+="/?"),n.end?p+="$":n.strict&&(p+="(?:/|$)");const f=new RegExp(p,n.sensitive?"":"i");function g(h){const o=h.match(f),r={};if(!o)return null;for(let a=1;a<o.length;a++){const l=o[a]||"",c=u[a-1];r[c.name]=l&&c.repeatable?l.split("/"):l}return r}function s(h){let o="",r=!1;for(const a of e){(!r||!o.endsWith("/"))&&(o+="/"),r=!1;for(const l of a)if(l.type===0)o+=l.value;else if(l.type===1){const{value:c,repeatable:d,optional:m}=l,v=c in h?h[c]:"";if(Pt(v)&&!d)throw new Error(`Provided param "${c}" is an array but it is not repeatable (* or + modifiers)`);const y=Pt(v)?v.join("/"):v;if(!y)if(m)a.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${c}"`);o+=y}}return o||"/"}return{re:f,score:i,keys:u,parse:g,stringify:s}}function $b(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function _b(e,t){let n=0;const i=e.score,p=t.score;for(;n<i.length&&n<p.length;){const u=$b(i[n],p[n]);if(u)return u;n++}if(Math.abs(p.length-i.length)===1){if(Qc(i))return 1;if(Qc(p))return-1}return p.length-i.length}function Qc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Cb={type:0,value:""},Sb=/[a-zA-Z0-9_]/;function Ab(e){if(!e)return[[]];if(e==="/")return[[Cb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(l){throw new Error(`ERR (${n})/"${h}": ${l}`)}let n=0,i=n;const p=[];let u;function f(){u&&p.push(u),u=[]}let g=0,s,h="",o="";function r(){h&&(n===0?u.push({type:0,value:h}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:h,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),h="")}function a(){h+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:s==="/"?(h&&r(),f()):s===":"?(r(),n=1):a();break;case 4:a(),n=i;break;case 1:s==="("?n=2:Sb.test(s)?a():(r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--);break;case 2:s===")"?o[o.length-1]=="\\"?o=o.slice(0,-1)+s:n=3:o+=s;break;case 3:r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${h}"`),r(),f(),p}function kb(e,t,n){const i=wb(Ab(e.path),n),p=Pe(i,{record:e,parent:t,children:[],alias:[]});return t&&!p.record.aliasOf==!t.record.aliasOf&&t.children.push(p),p}function xb(e,t){const n=[],i=new Map;t=eu({strict:!1,end:!0,sensitive:!1},t);function p(o){return i.get(o)}function u(o,r,a){const l=!a,c=Eb(o);c.aliasOf=a&&a.record;const d=eu(t,o),m=[c];if("alias"in o){const k=typeof o.alias=="string"?[o.alias]:o.alias;for(const C of k)m.push(Pe({},c,{components:a?a.record.components:c.components,path:C,aliasOf:a?a.record:c}))}let v,y;for(const k of m){const{path:C}=k;if(r&&C[0]!=="/"){const S=r.record.path,$=S[S.length-1]==="/"?"":"/";k.path=r.record.path+(C&&$+C)}if(v=kb(k,r,d),a?a.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),l&&o.name&&!qc(v)&&f(o.name)),c.children){const S=c.children;for(let $=0;$<S.length;$++)u(S[$],v,a&&a.children[$])}a=a||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&s(v)}return y?()=>{f(y)}:nr}function f(o){if(Uf(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(f),r.alias.forEach(f))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(f),o.alias.forEach(f))}}function g(){return n}function s(o){let r=0;for(;r<n.length&&_b(o,n[r])>=0&&(o.record.path!==n[r].record.path||!Vf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!qc(o)&&i.set(o.record.name,o)}function h(o,r){let a,l={},c,d;if("name"in o&&o.name){if(a=i.get(o.name),!a)throw Si(1,{location:o});d=a.record.name,l=Pe(Jc(r.params,a.keys.filter(y=>!y.optional).map(y=>y.name)),o.params&&Jc(o.params,a.keys.map(y=>y.name))),c=a.stringify(l)}else if("path"in o)c=o.path,a=n.find(y=>y.re.test(c)),a&&(l=a.parse(c),d=a.record.name);else{if(a=r.name?i.get(r.name):n.find(y=>y.re.test(r.path)),!a)throw Si(1,{location:o,currentLocation:r});d=a.record.name,l=Pe({},r.params,o.params),c=a.stringify(l)}const m=[];let v=a;for(;v;)m.unshift(v.record),v=v.parent;return{name:d,path:c,params:l,matched:m,meta:Tb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:f,getRoutes:g,getRecordMatcher:p}}function Jc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Eb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Rb(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 Rb(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 qc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function eu(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Vf(e,t){return t.children.some(n=>n===e||Vf(e,n))}const jf=/#/g,Lb=/&/g,Mb=/\//g,Ob=/=/g,Ib=/\?/g,Gf=/\+/g,Fb=/%5B/g,Nb=/%5D/g,Kf=/%5E/g,Pb=/%60/g,Yf=/%7B/g,Db=/%7C/g,Xf=/%7D/g,Bb=/%20/g;function dl(e){return encodeURI(""+e).replace(Db,"|").replace(Fb,"[").replace(Nb,"]")}function Wb(e){return dl(e).replace(Yf,"{").replace(Xf,"}").replace(Kf,"^")}function fa(e){return dl(e).replace(Gf,"%2B").replace(Bb,"+").replace(jf,"%23").replace(Lb,"%26").replace(Pb,"`").replace(Yf,"{").replace(Xf,"}").replace(Kf,"^")}function Hb(e){return fa(e).replace(Ob,"%3D")}function Ub(e){return dl(e).replace(jf,"%23").replace(Ib,"%3F")}function zb(e){return e==null?"":Ub(e).replace(Mb,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Vb(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let p=0;p<i.length;++p){const u=i[p].replace(Gf," "),f=u.indexOf("="),g=Co(f<0?u:u.slice(0,f)),s=f<0?null:Co(u.slice(f+1));if(g in t){let h=t[g];Pt(h)||(h=t[g]=[h]),h.push(s)}else t[g]=s}return t}function tu(e){let t="";for(let n in e){const i=e[n];if(n=Hb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pt(i)?i.map(u=>u&&fa(u)):[i&&fa(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function jb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Pt(i)?i.map(p=>p==null?null:""+p):i==null?i:""+i)}return t}const Gb=Symbol(""),nu=Symbol(""),es=Symbol(""),pl=Symbol(""),da=Symbol("");function Wi(){let e=[];function t(i){return e.push(i),()=>{const p=e.indexOf(i);p>-1&&e.splice(p,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _n(e,t,n,i,p){const u=i&&(i.enterCallbacks[p]=i.enterCallbacks[p]||[]);return()=>new Promise((f,g)=>{const s=r=>{r===!1?g(Si(4,{from:n,to:t})):r instanceof Error?g(r):vb(r)?g(Si(2,{from:t,to:r})):(u&&i.enterCallbacks[p]===u&&typeof r=="function"&&u.push(r),f())},h=e.call(i&&i.instances[p],t,n,s);let o=Promise.resolve(h);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function xs(e,t,n,i){const p=[];for(const u of e)for(const f in u.components){let g=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(Kb(g)){const h=(g.__vccOpts||g)[t];h&&p.push(_n(h,n,i,u,f))}else{let s=g();p.push(()=>s.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const o=J0(h)?h.default:h;u.components[f]=o;const a=(o.__vccOpts||o)[t];return a&&_n(a,n,i,u,f)()}))}}return p}function Kb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function iu(e){const t=xt(es),n=xt(pl),i=Ee(()=>t.resolve(tn(e.to))),p=Ee(()=>{const{matched:s}=i.value,{length:h}=s,o=s[h-1],r=n.matched;if(!o||!r.length)return-1;const a=r.findIndex(Ci.bind(null,o));if(a>-1)return a;const l=ru(s[h-2]);return h>1&&ru(o)===l&&r[r.length-1].path!==l?r.findIndex(Ci.bind(null,s[h-2])):a}),u=Ee(()=>p.value>-1&&Qb(n.params,i.value.params)),f=Ee(()=>p.value>-1&&p.value===n.matched.length-1&&Wf(n.params,i.value.params));function g(s={}){return Zb(s)?t[tn(e.replace)?"replace":"push"](tn(e.to)).catch(nr):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:f,navigate:g}}const Yb=$e({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:iu,setup(e,{slots:t}){const n=Mi(iu(e)),{options:i}=xt(es),p=Ee(()=>({[ou(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ou(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Oi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:p.value},u)}}}),Xb=Yb;function Zb(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 Qb(e,t){for(const n in t){const i=t[n],p=e[n];if(typeof i=="string"){if(i!==p)return!1}else if(!Pt(p)||p.length!==i.length||i.some((u,f)=>u!==p[f]))return!1}return!0}function ru(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ou=(e,t,n)=>e??t??n,Jb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=xt(da),p=Ee(()=>e.route||i.value),u=xt(nu,0),f=Ee(()=>{let h=tn(u);const{matched:o}=p.value;let r;for(;(r=o[h])&&!r.components;)h++;return h}),g=Ee(()=>p.value.matched[f.value]);Ji(nu,Ee(()=>f.value+1)),Ji(Gb,g),Ji(da,p);const s=Ie();return Ye(()=>[s.value,g.value,e.name],([h,o,r],[a,l,c])=>{o&&(o.instances[r]=h,l&&l!==o&&h&&h===a&&(o.leaveGuards.size||(o.leaveGuards=l.leaveGuards),o.updateGuards.size||(o.updateGuards=l.updateGuards))),h&&o&&(!l||!Ci(o,l)||!a)&&(o.enterCallbacks[r]||[]).forEach(d=>d(h))},{flush:"post"}),()=>{const h=p.value,o=e.name,r=g.value,a=r&&r.components[o];if(!a)return su(n.default,{Component:a,route:h});const l=r.props[o],c=l?l===!0?h.params:typeof l=="function"?l(h):l:null,m=Oi(a,Pe({},c,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return su(n.default,{Component:m,route:h})||m}}});function su(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qb=Jb;function ew(e){const t=xb(e.routes,e),n=e.parseQuery||Vb,i=e.stringifyQuery||tu,p=e.history,u=Wi(),f=Wi(),g=Wi(),s=bh(vn);let h=vn;oi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=As.bind(null,z=>""+z),r=As.bind(null,zb),a=As.bind(null,Co);function l(z,X){let Y,V;return Uf(z)?(Y=t.getRecordMatcher(z),V=X):V=z,t.addRoute(V,Y)}function c(z){const X=t.getRecordMatcher(z);X&&t.removeRoute(X)}function d(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,X){if(X=Pe({},X||s.value),typeof z=="string"){const G=ks(n,z,X.path),Q=t.resolve({path:G.path},X),te=p.createHref(G.fullPath);return Pe(G,Q,{params:a(Q.params),hash:Co(G.hash),redirectedFrom:void 0,href:te})}let Y;if("path"in z)Y=Pe({},z,{path:ks(n,z.path,X.path).path});else{const G=Pe({},z.params);for(const Q in G)G[Q]==null&&delete G[Q];Y=Pe({},z,{params:r(G)}),X.params=r(X.params)}const V=t.resolve(Y,X),ee=z.hash||"";V.params=o(a(V.params));const P=tb(i,Pe({},z,{hash:Wb(ee),path:V.path})),B=p.createHref(P);return Pe({fullPath:P,hash:ee,query:i===tu?jb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function y(z){return typeof z=="string"?ks(n,z,s.value.path):Pe({},z)}function k(z,X){if(h!==z)return Si(8,{from:X,to:z})}function C(z){return R(z)}function S(z){return C(Pe(y(z),{replace:!0}))}function $(z){const X=z.matched[z.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let V=typeof Y=="function"?Y(z):Y;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=y(V):{path:V},V.params={}),Pe({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function R(z,X){const Y=h=v(z),V=s.value,ee=z.state,P=z.force,B=z.replace===!0,G=$(Y);if(G)return R(Pe(y(G),{state:typeof G=="object"?Pe({},ee,G.state):ee,force:P,replace:B}),X||Y);const Q=Y;Q.redirectedFrom=X;let te;return!P&&nb(i,V,Y)&&(te=Si(16,{to:Q,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):M(Q,V)).catch(ie=>Yt(ie)?Yt(ie,2)?ie:D(ie):I(ie,Q,V)).then(ie=>{if(ie){if(Yt(ie,2))return R(Pe({replace:B},y(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:P}),X||Q)}else ie=A(Q,V,!0,B,ee);return b(Q,V,ie),ie})}function L(z,X){const Y=k(z,X);return Y?Promise.reject(Y):Promise.resolve()}function x(z){const X=U.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(z):z()}function M(z,X){let Y;const[V,ee,P]=tw(z,X);Y=xs(V.reverse(),"beforeRouteLeave",z,X);for(const G of V)G.leaveGuards.forEach(Q=>{Y.push(_n(Q,z,X))});const B=L.bind(null,z,X);return Y.push(B),Z(Y).then(()=>{Y=[];for(const G of u.list())Y.push(_n(G,z,X));return Y.push(B),Z(Y)}).then(()=>{Y=xs(ee,"beforeRouteUpdate",z,X);for(const G of ee)G.updateGuards.forEach(Q=>{Y.push(_n(Q,z,X))});return Y.push(B),Z(Y)}).then(()=>{Y=[];for(const G of P)if(G.beforeEnter)if(Pt(G.beforeEnter))for(const Q of G.beforeEnter)Y.push(_n(Q,z,X));else Y.push(_n(G.beforeEnter,z,X));return Y.push(B),Z(Y)}).then(()=>(z.matched.forEach(G=>G.enterCallbacks={}),Y=xs(P,"beforeRouteEnter",z,X),Y.push(B),Z(Y))).then(()=>{Y=[];for(const G of f.list())Y.push(_n(G,z,X));return Y.push(B),Z(Y)}).catch(G=>Yt(G,8)?G:Promise.reject(G))}function b(z,X,Y){g.list().forEach(V=>x(()=>V(z,X,Y)))}function A(z,X,Y,V,ee){const P=k(z,X);if(P)return P;const B=X===vn,G=oi?history.state:{};Y&&(V||B?p.replace(z.fullPath,Pe({scroll:B&&G&&G.scroll},ee)):p.push(z.fullPath,ee)),s.value=z,W(z,X,Y,B),D()}let _;function w(){_||(_=p.listen((z,X,Y)=>{if(!K.listening)return;const V=v(z),ee=$(V);if(ee){R(Pe(ee,{replace:!0}),V).catch(nr);return}h=V;const P=s.value;oi&&ub(Kc(P.fullPath,Y.delta),qo()),M(V,P).catch(B=>Yt(B,12)?B:Yt(B,2)?(R(B.to,V).then(G=>{Yt(G,20)&&!Y.delta&&Y.type===yr.pop&&p.go(-1,!1)}).catch(nr),Promise.reject()):(Y.delta&&p.go(-Y.delta,!1),I(B,V,P))).then(B=>{B=B||A(V,P,!1),B&&(Y.delta&&!Yt(B,8)?p.go(-Y.delta,!1):Y.type===yr.pop&&Yt(B,20)&&p.go(-1,!1)),b(V,P,B)}).catch(nr)}))}let E=Wi(),T=Wi(),O;function I(z,X,Y){D(z);const V=T.list();return V.length?V.forEach(ee=>ee(z,X,Y)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==vn?Promise.resolve():new Promise((z,X)=>{E.add([z,X])})}function D(z){return O||(O=!z,w(),E.list().forEach(([X,Y])=>z?Y(z):X()),E.reset()),z}function W(z,X,Y,V){const{scrollBehavior:ee}=e;if(!oi||!ee)return Promise.resolve();const P=!Y&&hb(Kc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Vt().then(()=>ee(z,X,P)).then(B=>B&&cb(B)).catch(B=>I(B,z,X))}const j=z=>p.go(z);let H;const U=new Set,K={currentRoute:s,listening:!0,addRoute:l,removeRoute:c,hasRoute:m,getRoutes:d,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:f.add,afterEach:g.add,onError:T.add,isReady:F,install(z){const X=this;z.component("RouterLink",Xb),z.component("RouterView",qb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>tn(s)}),oi&&!H&&s.value===vn&&(H=!0,C(p.location).catch(ee=>{}));const Y={};for(const ee in vn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(es,X),z.provide(pl,za(Y)),z.provide(da,s);const V=z.unmount;U.add(z),z.unmount=function(){U.delete(z),U.size<1&&(h=vn,_&&_(),_=null,s.value=vn,H=!1,O=!1),V()}}};function Z(z){return z.reduce((X,Y)=>X.then(()=>x(Y)),Promise.resolve())}return K}function tw(e,t){const n=[],i=[],p=[],u=Math.max(t.matched.length,e.matched.length);for(let f=0;f<u;f++){const g=t.matched[f];g&&(e.matched.find(h=>Ci(h,g))?i.push(g):n.push(g));const s=e.matched[f];s&&(t.matched.find(h=>Ci(h,s))||p.push(s))}return[n,i,p]}function Ii(){return xt(es)}function ts(){return xt(pl)}function Zf(e){return Wa()?(sh(e),!0):!1}function So(e){return typeof e=="function"?e():tn(e)}const Qf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nw=()=>{};function iw(...e){if(e.length!==1)return yi(...e);const t=e[0];return typeof t=="function"?Do(Ya(()=>({get:t,set:nw}))):Ie(t)}function rw(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ow=Qf?window:void 0,sw=Qf?window.document:void 0;function aw(){const e=Ie(!1);return Dt()&&tt(()=>{e.value=!0}),e}function lw(e){const t=aw();return Ee(()=>(t.value,!!e()))}function cw(e,t,n={}){const{window:i=ow,...p}=n;let u;const f=lw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>rw(e),r=>{g(),f.value&&i&&r&&(u=new MutationObserver(t),u.observe(r,p))},{immediate:!0}),h=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return Zf(o),{isSupported:f,stop:o,takeRecords:h}}function ti(e=null,t={}){var n,i;const{document:p=sw}=t,u=iw((n=e??(p==null?void 0:p.title))!=null?n:null),f=e&&typeof e=="function";function g(s){if(!("titleTemplate"in t))return s;const h=t.titleTemplate||"%s";return typeof h=="function"?h(s):So(h).replace(/%s/g,s)}return Ye(u,(s,h)=>{s!==h&&p&&(p.title=g(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&p&&!f&&cw((i=p.head)==null?void 0:i.querySelector("title"),()=>{p&&p.title!==u.value&&(u.value=g(p.title))},{childList:!0}),u}var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jf(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 p=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,p.get?p:{enumerable:!0,get:function(){return e[i]}})}),n}var Fn={exports:{}},Ct={exports:{}};const qt=Symbol("Cleanup Function"),qf=Symbol("Timeout Token"),li=Symbol("Signal Reason"),wt=Symbol("Unset"),[ro,uw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,ml(t.signal.reason)]}();let Ao=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[li]=wt;var n,i=(p,u)=>{var f=()=>{if(u&&this.signal){let g=ns(this.signal);this._trackSignalReason(g),u(g!==wt?g:void 0)}u=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[qt]=null)),f=null}};this.signal.pr=new Promise(i),this.signal.pr[qt]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:wt;this._trackSignalReason(n),this.controller&&(ro&&n!==wt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[qt]&&this.signal.pr[qt](),this.signal.pr=null),delete this.signal[li],ro||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==wt&&(!ro&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[li]===wt&&(this.signal[li]=t))}};Ct.exports={CLEANUP_FN:qt,TIMEOUT_TOKEN:qf,UNSET:wt,getSignalReason:ns,cancelToken:Ao,signalPromise:gl,processTokenOrSignal:ed,deferred:td,isFunction:nd,isPromise:id,invokeAbort:rd};Ct.exports.CLEANUP_FN=qt;Ct.exports.TIMEOUT_TOKEN=qf;Ct.exports.UNSET=wt;Ct.exports.getSignalReason=ns;Ct.exports.cancelToken=Ao;Ct.exports.signalPromise=gl;Ct.exports.processTokenOrSignal=ed;Ct.exports.deferred=td;Ct.exports.isFunction=nd;Ct.exports.isPromise=id;Ct.exports.invokeAbort=rd;function ns(e){return e&&e.aborted?ro&&uw?ml(e.reason)?wt:e.reason:li in e?e[li]:wt:wt}function gl(e){if(e.pr)return e.pr;var t,n=new Promise(function(p,u){t=()=>{if(u&&e){let f=ns(e);u(f!==wt?f:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[qt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[qt]=t=null)},n.catch(n[qt]),n}function ed(e){e instanceof AbortController&&(e=new Ao(e));var t=e&&e instanceof Ao?e.signal:e,n=gl(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function td(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function nd(e){return typeof e=="function"}function id(e){return e&&typeof e=="object"&&typeof e.then=="function"}function ml(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function rd(e,t){!ml(t)&&t!==wt?e.abort(t):e.abort()}var hw=Ct.exports,{CLEANUP_FN:au,TIMEOUT_TOKEN:od,UNSET:br,getSignalReason:sd,cancelToken:Fi,signalPromise:fw,processTokenOrSignal:ad,isFunction:dw,invokeAbort:is}=hw;Fn.exports=Object.assign(gw,{cancelToken:Fi,delay:vl,timeout:ld,signalRace:fd,signalAll:dd,tokenCycle:pd});var pw=Fn.exports.cancelToken=Fi;Fn.exports.delay=vl;Fn.exports.timeout=ld;Fn.exports.signalRace=fd;Fn.exports.signalAll=dd;Fn.exports.tokenCycle=pd;function gw(e){return function(n,...i){var p,u;if({tokenOrSignal:n,signal:p,signalPr:u}=ad(n),p.aborted)return u;var f=u.catch(function(r){var a=sd(p);a=a!==br?a:r;try{var l=g.return();throw l.value!==void 0?l.value:a!==br?a:void 0}finally{g=s=f=h=null}}),{it:g,result:s}=mw.call(this,e,p,...i),h=Promise.race([s,f]);if(n!==p&&n[od]){let o=function(a){is(n,a),dw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function vl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=ad(e)),n&&n.aborted?i:new Promise(function(u,f){n&&(i.catch(function(){if(f&&n&&g){let h=sd(n);clearTimeout(g),f(h!==br?h:`delay (${t}) interrupted`),u=f=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=f=g=n=null},t)})}function ld(e,t="Timeout"){e=Number(e)||0;var n=new Fi;return vl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,od,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...p){is(n,p.length>0?p[0]:br),n.discard(),n=null}}function cd(e){return e.reduce(function(n,i){var p=fw(i);return n[0].push(p),i.pr||n[1].push(p),n},[[],[]])}function ud(e,t,n){e.then(function(p){is(t,p),t.discard(),t=null}).then(function(){for(let p of n)p[au]&&p[au]();n=null})}function hd(e){return e.catch(t=>t)}function fd(e){var t=new Fi,[n,i]=cd(e);return ud(hd(Promise.race(n)),t,i),t.signal}function dd(e){var t=new Fi,[n,i]=cd(e);return ud(Promise.all(n.map(hd)),t,i),t.signal}function pd(){var e;return function(...n){return e&&(is(e,n.length>0?n[0]:br),e.discard()),e=new Fi}}function mw(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(p){try{var u=n.next(p);p=null}catch(f){return Promise.reject(f)}return function f(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(i,function(o){return Promise.resolve(n.throw(o)).then(f)}),s.catch(function(){n=null})),g=null,s}(u)}()}}var vw=Fn.exports;const yw=un(vw);function pa(){pa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},p=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function g(M,b,A){return Object.defineProperty(M,b,{value:A,enumerable:!0,configurable:!0,writable:!0}),M[b]}try{g({},"")}catch{g=function(b,A,_){return b[A]=_}}function s(M,b,A,_){var w=Object.create((b&&b.prototype instanceof r?b:r).prototype),E=new R(_||[]);return w._invoke=function(T,O,I){var F="suspendedStart";return function(D,W){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if(D==="throw")throw W;return{value:void 0,done:!0}}for(I.method=D,I.arg=W;;){var j=I.delegate;if(j){var H=C(j,I);if(H){if(H===o)continue;return H}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(F==="suspendedStart")throw F="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);F="executing";var U=h(T,O,I);if(U.type==="normal"){if(F=I.done?"completed":"suspendedYield",U.arg===o)continue;return{value:U.arg,done:I.done}}U.type==="throw"&&(F="completed",I.method="throw",I.arg=U.arg)}}}(M,A,E),w}function h(M,b,A){try{return{type:"normal",arg:M.call(b,A)}}catch(_){return{type:"throw",arg:_}}}e.wrap=s;var o={};function r(){}function a(){}function l(){}var c={};g(c,p,function(){return this});var d=Object.getPrototypeOf,m=d&&d(d(L([])));m&&m!==t&&n.call(m,p)&&(c=m);var v=l.prototype=r.prototype=Object.create(c);function y(M){["next","throw","return"].forEach(function(b){g(M,b,function(A){return this._invoke(b,A)})})}function k(M,b){function A(w,E,T,O){var I=h(M[w],M,E);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?b.resolve(D.__await).then(function(W){A("next",W,T,O)},function(W){A("throw",W,T,O)}):b.resolve(D).then(function(W){F.value=W,T(F)},function(W){return A("throw",W,T,O)})}O(I.arg)}var _;this._invoke=function(w,E){function T(){return new b(function(O,I){A(w,E,O,I)})}return _=_?_.then(T,T):T()}}function C(M,b){var A=M.iterator[b.method];if(A===void 0){if(b.delegate=null,b.method==="throw"){if(M.iterator.return&&(b.method="return",b.arg=void 0,C(M,b),b.method==="throw"))return o;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var _=h(A,M.iterator,b.arg);if(_.type==="throw")return b.method="throw",b.arg=_.arg,b.delegate=null,o;var w=_.arg;return w?w.done?(b[M.resultName]=w.value,b.next=M.nextLoc,b.method!=="return"&&(b.method="next",b.arg=void 0),b.delegate=null,o):w:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,o)}function S(M){var b={tryLoc:M[0]};1 in M&&(b.catchLoc=M[1]),2 in M&&(b.finallyLoc=M[2],b.afterLoc=M[3]),this.tryEntries.push(b)}function $(M){var b=M.completion||{};b.type="normal",delete b.arg,M.completion=b}function R(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(S,this),this.reset(!0)}function L(M){if(M){var b=M[p];if(b)return b.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var A=-1,_=function w(){for(;++A<M.length;)if(n.call(M,A))return w.value=M[A],w.done=!1,w;return w.value=void 0,w.done=!0,w};return _.next=_}}return{next:x}}function x(){return{value:void 0,done:!0}}return a.prototype=l,g(v,"constructor",l),g(l,"constructor",a),a.displayName=g(l,f,"GeneratorFunction"),e.isGeneratorFunction=function(M){var b=typeof M=="function"&&M.constructor;return!!b&&(b===a||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,l):(M.__proto__=l,g(M,f,"GeneratorFunction")),M.prototype=Object.create(v),M},e.awrap=function(M){return{__await:M}},y(k.prototype),g(k.prototype,u,function(){return this}),e.AsyncIterator=k,e.async=function(M,b,A,_,w){w===void 0&&(w=Promise);var E=new k(s(M,b,A,_),w);return e.isGeneratorFunction(b)?E:E.next().then(function(T){return T.done?T.value:E.next()})},y(v),g(v,f,"Generator"),g(v,p,function(){return this}),g(v,"toString",function(){return"[object Generator]"}),e.keys=function(M){var b=[];for(var A in M)b.push(A);return b.reverse(),function _(){for(;b.length;){var w=b.pop();if(w in M)return _.value=w,_.done=!1,_}return _.done=!0,_}},e.values=L,R.prototype={constructor:R,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!M)for(var b in this)b.charAt(0)==="t"&&n.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var b=this;function A(I,F){return E.type="throw",E.arg=M,b.next=I,F&&(b.method="next",b.arg=void 0),!!F}for(var _=this.tryEntries.length-1;_>=0;--_){var w=this.tryEntries[_],E=w.completion;if(w.tryLoc==="root")return A("end");if(w.tryLoc<=this.prev){var T=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(T&&O){if(this.prev<w.catchLoc)return A(w.catchLoc,!0);if(this.prev<w.finallyLoc)return A(w.finallyLoc)}else if(T){if(this.prev<w.catchLoc)return A(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return A(w.finallyLoc)}}}},abrupt:function(M,b){for(var A=this.tryEntries.length-1;A>=0;--A){var _=this.tryEntries[A];if(_.tryLoc<=this.prev&&n.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var w=_;break}}w&&(M==="break"||M==="continue")&&w.tryLoc<=b&&b<=w.finallyLoc&&(w=null);var E=w?w.completion:{};return E.type=M,E.arg=b,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(E)},complete:function(M,b){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&b&&(this.next=b),o},finish:function(M){for(var b=this.tryEntries.length-1;b>=0;--b){var A=this.tryEntries[b];if(A.finallyLoc===M)return this.complete(A.completion,A.afterLoc),$(A),o}},catch:function(M){for(var b=this.tryEntries.length-1;b>=0;--b){var A=this.tryEntries[b];if(A.tryLoc===M){var _=A.completion;if(_.type==="throw"){var w=_.arg;$(A)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(M,b,A){return this.delegate={iterator:L(M),resultName:b,nextLoc:A},this.method==="next"&&(this.arg=void 0),o}},e}var bw=function(e){return e._runningInstances.length>=e._maxConcurrency},ww=function(e){var t=e._activeInstances[0];t&&t.cancel()},$w=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Hi(e,t){return t?function(n,i,p){return Ee(function(){return n().filter(function(u){return u[i]})})}(function(){return e()._instances},t):Ee(function(){return[]})}function _w(e){return Ee(function(){return e().length})}function lu(e){return Ee(function(){var t=e();return t[t.length-1]})}function Cw(e){return Ee(function(){return e()[0]})}function gd(e){return Mi(e)}function ct(e){return Aw(pa().mark(function t(n){var i=arguments;return pa().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",e.apply(void 0,[n].concat([].slice.call(i,1))));case 1:case"end":return p.stop()}},t)}))}function Sw(e,t,n){var i,p,u={id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(function(){return f.isCanceling&&f.isFinished}),isActive:Ee(function(){return f.isRunning&&!f.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!f.isDropped}),isError:Ee(function(){return!!f.error}),status:Ee(function(){var s=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(function(h){return h[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(f.isCanceling=!0,f.isEnqueued&&(f.isFinished=!0),f.isEnqueued=!1),f.token&&f._canAbort){f.token.abort("cancel");try{f.token.discard()}catch{}f.token=void 0,f._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(h){f.cancel()}),f},_run:function(){(function(s,h,o,r){var a=new pw,l=yw(h,a);function c(){s.isRunning=!1,s.isFinished=!0}s.token=a,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,l.call.apply(l,[s,a].concat(o)).then(function(d){s.value=d,s.isSuccessful=!0,c(),s._deferredObject.resolve(d),s._canAbort=!1,r.onFinish(s)}).catch(function(d){d!=="cancel"&&(s.error=d),c(),s._shouldThrow&&s._deferredObject.reject(d),r.onFinish(s)})})(f,e,t,n)},_handled:!0,_deferredObject:(i={},p=new Promise(function(s,h){i.resolve=s,i.reject=h}),i.promise=p,i),_shouldThrow:!1,_canAbort:!0,then:function(s,h){return f._shouldThrow=!0,f._deferredObject.promise.then(s,h)},catch:function(s,h){return h===void 0&&(h=!0),f._shouldThrow=h,f._deferredObject.promise.catch(s)},finally:function(s){return f._shouldThrow=!0,f._deferredObject.promise.finally(s)}},f=gd(u),g=n.modifiers;return g.drop?f.isDropped=!0:g.enqueue?f.isEnqueued=!0:f._run(),f}function Aw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=rh(),p={_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ee(function(){return u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest}),isIdle:Ee(function(){return!u.isRunning}),isRunning:Ee(function(){return!!u._instances.find(function(f){return f.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Hi(function(){return u},"isSuccessful"),_runningInstances:Hi(function(){return u},"isRunning"),_enqueuedInstances:Hi(function(){return u},"isEnqueued"),_notDroppedInstances:Hi(function(){return u},"isNotDropped"),_activeInstances:Hi(function(){return u},"isActive"),performCount:_w(function(){return u._instances}),last:lu(function(){return u._notDroppedInstances}),lastSuccessful:lu(function(){return u._successfulInstances}),firstEnqueued:Cw(function(){return u._enqueuedInstances}),cancelAll:function(f){var g=(f===void 0?{force:!1}:f).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(h){if(h!=="cancel")throw h}})},perform:function(){var f=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&bw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&ww(u),u._isKeepingLatest&&$w(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return kw(u)},h=function(){return Sw(e,[].slice.call(f),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(h):h();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[].concat(u._instances,[o]),o},clear:function(){this.cancelAll({force:!0}),this._instances=[]},destroy:function(){i.stop(),this.clear()},restartable:function(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop:function(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue:function(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest:function(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags:function(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency:function(f){return u._maxConcurrency=f,u}},u=gd(p);return n&&t.cancelOnUnmount&&Rr(function(){u._instances&&u.destroy()}),u}function kw(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:xw}=Object.prototype,{getPrototypeOf:yl}=Object,rs=(e=>t=>{const n=xw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>rs(t)===e),os=e=>t=>typeof t===e,{isArray:Ni}=Array,wr=os("undefined");function Ew(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vd=Kt("ArrayBuffer");function Rw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vd(e.buffer),t}const Tw=os("string"),Rt=os("function"),yd=os("number"),ss=e=>e!==null&&typeof e=="object",Lw=e=>e===!0||e===!1,oo=e=>{if(rs(e)!=="object")return!1;const t=yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Mw=Kt("Date"),Ow=Kt("File"),Iw=Kt("Blob"),Fw=Kt("FileList"),Nw=e=>ss(e)&&Rt(e.pipe),Pw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=rs(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Dw=Kt("URLSearchParams"),Bw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,p;if(typeof e!="object"&&(e=[e]),Ni(e))for(i=0,p=e.length;i<p;i++)t.call(null,e[i],i,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),f=u.length;let g;for(i=0;i<f;i++)g=u[i],t.call(null,e[g],g,e)}}function bd(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,p;for(;i-- >0;)if(p=n[i],t===p.toLowerCase())return p;return null}const wd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$d=e=>!wr(e)&&e!==wd;function ga(){const{caseless:e}=$d(this)&&this||{},t={},n=(i,p)=>{const u=e&&bd(t,p)||p;oo(t[u])&&oo(i)?t[u]=ga(t[u],i):oo(i)?t[u]=ga({},i):Ni(i)?t[u]=i.slice():t[u]=i};for(let i=0,p=arguments.length;i<p;i++)arguments[i]&&Tr(arguments[i],n);return t}const Ww=(e,t,n,{allOwnKeys:i}={})=>(Tr(t,(p,u)=>{n&&Rt(p)?e[u]=md(p,n):e[u]=p},{allOwnKeys:i}),e),Hw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uw=(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)},zw=(e,t,n,i)=>{let p,u,f;const g={};if(t=t||{},e==null)return t;do{for(p=Object.getOwnPropertyNames(e),u=p.length;u-- >0;)f=p[u],(!i||i(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vw=(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},jw=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!yd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yl(Uint8Array)),Kw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let p;for(;(p=i.next())&&!p.done;){const u=p.value;t.call(e,u[0],u[1])}},Yw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Xw=Kt("HTMLFormElement"),Zw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),cu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qw=Kt("RegExp"),_d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Tr(n,(p,u)=>{let f;(f=t(p,u,e))!==!1&&(i[u]=f||p)}),Object.defineProperties(e,i)},Jw=e=>{_d(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Rt(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+"'")})}})},qw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Ni(e)?i(e):i(String(e).split(t)),n},e1=()=>{},t1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Es="abcdefghijklmnopqrstuvwxyz",uu="0123456789",Cd={DIGIT:uu,ALPHA:Es,ALPHA_DIGIT:Es+Es.toUpperCase()+uu},n1=(e=16,t=Cd.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function i1(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r1=e=>{const t=new Array(10),n=(i,p)=>{if(ss(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[p]=i;const u=Ni(i)?[]:{};return Tr(i,(f,g)=>{const s=n(f,p+1);!wr(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},o1=Kt("AsyncFunction"),s1=e=>e&&(ss(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Ni,isArrayBuffer:vd,isBuffer:Ew,isFormData:Pw,isArrayBufferView:Rw,isString:Tw,isNumber:yd,isBoolean:Lw,isObject:ss,isPlainObject:oo,isUndefined:wr,isDate:Mw,isFile:Ow,isBlob:Iw,isRegExp:Qw,isFunction:Rt,isStream:Nw,isURLSearchParams:Dw,isTypedArray:Gw,isFileList:Fw,forEach:Tr,merge:ga,extend:Ww,trim:Bw,stripBOM:Hw,inherits:Uw,toFlatObject:zw,kindOf:rs,kindOfTest:Kt,endsWith:Vw,toArray:jw,forEachEntry:Kw,matchAll:Yw,isHTMLForm:Xw,hasOwnProperty:cu,hasOwnProp:cu,reduceDescriptors:_d,freezeMethods:Jw,toObjectSet:qw,toCamelCase:Zw,noop:e1,toFiniteNumber:t1,findKey:bd,global:wd,isContextDefined:$d,ALPHABET:Cd,generateString:n1,isSpecCompliantForm:i1,toJSONObject:r1,isAsyncFn:o1,isThenable:s1};function Oe(e,t,n,i,p){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),p&&(this.response=p)}ne.inherits(Oe,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:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Sd=Oe.prototype,Ad={};["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=>{Ad[e]={value:e}});Object.defineProperties(Oe,Ad);Object.defineProperty(Sd,"isAxiosError",{value:!0});Oe.from=(e,t,n,i,p,u)=>{const f=Object.create(Sd);return ne.toFlatObject(e,f,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(f,e.message,t,n,i,p),f.cause=e,f.name=e.name,u&&Object.assign(f,u),f};const a1=null;function ma(e){return ne.isPlainObject(e)||ne.isArray(e)}function kd(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function hu(e,t,n){return e?e.concat(t).map(function(p,u){return p=kd(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function l1(e){return ne.isArray(e)&&!e.some(ma)}const c1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function as(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!ne.isUndefined(m[d])});const i=n.metaTokens,p=n.visitor||o,u=n.dots,f=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(p))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(ne.isDate(c))return c.toISOString();if(!s&&ne.isBlob(c))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(c)||ne.isTypedArray(c)?s&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function o(c,d,m){let v=c;if(c&&!m&&typeof c=="object"){if(ne.endsWith(d,"{}"))d=i?d:d.slice(0,-2),c=JSON.stringify(c);else if(ne.isArray(c)&&l1(c)||(ne.isFileList(c)||ne.endsWith(d,"[]"))&&(v=ne.toArray(c)))return d=kd(d),v.forEach(function(k,C){!(ne.isUndefined(k)||k===null)&&t.append(f===!0?hu([d],C,u):f===null?d:d+"[]",h(k))}),!1}return ma(c)?!0:(t.append(hu(m,d,u),h(c)),!1)}const r=[],a=Object.assign(c1,{defaultVisitor:o,convertValue:h,isVisitable:ma});function l(c,d){if(!ne.isUndefined(c)){if(r.indexOf(c)!==-1)throw Error("Circular reference detected in "+d.join("."));r.push(c),ne.forEach(c,function(v,y){(!(ne.isUndefined(v)||v===null)&&p.call(t,v,ne.isString(y)?y.trim():y,d,a))===!0&&l(v,d?d.concat(y):[y])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return l(e),t}function fu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function bl(e,t){this._pairs=[],e&&as(e,this,t)}const xd=bl.prototype;xd.append=function(t,n){this._pairs.push([t,n])};xd.toString=function(t){const n=t?function(i){return t.call(this,i,fu)}:fu;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function u1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ed(e,t,n){if(!t)return e;const i=n&&n.encode||u1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new bl(t,n).toString(i),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class h1{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){ne.forEach(this.handlers,function(i){i!==null&&t(i)})}}const du=h1,Rd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f1=typeof URLSearchParams<"u"?URLSearchParams:bl,d1=typeof FormData<"u"?FormData:null,p1=typeof Blob<"u"?Blob:null,g1={isBrowser:!0,classes:{URLSearchParams:f1,FormData:d1,Blob:p1},protocols:["http","https","file","blob","url","data"]},Td=typeof window<"u"&&typeof document<"u",m1=(e=>Td&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),v1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),y1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Td,hasStandardBrowserEnv:m1,hasStandardBrowserWebWorkerEnv:v1},Symbol.toStringTag,{value:"Module"})),Ut={...y1,...g1};function b1(e,t){return as(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,i,p,u){return Ut.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function w1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $1(e){const t={},n=Object.keys(e);let i;const p=n.length;let u;for(i=0;i<p;i++)u=n[i],t[u]=e[u];return t}function Ld(e){function t(n,i,p,u){let f=n[u++];const g=Number.isFinite(+f),s=u>=n.length;return f=!f&&ne.isArray(p)?p.length:f,s?(ne.hasOwnProp(p,f)?p[f]=[p[f],i]:p[f]=i,!g):((!p[f]||!ne.isObject(p[f]))&&(p[f]=[]),t(n,i,p[f],u)&&ne.isArray(p[f])&&(p[f]=$1(p[f])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(w1(i),p,n,0)}),n}return null}function _1(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const wl={transitional:Rd,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",p=i.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return p&&p?JSON.stringify(Ld(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return b1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return as(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||p?(n.setContentType("application/json",!1),_1(t)):t}],transformResponse:[function(t){const n=this.transitional||wl.transitional,i=n&&n.forcedJSONParsing,p=this.responseType==="json";if(t&&ne.isString(t)&&(i&&!this.responseType||p)){const f=!(n&&n.silentJSONParsing)&&p;try{return JSON.parse(t)}catch(g){if(f)throw g.name==="SyntaxError"?Oe.from(g,Oe.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}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{wl.headers[e]={}});const $l=wl,C1=ne.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"]),S1=e=>{const t={};let n,i,p;return e&&e.split(`
767
- `).forEach(function(f){p=f.indexOf(":"),n=f.substring(0,p).trim().toLowerCase(),i=f.substring(p+1).trim(),!(!n||t[n]&&C1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},pu=Symbol("internals");function Ui(e){return e&&String(e).trim().toLowerCase()}function so(e){return e===!1||e==null?e:ne.isArray(e)?e.map(so):String(e)}function A1(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 k1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rs(e,t,n,i,p){if(ne.isFunction(i))return i.call(this,t,n);if(p&&(t=n),!!ne.isString(t)){if(ne.isString(i))return t.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(t)}}function x1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function E1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(p,u,f){return this[i].call(this,t,p,u,f)},configurable:!0})})}class ls{constructor(t){t&&this.set(t)}set(t,n,i){const p=this;function u(g,s,h){const o=Ui(s);if(!o)throw new Error("header name must be a non-empty string");const r=ne.findKey(p,o);(!r||p[r]===void 0||h===!0||h===void 0&&p[r]!==!1)&&(p[r||s]=so(g))}const f=(g,s)=>ne.forEach(g,(h,o)=>u(h,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?f(t,n):ne.isString(t)&&(t=t.trim())&&!k1(t)?f(S1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);if(i){const p=this[i];if(!n)return p;if(n===!0)return A1(p);if(ne.isFunction(n))return n.call(this,p,i);if(ne.isRegExp(n))return n.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Rs(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let p=!1;function u(f){if(f=Ui(f),f){const g=ne.findKey(i,f);g&&(!n||Rs(i,i[g],g,n))&&(delete i[g],p=!0)}}return ne.isArray(t)?t.forEach(u):u(t),p}clear(t){const n=Object.keys(this);let i=n.length,p=!1;for(;i--;){const u=n[i];(!t||Rs(this,this[u],u,t,!0))&&(delete this[u],p=!0)}return p}normalize(t){const n=this,i={};return ne.forEach(this,(p,u)=>{const f=ne.findKey(i,u);if(f){n[f]=so(p),delete n[u];return}const g=t?x1(u):String(u).trim();g!==u&&delete n[u],n[g]=so(p),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(i,p)=>{i!=null&&i!==!1&&(n[p]=t&&ne.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(`
768
- `)}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(p=>i.set(p)),i}static accessor(t){const i=(this[pu]=this[pu]={accessors:{}}).accessors,p=this.prototype;function u(f){const g=Ui(f);i[g]||(E1(p,f),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}ls.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(ls.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(ls);const rn=ls;function Ts(e,t){const n=this||$l,i=t||n,p=rn.from(i.headers);let u=i.data;return ne.forEach(e,function(g){u=g.call(n,u,p.normalize(),t?t.status:void 0)}),p.normalize(),u}function Md(e){return!!(e&&e.__CANCEL__)}function Lr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Lr,Oe,{__CANCEL__:!0});function R1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const T1=Ut.hasStandardBrowserEnv?{write(e,t,n,i,p,u){const f=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),ne.isString(i)&&f.push("path="+i),ne.isString(p)&&f.push("domain="+p),u===!0&&f.push("secure"),document.cookie=f.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 L1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function M1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Od(e,t){return e&&!L1(t)?M1(e,t):t}const O1=Ut.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function p(u){let f=u;return t&&(n.setAttribute("href",f),f=n.href),n.setAttribute("href",f),{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=p(window.location.href),function(f){const g=ne.isString(f)?p(f):f;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function I1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let p=0,u=0,f;return t=t!==void 0?t:1e3,function(s){const h=Date.now(),o=i[u];f||(f=h),n[p]=s,i[p]=h;let r=u,a=0;for(;r!==p;)a+=n[r++],r=r%e;if(p=(p+1)%e,p===u&&(u=(u+1)%e),h-f<t)return;const l=o&&h-o;return l?Math.round(a*1e3/l):void 0}}function gu(e,t){let n=0;const i=F1(50,250);return p=>{const u=p.loaded,f=p.lengthComputable?p.total:void 0,g=u-n,s=i(g),h=u<=f;n=u;const o={loaded:u,total:f,progress:f?u/f:void 0,bytes:g,rate:s||void 0,estimated:s&&f&&h?(f-u)/s:void 0,event:p};o[t?"download":"upload"]=!0,e(o)}}const N1=typeof XMLHttpRequest<"u",P1=N1&&function(e){return new Promise(function(n,i){let p=e.data;const u=rn.from(e.headers).normalize();let{responseType:f,withXSRFToken:g}=e,s;function h(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(ne.isFormData(p)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((o=u.getContentType())!==!1){const[d,...m]=o?o.split(";").map(v=>v.trim()).filter(Boolean):[];u.setContentType([d||"multipart/form-data",...m].join("; "))}}let r=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(d+":"+m))}const a=Od(e.baseURL,e.url);r.open(e.method.toUpperCase(),Ed(a,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function l(){if(!r)return;const d=rn.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),v={data:!f||f==="text"||f==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:d,config:e,request:r};R1(function(k){n(k),h()},function(k){i(k),h()},v),r=null}if("onloadend"in r?r.onloadend=l:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(l)},r.onabort=function(){r&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,r)),r=null)},r.onerror=function(){i(new Oe("Network Error",Oe.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Rd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),i(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,r)),r=null},Ut.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&O1(a))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&T1.read(e.xsrfCookieName);d&&u.set(e.xsrfHeaderName,d)}p===void 0&&u.setContentType(null),"setRequestHeader"in r&&ne.forEach(u.toJSON(),function(m,v){r.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),f&&f!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",gu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",gu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{r&&(i(!d||d.type?new Lr(null,e,r):d),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const c=I1(a);if(c&&Ut.protocols.indexOf(c)===-1){i(new Oe("Unsupported protocol "+c+":",Oe.ERR_BAD_REQUEST,e));return}r.send(p||null)})},va={http:a1,xhr:P1};ne.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mu=e=>`- ${e}`,D1=e=>ne.isFunction(e)||e===null||e===!1,Id={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;const p={};for(let u=0;u<t;u++){n=e[u];let f;if(i=n,!D1(n)&&(i=va[(f=String(n)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${f}'`);if(i)break;p[f||"#"+u]=i}if(!i){const u=Object.entries(p).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let f=t?u.length>1?`since :
769
- `+u.map(mu).join(`
770
- `):" "+mu(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:va};function Ls(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lr(null,e)}function vu(e){return Ls(e),e.headers=rn.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Id.getAdapter(e.adapter||$l.adapter)(e).then(function(i){return Ls(e),i.data=Ts.call(e,e.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return Md(i)||(Ls(e),i&&i.response&&(i.response.data=Ts.call(e,e.transformResponse,i.response),i.response.headers=rn.from(i.response.headers))),Promise.reject(i)})}const yu=e=>e instanceof rn?e.toJSON():e;function Ai(e,t){t=t||{};const n={};function i(h,o,r){return ne.isPlainObject(h)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},h,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function p(h,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h,r)}else return i(h,o,r)}function u(h,o){if(!ne.isUndefined(o))return i(void 0,o)}function f(h,o){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h)}else return i(void 0,o)}function g(h,o,r){if(r in t)return i(h,o);if(r in e)return i(void 0,h)}const s={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(h,o)=>p(yu(h),yu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||p,a=r(e[o],t[o],o);ne.isUndefined(a)&&r!==g||(n[o]=a)}),n}const Fd="1.6.2",_l={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_l[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const bu={};_l.transitional=function(t,n,i){function p(u,f){return"[Axios v"+Fd+"] Transitional option '"+u+"'"+f+(i?". "+i:"")}return(u,f,g)=>{if(t===!1)throw new Oe(p(f," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!bu[f]&&(bu[f]=!0,console.warn(p(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,f,g):!0}};function B1(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let p=i.length;for(;p-- >0;){const u=i[p],f=t[u];if(f){const g=e[u],s=g===void 0||f(g,u,e);if(s!==!0)throw new Oe("option "+u+" must be "+s,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+u,Oe.ERR_BAD_OPTION)}}const ya={assertOptions:B1,validators:_l},yn=ya.validators;class ko{constructor(t){this.defaults=t,this.interceptors={request:new du,response:new du}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ai(this.defaults,n);const{transitional:i,paramsSerializer:p,headers:u}=n;i!==void 0&&ya.assertOptions(i,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),p!=null&&(ne.isFunction(p)?n.paramsSerializer={serialize:p}:ya.assertOptions(p,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],c=>{delete u[c]}),n.headers=rn.concat(f,u);const g=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(s=s&&d.synchronous,g.unshift(d.fulfilled,d.rejected))});const h=[];this.interceptors.response.forEach(function(d){h.push(d.fulfilled,d.rejected)});let o,r=0,a;if(!s){const c=[vu.bind(this),void 0];for(c.unshift.apply(c,g),c.push.apply(c,h),a=c.length,o=Promise.resolve(n);r<a;)o=o.then(c[r++],c[r++]);return o}a=g.length;let l=n;for(r=0;r<a;){const c=g[r++],d=g[r++];try{l=c(l)}catch(m){d.call(this,m);break}}try{o=vu.call(this,l)}catch(c){return Promise.reject(c)}for(r=0,a=h.length;r<a;)o=o.then(h[r++],h[r++]);return o}getUri(t){t=Ai(this.defaults,t);const n=Od(t.baseURL,t.url);return Ed(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){ko.prototype[t]=function(n,i){return this.request(Ai(i||{},{method:t,url:n,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(i){return function(u,f,g){return this.request(Ai(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}ko.prototype[t]=n(),ko.prototype[t+"Form"]=n(!0)});const ao=ko;class Cl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const i=this;this.promise.then(p=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](p);i._listeners=null}),this.promise.then=p=>{let u;const f=new Promise(g=>{i.subscribe(g),u=g}).then(p);return f.cancel=function(){i.unsubscribe(u)},f},t(function(u,f,g){i.reason||(i.reason=new Lr(u,f,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 Cl(function(p){t=p}),cancel:t}}}const W1=Cl;function H1(e){return function(n){return e.apply(null,n)}}function U1(e){return ne.isObject(e)&&e.isAxiosError===!0}const ba={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(ba).forEach(([e,t])=>{ba[t]=e});const z1=ba;function Nd(e){const t=new ao(e),n=md(ao.prototype.request,t);return ne.extend(n,ao.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(p){return Nd(Ai(e,p))},n}const Je=Nd($l);Je.Axios=ao;Je.CanceledError=Lr;Je.CancelToken=W1;Je.isCancel=Md;Je.VERSION=Fd;Je.toFormData=as;Je.AxiosError=Oe;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=H1;Je.isAxiosError=U1;Je.mergeConfig=Ai;Je.AxiosHeaders=rn;Je.formToJSON=e=>Ld(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Id.getAdapter;Je.HttpStatusCode=z1;Je.default=Je;const V1=Je,ot=V1.create({headers:{Accept:"application/json"}}),ut={async getConfigs(){return(await ot.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await ot.get("/api/alerts",{params:e})).data},async getTags(){return(await ot.get("/api/tags")).data.tags},async getRuleSet(){return(await ot.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await ot.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await ot.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await ot.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await ot.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await ot.get("/api/rules",{params:e})).data},async getRule(e){return(await ot.get(`/api/rules/${e}`)).data},async runRule(e){await ot.get(`/api/rules/${e}/run`)},async createRule(e){return(await ot.post("/api/rules/",e)).data},async updateRule(e){return(await ot.put("/api/rules/",e)).data},async deleteRule(e){await ot.delete(`/api/rules/${e}`)},async deleteTag(e){await ot.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await ot.get(`/api/ip_addresses/${e}`)).data}};function Sl(){return ct(async(e,t)=>await ut.getAlerts(t))}function j1(){return ct(async(e,t)=>await ut.deleteAlert(t))}function Pd(){return ct(async()=>await ut.getTags())}function G1(){return ct(async(e,t)=>await ut.deleteTag(t))}function K1(){return ct(async()=>await ut.getRuleSet())}function Y1(){return ct(async(e,t)=>await ut.getArtifact(t))}function Dd(){return ct(async(e,t)=>await ut.deleteArtifact(t))}function X1(){return ct(async(e,t)=>await ut.enrichArtifact(t))}function Z1(){return ct(async()=>await ut.getConfigs())}function Q1(){return ct(async(e,t)=>await ut.getIPInfo(t))}function J1(){return ct(async(e,t)=>await ut.getRules(t))}function Bd(){return ct(async(e,t)=>await ut.getRule(t))}function q1(){return ct(async(e,t)=>await ut.deleteRule(t))}function e$(){return ct(async(e,t)=>await ut.runRule(t))}function t$(){return ct(async(e,t)=>await ut.createRule(t))}function n$(){return ct(async(e,t)=>await ut.updateRule(t))}var Wd={exports:{}};(function(e){(function(t,n){var i="…",p=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function u(g,s,h){return h.length===g.length||!s.ellipsis||(h+=s.ellipsis),h}function f(g,s,h){var o="",r=!0,a=s,l,c;if(h=h||{},h.ellipsis=typeof h.ellipsis>"u"?i:h.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(p.lastIndex=o.length,r=p.exec(g),!r||r.index-o.length>=a||p.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,h,o);if(l=r[0],c=r.index,o+=g.substring(o.length,c+l.length),a-=c+l.length,a<=0)break}return u(g,h,o)}e.exports?e.exports=f:t.truncate=f})(String)})(Wd);var i$=Wd.exports;const Al=un(i$),r$=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Ie(!1),n=Ie(!1),i=Dd();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,isDeleted:t,showDeleteButton:()=>{n.value=!0},truncate:Al}}}),o$={key:0,class:"control"};function s$(e,t,n,i,p,u){const f=he("router-link");return e.isDeleted?we("",!0):(q(),oe("div",o$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...g)=>e.showDeleteButton&&e.showDeleteButton(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.hideDeleteButton&&e.hideDeleteButton(...g))},[fe(f,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:kt(()=>[ft(Ae(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(q(),oe("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):we("",!0)],32)]))}const a$=ke(r$,[["render",s$]]),l$=$e({name:"ArtifactTags",components:{ArtifactComponent:a$},props:{artifacts:{type:Array,required:!0}}}),c$={class:"field is-grouped is-grouped-multiline"};function u$(e,t,n,i,p,u){const f=he("ArtifactComponent");return q(),oe("div",c$,[(q(!0),oe(Se,null,lt(e.artifacts,g=>(q(),Le(f,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const h$=ke(l$,[["render",u$]]),f$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Ie(!1),i=Ie(!1),p=G1();return{updateTag:()=>{t.emit("update-tag",e.tag.name)},isDeleted:n,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await p.perform(e.tag.id),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),d$={key:0,class:"control"};function p$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",d$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...f)=>e.showDeleteButton&&e.showDeleteButton(...f)),onMouseleave:t[3]||(t[3]=(...f)=>e.hideDeleteButton&&e.hideDeleteButton(...f))},[N("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...f)=>e.updateTag&&e.updateTag(...f))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...f)=>e.deleteTag&&e.deleteTag(...f))})):we("",!0)],32)]))}const g$=ke(f$,[["render",p$]]),m$=$e({name:"TagsItem",components:{TagComponent:g$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),v$={class:"field is-grouped is-grouped-multiline"};function y$(e,t,n,i,p,u){const f=he("TagComponent");return q(),oe("div",v$,[(q(!0),oe(Se,null,lt(e.tags,g=>(q(),Le(f,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const Hd=ke(m$,[["render",y$]]);var Ud={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(In,function(){var n=1e3,i=6e4,p=36e5,u="millisecond",f="second",g="minute",s="hour",h="day",o="week",r="month",a="quarter",l="year",c="date",d="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 E=["th","st","nd","rd"],T=w%100;return"["+w+(E[(T-20)%10]||E[T]||E[0])+"]"}},k=function(w,E,T){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(T)+w},C={s:k,z:function(w){var E=-w.utcOffset(),T=Math.abs(E),O=Math.floor(T/60),I=T%60;return(E<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(E,T){if(E.date()<T.date())return-w(T,E);var O=12*(T.year()-E.year())+(T.month()-E.month()),I=E.clone().add(O,r),F=T-I<0,D=E.clone().add(O+(F?-1:1),r);return+(-(O+(T-I)/(F?I-D:D-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:r,y:l,w:o,d:h,D:c,h:s,m:g,s:f,ms:u,Q:a}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",$={};$[S]=y;var R="$isDayjsObject",L=function(w){return w instanceof A||!(!w||!w[R])},x=function w(E,T,O){var I;if(!E)return S;if(typeof E=="string"){var F=E.toLowerCase();$[F]&&(I=F),T&&($[F]=T,I=F);var D=E.split("-");if(!I&&D.length>1)return w(D[0])}else{var W=E.name;$[W]=E,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,E){if(L(w))return w.clone();var T=typeof E=="object"?E:{};return T.date=w,T.args=arguments,new A(T)},b=C;b.l=x,b.i=L,b.w=function(w,E){return M(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function w(T){this.$L=x(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var E=w.prototype;return E.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(b.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 W=D[2]-1||0,j=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(T),this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return b},E.isValid=function(){return this.$d.toString()!==d},E.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(T,O){return M(T)<this.startOf(O)},E.isBefore=function(T,O){return this.endOf(O)<M(T)},E.$g=function(T,O,I){return b.u(T)?this[O]:this.set(I,T)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(T,O){var I=this,F=!!b.u(O)||O,D=b.p(T),W=function(Y,V){var ee=b.w(I.$u?Date.UTC(I.$y,V,Y):new Date(I.$y,V,Y),I);return F?ee:ee.endOf(h)},j=function(Y,V){return b.w(I.toDate()[Y].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},H=this.$W,U=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(D){case l:return F?W(1,0):W(31,11);case r:return F?W(1,U):W(0,U+1);case o:var z=this.$locale().weekStart||0,X=(H<z?H+7:H)-z;return W(F?K-X:K+(6-X),U);case h:case c:return j(Z+"Hours",0);case s:return j(Z+"Minutes",1);case g:return j(Z+"Seconds",2);case f:return j(Z+"Milliseconds",3);default:return this.clone()}},E.endOf=function(T){return this.startOf(T,!1)},E.$set=function(T,O){var I,F=b.p(T),D="set"+(this.$u?"UTC":""),W=(I={},I[h]=D+"Date",I[c]=D+"Date",I[r]=D+"Month",I[l]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[f]=D+"Seconds",I[u]=D+"Milliseconds",I)[F],j=F===h?this.$D+(O-this.$W):O;if(F===r||F===l){var H=this.clone().set(c,1);H.$d[W](j),H.init(),this.$d=H.set(c,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},E.set=function(T,O){return this.clone().$set(T,O)},E.get=function(T){return this[b.p(T)]()},E.add=function(T,O){var I,F=this;T=Number(T);var D=b.p(O),W=function(U){var K=M(F);return b.w(K.date(K.date()+Math.round(U*T)),F)};if(D===r)return this.set(r,this.$M+T);if(D===l)return this.set(l,this.$y+T);if(D===h)return W(1);if(D===o)return W(7);var j=(I={},I[g]=i,I[s]=p,I[f]=n,I)[D]||1,H=this.$d.getTime()+T*j;return b.w(H,this)},E.subtract=function(T,O){return this.add(-1*T,O)},E.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var F=T||"YYYY-MM-DDTHH:mm:ssZ",D=b.z(this),W=this.$H,j=this.$m,H=this.$M,U=I.weekdays,K=I.months,Z=I.meridiem,z=function(V,ee,P,B){return V&&(V[ee]||V(O,F))||P[ee].slice(0,B)},X=function(V){return b.s(W%12||12,V,"0")},Y=Z||function(V,ee,P){var B=V<12?"AM":"PM";return P?B.toLowerCase():B};return F.replace(v,function(V,ee){return ee||function(P){switch(P){case"YY":return String(O.$y).slice(-2);case"YYYY":return b.s(O.$y,4,"0");case"M":return H+1;case"MM":return b.s(H+1,2,"0");case"MMM":return z(I.monthsShort,H,K,3);case"MMMM":return z(K,H);case"D":return O.$D;case"DD":return b.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,U,2);case"ddd":return z(I.weekdaysShort,O.$W,U,3);case"dddd":return U[O.$W];case"H":return String(W);case"HH":return b.s(W,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Y(W,j,!0);case"A":return Y(W,j,!1);case"m":return String(j);case"mm":return b.s(j,2,"0");case"s":return String(O.$s);case"ss":return b.s(O.$s,2,"0");case"SSS":return b.s(O.$ms,3,"0");case"Z":return D}return null}(V)||D.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(T,O,I){var F,D=this,W=b.p(O),j=M(T),H=(j.utcOffset()-this.utcOffset())*i,U=this-j,K=function(){return b.m(D,j)};switch(W){case l:F=K()/12;break;case r:F=K();break;case a:F=K()/3;break;case o:F=(U-H)/6048e5;break;case h:F=(U-H)/864e5;break;case s:F=U/p;break;case g:F=U/i;break;case f:F=U/n;break;default:F=U}return I?F:b.a(F)},E.daysInMonth=function(){return this.endOf(r).$D},E.$locale=function(){return $[this.$L]},E.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=x(T,O,!0);return F&&(I.$L=F),I},E.clone=function(){return b.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},w}(),_=A.prototype;return M.prototype=_,[["$ms",u],["$s",f],["$m",g],["$H",s],["$W",h],["$M",r],["$y",l],["$D",c]].forEach(function(w){_[w[1]]=function(E){return this.$g(E,w[0],w[1])}}),M.extend=function(w,E){return w.$i||(w(E,A,M),w.$i=!0),M},M.locale=x,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=$[S],M.Ls=$,M.p={},M})})(Ud);var b$=Ud.exports;const Pi=un(b$);var zd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(In,function(){return function(n,i,p){n=n||{};var u=i.prototype,f={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(h,o,r,a){return u.fromToBase(h,o,r,a)}p.en.relativeTime=f,u.fromToBase=function(h,o,r,a,l){for(var c,d,m,v=r.$locale().relativeTime||f,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"}],k=y.length,C=0;C<k;C+=1){var S=y[C];S.d&&(c=a?p(h).diff(r,S.d,!0):r.diff(h,S.d,!0));var $=(n.rounding||Math.round)(Math.abs(c));if(m=c>0,$<=S.r||!S.r){$<=1&&C>0&&(S=y[C-1]);var R=v[S.l];l&&($=l(""+$)),d=typeof R=="string"?R.replace("%d",$):R($,o,S.l,m);break}}if(o)return d;var L=m?v.future:v.past;return typeof L=="function"?L(d):L.replace("%s",d)},u.to=function(h,o){return g(h,o,this,!0)},u.from=function(h,o){return g(h,o,this)};var s=function(h){return h.$u?p.utc():p()};u.toNow=function(h){return this.to(s(this),h)},u.fromNow=function(h){return this.from(s(this),h)}}})})(zd);var w$=zd.exports;const $$=un(w$);var Vd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(In,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(p,u,f){var g,s=function(a,l,c){c===void 0&&(c={});var d=new Date(a),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",C=v+"|"+k,S=i[C];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:k}),i[C]=S),S}(l,c);return m.formatToParts(d)},h=function(a,l){for(var c=s(a,l),d=[],m=0;m<c.length;m+=1){var v=c[m],y=v.type,k=v.value,C=n[y];C>=0&&(d[C]=parseInt(k,10))}var S=d[3],$=S===24?0:S,R=d[0]+"-"+d[1]+"-"+d[2]+" "+$+":"+d[4]+":"+d[5]+":000",L=+a;return(f.utc(R).valueOf()-(L-=L%1e3))/6e4},o=u.prototype;o.tz=function(a,l){a===void 0&&(a=g);var c=this.utcOffset(),d=this.toDate(),m=d.toLocaleString("en-US",{timeZone:a}),v=Math.round((d-new Date(m))/1e3/60),y=f(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(d.getTimezoneOffset()/15)-v,!0);if(l){var k=y.utcOffset();y=y.add(c-k,"minute")}return y.$x.$timezone=a,y},o.offsetName=function(a){var l=this.$x.$timezone||f.tz.guess(),c=s(this.valueOf(),l,{timeZoneName:a}).find(function(d){return d.type.toLowerCase()==="timezonename"});return c&&c.value};var r=o.startOf;o.startOf=function(a,l){if(!this.$x||!this.$x.$timezone)return r.call(this,a,l);var c=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(c,a,l).tz(this.$x.$timezone,!0)},f.tz=function(a,l,c){var d=c&&l,m=c||l||g,v=h(+f(),m);if(typeof a!="string")return f(a).tz(m);var y=function($,R,L){var x=$-60*R*1e3,M=h(x,L);if(R===M)return[x,R];var b=h(x-=60*(M-R)*1e3,L);return M===b?[x,M]:[$-60*Math.min(M,b)*1e3,Math.max(M,b)]}(f.utc(a,d).valueOf(),v,m),k=y[0],C=y[1],S=f(k).utcOffset(C);return S.$x.$timezone=m,S},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(a){g=a}}})})(Vd);var _$=Vd.exports;const C$=un(_$);var jd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(In,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(u,f,g){var s=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},s.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var h=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),h.call(this,d)};var o=s.init;s.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else o.call(this)};var r=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?r.call(this):this.$offset;if(typeof d=="string"&&(d=function(S){S===void 0&&(S="");var $=S.match(i);if(!$)return null;var R=(""+$[0]).match(p)||["-",0,0],L=R[0],x=60*+R[1]+ +R[2];return x===0?0:L==="+"?x:-x}(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d,k=this;if(m)return k.$offset=y,k.$u=d===0,k;if(d!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(y+C,n)).$offset=y,k.$x.$localOffset=C}else k=this.utc();return k};var a=s.format;s.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return a.call(this,m)},s.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return c.call(this,d,m,v);var y=this.local(),k=g(d).local();return c.call(y,k,m,v)}}})})(jd);var S$=jd.exports;const A$=un(S$),k$=[{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 x$(e){return k$.find(n=>n.code===e)}Pi.extend($$);Pi.extend(C$);Pi.extend(A$);function E$(e){return Pi(e).local().format("YYYY-MM-DD HH:mm:ss")}function R$(e){return Pi(e).local().fromNow()}function Gd(e){const t=x$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function T$(e){if(e.loc!==void 0){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return Gd(e.countryCode)}function Kd(e){if(e!=null)return typeof e=="string"?e:e.toString()}const L$=$e({name:"AlertItem",components:{Artifacts:h$,Tags:Hd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=j1();return{updateTag:n,deleteAlert:async()=>{window.confirm(`Are you sure you want to delete ${e.alert.id}?`)&&(await i.perform(e.alert.id),t.emit("refresh-page"))},getLocalDatetime:E$,getHumanizedRelativeTime:R$}}}),M$={class:"box"},O$={class:"table is-fullwidth is-completely-borderless"},I$=N("th",null,"ID",-1),F$=N("span",null,"Delete",-1),N$={class:"icon is-small"},P$=N("th",null,"Rule",-1),D$=N("th",null,"Artifacts",-1),B$={key:0},W$=N("th",null,"Tags",-1),H$={class:"help"};function U$(e,t,n,i,p,u){const f=he("font-awesome-icon"),g=he("router-link"),s=he("Artifacts"),h=he("Tags");return q(),oe("div",M$,[N("table",O$,[N("tr",null,[I$,N("td",null,[ft(Ae(e.alert.id)+" ",1),N("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[F$,N("span",N$,[fe(f,{icon:"times"})])])])]),N("tr",null,[P$,N("td",null,[fe(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:kt(()=>[ft(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[D$,N("td",null,[fe(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",B$,[W$,N("td",null,[fe(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),N("p",H$,"Created at: "+Ae(e.alert.createdAt),1)])}const z$=ke(L$,[["render",U$]]),Ms=new WeakMap;function wu(e,t,n={}){const{mode:i="replace",route:p=ts(),router:u=Ii(),transform:f=r=>r}=n;Ms.has(u)||Ms.set(u,new Map);const g=Ms.get(u);let s=p.query[e];Zf(()=>{s=void 0});let h;const o=Ya((r,a)=>(h=a,{get(){return r(),f(s!==void 0?s:So(t))},set(l){s!==l&&(s=l,g.set(e,l),a(),Vt(()=>{if(g.size===0)return;const c=Object.fromEntries(g.entries());g.clear();const{params:d,query:m,hash:v}=p;u[So(i)]({params:d,query:{...m,...c},hash:v})}))}}));return Ye(()=>p.query[e],r=>{s=r,h()},{flush:"sync"}),o}const V$=$e({name:"AlertsPagination",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=ts(),i=Ii(),p={route:n,router:i},u=Ee(()=>Math.ceil(e.total/e.pageSize)),f=Ee(()=>u.value===1),g=Ee(()=>e.currentPage>1),s=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPage<u.value),o=Ee(()=>e.currentPage+1!==u.value),r=a=>{const l=wu("page",a.toString(),p);l.value=a.toString(),t.emit("update-page",a)};return tt(()=>{const a=wu("page",null,p);a.value&&parseInt(a.value)!==e.currentPage&&r(parseInt(a.value))}),{updatePage:r,hasNextPage:h,hasOnlyOnePage:f,hasPreviousPage:g,isNextPageNotLast:o,isPreviousPageNotFirst:s,totalPageCount:u}}}),j$={key:0,class:"message is-warning"},G$=N("div",{class:"message-body"},"There is no result to show.",-1),K$=[G$],Y$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},X$={key:0,class:"pagination-list"},Z$={key:1,class:"pagination-list"},Q$={key:0},J$={key:1},q$=N("span",{class:"pagination-ellipsis"},"…",-1),e_=[q$],t_={key:2},n_={key:3},i_={key:4},r_=N("span",{class:"pagination-ellipsis"},"…",-1),o_=[r_],s_={key:5};function a_(e,t,n,i,p,u){return e.total===0?(q(),oe("article",j$,K$)):(q(),oe("nav",Y$,[e.hasOnlyOnePage?(q(),oe("ul",X$,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=f=>e.updatePage(1))},"1")])])):(q(),oe("ul",Z$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",Q$,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=f=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",J$,e_)):we("",!0),e.hasPreviousPage?(q(),oe("li",t_,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=f=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=f=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",n_,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=f=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",i_,o_)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",s_,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=f=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Yd=ke(V$,[["render",a_]]),l_=$e({name:"AlertsItem",components:{Alert:z$,Pagination:Yd},props:{alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:f=>{n(),t.emit("update-page",f)},updateTag:f=>{n(),t.emit("update-tag",f)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),c_={class:"help"};function u_(e,t,n,i,p,u){const f=he("Alert"),g=he("Pagination");return q(),oe(Se,null,[(q(!0),oe(Se,null,lt(e.alerts.alerts,(s,h)=>(q(),Le(f,{alert:s,key:h,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),fe(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",c_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Xd=ke(l_,[["render",u_]]),h_=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=Ie(e.tag),u=Ie(void 0),f=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=Kd(h))},s=()=>(g(),{artifact:n.value===""?void 0:n.value,page:e.page,ruleId:u.value===""?void 0:u.value,tag:p.value===""?void 0:p.value,toAt:f.value===""?void 0:f.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{artifact:n,fromAt:i,getSearchParams:s,ruleId:u,toAt:f,tagInput:p}}}),f_={class:"columns"},d_={class:"column"},p_={class:"field is-horizontal"},g_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Rule")],-1),m_={class:"field-body"},v_={class:"field"},y_={class:"control"},b_={class:"select"},w_=N("option",null,null,-1),$_={class:"column"},__={class:"field is-horizontal"},C_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Artifact")],-1),S_={class:"field-body"},A_={class:"field"},k_={class:"control"},x_={class:"columns"},E_={class:"column"},R_={class:"field is-horizontal"},T_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),L_={class:"field-body"},M_={class:"field"},O_={class:"control"},I_={class:"select"},F_=N("option",null,null,-1),N_=N("div",{class:"column"},null,-1),P_={class:"columns"},D_={class:"column"},B_={class:"field is-horizontal"},W_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),H_={class:"field-body"},U_={class:"field"},z_={class:"control"},V_={class:"column"},j_={class:"field is-horizontal"},G_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),K_={class:"field-body"},Y_={class:"field"},X_={class:"control"};function Z_(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",f_,[N("div",d_,[N("div",p_,[g_,N("div",m_,[N("div",v_,[N("div",y_,[N("div",b_,[Mt(N("select",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.ruleId=f)},[w_,(q(!0),oe(Se,null,lt(e.ruleSet,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[vr,e.ruleId]])])])])])])]),N("div",$_,[N("div",__,[C_,N("div",S_,[N("div",A_,[N("p",k_,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=f=>e.artifact=f)},null,512),[[Ft,e.artifact]])])])])])])]),N("div",x_,[N("div",E_,[N("div",R_,[T_,N("div",L_,[N("div",M_,[N("div",O_,[N("div",I_,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=f=>e.tagInput=f)},[F_,(q(!0),oe(Se,null,lt(e.tags,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[vr,e.tagInput]])])])])])])]),N_]),N("div",P_,[N("div",D_,[N("div",B_,[W_,N("div",H_,[N("div",U_,[N("p",z_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=f=>e.fromAt=f)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",V_,[N("div",j_,[G_,N("div",K_,[N("div",Y_,[N("p",X_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=f=>e.toAt=f)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const Q_=ke(h_,[["render",Z_]]);var Zd={exports:{}};const J_=Jf(S0);(function(e,t){(function(n,i){e.exports=i(J_)})(In,function(n){return function(){var i={789:function(g){g.exports=n}},p={};function u(g){var s=p[g];if(s!==void 0)return s.exports;var h=p[g]={exports:{}};return i[g](h,h.exports,u),h.exports}u.d=function(g,s){for(var h in s)u.o(s,h)&&!u.o(g,h)&&Object.defineProperty(g,h,{enumerable:!0,get:s[h]})},u.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var f={};return function(){function g(b,A){(A==null||A>b.length)&&(A=b.length);for(var _=0,w=new Array(A);_<A;_++)w[_]=b[_];return w}function s(b,A){if(b){if(typeof b=="string")return g(b,A);var _=Object.prototype.toString.call(b).slice(8,-1);return _==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set"?Array.from(b):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?g(b,A):void 0}}function h(b){return function(A){if(Array.isArray(A))return g(A)}(b)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(b)||s(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
771
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(b,A,_){return A in b?Object.defineProperty(b,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[A]=_,b}u.r(f),u.d(f,{default:function(){return M}});var r=u(789),a=(0,r.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var b=this.data,A=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[b])}}),l=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(b,A){var _=A.emit;return{uiType:(0,r.computed)(function(){return b.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return b.checked},set:function(w){return _("update:modelValue",w)}})}},render:function(){var b=this.uiType,A=this.model,_=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(b)},null),(0,r.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat(b),type:b,onChange:function(){return _("change",A)}},null)])}}),c=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var b=this.nodeType,A=this.onClick,_=b==="objectStart"||b==="arrayStart";return _||b==="objectCollapsed"||b==="arrayCollapsed"?(0,r.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(_?"open":"close"),onClick:A},[(0,r.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,r.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}});function d(b){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},d(b)}function m(b){return Object.prototype.toString.call(b).slice(8,-1).toLowerCase()}function v(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,E=w||{},T=E.key,O=E.index,I=E.type,F=I===void 0?"content":I,D=E.showComma,W=D!==void 0&&D,j=E.length,H=j===void 0?1:j,U=m(b);if(U==="array"){var K=y(b.map(function(X,Y,V){return v(X,"".concat(A,"[").concat(Y,"]"),_+1,{index:Y,showComma:Y!==V.length-1,length:H,type:F})}));return[v("[",A,_,{showComma:!1,key:T,length:b.length,type:"arrayStart"})[0]].concat(K,v("]",A,_,{showComma:W,length:b.length,type:"arrayEnd"})[0])}if(U==="object"){var Z=Object.keys(b),z=y(Z.map(function(X,Y,V){return v(b[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),_+1,{key:X,showComma:Y!==V.length-1,length:H,type:F})}));return[v("{",A,_,{showComma:!1,key:T,index:O,length:Z.length,type:"objectStart"})[0]].concat(z,v("}",A,_,{showComma:W,length:Z.length,type:"objectEnd"})[0])}return[{content:b,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function y(b){if(typeof Array.prototype.flat=="function")return b.flat();for(var A=h(b),_=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,h(w)):_.push(w)}return _}function k(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(b==null)return b;if(b instanceof Date)return new Date(b);if(b instanceof RegExp)return new RegExp(b);if(d(b)!=="object")return b;if(A.get(b))return A.get(b);if(Array.isArray(b)){var _=b.map(function(T){return k(T,A)});return A.set(b,_),_}var w={};for(var E in b)w[E]=k(b[E],A);return A.set(b,w),w}function C(b,A){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(b,E).enumerable})),_.push.apply(_,w)}return _}function S(b){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?C(Object(_),!0).forEach(function(w){o(b,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):C(Object(_)).forEach(function(w){Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(_,w))})}return b}var $={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},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}},R=(0,r.defineComponent)({name:"TreeNode",props:S(S({},$),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(b,A){var _=A.emit,w=(0,r.computed)(function(){return m(b.node.content)}),E=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,r.computed)(function(){return b.showDoubleQuotes?'"'.concat(b.node.key,'"'):b.node.key}),O=(0,r.computed)(function(){return b.selectableType==="multiple"}),I=(0,r.computed)(function(){return b.selectableType==="single"}),F=(0,r.computed)(function(){return b.nodeSelectable(b.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(Y){var V,ee,P=(ee=(V=Y.target)===null||V===void 0?void 0:V.value)==="null"?null:ee==="undefined"?void 0:ee==="true"||ee!=="false"&&(ee[0]+ee[ee.length-1]==='""'||ee[0]+ee[ee.length-1]==="''"?ee.slice(1,-1):typeof Number(ee)=="number"&&!isNaN(Number(ee))||ee==="NaN"?Number(ee):ee);_("valueChange",P,b.node.path)},j=(0,r.computed)(function(){var Y,V=(Y=b.node)===null||Y===void 0?void 0:Y.content;return V===null?V="null":V===void 0&&(V="undefined"),w.value==="string"?'"'.concat(V,'"'):V+""}),H=function(){var Y=b.renderNodeValue;return Y?Y({node:b.node,defaultValue:j.value}):j.value},U=function(){_("bracketsClick",!b.collapsed,b.node.path)},K=function(){_("iconClick",!b.collapsed,b.node.path)},Z=function(){_("selectedChange",b.node)},z=function(){_("nodeClick",b.node),F.value&&b.selectOnClickNode&&_("selectedChange",b.node)},X=function(Y){if(b.editable&&!D.editing){D.editing=!0;var V=function ee(P){var B;P.target!==Y.target&&((B=P.target)===null||B===void 0?void 0:B.parentElement)!==Y.target&&(D.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",V),document.addEventListener("click",V)}};return function(){var Y,V=b.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":b.showSelectController,"has-carets":b.showIcon,"is-highlight":b.highlightSelectedNode&&b.checked},onClick:z,style:b.style},[b.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),b.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(l,{isMultiple:O.value,checked:b.checked,onChange:Z},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,P){return(0,r.createVNode)("div",{key:P,class:{"vjs-indent-unit":!0,"has-line":b.showLine}},null)}),b.showIcon&&(0,r.createVNode)(c,{nodeType:V.type,onClick:K},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(Y=b.renderNodeKey,Y?Y({node:b.node,defaultKey:T.value||""}):T.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(b.showKeyValueSpace?" ":"")])]),(0,r.createVNode)("span",null,[V.type!=="content"&&V.content?(0,r.createVNode)(a,{data:V.content.toString(),onClick:U},null):(0,r.createVNode)("span",{class:E.value,onClick:!b.editable||b.editableTrigger&&b.editableTrigger!=="click"?void 0:X,onDblclick:b.editable&&b.editableTrigger==="dblclick"?X:void 0},[b.editable&&D.editing?(0,r.createVNode)("input",{value:j.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):H()]),V.showComma&&(0,r.createVNode)("span",null,[","]),b.showLength&&b.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function L(b,A){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(b,E).enumerable})),_.push.apply(_,w)}return _}function x(b){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?L(Object(_),!0).forEach(function(w){o(b,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):L(Object(_)).forEach(function(w){Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(_,w))})}return b}var M=(0,r.defineComponent)({name:"Tree",props:x(x({},$),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},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}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(b,A){var _=A.emit,w=A.slots,E=(0,r.ref)(),T=(0,r.computed)(function(){return v(b.data,b.rootPath)}),O=function(V){return T.value.reduce(function(ee,P){var B,G=P.level>=V,Q=(B=b.pathCollapsible)===null||B===void 0?void 0:B.call(b,P);return P.type!=="objectStart"&&P.type!=="arrayStart"||!G&&!Q?ee:x(x({},ee),{},o({},P.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(b.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],P=T.value.length,B=0;B<P;B++){var G=x(x({},T.value[B]),{},{id:B}),Q=I.hiddenPaths[G.path];if(V&&V.path===G.path){var te=V.type==="objectStart",ie=x(x(x({},G),V),{},{showComma:G.showComma,content:te?"{...}":"[...]",type:te?"objectCollapsed":"arrayCollapsed"});V=null,ee.push(ie)}else{if(Q&&!V){V=G;continue}if(V)continue;ee.push(G)}}return ee}),D=(0,r.computed)(function(){var V=b.selectedValue;return V&&b.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!b.selectableType||b.selectOnClickNode||b.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),j=function(){var V=F.value;if(b.virtual){var ee,P=b.height/b.itemHeight,B=((ee=E.value)===null||ee===void 0?void 0:ee.scrollTop)||0,G=Math.floor(B/b.itemHeight),Q=G<0?0:G+P>V.length?V.length-P:G;Q<0&&(Q=0);var te=Q+P;I.translateY=Q*b.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=Q&&le<te})}else I.visibleData=V},H=function(){j()},U=function(V){var ee,P,B=V.path,G=b.selectableType;if(G==="multiple"){var Q=D.value.findIndex(function(se){return se===B}),te=h(D.value);Q!==-1?te.splice(Q,1):te.push(B),_("update:selectedValue",te),_("selectedChange",te,h(D.value))}else if(G==="single"&&D.value[0]!==B){var ie=(ee=D.value,P=1,function(se){if(Array.isArray(se))return se}(ee)||function(se,ce){var re=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(re!=null){var ve,de,me=[],_e=!0,J=!1;try{for(re=re.call(se);!(_e=(ve=re.next()).done)&&(me.push(ve.value),!ce||me.length!==ce);_e=!0);}catch(ae){J=!0,de=ae}finally{try{_e||re.return==null||re.return()}finally{if(J)throw de}}return me}}(ee,P)||s(ee,P)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
772
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],le=B;_("update:selectedValue",le),_("selectedChange",le,ie)}},K=function(V){_("nodeClick",V)},Z=function(V,ee){if(V)I.hiddenPaths=x(x({},I.hiddenPaths),{},o({},ee,1));else{var P=x({},I.hiddenPaths);delete P[ee],I.hiddenPaths=P}},z=function(V,ee){b.collapsedOnClickBrackets&&Z(V,ee),_("bracketsClick",V)},X=function(V,ee){Z(V,ee),_("iconClick",V)},Y=function(V,ee){var P=k(b.data),B=b.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(P,V),_("update:data",P)};return(0,r.watchEffect)(function(){W.value&&function(V){throw new Error("[VueJSONPretty] ".concat(V))}(W.value)}),(0,r.watchEffect)(function(){F.value&&j()}),(0,r.watch)(function(){return b.deep},function(V){V&&(I.hiddenPaths=O(V))}),function(){var V,ee,P=(V=b.renderNodeKey)!==null&&V!==void 0?V:w.renderNodeKey,B=(ee=b.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,G=I.visibleData&&I.visibleData.map(function(Q){return(0,r.createVNode)(R,{key:Q.id,node:Q,collapsed:!!I.hiddenPaths[Q.path],showDoubleQuotes:b.showDoubleQuotes,showLength:b.showLength,checked:D.value.includes(Q.path),selectableType:b.selectableType,showLine:b.showLine,showLineNumber:b.showLineNumber,showSelectController:b.showSelectController,selectOnClickNode:b.selectOnClickNode,nodeSelectable:b.nodeSelectable,highlightSelectedNode:b.highlightSelectedNode,editable:b.editable,editableTrigger:b.editableTrigger,showIcon:b.showIcon,showKeyValueSpace:b.showKeyValueSpace,renderNodeKey:P,renderNodeValue:B,onNodeClick:K,onBracketsClick:z,onIconClick:X,onSelectedChange:U,onValueChange:Y,style:b.itemHeight&&b.itemHeight!==20?{lineHeight:"".concat(b.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:E,class:{"vjs-tree":!0,"is-virtual":b.virtual},onScroll:b.virtual?H:void 0,style:b.showLineNumber?x({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},b.style):b.style},[b.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(b.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*b.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[G])])]):G])}}})}(),f}()})})(Zd);var q_=Zd.exports;const Qd=un(q_),eC=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Qd}}),tC={class:"notification is-danger is-light"},nC={key:0},iC={key:1},rC={key:0,class:"message"},oC={class:"message-body"};function sC(e,t,n,i,p,u){var g,s;const f=he("VueJsonPretty");return q(),oe(Se,null,[N("div",tC,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",nC,Ae(e.error.response.data.message),1)):(q(),oe("p",iC,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",rC,[N("div",oC,[fe(f,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const hn=ke(eC,[["render",sC]]),aC=$e({name:"LoadingItem"}),lC={class:"has-text-centered"},cC={class:"fa-3x"};function uC(e,t,n,i,p,u){const f=he("font-awesome-icon");return q(),oe("div",lC,[N("div",cC,[fe(f,{icon:"spinner",spin:""})])])}const ni=ke(aC,[["render",uC]]),hC=$e({name:"AlertsWrapper",components:{AlertsComponent:Xd,FormComponent:Q_,Loading:ni,ErrorMessage:hn},setup(){const e=Ie(1),t=Ie(void 0),n=Ie(),i=Sl(),p=Pd(),u=K1(),f=async()=>{var l;const a=(l=n.value)==null?void 0:l.getSearchParams();return await i.perform(a)},g=a=>{e.value=a},s=()=>{e.value=1},h=async()=>{s(),await f()},o=a=>{t.value===a?t.value=void 0:t.value=a,Vt(async()=>await h())},r=async()=>{await h()};return tt(async()=>{p.perform(),u.perform(),await f()}),Ye([e,t],async()=>{Vt(async()=>await f())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:p,refreshPage:r,search:h,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),fC={class:"box mb-6"},dC=N("hr",null,null,-1),pC={class:"columns"},gC={class:"column"},mC={class:"field is-grouped is-grouped-centered"},vC={class:"control"},yC={class:"icon is-small"},bC=N("span",null,"Search",-1),wC={key:0},$C=N("hr",null,null,-1);function _C(e,t,n,i,p,u){var r,a,l,c;const f=he("FormComponent"),g=he("font-awesome-icon"),s=he("Loading"),h=he("ErrorMessage"),o=he("AlertsComponent");return q(),oe(Se,null,[N("div",fC,[fe(f,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((a=e.getTagsTask.last)==null?void 0:a.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),dC,N("div",pC,[N("div",gC,[N("div",mC,[N("p",vC,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...d)=>e.search&&e.search(...d))},[N("span",yC,[fe(g,{icon:"search"})]),bC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",wC,[$C,e.getAlertsTask.isRunning?(q(),Le(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Le(h,{key:1,error:(l=e.getAlertsTask.last)==null?void 0:l.error},null,8,["error"])):we("",!0),(c=e.getAlertsTask.last)!=null&&c.value?(q(),Le(o,{key:2,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const CC=ke(hC,[["render",_C]]),SC=$e({name:"AlertsView",components:{Alerts:CC},setup(){ti("Alerts - Mihari")}});function AC(e,t,n,i,p,u){const f=he("Alerts",!0);return q(),Le(f)}const kC=ke(SC,[["render",AC]]),xC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Xd,Loading:ni},setup(e){const t=Ie(1),n=Ie(void 0),i=Sl(),p=async()=>{const h={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(h)},u=h=>{t.value=h},f=()=>{t.value=1},g=async()=>{f(),await p()},s=h=>{n.value===h?n.value=void 0:n.value=h};return tt(async()=>{await p()}),Ye([e,t,n],async()=>{Vt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function EC(e,t,n,i,p,u){var s;const f=he("Loading"),g=he("Alerts");return q(),oe(Se,null,[e.getAlertsTask.isRunning?(q(),Le(f,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Le(g,{key:1,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Jd=ke(xC,[["render",EC]]),RC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),TC={class:"tags are-medium"},LC={class:"tag"};function MC(e,t,n,i,p,u){return q(),oe("div",TC,[N("span",LC,Ae(e.autonomousSystem.asn),1)])}const OC=ke(RC,[["render",MC]]),IC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),FC={class:"tags are-medium"};function NC(e,t,n,i,p,u){return q(),oe("div",FC,[(q(!0),oe(Se,null,lt(e.cpes,f=>(q(),oe("span",{class:"tag",key:f.cpe},Ae(f.cpe),1))),128))])}const PC=ke(IC,[["render",NC]]),DC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Al}}}),BC={class:"field is-grouped is-grouped-multiline"},WC={class:"tags has-addons are-medium"},HC={class:"tag is-dark"},UC={class:"tag"};function zC(e,t,n,i,p,u){return q(),oe("div",BC,[(q(!0),oe(Se,null,lt(e.dnsRecords,(f,g)=>(q(),oe("div",{class:"control",key:g},[N("div",WC,[N("span",HC,Ae(f.resource),1),N("span",UC,Ae(e.truncate(f.value,50)),1)])]))),128))])}const VC=ke(DC,[["render",zC]]),jC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),GC={class:"tags are-medium"};function KC(e,t,n,i,p,u){return q(),oe("div",GC,[(q(!0),oe(Se,null,lt(e.ports,f=>(q(),oe("span",{class:"tag",key:f.port},Ae(f.port),1))),128))])}const YC=ke(jC,[["render",KC]]),XC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),ZC={class:"tags are-medium"};function QC(e,t,n,i,p,u){return q(),oe("div",ZC,[(q(!0),oe(Se,null,lt(e.reverseDnsNames,f=>(q(),oe("span",{class:"tag",key:f.name},Ae(f.name),1))),128))])}const JC=ke(XC,[["render",QC]]),qC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),eS={class:"tags are-medium"};function tS(e,t,n,i,p,u){const f=he("router-link");return q(),oe("div",eS,[(q(!0),oe(Se,null,lt(e.tags,g=>(q(),Le(f,{class:"tag is-info is-light",key:g.id,to:{name:"Alerts",query:{tag:g.name}}},{default:kt(()=>[ft(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const nS=ke(qC,[["render",tS]]),iS=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),rS={class:"field is-grouped is-grouped-multiline"},oS={class:"control"},sS={class:"tags has-addons are-medium"},aS=N("span",{class:"tag is-dark"},"Registrar",-1),lS={class:"tag is-light"},cS={class:"control"},uS={class:"tags has-addons are-medium"},hS=N("span",{class:"tag is-dark"},"Created on",-1),fS={class:"tag is-light"},dS={class:"control"},pS={class:"tags has-addons are-medium"},gS=N("span",{class:"tag is-dark"},"Updated on",-1),mS={class:"tag is-light"},vS={class:"control"},yS={class:"tags has-addons are-medium"},bS=N("span",{class:"tag is-dark"},"Expires on",-1),wS={class:"tag is-light"};function $S(e,t,n,i,p,u){var f;return q(),oe("div",rS,[N("div",oS,[N("div",sS,[aS,N("span",lS,Ae(((f=e.whoisRecord.registrar)==null?void 0:f.name)||"N/A"),1)])]),N("div",cS,[N("div",uS,[hS,N("span",fS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",dS,[N("div",pS,[gS,N("span",mS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",vS,[N("div",yS,[bS,N("span",wS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const _S=ke(iS,[["render",$S]]),CS=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const SS=["href"],AS=["src"];function kS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,AS),N("span",null,Ae(e.link.name),1)],8,SS)}const xS=ke(CS,[["render",kS],["__scopeId","data-v-66270500"]]);class Tt{constructor(){Te(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 ES extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class RS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class TS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class LS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class MS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class OS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/viz/query?gnql=ip:${n}`}}class IS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class qd extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class FS extends qd{constructor(){super();Te(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class ep extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class NS extends ep{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class PS extends ep{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class DS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class kl extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class BS extends kl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class WS extends kl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class HS extends kl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var tp={exports:{}};const US={},zS=Object.freeze(Object.defineProperty({__proto__:null,default:US},Symbol.toStringTag,{value:"Module"})),$u=Jf(zS);/**
773
- * [js-sha256]{@link https://github.com/emn178/js-sha256}
774
- *
775
- * @version 0.10.1
776
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
777
- * @copyright Chen, Yi-Cyuan 2014-2023
778
- * @license MIT
779
- */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var p=!n&&typeof self=="object",u=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?i=In:p&&(i=self);var f=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],o=[24,16,8,0],r=[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],a=["hex","array","digest","arrayBuffer"],l=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var c=function($,R){return function(L){return new k(R,!0).update(L)[$]()}},d=function($){var R=c("hex",$);u&&(R=m(R,$)),R.create=function(){return new k($)},R.update=function(M){return R.create().update(M)};for(var L=0;L<a.length;++L){var x=a[L];R[x]=c(x,$)}return R},m=function($,R){var L=$u,x=$u.Buffer,M=R?"sha224":"sha256",b;x.from&&!i.JS_SHA256_NO_BUFFER_FROM?b=x.from:b=function(_){return new x(_)};var A=function(_){if(typeof _=="string")return L.createHash(M).update(_,"utf8").digest("hex");if(_==null)throw new Error(t);return _.constructor===ArrayBuffer&&(_=new Uint8Array(_)),Array.isArray(_)||ArrayBuffer.isView(_)||_.constructor===x?L.createHash(M).update(b(_)).digest("hex"):$(_)};return A},v=function($,R){return function(L,x){return new C(L,R,!0).update(x)[$]()}},y=function($){var R=v("hex",$);R.create=function(M){return new C(M,$)},R.update=function(M,b){return R.create(M).update(b)};for(var L=0;L<a.length;++L){var x=a[L];R[x]=v(x,$)}return R};function k($,R){R?(l[0]=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0,this.blocks=l):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],$?(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=$}k.prototype.update=function($){if(!this.finalized){var R,L=typeof $;if(L!=="string"){if(L==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);R=!0}for(var x,M=0,b,A=$.length,_=this.blocks;M<A;){if(this.hashed&&(this.hashed=!1,_[0]=this.block,_[16]=_[1]=_[2]=_[3]=_[4]=_[5]=_[6]=_[7]=_[8]=_[9]=_[10]=_[11]=_[12]=_[13]=_[14]=_[15]=0),R)for(b=this.start;M<A&&b<64;++M)_[b>>2]|=$[M]<<o[b++&3];else for(b=this.start;M<A&&b<64;++M)x=$.charCodeAt(M),x<128?_[b>>2]|=x<<o[b++&3]:x<2048?(_[b>>2]|=(192|x>>6)<<o[b++&3],_[b>>2]|=(128|x&63)<<o[b++&3]):x<55296||x>=57344?(_[b>>2]|=(224|x>>12)<<o[b++&3],_[b>>2]|=(128|x>>6&63)<<o[b++&3],_[b>>2]|=(128|x&63)<<o[b++&3]):(x=65536+((x&1023)<<10|$.charCodeAt(++M)&1023),_[b>>2]|=(240|x>>18)<<o[b++&3],_[b>>2]|=(128|x>>12&63)<<o[b++&3],_[b>>2]|=(128|x>>6&63)<<o[b++&3],_[b>>2]|=(128|x&63)<<o[b++&3]);this.lastByteIndex=b,this.bytes+=b-this.start,b>=64?(this.block=_[16],this.start=b-64,this.hash(),this.hashed=!0):this.start=b}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,R=this.lastByteIndex;$[16]=this.block,$[R>>2]|=h[R&3],this.block=$[16],R>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var $=this.h0,R=this.h1,L=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,_=this.h7,w=this.blocks,E,T,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=w[E-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[E-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[E]=w[E-16]+T+w[E-7]+O<<0;for(K=R&L,E=0;E<64;E+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,_=F-150054599<<0,x=F+24177077<<0):(j=704751109,F=w[0]-210244248,_=F-1521486534<<0,x=F+143694565<<0),this.first=!1):(T=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=$&R,I=j^$&L^K,W=M&b^~M&A,F=_+O+W+r[E]+w[E],D=T+I,_=x+F<<0,x=F+D<<0),T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=x&$,I=H^x&R^j,W=_&M^~_&b,F=A+O+W+r[E+1]+w[E+1],D=T+I,A=L+F<<0,L=F+D<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=L&x,I=U^L&$^H,W=A&_^~A&M,F=b+O+W+r[E+2]+w[E+2],D=T+I,b=R+F<<0,R=F+D<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),K=R&L,I=K^R&x^U,W=b&A^~b&_,F=M+O+W+r[E+3]+w[E+3],D=T+I,M=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+R<<0,this.h2=this.h2+L<<0,this.h3=this.h3+x<<0,this.h4=this.h4+M<<0,this.h5=this.h5+b<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},k.prototype.hex=function(){this.finalize();var $=this.h0,R=this.h1,L=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,_=this.h7,w=s[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&15]+s[R>>28&15]+s[R>>24&15]+s[R>>20&15]+s[R>>16&15]+s[R>>12&15]+s[R>>8&15]+s[R>>4&15]+s[R&15]+s[L>>28&15]+s[L>>24&15]+s[L>>20&15]+s[L>>16&15]+s[L>>12&15]+s[L>>8&15]+s[L>>4&15]+s[L&15]+s[x>>28&15]+s[x>>24&15]+s[x>>20&15]+s[x>>16&15]+s[x>>12&15]+s[x>>8&15]+s[x>>4&15]+s[x&15]+s[M>>28&15]+s[M>>24&15]+s[M>>20&15]+s[M>>16&15]+s[M>>12&15]+s[M>>8&15]+s[M>>4&15]+s[M&15]+s[b>>28&15]+s[b>>24&15]+s[b>>20&15]+s[b>>16&15]+s[b>>12&15]+s[b>>8&15]+s[b>>4&15]+s[b&15]+s[A>>28&15]+s[A>>24&15]+s[A>>20&15]+s[A>>16&15]+s[A>>12&15]+s[A>>8&15]+s[A>>4&15]+s[A&15];return this.is224||(w+=s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]),w},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var $=this.h0,R=this.h1,L=this.h2,x=this.h3,M=this.h4,b=this.h5,A=this.h6,_=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,R>>24&255,R>>16&255,R>>8&255,R&255,L>>24&255,L>>16&255,L>>8&255,L&255,x>>24&255,x>>16&255,x>>8&255,x&255,M>>24&255,M>>16&255,M>>8&255,M&255,b>>24&255,b>>16&255,b>>8&255,b&255,A>>24&255,A>>16&255,A>>8&255,A&255];return this.is224||w.push(_>>24&255,_>>16&255,_>>8&255,_&255),w},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),R=new DataView($);return R.setUint32(0,this.h0),R.setUint32(4,this.h1),R.setUint32(8,this.h2),R.setUint32(12,this.h3),R.setUint32(16,this.h4),R.setUint32(20,this.h5),R.setUint32(24,this.h6),this.is224||R.setUint32(28,this.h7),$};function C($,R,L){var x,M=typeof $;if(M==="string"){var b=[],A=$.length,_=0,w;for(x=0;x<A;++x)w=$.charCodeAt(x),w<128?b[_++]=w:w<2048?(b[_++]=192|w>>6,b[_++]=128|w&63):w<55296||w>=57344?(b[_++]=224|w>>12,b[_++]=128|w>>6&63,b[_++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++x)&1023),b[_++]=240|w>>18,b[_++]=128|w>>12&63,b[_++]=128|w>>6&63,b[_++]=128|w&63);$=b}else if(M==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);$.length>64&&($=new k(R,!0).update($).array());var E=[],T=[];for(x=0;x<64;++x){var O=$[x]||0;E[x]=92^O,T[x]=54^O}k.call(this,R,L),this.update(T),this.oKeyPad=E,this.inner=!0,this.sharedMemory=L}C.prototype=new k,C.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),k.prototype.finalize.call(this)}};var S=d();S.sha256=S,S.sha224=d(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),f?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(tp);var VS=tp.exports,jS=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},xl={},GS=Object.prototype.hasOwnProperty,KS;function _u(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Cu(e){try{return encodeURIComponent(e)}catch{return null}}function YS(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var p=_u(i[1]),u=_u(i[2]);p===null||u===null||p in n||(n[p]=u)}return n}function XS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(GS.call(e,p)){if(i=e[p],!i&&(i===null||i===KS||isNaN(i))&&(i=""),p=Cu(p),i=Cu(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}xl.stringify=XS;xl.parse=YS;var np=jS,cs=xl,ZS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ip=/[\n\r\t]/g,QS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,rp=/:\d+$/,JS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,qS=/^[a-zA-Z]:/;function El(e){return(e||"").toString().replace(ZS,"")}var wa=[["#","hash"],["?","query"],function(t,n){return zt(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]],Su={hash:1,query:1};function op(e){var t;typeof window<"u"?t=window:typeof In<"u"?t=In:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},p=typeof e,u;if(e.protocol==="blob:")i=new Gt(unescape(e.pathname),{});else if(p==="string"){i=new Gt(e,{});for(u in Su)delete i[u]}else if(p==="object"){for(u in e)u in Su||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=QS.test(e.href))}return i}function zt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function sp(e,t){e=El(e),e=e.replace(ip,""),t=t||{};var n=JS.exec(e),i=n[1]?n[1].toLowerCase():"",p=!!n[2],u=!!n[3],f=0,g;return p?u?(g=n[2]+n[3]+n[4],f=n[2].length+n[3].length):(g=n[2]+n[4],f=n[2].length):u?(g=n[3]+n[4],f=n[3].length):g=n[4],i==="file:"?f>=2&&(g=g.slice(2)):zt(i)?g=n[4]:i?p&&(g=g.slice(2)):f>=2&&zt(t.protocol)&&(g=n[4]),{protocol:i,slashes:p||zt(i),slashesCount:f,rest:g}}function eA(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,p=n[i-1],u=!1,f=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),f++):f&&(i===0&&(u=!0),n.splice(i,1),f--);return u&&n.unshift(""),(p==="."||p==="..")&&n.push(""),n.join("/")}function Gt(e,t,n){if(e=El(e),e=e.replace(ip,""),!(this instanceof Gt))return new Gt(e,t,n);var i,p,u,f,g,s,h=wa.slice(),o=typeof t,r=this,a=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=cs.parse),t=op(t),p=sp(e||"",t),i=!p.protocol&&!p.slashes,r.slashes=p.slashes||i&&t.slashes,r.protocol=p.protocol||t.protocol||"",e=p.rest,(p.protocol==="file:"&&(p.slashesCount!==2||qS.test(e))||!p.slashes&&(p.protocol||p.slashesCount<2||!zt(r.protocol)))&&(h[3]=[/(.*)/,"pathname"]);a<h.length;a++){if(f=h[a],typeof f=="function"){e=f(e,r);continue}u=f[0],s=f[1],u!==u?r[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof f[2]=="number"?(r[s]=e.slice(0,g),e=e.slice(g+f[2])):(r[s]=e.slice(g),e=e.slice(0,g)))):(g=u.exec(e))&&(r[s]=g[1],e=e.slice(0,g.index)),r[s]=r[s]||i&&f[3]&&t[s]||"",f[4]&&(r[s]=r[s].toLowerCase())}n&&(r.query=n(r.query)),i&&t.slashes&&r.pathname.charAt(0)!=="/"&&(r.pathname!==""||t.pathname!=="")&&(r.pathname=eA(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&zt(r.protocol)&&(r.pathname="/"+r.pathname),np(r.port,r.protocol)||(r.host=r.hostname,r.port=""),r.username=r.password="",r.auth&&(g=r.auth.indexOf(":"),~g?(r.username=r.auth.slice(0,g),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=r.auth.slice(g+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(r.auth)),r.auth=r.password?r.username+":"+r.password:r.username),r.origin=r.protocol!=="file:"&&zt(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString()}function tA(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||cs.parse)(t)),i[e]=t;break;case"port":i[e]=t,np(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,rp.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 p=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==p?p+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(i.username=t.slice(0,u),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(u+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var f=0;f<wa.length;f++){var g=wa[f];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:"&&zt(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function nA(e){(!e||typeof e!="function")&&(e=cs.stringify);var t,n=this,i=n.host,p=n.protocol;p&&p.charAt(p.length-1)!==":"&&(p+=":");var u=p+(n.protocol&&n.slashes||zt(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&zt(n.protocol)&&!i&&n.pathname!=="/"&&(u+="@"),(i[i.length-1]===":"||rp.test(n.hostname)&&!n.port)&&(i+=":"),u+=i+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(u+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(u+=n.hash),u}Gt.prototype={set:tA,toString:nA};Gt.extractProtocol=sp;Gt.location=op;Gt.trimLeft=El;Gt.qs=cs;var iA=Gt;const rA=un(iA);class us extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class oA extends us{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class sA extends us{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class aA extends us{constructor(){super(),this.type="url"}href(t){const n=VS.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new rA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class lA extends us{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const cA=[new ES,new RS,new TS,new MS,new LS,new OS,new IS,new FS,new qd,new NS,new PS,new DS,new BS,new WS,new HS,new oA,new lA,new sA,new aA],uA=$e({name:"LinksItem",components:{LinkComponent:xS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=cA;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),hA={class:"tags are-medium"};function fA(e,t,n,i,p,u){const f=he("LinkComponent");return q(),oe("div",hA,[(q(!0),oe(Se,null,lt(e.selectedLinks,g=>(q(),Le(f,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const dA=ke(uA,[["render",fA]]),pA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Jd,AS:OC,DnsRecords:VC,Links:dA,ReverseDnsNames:JC,Tags:nS,VueJsonPretty:Qd,WhoisRecord:_S,CPEs:PC,Ports:YC},emits:["refresh"],setup(e,t){const n=Ie(void 0),i=Ie(void 0),p=Ie(!1),u=Ee(()=>`/api/artifacts/${e.artifact.id}`),f=Ii(),g=Ee(()=>{if(e.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${e.artifact.data}`}`;if(e.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${e.artifact.data}`}),s=m=>{if(m!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},h=Q1(),o=Sl(),r=Dd(),a=X1(),l=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await r.perform(e.artifact.id),f.push("/"))},c=async()=>{await a.perform(e.artifact.id),t.emit("refresh")},d=()=>{p.value=!p.value};return tt(async()=>{if(e.artifact.dataType==="ip"){let m;if(e.artifact.geolocation===null){const v=await h.perform(e.artifact.data);m=T$(v),i.value=v.countryCode}else m=Gd(e.artifact.geolocation.countryCode);n.value=s(m)}}),{countryCode:i,deleteArtifact:l,enrichArtifact:c,enrichArtifactTask:a,flipShowMetadata:d,getAlertsTask:o,googleMapSrc:n,href:u,showMetadata:p,truncate:Al,urlscanLiveshotSrc:g}}});const Xe=e=>(Za("data-v-541a0d58"),e=e(),Qa(),e),gA={class:"column"},mA=Xe(()=>N("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),vA={class:"columns"},yA={key:0,class:"column is-half"},bA={key:0},wA={class:"is-size-4 mb-2"},$A={class:"has-text-grey"},_A=["src"],CA={key:1},SA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},[ft(" Live screenshot "),N("span",{class:"has-text-grey"},"Hover to expand")],-1)),AA=["src"],kA={class:"column"},xA={class:"block"},EA=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Information",-1)),RA={class:"buttons is-pulled-right"},TA=["href"],LA=Xe(()=>N("span",null,"JSON",-1)),MA={class:"icon is-small"},OA=Xe(()=>N("span",null,"Metadata",-1)),IA={class:"icon is-small"},FA=Xe(()=>N("span",null,"Enrich",-1)),NA={class:"icon is-small"},PA=Xe(()=>N("span",null,"Delete",-1)),DA={class:"icon is-small"},BA={class:"table is-fullwidth is-completely-borderless"},WA=Xe(()=>N("th",null,"ID",-1)),HA=Xe(()=>N("th",null,"Data type",-1)),UA=Xe(()=>N("th",null,"Data",-1)),zA=Xe(()=>N("th",null,"Source",-1)),VA=Xe(()=>N("th",null,"Query",-1)),jA={key:0},GA=Xe(()=>N("th",null,"Tags",-1)),KA={key:0},YA={class:"modal is-active"},XA={class:"modal-card"},ZA={class:"modal-card-head"},QA=Xe(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),JA={class:"modal-card-body"},qA={key:0,class:"block"},e2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),t2={key:1,class:"block"},n2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),i2={key:2,class:"block"},r2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),o2={key:3,class:"block"},s2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),a2={key:4,class:"block"},l2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),c2={key:5,class:"block"},u2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),h2={class:"block"},f2=Xe(()=>N("h4",{class:"is-size-4 mb-2"},"Links",-1)),d2=Xe(()=>N("hr",null,null,-1)),p2={class:"column"},g2=Xe(()=>N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function m2(e,t,n,i,p,u){var v;const f=he("font-awesome-icon"),g=he("Tags"),s=he("VueJsonPretty"),h=he("AS"),o=he("ReverseDnsNames"),r=he("DnsRecords"),a=he("CPEs"),l=he("Ports"),c=he("WhoisRecord"),d=he("Links"),m=he("Alerts");return q(),oe(Se,null,[N("div",gA,[mA,N("div",vA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",yA,[e.googleMapSrc?(q(),oe("div",bA,[N("h4",wA,[ft(" Geolocation "),N("span",$A,Ae(e.countryCode||((v=e.artifact.geolocation)==null?void 0:v.countryCode)),1)]),N("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,_A)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",CA,[SA,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,AA)])):we("",!0)])):we("",!0),N("div",kA,[N("div",xA,[EA,N("span",RA,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[LA,N("span",MA,[fe(f,{icon:"barcode"})])],8,TA),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))},[OA,N("span",IA,[fe(f,{icon:"info-circle"})])])):we("",!0),N("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...y)=>e.enrichArtifact&&e.enrichArtifact(...y))},[FA,N("span",NA,[e.enrichArtifactTask.isRunning?(q(),Le(f,{key:0,icon:"spinner",spin:""})):(q(),Le(f,{key:1,icon:"lightbulb"}))])]),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...y)=>e.deleteArtifact&&e.deleteArtifact(...y))},[PA,N("span",DA,[fe(f,{icon:"times"})])])]),N("table",BA,[N("tr",null,[WA,N("td",null,Ae(e.artifact.id),1)]),N("tr",null,[HA,N("td",null,Ae(e.artifact.dataType),1)]),N("tr",null,[UA,N("td",null,Ae(e.truncate(e.artifact.data,64)),1)]),N("tr",null,[zA,N("td",null,Ae(e.artifact.source),1)]),N("tr",null,[VA,N("td",null,Ae(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(q(),oe("tr",jA,[GA,N("td",null,[fe(g,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",KA,[N("div",YA,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))}),N("div",XA,[N("header",ZA,[QA,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...y)=>e.flipShowMetadata&&e.flipShowMetadata(...y))})]),N("section",JA,[fe(s,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",qA,[e2,fe(h,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",t2,[n2,fe(o,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",i2,[r2,fe(r,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",o2,[s2,fe(a,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",a2,[l2,fe(l,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",c2,[u2,fe(c,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),N("div",h2,[f2,fe(d,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),d2,N("div",p2,[g2,fe(m,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const v2=ke(pA,[["render",m2],["__scopeId","data-v-541a0d58"]]),y2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:v2,Loading:ni,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Y1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function b2(e,t,n,i,p,u){var h,o;const f=he("Loading"),g=he("ErrorMessage"),s=he("ArtifactComponent");return q(),oe(Se,null,[e.getArtifactTask.isRunning?(q(),Le(f,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Le(g,{key:1,error:(h=e.getArtifactTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Le(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const w2=ke(y2,[["render",b2]]),$2=$e({name:"ArtifactView",components:{Artifact:w2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ti(`Artifact:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function _2(e,t,n,i,p,u){const f=he("Artifact",!0);return q(),Le(f,{id:e.id},null,8,["id"])}const C2=ke($2,[["render",_2]]),S2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),A2={class:"box"},k2={class:"table-container"},x2={class:"table is-fullwidth"},E2=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured"),N("th",null,"Key-value(s)")])],-1),R2={key:0,class:"button is-success is-small ml-1"},T2={class:"icon is-small"},L2=N("span",null,"Yes",-1),M2={key:1,class:"button is-warning is-small ml-1"},O2={class:"icon is-small"},I2=N("span",null,"No",-1),F2={key:0},N2={key:1};function P2(e,t,n,i,p,u){const f=he("font-awesome-icon");return q(),oe("div",A2,[N("div",k2,[N("table",x2,[E2,N("tbody",null,[(q(!0),oe(Se,null,lt(e.configs,g=>(q(),oe("tr",{key:g.name},[N("td",null,Ae(g.name),1),N("td",null,Ae(g.type),1),N("td",null,[g.isConfigured?(q(),oe("button",R2,[N("span",T2,[fe(f,{icon:"check"})]),L2])):(q(),oe("button",M2,[N("span",O2,[fe(f,{icon:"exclamation"})]),I2]))]),N("td",null,[N("ul",null,[(q(!0),oe(Se,null,lt(g.values,(s,h)=>(q(),oe("li",{key:h},[N("strong",null,Ae(s.key),1),ft(": "),s.value?(q(),oe("code",F2,Ae(s.value),1)):(q(),oe("span",N2,"N/A"))]))),128))])])]))),128))])])])])}const D2=ke(S2,[["render",P2]]),B2=$e({name:"ConfigsWrapper",components:{Configs:D2,Loading:ni,ErrorMessage:hn},setup(){const e=Z1();return tt(async()=>{await e.perform()}),{getConfigsTask:e}}});function W2(e,t,n,i,p,u){var h,o;const f=he("Loading"),g=he("ErrorMessage"),s=he("Configs");return q(),oe(Se,null,[e.getConfigsTask.isRunning?(q(),Le(f,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Le(g,{key:1,error:(h=e.getConfigsTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Le(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const H2=ke(B2,[["render",W2]]),U2=$e({name:"ConfigView",components:{Configs:H2},setup(){ti("Config - Mihari")}});function z2(e,t,n,i,p,u){const f=he("Configs",!0);return q(),Le(f)}const V2=ke(U2,[["render",z2]]);var ap={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var p=function(o,r,a){if(typeof o!="string"){p.original?p.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=r),p.modules[o]||(p.payloads[o]=a,p.modules[o]=null)};p.modules={},p.payloads={};var u=function(o,r,a){if(typeof r=="string"){var l=s(o,r);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var c=[],d=0,m=r.length;d<m;++d){var v=s(o,r[d]);if(v==null&&f.original)return;c.push(v)}return a&&a.apply(null,c)||!0}},f=function(o,r){var a=u("",o,r);return a==null&&f.original?f.original.apply(this,arguments):a},g=function(o,r){if(r.indexOf("!")!==-1){var a=r.split("!");return g(o,a[0])+"!"+g(o,a[1])}if(r.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(r=l+"/"+r;r.indexOf(".")!==-1&&c!=r;){var c=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},s=function(o,r){r=g(o,r);var a=p.modules[r];if(!a){if(a=p.payloads[r],typeof a=="function"){var l={},c={id:r,uri:"",exports:l,packaged:!0},d=function(v,y){return u(r,v,y)},m=a(d,l,c);l=m||c.exports,p.modules[r]=l,delete p.payloads[r]}a=p.modules[r]=l||a}return a};function h(o){var r=i;o&&(i[o]||(i[o]={}),r=i[o]),(!r.define||!r.define.packaged)&&(p.original=r.define,r.define=p,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(f.original=r.require,r.require=f,r.require.packaged=!0)}h(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,p){function u(f,g,s){Object.defineProperty(f,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(f,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=f.length;var h=s.indexOf(f,g);return h!==-1&&h===g}),String.prototype.repeat||u(String.prototype,"repeat",function(f){for(var g="",s=this;f>0;)f&1&&(g+=s),(f>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(f),s=1;s<arguments.length;s++){var h=arguments[s];h!=null&&Object.keys(h).forEach(function(o){g[o]=h[o]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||u(Array.prototype,"find",function(f){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(f.call(s,o,h,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(f){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(f.call(s,o,h,this))return h}}),Array.prototype.includes||u(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(f){for(var g=this,s=g.length>>>0,h=arguments[1],o=h>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),a=arguments[2],l=a===void 0?s:a>>0,c=l<0?Math.max(s+l,0):Math.min(l,s);r<c;)g[r]=f,r++;return g}),Array.of||u(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,p){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,p){i.deepCopy=function u(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var s=0;s<f.length;s++)g[s]=u(f[s]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var s in f)g[s]=u(f[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,s){for(var h="";s>0;)s&1&&(h+=g),(s>>=1)&&(g+=g);return h};var u=/^\s\s*/,f=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(f,"")},i.copyObject=function(g){var s={};for(var h in g)s[h]=g[h];return s},i.copyArray=function(g){for(var s=[],h=0,o=g.length;h<o;h++)g[h]&&typeof g[h]=="object"?s[h]=this.copyObject(g[h]):s[h]=g[h];return s},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var s={},h=0;h<g.length;h++)s[g[h]]=1;return s},i.createMap=function(g){var s=Object.create(null);for(var h in g)s[h]=g[h];return s},i.arrayRemove=function(g,s){for(var h=0;h<=g.length;h++)s===g[h]&&g.splice(h,1)},i.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(g,s){var h=[];return g.replace(s,function(o){h.push({offset:arguments[arguments.length-2],length:o.length})}),h},i.deferredCall=function(g){var s=null,h=function(){s=null,g()},o=function(r){return o.cancel(),s=setTimeout(h,r||0),o};return o.schedule=o,o.call=function(){return this.cancel(),g(),o},o.cancel=function(){return clearTimeout(s),s=null,o},o.isPending=function(){return s},o},i.delayedCall=function(g,s){var h=null,o=function(){h=null,g()},r=function(a){h==null&&(h=setTimeout(o,a||s))};return r.delay=function(a){h&&clearTimeout(h),h=setTimeout(o,a||s)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,s,h){return h&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,p){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 u=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";i.isWin=f=="win",i.isMac=f=="mac",i.isLinux=f=="linux",i.isIE=s=="Microsoft Internet Explorer"||s.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,p){var u=n("./useragent"),f="http://www.w3.org/1999/xhtml";i.buildDom=function a(l,c,d){if(typeof l=="string"&&l){var m=document.createTextNode(l);return c&&c.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&c&&c.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var v=[],y=0;y<l.length;y++){var k=a(l[y],c,d);k&&v.push(k)}return v}var C=document.createElement(l[0]),S=l[1],$=1;S&&typeof S=="object"&&!Array.isArray(S)&&($=2);for(var y=$;y<l.length;y++)a(l[y],C,d);return $==2&&Object.keys(S).forEach(function(R){var L=S[R];R==="class"?C.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||R=="value"||R[0]=="$"?C[R]=L:R==="ref"?d&&(d[L]=C):R==="style"?typeof L=="string"&&(C.style.cssText=L):L!=null&&C.setAttribute(R,L)}),c&&c.appendChild(C),C},i.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},i.createElement=function(a,l){return document.createElementNS?document.createElementNS(l||f,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,l){var c=l?l.ownerDocument:document;return c.createTextNode(a)},i.createFragment=function(a){var l=a?a.ownerDocument:document;return l.createDocumentFragment()},i.hasCssClass=function(a,l){var c=(a.className+"").split(/\s+/g);return c.indexOf(l)!==-1},i.addCssClass=function(a,l){i.hasCssClass(a,l)||(a.className+=" "+l)},i.removeCssClass=function(a,l){for(var c=a.className.split(/\s+/g);;){var d=c.indexOf(l);if(d==-1)break;c.splice(d,1)}a.className=c.join(" ")},i.toggleCssClass=function(a,l){for(var c=a.className.split(/\s+/g),d=!0;;){var m=c.indexOf(l);if(m==-1)break;d=!1,c.splice(m,1)}return d&&c.push(l),a.className=c.join(" "),d},i.setCssClass=function(a,l,c){c?i.addCssClass(a,l):i.removeCssClass(a,l)},i.hasCssString=function(a,l){var c=0,d;if(l=l||document,d=l.querySelectorAll("style")){for(;c<d.length;)if(d[c++].id===a)return!0}},i.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var g,s=[];i.useStrictCSP=function(a){g=a,a==!1?h():s||(s=[])};function h(){var a=s;s=null,a&&a.forEach(function(l){o(l[0],l[1])})}function o(a,l,c){if(!(typeof document>"u")){if(s){if(c)h();else if(c===!1)return s.push([a,l])}if(!g){var d=c;!c||!c.getRootNode?d=document:(d=c.getRootNode(),(!d||d==c)&&(d=document));var m=d.ownerDocument||d;if(l&&i.hasCssString(l,d))return null;l&&(a+=`
780
- /*# sourceURL=ace/css/`+l+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(a)),l&&(v.id=l),d==m&&(d=i.getDocumentHead(m)),d.insertBefore(v,d.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(a,l){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(l))},i.scrollbarWidth=function(a){var l=i.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var c=i.createElement("ace_outer"),d=c.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",c.appendChild(l);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(c);var v=l.offsetWidth;d.overflow="scroll";var y=l.offsetWidth;return v===y&&(y=c.clientWidth),m.removeChild(c),v-y},i.computedStyle=function(a,l){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,l,c){a[l]!==c&&(a[l]=c)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");i.HI_DPI&&r.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!u.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,l,c){a.style.transform="translate("+Math.round(l)+"px, "+Math.round(c)+"px)"}:i.translate=function(a,l,c){a.style.top=Math.round(c)+"px",a.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,p){/*
781
- * based on code from:
782
- *
783
- * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
784
- * Available via the MIT or new BSD license.
785
- * see: http://github.com/jrburke/requirejs for details
786
- */var u=n("./dom");i.get=function(f,g){var s=new XMLHttpRequest;s.open("GET",f,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(f,g){var s=u.getDocumentHead(),h=document.createElement("script");h.src=f,s.appendChild(h),h.onload=h.onreadystatechange=function(o,r){(r||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,r||g())}},i.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,p){i.inherits=function(u,f){u.super_=f,u.prototype=Object.create(f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,f){for(var g in f)u[g]=f[g];return u},i.implement=function(u,f){i.mixin(u,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,p){var u={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=s),h.stopPropagation||(h.stopPropagation=f),h.preventDefault||(h.preventDefault=g),o=o.slice();for(var a=0;a<o.length&&(o[a](h,this),!h.propagationStopped);a++);if(r&&!h.defaultPrevented)return r(h,this)}},u._signal=function(s,h){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var r=0;r<o.length;r++)o[r](h,this)}},u.once=function(s,h){var o=this;if(this.on(s,function r(){o.off(s,r),h.apply(null,arguments)}),!h)return new Promise(function(r){h=r})},u.setDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var r=o[s],a=o._disabled_[s];a||(o._disabled_[s]=a=[]),a.push(r);var l=a.indexOf(h);l!=-1&&a.splice(l,1)}o[s]=h},u.removeDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o){var r=o._disabled_[s];if(o[s]==h)r&&this.setDefaultHandler(s,r.pop());else if(r){var a=r.indexOf(h);a!=-1&&r.splice(a,1)}}},u.on=u.addEventListener=function(s,h,o){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[s];return r||(r=this._eventRegistry[s]=[]),r.indexOf(h)==-1&&r[o?"unshift":"push"](h),h},u.off=u.removeListener=u.removeEventListener=function(s,h){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var r=o.indexOf(h);r!==-1&&o.splice(r,1)}},u.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},i.EventEmitter=u}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,p){i.reportError=function(f,g){var s=new Error(f);s.data=g,typeof console=="object"&&console.error&&console.error(s),setTimeout(function(){throw s})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(n,i,p){"no use strict";var u=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s={setOptions:function(a){Object.keys(a).forEach(function(l){this.setOption(l,a[l])},this)},getOptions:function(a){var l={};if(a)Array.isArray(a)||(l=a,a=Object.keys(l));else{var c=this.$options;a=Object.keys(c).filter(function(d){return!c[d].hidden})}return a.forEach(function(d){l[d]=this.getOption(d)},this),l},setOption:function(a,l){if(this["$"+a]!==l){var c=this.$options[a];if(!c)return h('misspelled option "'+a+'"');if(c.forwardTo)return this[c.forwardTo]&&this[c.forwardTo].setOption(a,l);c.handlesSet||(this["$"+a]=l),c&&c.set&&c.set.call(this,l)}},getOption:function(a){var l=this.$options[a];return l?l.forwardTo?this[l.forwardTo]&&this[l.forwardTo].getOption(a):l&&l.get?l.get.call(this):this["$"+a]:h('misspelled option "'+a+'"')}};function h(a){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,r=function(){function a(){this.$defaultOptions={}}return a.prototype.defineOptions=function(l,c,d){return l.$options||(this.$defaultOptions[c]=l.$options={}),Object.keys(d).forEach(function(m){var v=d[m];typeof v=="string"&&(v={forwardTo:v}),v.name||(v.name=m),l.$options[v.name]=v,"initialValue"in v&&(l["$"+v.name]=v.initialValue)}),u.implement(l,s),this},a.prototype.resetOptions=function(l){Object.keys(l.$options).forEach(function(c){var d=l.$options[c];"value"in d&&l.setOption(c,d.value)})},a.prototype.setDefaultValue=function(l,c,d){if(!l){for(l in this.$defaultOptions)if(this.$defaultOptions[l][c])break;if(!this.$defaultOptions[l][c])return!1}var m=this.$defaultOptions[l]||(this.$defaultOptions[l]={});m[c]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,c,d):m[c].value=d)},a.prototype.setDefaultValues=function(l,c){Object.keys(c).forEach(function(d){this.setDefaultValue(l,d,c[d])},this)},a.prototype.setMessages=function(l){o=l},a.prototype.nls=function(l,c){o&&!o[l]&&h("No message found for '"+l+"' in the provided messages, falling back to default English message.");var d=o&&o[l]||l;return c&&(d=d.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":c[v]})),d},a}();r.prototype.warn=h,r.prototype.reportError=g,u.implement(r.prototype,f),i.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,p){p.exports=`.ace-tm .ace_gutter {
787
- background: #f0f0f0;
788
- color: #333;
789
- }
790
-
791
- .ace-tm .ace_print-margin {
792
- width: 1px;
793
- background: #e8e8e8;
794
- }
795
-
796
- .ace-tm .ace_fold {
797
- background-color: #6B72E6;
798
- }
799
-
800
- .ace-tm {
801
- background-color: #FFFFFF;
802
- color: black;
803
- }
804
-
805
- .ace-tm .ace_cursor {
806
- color: black;
807
- }
808
-
809
- .ace-tm .ace_invisible {
810
- color: rgb(191, 191, 191);
811
- }
812
-
813
- .ace-tm .ace_storage,
814
- .ace-tm .ace_keyword {
815
- color: blue;
816
- }
817
-
818
- .ace-tm .ace_constant {
819
- color: rgb(197, 6, 11);
820
- }
821
-
822
- .ace-tm .ace_constant.ace_buildin {
823
- color: rgb(88, 72, 246);
824
- }
825
-
826
- .ace-tm .ace_constant.ace_language {
827
- color: rgb(88, 92, 246);
828
- }
829
-
830
- .ace-tm .ace_constant.ace_library {
831
- color: rgb(6, 150, 14);
832
- }
833
-
834
- .ace-tm .ace_invalid {
835
- background-color: rgba(255, 0, 0, 0.1);
836
- color: red;
837
- }
838
-
839
- .ace-tm .ace_support.ace_function {
840
- color: rgb(60, 76, 114);
841
- }
842
-
843
- .ace-tm .ace_support.ace_constant {
844
- color: rgb(6, 150, 14);
845
- }
846
-
847
- .ace-tm .ace_support.ace_type,
848
- .ace-tm .ace_support.ace_class {
849
- color: rgb(109, 121, 222);
850
- }
851
-
852
- .ace-tm .ace_keyword.ace_operator {
853
- color: rgb(104, 118, 135);
854
- }
855
-
856
- .ace-tm .ace_string {
857
- color: rgb(3, 106, 7);
858
- }
859
-
860
- .ace-tm .ace_comment {
861
- color: rgb(76, 136, 107);
862
- }
863
-
864
- .ace-tm .ace_comment.ace_doc {
865
- color: rgb(0, 102, 255);
866
- }
867
-
868
- .ace-tm .ace_comment.ace_doc.ace_tag {
869
- color: rgb(128, 159, 191);
870
- }
871
-
872
- .ace-tm .ace_constant.ace_numeric {
873
- color: rgb(0, 0, 205);
874
- }
875
-
876
- .ace-tm .ace_variable {
877
- color: rgb(49, 132, 149);
878
- }
879
-
880
- .ace-tm .ace_xml-pe {
881
- color: rgb(104, 104, 91);
882
- }
883
-
884
- .ace-tm .ace_entity.ace_name.ace_function {
885
- color: #0000A2;
886
- }
887
-
888
-
889
- .ace-tm .ace_heading {
890
- color: rgb(12, 7, 255);
891
- }
892
-
893
- .ace-tm .ace_list {
894
- color:rgb(185, 6, 144);
895
- }
896
-
897
- .ace-tm .ace_meta.ace_tag {
898
- color:rgb(0, 22, 142);
899
- }
900
-
901
- .ace-tm .ace_string.ace_regex {
902
- color: rgb(255, 0, 0)
903
- }
904
-
905
- .ace-tm .ace_marker-layer .ace_selection {
906
- background: rgb(181, 213, 255);
907
- }
908
- .ace-tm.ace_multiselect .ace_selection.ace_start {
909
- box-shadow: 0 0 3px 0px white;
910
- }
911
- .ace-tm .ace_marker-layer .ace_step {
912
- background: rgb(252, 255, 0);
913
- }
914
-
915
- .ace-tm .ace_marker-layer .ace_stack {
916
- background: rgb(164, 229, 101);
917
- }
918
-
919
- .ace-tm .ace_marker-layer .ace_bracket {
920
- margin: -1px 0 0 -1px;
921
- border: 1px solid rgb(192, 192, 192);
922
- }
923
-
924
- .ace-tm .ace_marker-layer .ace_active-line {
925
- background: rgba(0, 0, 0, 0.07);
926
- }
927
-
928
- .ace-tm .ace_gutter-active-line {
929
- background-color : #dcdcdc;
930
- }
931
-
932
- .ace-tm .ace_marker-layer .ace_selected-word {
933
- background: rgb(250, 250, 255);
934
- border: 1px solid rgb(200, 200, 250);
935
- }
936
-
937
- .ace-tm .ace_indent-guide {
938
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
939
- }
940
-
941
- .ace-tm .ace_indent-guide-active {
942
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
943
- }
944
- `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,p){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var u=n("../lib/dom");u.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,p){"no use strict";var u=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;p.exports=i=new s;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(l){if(!h.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return h[l]},i.set=function(l,c){if(h.hasOwnProperty(l))h[l]=c;else if(this.setDefaultValue("",l,c)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&g.useStrictCSP(c)},i.all=function(){return u.copyObject(h)},i.$modes={},i.moduleUrl=function(l,c){if(h.$moduleUrls[l])return h.$moduleUrls[l];var d=l.split("/");c=c||d[d.length-2]||"";var m=c=="snippets"?"/":"-",v=d[d.length-1];if(c=="worker"&&m=="-"){var y=new RegExp("^"+c+"[\\-_]|[\\-_]"+c+"$","g");v=v.replace(y,"")}(!v||v==c)&&d.length>1&&(v=d[d.length-2]);var k=h[c+"Path"];return k==null?k=h.basePath:m=="/"&&(c=m=""),k&&k.slice(-1)!="/"&&(k+="/"),k+c+m+v+this.get("suffix")},i.setModuleUrl=function(l,c){return h.$moduleUrls[l]=c};var o=function(l,c){if(l==="ace/theme/textmate"||l==="./theme/textmate")return c(null,n("./theme/textmate"));if(r)return r(l,c);console.error("loader is not configured")},r;i.setLoader=function(l){r=l},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(l,c){var d,m;Array.isArray(l)&&(m=l[0],l=l[1]);var v=function(y){if(y&&!i.$loading[l])return c&&c(y);if(i.$loading[l]||(i.$loading[l]=[]),i.$loading[l].push(c),!(i.$loading[l].length>1)){var k=function(){o(l,function(C,S){S&&(i.$loaded[l]=S),i._emit("load.module",{name:l,module:S});var $=i.$loading[l];i.$loading[l]=null,$.forEach(function(R){R&&R(S)})})};if(!i.get("packaged"))return k();f.loadScript(i.moduleUrl(l,m),k),a()}};if(i.dynamicModules[l])i.dynamicModules[l]().then(function(y){y.default?v(y.default):v(y)});else{try{d=this.$require(l)}catch{}v(d||i.$loaded[l])}},i.$require=function(l){if(typeof p.require=="function"){var c="require";return p[c](l)}},i.setModuleLoader=function(l,c){i.dynamicModules[l]=c};var a=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$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"),a=function(){})};i.version="1.32.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,p){n("./lib/fixoldbrowsers");var u=n("./config");u.setLoader(function(h,o){n([h],function(r){o(null,r)})});var f=function(){return this||typeof window<"u"&&window}();p.exports=function(h){u.init=g,u.$require=n,h.require=n},g(!0);function g(h){if(!(!f||!f.document)){u.set("packaged",h||n.packaged||p.packaged||f.define&&(void 0).packaged);var o={},r="",a=document.currentScript||document._currentScript,l=a&&a.ownerDocument||document;a&&a.src&&(r=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var c=l.getElementsByTagName("script"),d=0;d<c.length;d++){var m=c[d],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,k=0,C=y.length;k<C;k++){var S=y[k];S.name.indexOf("data-ace-")===0&&(o[s(S.name.replace(/^data-ace-/,""))]=S.value)}var $=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);$&&(r=$[1])}}r&&(o.base=o.base||r,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 R in o)typeof o[R]<"u"&&u.set(R,o[R])}}function s(h){return h.replace(/-(.)/g,function(o,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,p){var u=function(g,s){return g.row-s.row||g.column-s.column},f=function(){function g(s,h,o,r){this.start={row:s,column:h},this.end={row:o,column:r}}return g.prototype.isEqual=function(s){return this.start.row===s.start.row&&this.end.row===s.end.row&&this.start.column===s.start.column&&this.end.column===s.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(s,h){return this.compare(s,h)==0},g.prototype.compareRange=function(s){var h,o=s.end,r=s.start;return h=this.compare(o.row,o.column),h==1?(h=this.compare(r.row,r.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(r.row,r.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},g.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},g.prototype.intersects=function(s){var h=this.compareRange(s);return h==-1||h==0||h==1},g.prototype.isEnd=function(s,h){return this.end.row==s&&this.end.column==h},g.prototype.isStart=function(s,h){return this.start.row==s&&this.start.column==h},g.prototype.setStart=function(s,h){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=h)},g.prototype.setEnd=function(s,h){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=h)},g.prototype.inside=function(s,h){return this.compare(s,h)==0?!(this.isEnd(s,h)||this.isStart(s,h)):!1},g.prototype.insideStart=function(s,h){return this.compare(s,h)==0?!this.isEnd(s,h):!1},g.prototype.insideEnd=function(s,h){return this.compare(s,h)==0?!this.isStart(s,h):!1},g.prototype.compare=function(s,h){return!this.isMultiLine()&&s===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:s<this.start.row?-1:s>this.end.row?1:this.start.row===s?h>=this.start.column?0:-1:this.end.row===s?h<=this.end.column?0:1:0},g.prototype.compareStart=function(s,h){return this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.compareEnd=function(s,h){return this.end.row==s&&this.end.column==h?1:this.compare(s,h)},g.prototype.compareInside=function(s,h){return this.end.row==s&&this.end.column==h?1:this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.clipRows=function(s,h){if(this.end.row>h)var o={row:h+1,column:0};else if(this.end.row<s)var o={row:s,column:0};if(this.start.row>h)var r={row:h+1,column:0};else if(this.start.row<s)var r={row:s,column:0};return g.fromPoints(r||this.start,o||this.end)},g.prototype.extend=function(s,h){var o=this.compare(s,h);if(o==0)return this;if(o==-1)var r={row:s,column:h};else var a={row:s,column:h};return g.fromPoints(r||this.start,a||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(s){var h=s.documentToScreenPosition(this.start),o=s.documentToScreenPosition(this.end);return new g(h.row,h.column,o.row,o.column)},g.prototype.moveBy=function(s,h){this.start.row+=s,this.start.column+=h,this.end.row+=s,this.end.column+=h},g}();f.fromPoints=function(g,s){return new f(g.row,g.column,s.row,s.column)},f.comparePoints=u,f.comparePoints=function(g,s){return g.row-s.row||g.column-s.column},i.Range=f}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,p){/*! @license
945
- ==========================================================================
946
- SproutCore -- JavaScript Application Framework
947
- copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
948
-
949
- Permission is hereby granted, free of charge, to any person obtaining a
950
- copy of this software and associated documentation files (the "Software"),
951
- to deal in the Software without restriction, including without limitation
952
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
953
- and/or sell copies of the Software, and to permit persons to whom the
954
- Software is furnished to do so, subject to the following conditions:
955
-
956
- The above copyright notice and this permission notice shall be included in
957
- all copies or substantial portions of the Software.
958
-
959
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
960
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
961
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
962
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
963
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
964
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
965
- DEALINGS IN THE SOFTWARE.
966
-
967
- SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
968
-
969
- For more information about SproutCore, visit http://www.sproutcore.com
970
-
971
-
972
- ==========================================================================
973
- @license */var u=n("./oop"),f=function(){var g={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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};g.PRINTABLE_KEYS[173]="-";var s,h;for(h in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);for(h in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);return u.mixin(g,g.MODIFIER_KEYS),u.mixin(g,g.PRINTABLE_KEYS),u.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var o=["cmd","ctrl","alt","shift"],r=Math.pow(2,o.length);r--;)g.KEY_MODS[r]=o.filter(function(a){return r&g.KEY_MODS[a]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(i,f),i.default=i,i.keyCodeToString=function(g){var s=f[g];return typeof s!="string"&&(s=String.fromCharCode(g)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,p){var u=n("./keys"),f=n("./useragent"),g=null,s=0,h;function o(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch{}}function r(){return h==null&&o(),h}function a(k,C,S){this.elem=k,this.type=C,this.callback=S}a.prototype.destroy=function(){c(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=i.addListener=function(k,C,S,$){k.addEventListener(C,S,r()),$&&$.$toDestroy.push(new a(k,C,S))},c=i.removeListener=function(k,C,S){k.removeEventListener(C,S,r())};i.stopEvent=function(k){return i.stopPropagation(k),i.preventDefault(k),!1},i.stopPropagation=function(k){k.stopPropagation&&k.stopPropagation()},i.preventDefault=function(k){k.preventDefault&&k.preventDefault()},i.getButton=function(k){return k.type=="dblclick"?0:k.type=="contextmenu"||f.isMac&&k.ctrlKey&&!k.altKey&&!k.shiftKey?2:k.button},i.capture=function(k,C,S){var $=k&&k.ownerDocument||document;function R(L){C&&C(L),S&&S(L),c($,"mousemove",C),c($,"mouseup",R),c($,"dragstart",R)}return l($,"mousemove",C),l($,"mouseup",R),l($,"dragstart",R),R},i.addMouseWheelListener=function(k,C,S){l(k,"wheel",function($){var R=.15,L=$.deltaX||0,x=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=L*R,$.wheelY=x*R;break;case $.DOM_DELTA_LINE:var M=15;$.wheelX=L*M,$.wheelY=x*M;break;case $.DOM_DELTA_PAGE:var b=150;$.wheelX=L*b,$.wheelY=x*b;break}C($)},S)},i.addMultiMouseDownListener=function(k,C,S,$,R){var L=0,x,M,b,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(w){if(i.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,f.isIE){var E=Math.abs(w.clientX-x)>5||Math.abs(w.clientY-M)>5;(!b||E)&&(L=1),b&&clearTimeout(b),b=setTimeout(function(){b=null},C[L-1]||600),L==1&&(x=w.clientX,M=w.clientY)}if(w._clicks=L,S[$]("mousedown",w),L>4)L=0;else if(L>1)return S[$](A[L],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){l(w,"mousedown",_,R)})};var d=function(k){return 0|(k.ctrlKey?1:0)|(k.altKey?2:0)|(k.shiftKey?4:0)|(k.metaKey?8:0)};i.getModifierString=function(k){return u.KEY_MODS[d(k)]};function m(k,C,S){var $=d(C);if(!f.isMac&&g){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(S===18||S===17){var R="location"in C?C.location:C.keyLocation;if(S===17&&R===1)g[S]==1&&(s=C.timeStamp);else if(S===18&&$===3&&R===2){var L=C.timeStamp-s;L<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!$&&S===13){var R="location"in C?C.location:C.keyLocation;if(R===3&&(k(C,$,-S),C.defaultPrevented))return}if(f.isChromeOS&&$&8){if(k(C,$,S),C.defaultPrevented)return;$&=-9}return!$&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:k(C,$,S)}i.addCommandKeyListener=function(k,C,S){if(f.isOldGecko||f.isOpera&&!("KeyboardEvent"in window)){var $=null;l(k,"keydown",function(L){$=L.keyCode},S),l(k,"keypress",function(L){return m(C,L,$)},S)}else{var R=null;l(k,"keydown",function(L){g[L.keyCode]=(g[L.keyCode]||0)+1;var x=m(C,L,L.keyCode);return R=L.defaultPrevented,x},S),l(k,"keypress",function(L){R&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(i.stopEvent(L),R=null)},S),l(k,"keyup",function(L){g[L.keyCode]=null},S),g||(v(),l(window,"focus",v))}};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;i.nextTick=function(k,C){C=C||window;var S="zero-timeout-message-"+y++,$=function(R){R.data==S&&(i.stopPropagation(R),c(C,"message",$),k())};l(C,"message",$),C.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function(k,C){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):k()},C)},i.$idleBlockId=null,i.blockIdle=function(k){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},k||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(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,p){var u;p.exports={lineMode:!1,pasteCancelled:function(){return u&&u>Date.now()-50?!0:u=!1},cancel:function(){u=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,p){var u=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),h=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,a=g.isIE,l=g.isChrome>63,c=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,k=g.isMobile,C=function(S,$){var R=s.createElement("textarea");R.className="ace_text-input",R.setAttribute("wrap","off"),R.setAttribute("autocorrect","off"),R.setAttribute("autocapitalize","off"),R.setAttribute("spellcheck",!1),R.style.opacity="0",S.insertBefore(R,S.firstChild);var L=!1,x=!1,M=!1,b=!1,A="";k||(R.style.fontSize="1px");var _=!1,w=!1,E="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===R}catch{}this.setNumberOfExtraLines=function(J){if(F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,J<0){W=0;return}W=J},this.setAriaOptions=function(J){if(J.activeDescendant?(R.setAttribute("aria-haspopup","true"),R.setAttribute("aria-autocomplete",J.inline?"both":"list"),R.setAttribute("aria-activedescendant",J.activeDescendant)):(R.setAttribute("aria-haspopup","false"),R.setAttribute("aria-autocomplete","both"),R.removeAttribute("aria-activedescendant")),J.role&&R.setAttribute("role",J.role),J.setLabel&&(R.setAttribute("aria-roledescription",f("editor")),$.session)){var ae=$.session.selection.cursor.row;R.setAttribute("aria-label",f("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(J){w||($.onBlur(J),j=!1)},$),u.addListener(R,"focus",function(J){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(J),g.isEdge?setTimeout(U):U()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),A||l||this.$focusScroll=="browser")return R.focus({preventScroll:!0});var J=R.style.top;R.style.position="fixed",R.style.top="0px";try{var ae=R.getBoundingClientRect().top!=0}catch{return}var ue=[];if(ae)for(var be=R.parentElement;be&&be.nodeType==1;)ue.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;R.focus({preventScroll:!0}),ae&&ue.forEach(function(Re){Re.removeAttribute("ace_nocontext")}),setTimeout(function(){R.style.position="",R.style.top=="0px"&&(R.style.top=J)},0)},this.blur=function(){R.blur()},this.isFocused=function(){return j},$.on("beforeEndOperation",function(){var J=$.curOp,ae=J&&J.command&&J.command.name;if(ae!="insertstring"){var ue=ae&&(J.docChanged||J.selectionChanged);M&&ue&&(E=R.value="",le()),U()}});var H=function(J,ae){for(var ue=ae,be=1;be<=J-F&&be<2*W+1;be++)ue+=$.session.getLine(J-be).length+1;return ue},U=v?function(J){if(!(!j||L&&!J||b)){J||(J="");var ae=`
974
- ab`+J+`cde fg
975
- `;ae!=R.value&&(R.value=E=ae);var ue=4,be=4+(J.length||($.selection.isEmpty()?0:1));(T!=ue||O!=be)&&R.setSelectionRange(ue,be),T=ue,O=be}}:function(){if(!(M||b)&&!(!j&&!X)){M=!0;var J=0,ae=0,ue="";if($.session){var be=$.selection,Re=be.getRange(),Ne=be.cursor.row;Ne===D+1?(F=D+1,D=F+2*W):Ne===F-1?(D=F-1,F=D-2*W):(Ne<F-1||Ne>D+1)&&(F=Ne>W?Ne-W:0,D=Ne>W?Ne+W:2*W);for(var Ke=[],De=F;De<=D;De++)Ke.push($.session.getLine(De));if(ue=Ke.join(`
976
- `),J=H(Re.start.row,Re.start.column),ae=H(Re.end.row,Re.end.column),Re.start.row<F){var He=$.session.getLine(F-1);J=Re.start.row<F-1?0:J,ae+=He.length+1,ue=He+`
977
- `+ue}else if(Re.end.row>D){var xe=$.session.getLine(D+1);ae=Re.end.row>D+1?xe.length:Re.end.column,ae+=ue.length+1,ue=ue+`
978
- `+xe}else k&&Ne>0&&(ue=`
979
- `+ue,ae+=1,J+=1);ue.length>c&&(J<c&&ae<c?ue=ue.slice(0,c):(ue=`
980
- `,J==ae?J=ae=0:(J=0,ae=1)));var Ue=ue+`
981
-
982
- `;Ue!=E&&(R.value=E=Ue,T=O=Ue.length)}if(X&&(T=R.selectionStart,O=R.selectionEnd),O!=ae||T!=J||R.selectionEnd!=O)try{R.setSelectionRange(J,ae),T=J,O=ae}catch{}M=!1}};this.resetSelection=U,j&&$.onFocus();var K=function(J){return J.selectionStart===0&&J.selectionEnd>=E.length&&J.value===E&&E&&J.selectionEnd!==O},Z=function(J){M||(L?L=!1:K(R)?($.selectAll(),U()):k&&R.selectionStart!=T&&U())},z=null;this.setInputHandler=function(J){z=J},this.getInputHandler=function(){return z};var X=!1,Y=function(J,ae){if(X&&(X=!1),x)return U(),J&&$.onPaste(J),x=!1,"";for(var ue=R.selectionStart,be=R.selectionEnd,Re=T,Ne=E.length-O,Ke=J,De=J.length-ue,He=J.length-be,xe=0;Re>0&&E[xe]==J[xe];)xe++,Re--;for(Ke=Ke.slice(xe),xe=1;Ne>0&&E.length-xe>T-1&&E[E.length-xe]==J[J.length-xe];)xe++,Ne--;De-=xe-1,He-=xe-1;var Ue=Ke.length-xe+1;if(Ue<0&&(Re=-Ue,Ue=0),Ke=Ke.slice(0,Ue),!ae&&!Ke&&!De&&!Re&&!Ne&&!He)return"";b=!0;var fn=!1;return g.isAndroid&&Ke==". "&&(Ke=" ",fn=!0),Ke&&!Re&&!Ne&&!De&&!He||_?$.onTextInput(Ke):$.onTextInput(Ke,{extendLeft:Re,extendRight:Ne,restoreStart:De,restoreEnd:He}),b=!1,E=J,T=ue,O=be,I=He,fn?`
983
- `:Ke},V=function(J){if(M)return ie();if(J&&J.inputType){if(J.inputType=="historyUndo")return $.execCommand("undo");if(J.inputType=="historyRedo")return $.execCommand("redo")}var ae=R.value,ue=Y(ae,!0);(ae.length>c+100||y.test(ue)||k&&T<1&&T==O)&&U()},ee=function(J,ae,ue){var be=J.clipboardData||window.clipboardData;if(!(!be||r)){var Re=a||ue?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!ue)return ee(Ne,ae,!0)}}},P=function(J,ae){var ue=$.getCopyText();if(!ue)return u.preventDefault(J);ee(J,ue)?(v&&(U(ue),L=ue,setTimeout(function(){L=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(J)):(L=!0,R.value=ue,R.select(),setTimeout(function(){L=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(J){P(J,!0)},G=function(J){P(J,!1)},Q=function(J){var ae=ee(J);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,J),g.isIE&&setTimeout(U),u.preventDefault(J)):(R.value="",x=!0))};u.addCommandKeyListener(R,$.onCommandKey.bind($),$),u.addListener(R,"select",Z,$),u.addListener(R,"input",V,$),u.addListener(R,"cut",B,$),u.addListener(R,"copy",G,$),u.addListener(R,"paste",Q,$),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&u.addListener(S,"keydown",function(J){if(!(g.isMac&&!J.metaKey||!J.ctrlKey))switch(J.keyCode){case 67:G(J);break;case 86:Q(J);break;case 88:B(J);break}},$);var te=function(J){if(!(M||!$.onCompositionStart||$.$readOnly)&&(M={},!_)){J.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),$._signal("compositionStart"),$.on("mousedown",se);var ae=$.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=T,$.onCompositionStart(M),M.useTextareaForIME?(E=R.value="",T=0,O=0):(R.msGetInputContext&&(M.context=R.msGetInputContext()),R.getInputContext&&(M.context=R.getInputContext()))}},ie=function(){if(!(!M||!$.onCompositionUpdate||$.$readOnly)){if(_)return se();if(M.useTextareaForIME)$.onCompositionUpdate(R.value);else{var J=R.value;Y(J),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(J){!$.onCompositionEnd||$.$readOnly||(M=!1,$.onCompositionEnd(),$.off("mousedown",se),J&&V())};function se(){w=!0,R.blur(),R.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(J){J.keyCode==27&&R.value.length<R.selectionStart&&(M||(E=R.value),T=O=-1,U()),ce()}u.addListener(R,"compositionstart",te,$),u.addListener(R,"compositionupdate",ie,$),u.addListener(R,"keyup",re,$),u.addListener(R,"keydown",ce,$),u.addListener(R,"compositionend",le,$),this.getElement=function(){return R},this.setCommandMode=function(J){_=J,R.readOnly=!1},this.setReadOnly=function(J){_||(R.readOnly=J)},this.setCopyWithEmptySelection=function(J){},this.onContextMenu=function(J){X=!0,U(),$._emit("nativecontextmenu",{target:$,domEvent:J}),this.moveToMouse(J,!0)},this.moveToMouse=function(J,ae){A||(A=R.style.cssText),R.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*$.renderer.characterWidth*.5+"px;";var ue=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=ue.top+(parseInt(be.borderTopWidth)||0),Ne=ue.left+(parseInt(ue.borderLeftWidth)||0),Ke=ue.bottom-Re-R.clientHeight-2,De=function(He){s.translate(R,He.clientX-Ne-2,Math.min(He.clientY-Re-2,Ke))};De(J),J.type=="mousedown"&&($.renderer.$isMousePressed=!0,clearTimeout(ve),g.isWin&&u.capture($.container,De,de))},this.onContextMenuClose=de;var ve;function de(){clearTimeout(ve),ve=setTimeout(function(){A&&(R.style.cssText=A,A=""),$.renderer.$isMousePressed=!1,$.renderer.$keepTextAreaAtCursor&&$.renderer.$moveTextAreaToCursor()},0)}var me=function(J){$.textInput.onContextMenu(J),de()};u.addListener(R,"mouseup",me,$),u.addListener(R,"mousedown",function(J){J.preventDefault(),de()},$),u.addListener($.renderer.scroller,"contextmenu",me,$),u.addListener(R,"contextmenu",me,$),v&&_e(S,$,R);function _e(J,ae,ue){var be=null,Re=!1;ue.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),ue.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===ue&&!(Re||M||ae.$mouseHandler.isMousePressed)&&!L){var De=ue.selectionStart,He=ue.selectionEnd,xe=null,Ue=0;if(De==0?xe=d.up:De==1?xe=d.home:He>O&&E[He]==`
984
- `?xe=d.end:De<T&&E[De-1]==" "?(xe=d.left,Ue=m.option):De<T||De==T&&O!=T&&De==He?xe=d.left:He>O&&E.slice(0,He).split(`
985
- `).length>2?xe=d.down:He>O&&E[He-1]==" "?(xe=d.right,Ue=m.option):(He>O||He==O&&O!=T&&De==He)&&(xe=d.right),De!==He&&(Ue|=m.shift),xe){var fn=ae.onCommandKey({},Ue,xe);if(!fn&&ae.commands){xe=d.keyCodeToString(xe);var Tl=ae.commands.findKeyCommand(Ue,xe);Tl&&ae.execCommand(Tl)}T=De,O=He,U("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}};i.TextInput=C,i.$setUserAgentForTests=function(S,$){k=S,v=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,p){var u=n("../lib/useragent"),f=0,g=550,s=function(){function r(a){a.$clickSelection=null;var l=a.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var c=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];c.forEach(function(d){a[d]=this[d]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return r.prototype.onMouseDown=function(a){var l=a.inSelection(),c=a.getDocumentPosition();this.mousedownEvent=a;var d=this.editor,m=a.getButton();if(m!==0){var v=d.getSelectionRange(),y=v.isEmpty();(y||m==1)&&d.selection.moveToPosition(c),m==2&&(d.textInput.onContextMenu(a.domEvent),u.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(c,a.domEvent._clicks>1),a.preventDefault()},r.prototype.startSelect=function(a,l){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(a):l||c.selection.moveToPosition(a),l||this.select(),c.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var a,l=this.editor,c=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(c);if(d==-1)a=this.$clickSelection.end;else if(d==1)a=this.$clickSelection.start;else{var m=o(this.$clickSelection,c);c=m.cursor,a=m.anchor}l.selection.setSelectionAnchor(a.row,a.column)}l.selection.selectToPosition(c),l.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(a){var l,c=this.editor,d=c.renderer.screenToTextCoordinates(this.x,this.y),m=c.selection[a](d.row,d.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)l=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&v>=0)l=this.$clickSelection.start,(m.start.row!=d.row||m.start.column!=d.column)&&(d=m.end);else if(v==-1&&y==1)d=m.end,l=m.start;else{var k=o(this.$clickSelection,d);d=k.cursor,l=k.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(d),c.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var a=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>f||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(a){var l=a.getDocumentPosition(),c=this.editor,d=c.session,m=d.getBracketRange(l);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=c.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(a){var l=a.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var d=c.getSelectionRange();d.isMultiLine()&&d.contains(l.row,l.column)?(this.$clickSelection=c.selection.getLineRange(d.start.row),this.$clickSelection.end=c.selection.getLineRange(d.end.row).end):this.$clickSelection=c.selection.getLineRange(l.row),this.select()},r.prototype.onQuadClick=function(a){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,d=a.domEvent.timeStamp,m=d-c.t,v=m?a.wheelX/m:c.vx,y=m?a.wheelY/m:c.vy;m<g&&(v=(v+c.vx)/2,y=(y+c.vy)/2);var k=Math.abs(v/y),C=!1;if(k>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(C=!0),k<=1&&l.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(C=!0),C)c.allowed=d;else if(d-c.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(c.vx)&&Math.abs(y)<=1.5*Math.abs(c.vy);S?(C=!0,c.allowed=d):c.allowed=0}if(c.t=d,c.vx=v,c.vy=y,C)return l.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},r}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,i.DefaultHandlers=s;function h(r,a,l,c){return Math.sqrt(Math.pow(l-r,2)+Math.pow(c-a,2))}function o(r,a){if(r.start.row==r.end.row)var l=2*a.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var l=a.column-4;else var l=2*a.row-r.start.row-r.end.row;return l<0?{cursor:r.start,anchor:r.end}:{cursor:r.end,anchor:r.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range"],function(n,i,p){var u=this&&this.__extends||function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(y[C]=k[C])},d(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");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom"),s=n("./lib/event"),h=n("./range").Range,o="ace_tooltip",r=function(){function d(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return d.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},d.prototype.getElement=function(){return this.$element||this.$init()},d.prototype.setText=function(m){this.getElement().textContent=m},d.prototype.setHtml=function(m){this.getElement().innerHTML=m},d.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},d.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},d.prototype.setTheme=function(m){this.$element.className=o+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},d.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)},d.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},d.prototype.getHeight=function(){return this.getElement().offsetHeight},d.prototype.getWidth=function(){return this.getElement().offsetWidth},d.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},d}(),a=function(){function d(){this.popups=[]}return d.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},d.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},d.prototype.updatePopups=function(){var m,v,y,k;this.popups.sort(function(A,_){return _.priority-A.priority});var C=[];try{for(var S=f(this.popups),$=S.next();!$.done;$=S.next()){var R=$.value,L=!0;try{for(var x=(y=void 0,f(C)),M=x.next();!M.done;M=x.next()){var b=M.value;if(this.doPopupsOverlap(b,R)){L=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=x.return)&&k.call(x)}finally{if(y)throw y.error}}L?C.push(R):R.hide()}}catch(A){m={error:A}}finally{try{$&&!$.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),k=v.getElement().getBoundingClientRect();return y.left<k.right&&y.right>k.left&&y.top<k.bottom&&y.bottom>k.top},d}(),l=new a;i.popupManager=l,i.Tooltip=r;var c=function(d){u(m,d);function m(v){v===void 0&&(v=document.body);var y=d.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 k=y.getElement();return k.style.whiteSpace="pre-wrap",k.style.pointerEvents="auto",k.addEventListener("mouseout",y.onMouseOut),k.tabIndex=-1,k.addEventListener("blur",(function(){k.contains(document.activeElement)||this.hide()}).bind(y)),k.addEventListener("wheel",s.stopPropagation),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 k=y.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||k||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||k||(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,k=v.getDocumentPosition(),C=y.session.getLine(k.row);if(k.column==C.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),$=y.session.documentToScreenPosition(k.row,k.column);if($.column!=S.column||$.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,C){var S=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var $=v.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme($.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=h.fromPoints(y.start,y.end);var R=$.textToScreenCoordinates(y.start.row,y.start.column),L=$.scroller.getBoundingClientRect();R.pageX<L.left&&(R.pageX=L.left);var x=this.getElement();x.innerHTML="",x.appendChild(k),x.style.maxHeight="",x.style.display="block";var M=x.clientHeight,b=x.clientWidth,A=window.innerHeight-R.pageY-$.lineHeight,_=!0;R.pageY-M<0&&R.pageY<A&&(_=!1),x.style.maxHeight=(_?R.pageY:A)-S+"px",x.style.top=_?"":R.pageY+$.lineHeight+"px",x.style.bottom=_?window.innerHeight-R.pageY+"px":"",x.style.left=Math.min(R.pageX,window.innerWidth-b-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,l.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}(r);i.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,d){return l=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])},l(c,d)};return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(c,d);function m(){this.constructor=c}c.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=this&&this.__values||function(l){var c=typeof Symbol=="function"&&Symbol.iterator,d=c&&l[c],m=0;if(d)return d.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&m>=l.length&&(l=void 0),{value:l&&l[m++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),h=n("../tooltip").Tooltip,o=n("../config").nls;function r(l){var c=l.editor,d=c.renderer.$gutterLayer,m=new a(c);l.editor.setDefaultHandler("guttermousedown",function($){if(!(!c.isFocused()||$.getButton()!=0)){var R=d.getRegion($);if(R!="foldWidgets"){var L=$.getDocumentPosition().row,x=c.session.selection;if($.getShiftKey())x.selectTo(L,0);else{if($.domEvent.detail==2)return c.selectAll(),$.preventDefault();l.$clickSelection=c.selection.getLineRange(L)}return l.setState("selectByLines"),l.captureMouse($),$.preventDefault()}}});var v,y;function k(){var $=y.getDocumentPosition().row,R=c.session.getLength();if($==R){var L=c.renderer.pixelToScreenCoordinates(0,y.y).row,x=y.$pos;if(L>c.session.documentToScreenRow(x.row,x.column))return C()}if(m.showTooltip($),!!m.isOpen)if(c.on("mousewheel",C),l.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),b=d.$lines.get(M);if(b){var A=b.element.querySelector(".ace_gutter_annotation"),_=A.getBoundingClientRect(),w=m.getElement().style;w.left=_.right+"px",w.top=_.bottom+"px"}else S(y)}}function C(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),c.off("mousewheel",C))}function S($){m.setPosition($.x,$.y)}l.editor.setDefaultHandler("guttermousemove",function($){var R=$.domEvent.target||$.domEvent.srcElement;if(g.hasCssClass(R,"ace_fold-widget"))return C();m.isOpen&&l.$tooltipFollowsMouse&&S($),y=$,!v&&(v=setTimeout(function(){v=null,y&&!l.isMousePressed?k():C()},50))}),s.addListener(c.renderer.$gutter,"mouseout",function($){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},c),c.on("changeSession",C),c.on("input",C)}i.GutterHandler=r;var a=function(l){u(c,l);function c(d){var m=l.call(this,d.container)||this;return m.editor=d,m}return c.prototype.setPosition=function(d,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,k=this.getWidth(),C=this.getHeight();d+=15,m+=15,d+k>v&&(d-=d+k-v),m+C>y&&(m-=20+C),h.prototype.setPosition.call(this,d,m)},Object.defineProperty(c,"annotationLabels",{get:function(){return{error:{singular:o("error"),plural:o("errors")},warning:{singular:o("warning"),plural:o("warnings")},info:{singular:o("information message"),plural:o("information messages")}}},enumerable:!1,configurable:!0}),c.prototype.showTooltip=function(d){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[d],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var k=m.session.getFoldLine(d);if(k&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,$=d+1;$<=k.end.row;$++)if(m.$annotations[$])for(var R=0;R<m.$annotations[$].text.length;R++){var L=m.$annotations[$].type[R];if(C[L].push(m.$annotations[$].text[R]),L==="error"){S="error_fold";continue}if(L==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var x="".concat(c.annotationsToSummaryString(C)," in folded code.");y.text.push(x),y.type.push(S)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},b=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<y.text.length;$++){var A="<span class='ace_".concat(y.type[$]," ").concat(b,"' aria-label='").concat(c.annotationLabels[y.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[$]);M[y.type[$].replace("_fold","")].push(A)}var _=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml(_),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},c.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},c.annotationsToSummaryString=function(d){var m,v,y=[],k=["error","warning","info"];try{for(var C=f(k),S=C.next();!S.done;S=C.next()){var $=S.value;if(d[$].length){var R=d[$].length===1?c.annotationLabels[$].singular:c.annotationLabels[$].plural;y.push("".concat(d[$].length," ").concat(R))}}}catch(L){m={error:L}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return y.join(", ")},c}(h);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),f=n("../lib/useragent"),g=function(){function s(h,o){this.domEvent=h,this.editor=o,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){u.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){u.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(h,0),r=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-r},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var h=this.editor,o=h.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=o.contains(r.row,r.column)}return this.$inSelection},s.prototype.getButton=function(){return u.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),s=200,h=200,o=5;function r(l){var c=l.editor,d=u.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(H){l[H]=this[H]},this),c.on("mousedown",this.onMouseDown.bind(l));var v=c.container,y,k,C,S,$,R,L=0,x,M,b,A,_;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(H)},0),H.preventDefault()}$=c.getSelectionRange();var K=H.dataTransfer;K.effectAllowed=c.getReadOnly()?"copy":"copyMove",c.container.appendChild(d),K.setDragImage&&K.setDragImage(d,0,0),setTimeout(function(){c.container.removeChild(d)}),K.clearData(),K.setData("Text",c.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!c.getReadOnly()){var U=H.dataTransfer.dropEffect;!x&&U=="move"&&c.session.remove(c.getSelectionRange()),c.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(c.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||O(),L++,H.dataTransfer.dropEffect=x=j(H),f.preventDefault(H)},this.onDragOver=function(H){if(!(c.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||(O(),L++),F!==null&&(F=null),H.dataTransfer.dropEffect=x=j(H),f.preventDefault(H)},this.onDragLeave=function(H){if(L--,L<=0&&y)return I(),x=null,f.preventDefault(H)},this.onDrop=function(H){if(R){var U=H.dataTransfer;if(M)switch(x){case"move":$.contains(R.row,R.column)?$={start:R,end:R}:$=c.moveText($,R);break;case"copy":$=c.moveText($,R,!0);break}else{var K=U.getData("Text");$={start:R,end:c.session.insert(R,K)},c.focus(),x=null}return I(),f.preventDefault(H)}},f.addListener(v,"dragstart",this.onDragStart.bind(l),c),f.addListener(v,"dragend",this.onDragEnd.bind(l),c),f.addListener(v,"dragenter",this.onDragEnter.bind(l),c),f.addListener(v,"dragover",this.onDragOver.bind(l),c),f.addListener(v,"dragleave",this.onDragLeave.bind(l),c),f.addListener(v,"drop",this.onDrop.bind(l),c);function w(H,U){var K=Date.now(),Z=!U||H.row!=U.row,z=!U||H.column!=U.column;if(!A||Z||z)c.moveCursorToPosition(H),A=K,_={x:k,y:C};else{var X=a(_.x,_.y,k,C);X>o?A=null:K-A>=h&&(c.renderer.scrollCursorIntoView(),A=null)}}function E(H,U){var K=Date.now(),Z=c.renderer.layerConfig.lineHeight,z=c.renderer.layerConfig.characterWidth,X=c.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-X.left,right:X.right-k},y:{top:C-X.top,bottom:X.bottom-C}},V=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),P={row:H.row,column:H.column};V/z<=2&&(P.column+=Y.x.left<Y.x.right?-3:2),ee/Z<=1&&(P.row+=Y.y.top<Y.y.bottom?-1:1);var B=H.row!=P.row,G=H.column!=P.column,Q=!U||H.row!=U.row;B||G&&!Q?b?K-b>=s&&c.renderer.scrollCursorIntoView(P):b=K:b=null}function T(){var H=R;R=c.renderer.screenToTextCoordinates(k,C),w(R,H),E(R,H)}function O(){$=c.selection.toOrientedRange(),y=c.session.addMarker($,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,f.addListener(document,"mousemove",D)}function I(){clearInterval(S),c.session.removeMarker(y),y=null,c.selection.fromOrientedRange($),c.isFocused()&&!M&&c.$resetCursorStyle(),$=null,R=null,L=0,b=null,A=null,f.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&y&&I()},20))}function W(H){var U=H.types;return!U||Array.prototype.some.call(U,function(K){return K=="text/plain"||K=="Text"})}function j(H){var U=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],Z=g.isMac?H.altKey:H.ctrlKey,z="uninitialized";try{z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Z&&U.indexOf(z)>=0?X="copy":K.indexOf(z)>=0?X="move":U.indexOf(z)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,c=l.container;c.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var d=g.isWin?"default":"move";l.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(l){var c=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&c.dragDrop()}if(this.state==="dragWait"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var c=this.editor,d=l.inSelection(),m=l.getButton(),v=l.domEvent.detail||1;if(v===1&&m===0&&d){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),c.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var k=c.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(r.prototype);function a(l,c,d,m){return Math.sqrt(Math.pow(d-l,2)+Math.pow(m-c,2))}i.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,p){var u=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,h){var o="scroll",r,a,l,c,d,m,v=0,y,k=0,C=0,S=0,$,R;function L(){var w=window.navigator&&window.navigator.clipboard,E=!1,T=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(E?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),R.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,T();F=="paste"?w.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),R.firstChild.style.display="none",E=!1,F!="openCommandPalette"&&h.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),h.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function x(){R||L();var w=h.selection.cursor,E=h.renderer.textToScreenCoordinates(w.row,w.column),T=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();R.style.top=E.pageY-I.top-3+"px",E.pageX-I.left<I.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=T+O-I.left+"px"),R.style.display="",R.firstChild.style.display="none",h.on("input",M)}function M(w){R&&(R.style.display="none"),h.off("input",M)}function b(){d=null,clearTimeout(d);var w=h.selection.getRange(),E=w.contains(y.row,y.column);(w.isEmpty()||!E)&&(h.selection.moveToPosition(y),h.selection.selectWord()),o="wait",x()}function A(){d=null,clearTimeout(d),h.selection.moveToPosition(y);var w=k>=2?h.selection.getLineRange(y.row):h.session.getBracketRange(y);w&&!w.isEmpty()?h.selection.setRange(w):h.selection.selectWord(),o="wait"}f.addListener(s,"contextmenu",function(w){if($){var E=h.textInput.getElement();E.focus()}},h),f.addListener(s,"touchstart",function(w){var E=w.touches;if(d||E.length>1){clearTimeout(d),d=null,l=-1,o="zoom";return}$=h.$mouseHandler.isMousePressed=!0;var T=h.renderer.layerConfig.lineHeight,O=h.renderer.layerConfig.lineHeight,I=w.timeStamp;c=I;var F=E[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(a-W)>T&&(l=-1),r=w.clientX=D,a=w.clientY=W,C=S=0;var j=new u(w,h);if(y=j.getDocumentPosition(),I-l<500&&E.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var H=h.selection.cursor,U=h.selection.isEmpty()?H:h.selection.anchor,K=h.renderer.$cursorLayer.getPixelPosition(H,!0),Z=h.renderer.$cursorLayer.getPixelPosition(U,!0),z=h.renderer.scroller.getBoundingClientRect(),X=h.renderer.layerConfig.offset,Y=h.renderer.scrollLeft,V=function(B,G){return B=B/O,G=G/T-.75,B*B+G*G};if(w.clientX<z.left){o="zoom";return}var ee=V(w.clientX-z.left-K.left+Y,w.clientY-z.top-K.top+X),P=V(w.clientX-z.left-Z.left+Y,w.clientY-z.top-Z.top+X);ee<3.5&&P<3.5&&(o=ee>P?"cursor":"anchor"),P<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",d=setTimeout(b,450)}l=I},h),f.addListener(s,"touchend",function(w){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(h.selection.moveToPosition(y),v=0,x()):o=="scroll"?(_(),M()):x(),clearTimeout(d),d=null},h),f.addListener(s,"touchmove",function(w){d&&(clearTimeout(d),d=null);var E=w.touches;if(!(E.length>1||o=="zoom")){var T=E[0],O=r-T.clientX,I=a-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=T.clientX,a=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,D=F-c;if(c=F,o=="scroll"){var W=new u(w,h);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),D!=0&&(C=O/D,S=I/D),h._emit("mousewheel",W),W.propagationStopped||(C=S=0)}else{var j=new u(w,h),H=j.getDocumentPosition();o=="cursor"?h.selection.moveCursorToPosition(H):o=="anchor"&&h.selection.setSelectionAnchor(H.row,H.column),h.renderer.scrollCursorIntoView(H),w.preventDefault()}}},h);function _(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(C)<.01&&(C=0),Math.abs(S)<.01&&(S=0),v<20&&(C=.9*C),v<20&&(S=.9*S);var w=h.session.getScrollTop();h.renderer.scrollBy(10*C,10*S),w==h.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,p){var u=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,h=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,a=n("../config"),l=function(){function c(d){var m=this;this.editor=d,new g(this),new s(this),new o(this);var v=function(C){var S=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());S&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();u.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),u.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),u.addMultiMouseDownListener([y,d.renderer.scrollBarV&&d.renderer.scrollBarV.inner,d.renderer.scrollBarH&&d.renderer.scrollBarH.inner,d.textInput&&d.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",d),u.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),r(d.container,d);var k=d.renderer.$gutter;u.addListener(k,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),u.addListener(k,"click",this.onMouseEvent.bind(this,"gutterclick"),d),u.addListener(k,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),u.addListener(k,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),u.addListener(y,"mousedown",v,d),u.addListener(k,"mousedown",v,d),f.isIE&&d.renderer.scrollBarV&&(u.addListener(d.renderer.scrollBarV.element,"mousedown",v,d),u.addListener(d.renderer.scrollBarH.element,"mousedown",v,d)),d.on("mousemove",function(C){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=d.renderer.screenToTextCoordinates(C.x,C.y),$=d.session.selection.getRange(),R=d.renderer;!$.isEmpty()&&$.insideStart(S.row,S.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},d)}return c.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new h(m,this.editor))},c.prototype.onMouseMove=function(d,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(d,new h(m,this.editor))},c.prototype.onMouseWheel=function(d,m){var v=new h(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(d,v)},c.prototype.setState=function(d){this.state=d},c.prototype.captureMouse=function(d,m){this.x=d.x,this.y=d.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var k=this,C=function(x){if(x){if(f.isWebKit&&!x.which&&k.releaseMouse)return k.releaseMouse();k.x=x.clientX,k.y=x.clientY,m&&m(x),k.mouseEvent=new h(x,k.editor),k.$mouseMoved=!0}},S=function(x){v.off("beforeEndOperation",R),clearInterval(L),v.session&&$(),k[k.state+"End"]&&k[k.state+"End"](x),k.state="",k.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),k.$onCaptureMouseMove=k.releaseMouse=null,x&&k.onMouseEvent("mouseup",x),v.endOperation()},$=function(){k[k.state]&&k[k.state](),k.$mouseMoved=!1};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){S(d)});var R=function(x){k.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(k[k.state+"End"]&&k[k.state+"End"](),k.state="",k.releaseMouse())};v.on("beforeEndOperation",R),v.startOperation({command:{name:"mouse"}}),k.$onCaptureMouseMove=C,k.releaseMouse=u.capture(this.editor.container,C,S);var L=setInterval($,20)},c.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&u.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},c.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},c}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),f=function(){function g(s){s.on("click",function(h){var o=h.getDocumentPosition(),r=s.session,a=r.getFoldAt(o.row,o.column,1);a&&(h.getAccelKey()?r.removeFold(a):r.expandFold(a),h.stop());var l=h.domEvent&&h.domEvent.target;l&&u.hasCssClass(l,"ace_inline_button")&&u.hasCssClass(l,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,a=s.session;a.foldWidgets&&a.foldWidgets[r]&&s.session.onFoldWidgetClick(r,h),s.isFocused()||s.focus(),h.stop()}}),s.on("gutterdblclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,a=s.session,l=a.getParentFoldRangeData(r,!0),c=l.range||l.firstRange;if(c){r=c.start.row;var d=a.getFoldAt(r,a.getLine(r).length,1);d?a.removeFold(d):(a.addFold("...",c),s.renderer.scrollCursorIntoView({row:c.start.row,column:0}))}h.stop()}})}return g}();i.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,p){var u=n("../lib/keys"),f=n("../lib/event"),g=function(){function s(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return s.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},s.prototype.setKeyboardHandler=function(h){var o=this.$handlers;if(o[o.length-1]!=h){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(h,1)}},s.prototype.addKeyboardHandler=function(h,o){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var r=this.$handlers.indexOf(h);r!=-1&&this.$handlers.splice(r,1),o==null?this.$handlers.push(h):this.$handlers.splice(o,0,h),r==-1&&h.attach&&h.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(h){var o=this.$handlers.indexOf(h);return o==-1?!1:(this.$handlers.splice(o,1),h.detach&&h.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var h=this.$data,o=h.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(o,h)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(h,o,r,a){for(var l,c=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(l=this.$handlers[m].handleKeyboard(this.$data,h,o,r,a),!(!(!l||!l.command)&&(l.command=="null"?c=!0:c=d.exec(l.command,this.$editor,l.args,a),c&&a&&h!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&f.stopEvent(a),c))););return!c&&h==-1&&(l={command:"insertstring"},c=d.exec("insertstring",this.$editor,o)),c&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),c},s.prototype.onCommandKey=function(h,o,r){var a=u.keyCodeToString(r);return this.$callKeyboardHandlers(o,a,r,h)},s.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},s}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,p){var u=0,f=0,g=!1,s=!1,h=!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]],r=[[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]],a=0,l=1,c=0,d=1,m=2,v=3,y=4,k=5,C=6,S=7,$=8,R=9,L=10,x=11,M=12,b=13,A=14,_=15,w=16,E=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,k,C,$,k,T,T,T,T,T,T,T,T,T,T,T,T,T,T,k,k,k,C,$,y,y,x,x,x,y,y,y,y,y,L,R,L,R,R,m,m,m,m,m,m,m,m,m,m,R,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,T,T,T,T,T,T,k,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,R,y,x,x,x,x,y,y,y,y,c,y,y,T,y,y,x,x,m,m,y,c,y,y,y,m,c,y,y,y,y,y],I=[$,$,$,$,$,$,$,$,$,$,$,T,T,T,c,d,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,$,k,b,A,_,w,E,R,x,x,x,x,x,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,R,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,$];function F(H,U,K,Z){var z=u?r:o,X=null,Y=null,V=null,ee=0,P=null,B=null,G=-1,Q=null,te=null,ie=[];if(!Z)for(Q=0,Z=[];Q<K;Q++)Z[Q]=j(H[Q]);for(f=u,g=!1,s=!1,h=!1,te=0;te<K;te++){if(X=ee,ie[te]=Y=W(H,Z,ie,te),ee=z[X][Y],P=ee&240,ee&=15,U[te]=V=z[ee][5],P>0)if(P==16){for(Q=G;Q<te;Q++)U[Q]=1;G=-1}else G=-1;if(B=z[ee][6],B)G==-1&&(G=te);else if(G>-1){for(Q=G;Q<te;Q++)U[Q]=V;G=-1}Z[te]==k&&(U[te]=0),f|=V}if(h){for(Q=0;Q<K;Q++)if(Z[Q]==C){U[Q]=u;for(var le=Q-1;le>=0&&Z[le]==$;le--)U[le]=u}}}function D(H,U,K){if(!(f<H)){if(H==1&&u==l&&!s){K.reverse();return}for(var Z=K.length,z=0,X,Y,V,ee;z<Z;){if(U[z]>=H){for(X=z+1;X<Z&&U[X]>=H;)X++;for(Y=z,V=X-1;Y<V;Y++,V--)ee=K[Y],K[Y]=K[V],K[V]=ee;z=X}z++}}}function W(H,U,K,Z){var z=U[Z],X,Y,V,ee;switch(z){case c:case d:g=!1;case y:case v:return z;case m:return g?v:m;case S:return g=!0,d;case $:return y;case R:return Z<1||Z+1>=U.length||(X=K[Z-1])!=m&&X!=v||(Y=U[Z+1])!=m&&Y!=v?y:(g&&(Y=v),Y==X?Y:y);case L:return X=Z>0?K[Z-1]:k,X==m&&Z+1<U.length&&U[Z+1]==m?m:y;case x:if(Z>0&&K[Z-1]==m)return m;if(g)return y;for(ee=Z+1,V=U.length;ee<V&&U[ee]==x;)ee++;return ee<V&&U[ee]==m?m:y;case M:for(V=U.length,ee=Z+1;ee<V&&U[ee]==M;)ee++;if(ee<V){var P=H[Z],B=P>=1425&&P<=2303||P==64286;if(X=U[ee],B&&(X==d||X==S))return d}return Z<1||(X=U[Z-1])==k?y:K[Z-1];case k:return g=!1,s=!0,u;case C:return h=!0,y;case b:case A:case w:case E:case _:g=!1;case T:return y}}function j(H){var U=H.charCodeAt(0),K=U>>8;return K==0?U>191?c:O[U]:K==5?/[\u0591-\u05f4]/.test(H)?d:c:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:U==1642?x:/[\u06f0-\u06f9]/.test(H)?m:S:K==32&&U<=8287?I[U&255]:K==254&&U>=65136?S:y}i.L=c,i.R=d,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(H,U,K){if(H.length<2)return{};var Z=H.split(""),z=new Array(Z.length),X=new Array(Z.length),Y=[];u=K?l:a,F(Z,Y,Z.length,U);for(var V=0;V<z.length;z[V]=V,V++);D(2,Y,z),D(1,Y,z);for(var V=0;V<z.length-1;V++)U[V]===v?Y[V]=i.AN:Y[V]===d&&(U[V]>S&&U[V]<b||U[V]===y||U[V]===T)?Y[V]=i.ON_R:V>0&&Z[V-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Z[V])&&(Y[V-1]=Y[V]=i.R_H,V++);Z[Z.length-1]===i.DOT&&(Y[Z.length-1]=i.B),Z[0]==="‫"&&(Y[0]=i.RLE);for(var V=0;V<z.length;V++)X[V]=Y[z[V]];return{logicalFromVisual:z,bidiLevels:X}},i.hasBidiCharacters=function(H,U){for(var K=!1,Z=0;Z<H.length;Z++)U[Z]=j(H.charAt(Z)),!K&&(U[Z]==d||U[Z]==S||U[Z]==v)&&(K=!0);return K},i.getVisualFromLogicalIdx=function(H,U){for(var K=0;K<U.logicalFromVisual.length;K++)if(U.logicalFromVisual[K]==H)return K;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,p){var u=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function h(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=u,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 h.prototype.isBidiRow=function(o,r,a){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(r,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
986
- `))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var o=0,r=this.session.$screenRowCache;if(r.length){var a=this.session.$getRowCacheIndex(r,this.currentRow);a>=0&&(o=this.session.$docRowCache[a])}return o},h.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var a,l=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(a=this.session.$getRowCacheIndex(r,this.currentRow-o-1),a===l);)l=a,o++;else o=this.currentRow;return o},h.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var a=o===this.session.getLength()-1,l=a?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 c=this.session.$wrapData[o];c&&(r===void 0&&(r=this.getSplitIndex()),r>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=r<c.length?this.line.substring(c[r-1],c[r]):this.line.substring(c[c.length-1])):this.line=this.line.substring(0,c[r]),r==c.length&&(this.line+=this.showInvisibles?l:u.DOT))}else this.line+=this.showInvisibles?l:u.DOT;var d=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,k){return y===" "||d.isFullWidth(y.charCodeAt(0))?(v=y===" "?d.getScreenTabSize(k+m):2,m+=v-1,f.stringRepeat(u.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==u.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},h.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var r=this.characterWidth=o.$characterSize.width,a=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=r,this.charWidths[u.R]=this.charWidths[u.AN]=a,this.charWidths[u.R_H]=a*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},h.prototype.setEolChar=function(o){this.EOL=o},h.prototype.setContentWidth=function(o){this.contentWidth=o},h.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(o,r){for(var a=o.getCursorPosition(),l=o.selection.getSelectionAnchor().row;l<=a.row;l++)!r&&o.session.getLine(l).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(l,0,1):r&&o.session.getLine(l).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:l},o.session.$bidiHandler.RLE)},h.prototype.getPosLeft=function(o){o-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,a=o>r?this.session.getOverwrite()?o:o-1:r,l=u.getVisualFromLogicalIdx(a,this.bidiMap),c=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=r&&c[l]%2!==0&&l++;for(var m=0;m<l;m++)d+=this.charWidths[c[m]];return!this.session.getOverwrite()&&o>r&&c[l]%2===0&&(d+=this.charWidths[c[l]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},h.prototype.getSelections=function(o,r){var a=this.bidiMap,l=a.bidiLevels,c,d=[],m=0,v=Math.min(o,r)-this.wrapIndent,y=Math.max(o,r)-this.wrapIndent,k=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,R=0;R<l.length;R++)$=a.logicalFromVisual[R],c=l[R],k=$>=v&&$<y,k&&!C?S=m:!k&&C&&d.push({left:S,width:m-S}),m+=this.charWidths[c],C=k;if(k&&R===l.length&&d.push({left:S,width:m-S}),this.isRtlDir)for(var L=0;L<d.length;L++)d[L].left+=this.rtlLineOffset;return d},h.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var r=0,a=Math.max(a,0),l=0,c=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[c]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+m/2;){if(l+=m,c===d.length-1){m=0;break}m=this.charWidths[d[++c]]}return c>0&&d[c-1]%2!==0&&d[c]%2===0?(a<l&&c--,r=this.bidiMap.logicalFromVisual[c]):c>0&&d[c-1]%2===0&&d[c]%2!==0?r=1+(a>l?this.bidiMap.logicalFromVisual[c]:this.bidiMap.logicalFromVisual[c-1]):this.isRtlDir&&c===d.length-1&&m===0&&d[c-1]%2===0||!this.isRtlDir&&c===0&&d[c]%2!==0?r=1+this.bidiMap.logicalFromVisual[c]:(c>0&&d[c-1]%2!==0&&m!==0&&c--,r=this.bidiMap.logicalFromVisual[c]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},h}();i.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,p){var u=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=function(){function o(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(l){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._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(r,a){this.$isEmpty=!1,this.anchor.setPosition(r,a)},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 r=this.anchor,a=this.lead;return r.row>a.row||r.row==a.row&&r.column>a.column},o.prototype.getRange=function(){var r=this.anchor,a=this.lead;return this.$isEmpty?s.fromPoints(a,a):this.isBackwards()?s.fromPoints(a,r):s.fromPoints(r,a)},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(r,a){var l=a?r.end:r.start,c=a?r.start:r.end;this.$setSelection(l.row,l.column,c.row,c.column)},o.prototype.$setSelection=function(r,a,l,c){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,a),this.cursor.setPosition(l,c),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),r.call(this)},o.prototype.selectTo=function(r,a){this.$moveSelection(function(){this.moveCursorTo(r,a)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,a){this.clearSelection(),this.moveCursorTo(r,a)},o.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},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(r,a){if(typeof a>"u"){var l=r||this.lead;r=l.row,a=l.column}return this.session.getWordRange(r,a)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),a=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(a)},o.prototype.getLineRange=function(r,a){var l=typeof r=="number"?r:this.lead.row,c,d=this.session.getFoldLine(l);return d?(l=d.start.row,c=d.end.row):c=l,a===!0?new s(l,0,c,this.session.getLine(c).length):new s(l,0,c+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(r,a,l){var c=r.column,d=r.column+a;return l<0&&(c=r.column-a,d=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(c,d).split(" ").length-1==a},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),a;if(a=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),a;if(a=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(a.end.row,a.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 l=this.session.getTabSize(),r=this.lead;this.wouldMoveIntoSoftTab(r,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var r=this.lead.row,a=this.lead.column,l=this.session.documentToScreenRow(r,a),c=this.session.screenToDocumentPosition(l,0),d=this.session.getDisplayLine(r,null,c.row,c.column),m=d.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(c.column+=m[0].length),this.moveCursorToPosition(c)},o.prototype.moveCursorLineEnd=function(){var r=this.lead,a=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==a.column){var l=this.session.getLine(a.row);if(a.column==l.length){var c=l.search(/\s+$/);c>0&&(a.column=c)}}this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,a=this.doc.getLine(r).length;this.moveCursorTo(r,a)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,a=this.lead.column,l=this.doc.getLine(r),c=l.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(r,a,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(c)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=l.substring(a)),a>=l.length){this.moveCursorTo(r,l.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(c)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,a)},o.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(r,a,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var c=this.session.getFoldStringAt(r,a,-1);c==null&&(c=this.doc.getLine(r).substring(0,a));var d=f.stringReverse(c);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(a-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,a)},o.prototype.$shortWordEndIndex=function(r){var a=0,l,c=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(r))a=this.session.tokenRe.lastIndex;else{for(;(l=r[a])&&c.test(l);)a++;if(a<1){for(d.lastIndex=0;(l=r[a])&&!d.test(l);)if(d.lastIndex=0,a++,c.test(l))if(a>2){a--;break}else{for(;(l=r[a])&&c.test(l);)a++;if(a>2)break}}}return d.lastIndex=0,a},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,a=this.lead.column,l=this.doc.getLine(r),c=l.substring(a),d=this.session.getFoldAt(r,a,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(a==l.length){var m=this.doc.getLength();do r++,c=this.doc.getLine(r);while(r<m&&/^\s*$/.test(c));/^\s+/.test(c)||(c=""),a=0}var v=this.$shortWordEndIndex(c);this.moveCursorTo(r,a+v)},o.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(r,a,-1))return this.moveCursorTo(l.start.row,l.start.column);var c=this.session.getLine(r).substring(0,a);if(a===0){do r--,c=this.doc.getLine(r);while(r>0&&/^\s*$/.test(c));a=c.length,/\s+$/.test(c)||(c="")}var d=f.stringReverse(c),m=this.$shortWordEndIndex(d);return this.moveCursorTo(r,a-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(r,a){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),c;if(a===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),r!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];r<0?r-=d.rowsAbove||0:r>0&&(r+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(l.row+r,l.column,c);r!==0&&a===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+a,a===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,a,l){var c=this.session.getFoldAt(r,a,1);c&&(r=c.start.row,a=c.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(d.charAt(a))&&d.charAt(a-1)&&(this.lead.row==r&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(r,a),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,a,l){var c=this.session.screenToDocumentPosition(r,a);this.moveCursorTo(c.row,c.column,l)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(r){var a=this.getRange();return r?(r.start.column=a.start.column,r.start.row=a.start.row,r.end.column=a.end.column,r.end.row=a.end.row):r=a,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var a=this.getCursor();try{r(this);var l=this.getCursor();return s.fromPoints(a,l)}catch{return s.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(a){var l=a.clone();return l.isBackwards=a.cursor==a.start,l});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},o.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var a=r.length;a--;){var l=s.fromPoints(r[a].start,r[a].end);r[a].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},o.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(r[a]))return!1;return!0},o}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,u.implement(h.prototype,g),i.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,p){var u=n("./lib/report_error").reportError,f=2e3,g=function(){function s(h){this.states=h,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],a=[],l=0,c=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],v=0;v<r.length;v++){var y=r[v];if(y.defaultToken&&(c.defaultToken=y.defaultToken),y.caseInsensitive&&d.indexOf("i")===-1&&(d+="i"),y.unicode&&d.indexOf("u")===-1&&(d+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var k=y.regex,C=new RegExp("(?:("+k+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||C==1?y.token=y.token[0]:C-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:C-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(C>1?y.onMatch=this.$applyToken:y.onMatch=y.token),C>1&&(/\\\d/.test(y.regex)?k=y.regex.replace(/\\([0-9]+)/g,function(S,$){return"\\"+(parseInt($,10)+l+1)}):(C=1,k=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),c[l]=v,l+=C,a.push(k),y.onMatch||(y.onMatch=null)}}a.length||(c[0]=0,a.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,d)},this),this.regExps[o]=new RegExp("("+a.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(h){f=h|0},s.prototype.$applyToken=function(h){var o=this.splitRegex.exec(h).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:h}];for(var a=[],l=0,c=r.length;l<c;l++)o[l]&&(a[a.length]={type:r[l],value:o[l]});return a},s.prototype.$arrayTokens=function(h){if(!h)return[];var o=this.splitRegex.exec(h);if(!o)return"text";for(var r=[],a=this.tokenArray,l=0,c=a.length;l<c;l++)o[l+1]&&(r[r.length]={type:a[l],value:o[l+1]});return r},s.prototype.removeCapturingGroups=function(h){var o=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,a){return a?"(?:":r});return o},s.prototype.createSplitterRegexp=function(h,o){if(h.indexOf("(?=")!=-1){var r=0,a=!1,l={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(c,d,m,v,y,k){return a?a=y!="]":y?a=!0:v?(r==l.stack&&(l.end=k+1,l.stack=-1),r--):m&&(r++,m.length!=1&&(l.stack=r,l.start=k)),c}),l.end!=null&&/^\)*$/.test(h.substr(l.end))&&(h=h.substring(0,l.start)+h.substr(l.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(o||"").replace("g",""))},s.prototype.getLineTokens=function(h,o){if(o&&typeof o!="string"){var r=o.slice(0);o=r[0],o==="#tmp"&&(r.shift(),o=r.shift())}else var r=[];var a=o||"start",l=this.states[a];l||(a="start",l=this.states[a]);var c=this.matchMappings[a],d=this.regExps[a];d.lastIndex=0;for(var m,v=[],y=0,k=0,C={type:null,value:""};m=d.exec(h);){var S=c.defaultToken,$=null,R=m[0],L=d.lastIndex;if(L-R.length>y){var x=h.substring(y,L-R.length);C.type==S?C.value+=x:(C.type&&v.push(C),C={type:S,value:x})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){$=l[c[M]],$.onMatch?S=$.onMatch(R,a,r,h):S=$.token,$.next&&(typeof $.next=="string"?a=$.next:a=$.next(a,r),l=this.states[a],l||(this.reportError("state doesn't exist",a),a="start",l=this.states[a]),c=this.matchMappings[a],y=L,d=this.regExps[a],d.lastIndex=L),$.consumeLineEnd&&(y=L);break}if(R){if(typeof S=="string")(!$||$.merge!==!1)&&C.type===S?C.value+=R:(C.type&&v.push(C),C={type:S,value:R});else if(S){C.type&&v.push(C),C={type:null,value:""};for(var M=0;M<S.length;M++)v.push(S[M])}}if(y==h.length)break;if(y=L,k++>f){for(k>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});y<h.length;)C.type&&v.push(C),C={value:h.substring(y,y+=500),type:"overflow"};a="start",r=[];break}}return C.type&&v.push(C),r.length>1&&r[0]!==a&&r.unshift("#tmp",a),{tokens:v,state:r.length?r:a}},s}();g.prototype.reportError=u,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){var u=n("../lib/deep_copy").deepCopy,f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,o){if(!o){for(var r in h)this.$rules[r]=h[r];return}for(var r in h){for(var a=h[r],l=0;l<a.length;l++){var c=a[l];(c.next||c.onMatch)&&(typeof c.next=="string"&&c.next.indexOf(o)!==0&&(c.next=o+c.next),c.nextState&&c.nextState.indexOf(o)!==0&&(c.nextState=o+c.nextState))}this.$rules[o+r]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(h,o,r,a,l){var c=typeof h=="function"?new h().getRules():h;if(a)for(var d=0;d<a.length;d++)a[d]=o+a[d];else{a=[];for(var m in c)a.push(o+m)}if(this.addRules(c,o),r)for(var v=Array.prototype[l?"push":"unshift"],d=0;d<a.length;d++)v.apply(this.$rules[a[d]],u(r));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(h,o){return(h!="start"||o.length)&&o.unshift(this.nextState,h),this.nextState},s=function(h,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var h=0,o=this.$rules;function r(a){var l=o[a];l.processed=!0;for(var c=0;c<l.length;c++){var d=l[c],m=null;Array.isArray(d)&&(m=d,d={}),!d.regex&&d.start&&(d.regex=d.start,d.next||(d.next=[]),d.next.push({defaultToken:d.token},{token:d.token+".end",regex:d.end||d.start,next:"pop"}),d.token=d.token+".start",d.push=!0);var v=d.next||d.push;if(v&&Array.isArray(v)){var y=d.stateName;y||(y=d.token,typeof y!="string"&&(y=y[0]||""),o[y]&&(y+=h++)),o[y]=v,d.next=y,r(y)}else v=="pop"&&(d.next=s);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var k in d.rules)o[k]?o[k].push&&o[k].push.apply(o[k],d.rules[k]):o[k]=d.rules[k];var C=typeof d=="string"?d:d.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?m=C.map(function($){return o[$]}):m=o[C]),m){var S=[c,1].concat(m);d.noEscape&&(S=S.filter(function($){return!$.next})),l.splice.apply(l,S),c--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(r,this)},this.createKeywordMapper=function(h,o,r,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(c){for(var d=h[c],m=d.split(a||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),r&&(y=y.toLowerCase()),l[y]=c}},this),h=null,r?function(c){return l[c.toLowerCase()]||o}:function(c){return l[c]||o}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),i.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,p){var u=function(){this.$behaviours={}};(function(){this.add=function(f,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=s},this.addBehaviours=function(f){for(var g in f)for(var s in f[g])this.add(g,s,f[g][s])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var s=new f().getBehaviours(g);else var s=f.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(f){if(f){for(var g={},s=0;s<f.length;s++)this.$behaviours[f[s]]&&(g[f[s]]=this.$behaviours[f[s]]);return g}else return this.$behaviours}}).call(u.prototype),i.Behaviour=u}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,p){var u=n("./range").Range,f=function(){function g(s,h,o){this.$session=s,this.$row=h,this.$rowTokens=s.getTokens(h);var r=s.getTokenAt(h,o);this.$tokenIndex=r?r.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 s;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-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 s=this.$rowTokens,h=this.$tokenIndex,o=s[h].start;if(o!==void 0)return o;for(o=0;h>0;)h-=1,o+=s[h].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],h=this.getCurrentTokenColumn();return new u(this.$row,h,this.$row,h+s.value.length)},g}();i.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,p){var u=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,a={},l={'"':'"',"'":"'"},c=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,a.rangeCount!=v.multiSelect.rangeCount&&(a={rangeCount:v.multiSelect.rangeCount})),a[y])return r=a[y];r=a[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,y,k,C){var S=v.end.row-v.start.row;return{text:k+y+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m=function(v){v=v||{},this.add("braces","insertion",function(y,k,C,S,$){var R=C.getCursorPosition(),L=S.doc.getLine(R.row);if($=="{"){c(C);var x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return d(x,M,"{","}");if(m.isSaneInsertion(C,S))return/[\]\}\)]/.test(L[R.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,S,"{"),{text:"{",selection:[1,1]})}else if($=="}"){c(C);var b=L.substring(R.column,R.column+1);if(b=="}"){var A=S.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(A!==null&&m.isAutoInsertedClosing(R,L,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
987
- `||$==`\r
988
- `){c(C);var _="";m.isMaybeInsertedClosing(R,L)&&(_=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var b=L.substring(R.column,R.column+1);if(b==="}"){var w=S.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!w)return null;var E=this.$getIndent(S.getLine(w.row))}else if(_)var E=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=E+S.getTabString();return{text:`
989
- `+T+`
990
- `+E+_,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,k,C,S,$){var R=S.doc.getTextRange($);if(!$.isMultiLine()&&R=="{"){c(C);var L=S.doc.getLine($.start.row),x=L.substring($.end.column,$.end.column+1);if(x=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,k,C,S,$){if($=="("){c(C);var R=C.getSelectionRange(),L=S.doc.getTextRange(R);if(L!==""&&C.getWrapBehavioursEnabled())return d(R,L,"(",")");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,")"),{text:"()",selection:[1,1]}}else if($==")"){c(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),b=M.substring(x.column,x.column+1);if(b==")"){var A=S.$findOpeningBracket(")",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,k,C,S,$){var R=S.doc.getTextRange($);if(!$.isMultiLine()&&R=="("){c(C);var L=S.doc.getLine($.start.row),x=L.substring($.start.column+1,$.start.column+2);if(x==")")return $.end.column++,$}}),this.add("brackets","insertion",function(y,k,C,S,$){if($=="["){c(C);var R=C.getSelectionRange(),L=S.doc.getTextRange(R);if(L!==""&&C.getWrapBehavioursEnabled())return d(R,L,"[","]");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){c(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),b=M.substring(x.column,x.column+1);if(b=="]"){var A=S.$findOpeningBracket("]",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,k,C,S,$){var R=S.doc.getTextRange($);if(!$.isMultiLine()&&R=="["){c(C);var L=S.doc.getLine($.start.row),x=L.substring($.start.column+1,$.start.column+2);if(x=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(y,k,C,S,$){var R=S.$mode.$quotes||l;if($.length==1&&R[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;c(C);var L=$,x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&(M.length!=1||!R[M])&&C.getWrapBehavioursEnabled())return d(x,M,L,L);if(!M){var b=C.getCursorPosition(),A=S.doc.getLine(b.row),_=A.substring(b.column-1,b.column),w=A.substring(b.column,b.column+1),E=S.getTokenAt(b.row,b.column),T=S.getTokenAt(b.row,b.column+1);if(_=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.type),I=!T||/string|escape/.test(T.type),F;if(w==L)F=O!==I,F&&/string\.end/.test(T.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=S.$mode.tokenRe;D.lastIndex=0;var W=D.test(_);D.lastIndex=0;var j=D.test(w),H=S.$mode.$pairQuotesAfter,U=H&&H[L]&&H[L].test(_);if(!U&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var K=A[b.column-2];if(_==L&&(K==L||D.test(K)))return null;F=!0}return{text:F?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,k,C,S,$){var R=S.$mode.$quotes||l,L=S.doc.getTextRange($);if(!$.isMultiLine()&&R.hasOwnProperty(L)){c(C);var x=S.doc.getLine($.start.row),M=x.substring($.start.column+1,$.start.column+2);if(M==L)return $.end.column++,$}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,k,C,S,$){if(y==="doc-start"&&($===`
991
- `||$===`\r
992
- `)&&C.selection.isEmpty()){var R=C.getCursorPosition(),L=S.doc.getLine(R.row),x=S.doc.getLine(R.row+1),M=this.$getIndent(L);if(/\s*\*/.test(x))return/^\s*\*/.test(L)?{text:$+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:$+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,R.column)))return{text:$+M+" * "+$+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};m.isSaneInsertion=function(v,y){var k=v.getCursorPosition(),C=new g(y,k.row,k.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(v.session.getLine(k.row)[k.column]))return!0;var S=new g(y,k.row,k.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==k.row||this.$matchTokenType(C.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=C.row,r.autoInsertedLineEnd=k+S.substr(C.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=C.row,r.maybeInsertedLineStart=S.substr(0,C.column)+k,r.maybeInsertedLineEnd=S.substr(C.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&k===r.autoInsertedLineEnd[0]&&y.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&y.substr(v.column)===r.maybeInsertedLineEnd&&y.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},u.inherits(m,f),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,p){for(var u=[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],f=0,g=[],s=0;s<u.length;s+=2)g.push(f+=u[s]),u[s+1]&&g.push(45,f+=u[s+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,p){var u=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,h=n("../unicode"),o=n("../lib/lang"),r=n("../token_iterator").TokenIterator,a=n("../range").Range,l=function(){this.HighlightRules=g};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(c,d,m,v){var y=d.doc,k=!0,C=!0,S=1/0,$=d.getTabSize(),R=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(o.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=o.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),R=d.getUseSoftTabs();var _=function(j,H){var U=j.match(M);if(U){var K=U[1].length,Z=U[0].length;!T(j,K,Z)&&U[0][Z-1]==" "&&Z--,y.removeInLine(H,K,Z)}},E=L+" ",A=function(j,H){(!k||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:H,column:S},E):y.insertInLine({row:H,column:S},L))},w=function(j,H){return M.test(j)},T=function(j,H,U){for(var K=0;H--&&j.charAt(H)==" ";)K++;if(K%$!=0)return!1;for(var K=0;j.charAt(U++)==" ";)K++;return $>2?K%$!=$-1:K%$==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,x=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(L)+")"),b=new RegExp("(?:"+o.escapeRegExp(x)+")\\s*$"),A=function(F,D){w(F,D)||(!k||/\S/.test(F))&&(y.insertInLine({row:D,column:F.length},x),y.insertInLine({row:D,column:S},L))},_=function(F,D){var W;(W=F.match(b))&&y.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(M))&&y.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(M.test(F))return!0;for(var W=d.getTokens(D),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(F){for(var D=m;D<=v;D++)F(y.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<S&&(S=W),C&&!w(F,D)&&(C=!1)):I>F.length&&(I=F.length)}),S==1/0&&(S=I,k=!1,C=!1),R&&S%$!=0&&(S=Math.floor(S/$)*$),O(C?_:A)},this.toggleBlockComment=function(c,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new r(d,v.row,v.column),C=k.getCurrentToken();d.selection;var S=d.selection.toOrientedRange(),$,R;if(C&&/comment/.test(C.type)){for(var L,x;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var b=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;L=new a(b,A,b,A+y.start.length);break}C=k.stepBackward()}for(var k=new r(d,v.row,v.column),C=k.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var b=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;x=new a(b,A,b,A+y.end.length);break}C=k.stepForward()}x&&d.remove(x),L&&(d.remove(L),$=L.start.row,R=-y.start.length)}else R=y.start.length,$=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);S.start.row==$&&(S.start.column+=R),S.end.row==$&&(S.end.column+=R),d.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(c,d,m){return this.$getIndent(d)},this.checkOutdent=function(c,d,m){return!1},this.autoOutdent=function(c,d,m){},this.$getIndent=function(c){return c.match(/^\s*/)[0]},this.createWorker=function(c){return null},this.createModeDelegates=function(c){this.$embeds=[],this.$modes={};for(var d in c)if(c[d]){var m=c[d],v=m.prototype.$id,y=u.$modes[v];y||(u.$modes[v]=y=new m),u.$modes[d]||(u.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var k=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],d=0;d<k.length;d++)(function(S){var $=k[d],R=S[$];S[k[d]]=function(){return this.$delegator($,arguments,R)}})(this)},this.$delegator=function(c,d,m){var v=d[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],k=this.$modes[y];if(k)return k[c].apply(k,[v[1]].concat([].slice.call(d,1)))}v=v[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var S=v.split(this.$embeds[C]);if(!S[0]&&S[1]){d[0]=S[1];var k=this.$modes[this.$embeds[C]];return k[c].apply(k,d)}}var $=m.apply(this,d);return m?$:void 0},this.transformAction=function(c,d,m,v,y){if(this.$behaviour){var k=this.$behaviour.getBehaviours();for(var C in k)if(k[C][d]){var S=k[C][d].apply(this,arguments);if(S)return S}}},this.getKeywords=function(c){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var v in d)for(var y=d[v],k=0,C=y.length;k<C;k++)if(typeof y[k].token=="string")/keyword|support|storage/.test(y[k].token)&&m.push(y[k].regex);else if(typeof y[k].token=="object"){for(var S=0,$=y[k].token.length;S<$;S++)if(/keyword|support|storage/.test(y[k].token[S])){var v=y[k].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return c?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(c,d,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(k){return{name:k,value:k,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),i.Mode=l}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,p){i.applyDelta=function(u,f,g){var s=f.start.row,h=f.start.column,o=u[s]||"";switch(f.action){case"insert":var r=f.lines;if(r.length===1)u[s]=o.substring(0,h)+f.lines[0]+o.substring(h);else{var a=[s,1].concat(f.lines);u.splice.apply(u,a),u[s]=o.substring(0,h)+u[s],u[s+f.lines.length-1]+=o.substring(h)}break;case"remove":var l=f.end.column,c=f.end.row;s===c?u[s]=o.substring(0,h)+o.substring(l):u.splice(s,c-s+1,o.substring(0,h)+u[c].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function o(r,a,l){this.$onChange=this.onChange.bind(this),this.attach(r),typeof l>"u"?this.setPosition(a.row,a.column):this.setPosition(a,l)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(r){if(!(r.start.row==r.end.row&&r.start.row!=this.row)&&!(r.start.row>this.row)){var a=h(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},o.prototype.setPosition=function(r,a,l){var c;if(l?c={row:r,column:a}:c=this.$clipPositionToDocument(r,a),!(this.row==c.row&&this.column==c.column)){var d={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:d,value:c})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(r,a){var l={};return r>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):r<0?(l.row=0,l.column=0):(l.row=r,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,a))),a<0&&(l.column=0),l},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,f);function s(o,r,a){var l=a?o.column<=r.column:o.column<r.column;return o.row<r.row||o.row==r.row&&l}function h(o,r,a){var l=o.action=="insert",c=(l?1:-1)*(o.end.row-o.start.row),d=(l?1:-1)*(o.end.column-o.start.column),m=o.start,v=l?m:o.end;return s(r,m,a)?{row:r.row,column:r.column}:s(v,r,!a)?{row:r.row+c,column:r.column+(r.row==v.row?d: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,p){var u=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=n("./anchor").Anchor,o=function(){function r(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return r.prototype.setValue=function(a){var l=this.getLength()-1;this.remove(new s(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},a||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(a,l){return new h(this,a,l)},r.prototype.$detectNewLine=function(a){var l=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
993
- `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
994
- `;case"unix":return`
995
- `;default:return this.$autoNewLine||`
996
- `}},r.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},r.prototype.getNewLineMode=function(){return this.$newLineMode},r.prototype.isNewLine=function(a){return a==`\r
997
- `||a=="\r"||a==`
998
- `},r.prototype.getLine=function(a){return this.$lines[a]||""},r.prototype.getLines=function(a,l){return this.$lines.slice(a,l+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(a){var l;if(a.start.row===a.end.row)l=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{l=this.getLines(a.start.row,a.end.row),l[0]=(l[0]||"").substring(a.start.column);var c=l.length-1;a.end.row-a.start.row==c&&(l[c]=l[c].substring(0,a.end.column))}return l},r.prototype.insertLines=function(a,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,l)},r.prototype.removeLines=function(a,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,l)},r.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},r.prototype.insert=function(a,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(a,this.$split(l))},r.prototype.insertInLine=function(a,l){var c=this.clippedPos(a.row,a.column),d=this.pos(a.row,a.column+l.length);return this.applyDelta({start:c,end:d,action:"insert",lines:[l]},!0),this.clonePos(d)},r.prototype.clippedPos=function(a,l){var c=this.getLength();a===void 0?a=c:a<0?a=0:a>=c&&(a=c-1,l=void 0);var d=this.getLine(a);return l==null&&(l=d.length),l=Math.min(Math.max(l,0),d.length),{row:a,column:l}},r.prototype.clonePos=function(a){return{row:a.row,column:a.column}},r.prototype.pos=function(a,l){return{row:a,column:l}},r.prototype.$clipPosition=function(a){var l=this.getLength();return a.row>=l?(a.row=Math.max(0,l-1),a.column=this.getLine(l-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},r.prototype.insertFullLines=function(a,l){a=Math.min(Math.max(a,0),this.getLength());var c=0;a<this.getLength()?(l=l.concat([""]),c=0):(l=[""].concat(l),a--,c=this.$lines[a].length),this.insertMergedLines({row:a,column:c},l)},r.prototype.insertMergedLines=function(a,l){var c=this.clippedPos(a.row,a.column),d={row:c.row+l.length-1,column:(l.length==1?c.column:0)+l[l.length-1].length};return this.applyDelta({start:c,end:d,action:"insert",lines:l}),this.clonePos(d)},r.prototype.remove=function(a){var l=this.clippedPos(a.start.row,a.start.column),c=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:l,end:c,action:"remove",lines:this.getLinesForRange({start:l,end:c})}),this.clonePos(l)},r.prototype.removeInLine=function(a,l,c){var d=this.clippedPos(a,l),m=this.clippedPos(a,c);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},r.prototype.removeFullLines=function(a,l){a=Math.min(Math.max(0,a),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var c=l==this.getLength()-1&&a>0,d=l<this.getLength()-1,m=c?a-1:a,v=c?this.getLine(m).length:0,y=d?l+1:l,k=d?0:this.getLine(y).length,C=new s(m,v,y,k),S=this.$lines.slice(a,l+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),S},r.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(a,l){if(a instanceof s||(a=s.fromPoints(a.start,a.end)),l.length===0&&a.isEmpty())return a.start;if(l==this.getTextRange(a))return a.end;this.remove(a);var c;return l?c=this.insert(a.start,l):c=a.start,c},r.prototype.applyDeltas=function(a){for(var l=0;l<a.length;l++)this.applyDelta(a[l])},r.prototype.revertDeltas=function(a){for(var l=a.length-1;l>=0;l--)this.revertDelta(a[l])},r.prototype.applyDelta=function(a,l){var c=a.action=="insert";(c?a.lines.length<=1&&!a.lines[0]:!s.comparePoints(a.start,a.end))||(c&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(f(this.$lines,a,l),this._signal("change",a)))},r.prototype.$safeApplyDelta=function(a){var l=this.$lines.length;(a.action=="remove"&&a.start.row<l&&a.end.row<l||a.action=="insert"&&a.start.row<=l)&&this.applyDelta(a)},r.prototype.$splitAndapplyLargeDelta=function(a,l){for(var c=a.lines,d=c.length-l+1,m=a.start.row,v=a.start.column,y=0,k=0;y<d;y=k){k+=l-1;var C=c.slice(y,k);C.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+k,v=0),action:a.action,lines:C},!0)}a.lines=c.slice(y),a.start.row=m+y,a.start.column=v,this.applyDelta(a,!0)},r.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},r.prototype.indexToPosition=function(a,l){for(var c=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=l||0,v=c.length;m<v;m++)if(a-=c[m].length+d,a<0)return{row:m,column:a+c[m].length+d};return{row:v-1,column:a+c[v-1].length+d}},r.prototype.positionToIndex=function(a,l){for(var c=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,v=Math.min(a.row,c.length),y=l||0;y<v;++y)m+=c[y].length+d;return m+a.column},r.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},r}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",u.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,p){var u=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function s(h,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var r=this;this.$worker=function(){if(r.running){for(var a=new Date,l=r.currentLine,c=-1,d=r.doc,m=l;r.lines[l];)l++;var v=d.getLength(),y=0;for(r.running=!1;l<v;){r.$tokenizeRow(l),c=l;do l++;while(r.lines[l]);if(y++,y%5===0&&new Date-a>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=l,c==-1&&(c=l),m<=c&&r.fireUpdateEvent(m,c)}}}return s.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(h,o){var r={first:h,last:o};this._signal("update",{data:r})},s.prototype.start=function(h){this.currentLine=Math.min(h||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)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(h){var o=h.start.row,r=h.end.row-o;if(r===0)this.lines[o]=null;else if(h.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var a=Array(r+1);a.unshift(o,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(h){return this.lines[h]||this.$tokenizeRow(h)},s.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},s.prototype.$tokenizeRow=function(h){var o=this.doc.getLine(h),r=this.states[h-1],a=this.tokenizer.getLineTokens(o,r,h);return this.states[h]+""!=a.state+""?(this.states[h]=a.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=a.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,f),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,p){var u=n("./lib/lang"),f=n("./range").Range,g=function(){function s(h,o,r){r===void 0&&(r="text"),this.setRegexp(h),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},s.prototype.update=function(h,o,r,a){if(this.regExp)for(var l=a.firstRow,c=a.lastRow,d={},m=l;m<=c;m++){var v=this.cache[m];v==null&&(v=u.getMatchOffsets(r.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new f(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var k=v[y].toScreenRange(r),C=k.toString();d[C]||(d[C]=!0,o.drawSingleLineMarker(h,k,this.clazz,a))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,p){var u=function(){function S(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function($){this.$session=$},S.prototype.add=function($,R,L){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),R===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},S.prototype.addSelection=function($,R){this.selections.push({value:$,rev:R||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function($,R){R==null&&(R=this.$rev+1);for(var L=this.$undoStack,x=L.length;x--;){var M=L[x][0];if(M.id<=$)break;M.id<R&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function($,R){for(var L=this.selections,x=L.length;x--;){var M=L[x];if(M.rev<$)return R&&(M=L[x+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function($,R){R==null&&(R=this.$rev+1);for(var L=this.$undoStack,x=null,M=0,b=L.length;b--;){var A=L[b][0];if(A.id<R&&!x&&(x=b+1),A.id<=$){M=b+1;break}}return L.slice(M,x)},S.prototype.getChangedRanges=function($,R){R==null&&(R=this.$rev+1)},S.prototype.getChangedLines=function($,R){R==null&&(R=this.$rev+1)},S.prototype.undo=function($,R){this.lastDeltas=null;var L=this.$undoStack;if(f(L,L.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var x=L.pop(),M=null;return x&&(M=$.undoChanges(x,R),this.$redoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M}},S.prototype.redo=function($,R){if(this.lastDeltas=null,$||($=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(b){b[0].id=++this.$maxRev},this)}var x=this.$redoStack.pop(),M=null;return x&&(M=$.redoChanges(x,R),this.$undoStack.push(x),this.$syncRev()),this.$fromUndo=!1,M},S.prototype.$syncRev=function(){var $=this.$undoStack,R=$[$.length-1],L=R&&R[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},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($){$==null&&($=this.$rev),this.mark=$},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function($){this.reset(),this.$undoStack=$.$undoStack,this.$redoStack=$.$redoStack},S.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+`
999
- ---
1000
- `+r(this.$redoStack)},S}();u.prototype.hasUndo=u.prototype.canUndo,u.prototype.hasRedo=u.prototype.canRedo,u.prototype.isClean=u.prototype.isAtBookmark,u.prototype.markClean=u.prototype.bookmark;function f(S,$){for(var R=$;R--;){var L=S[R];if(L&&!L[0].ignore){for(;R<$-1;){var x=c(S[R],S[R+1]);S[R]=x[0],S[R+1]=x[1],R++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function h(S){return{row:S.row,column:S.column}}function o(S){return{start:h(S.start),end:h(S.end),action:S.action,lines:S.lines.slice()}}function r(S){if(S=S||this,Array.isArray(S))return S.map(r).join(`
1001
- `);var $="";return S.action?($=S.action=="insert"?"+":"-",$+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?$=S.value.map(a).join(`
1002
- `):$=a(S.value)),S.start&&($+=a(S)),(S.id||S.rev)&&($+=" ("+(S.id||S.rev)+")"),$}function a(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function l(S,$){var R=S.action=="insert",L=$.action=="insert";if(R&&L)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(R&&!L)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;else if(!R&&L)if(s($.start,S.start)>=0)m($,S,1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(!R&&!L)if(s($.start,S.start)>=0)m($,S,1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;return[$,S]}function c(S,$){for(var R=S.length;R--;)for(var L=0;L<$.length;L++)if(!l(S[R],$[L])){for(;R<S.length;){for(;L--;)l($[L],S[R]);L=$.length,R++}return[S,$]}return S.selectionBefore=$.selectionBefore=S.selectionAfter=$.selectionAfter=null,[$,S]}function d(S,$){var R=S.action=="insert",L=$.action=="insert";if(R&&L)s(S.start,$.start)<0?m($,S,1):m(S,$,1);else if(R&&!L)s(S.start,$.end)>=0?m(S,$,-1):(s(S.start,$.start)<=0||m(S,g.fromPoints($.start,S.start),-1),m($,S,1));else if(!R&&L)s($.start,S.end)>=0?m($,S,-1):(s($.start,S.start)<=0||m($,g.fromPoints(S.start,$.start),-1),m(S,$,1));else if(!R&&!L)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else{var x,M;return s(S.start,$.start)<0&&(x=S,S=y(S,$.start)),s(S.end,$.end)>0&&(M=y(S,$.end)),v($.end,S.start,S.end,-1),M&&!x&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[$,x,M].filter(Boolean)}return[$,S]}function m(S,$,R){v(S.start,$.start,$.end,R),v(S.end,$.start,$.end,R)}function v(S,$,R,L){S.row==(L==1?$:R).row&&(S.column+=L*(R.column-$.column)),S.row+=L*(R.row-$.row)}function y(S,$){var R=S.lines,L=S.end;S.end=h($);var x=S.end.row-S.start.row,M=R.splice(x,R.length),b=x?$.column:$.column-S.start.column;R.push(M[0].substring(0,b)),M[0]=M[0].substr(b);var A={start:h($),end:L,lines:M,action:S.action};return A}function k(S,$){$=o($);for(var R=S.length;R--;){for(var L=S[R],x=0;x<L.length;x++){var M=L[x],b=d(M,$);$=b[0],b.length!=2&&(b[2]?(L.splice(x+1,1,b[1],b[2]),x++):b[1]||(L.splice(x,1),x--))}L.length||S.splice(R,1)}return S}function C(S,$){for(var R=0;R<$.length;R++)for(var L=$[R],x=0;x<L.length;x++)k(S,L[x])}i.UndoManager=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,p){var u=n("../range").Range,f=function(){function g(s,h){this.foldData=s,Array.isArray(h)?this.folds=h:h=this.folds=[h];var o=h[h.length-1];this.range=new u(h[0].start.row,h[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(r){r.setFoldLine(this)},this)}return g.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(h){h.start.row+=s,h.end.row+=s})},g.prototype.addFold=function(s){if(s.sameRow){if(s.start.row<this.startRow||s.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(h,o){return-h.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},g.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},g.prototype.walk=function(s,h,o){var r=0,a=this.folds,l,c,d,m=!0;h==null&&(h=this.end.row,o=this.end.column);for(var v=0;v<a.length;v++){if(l=a[v],c=l.range.compareStart(h,o),c==-1){s(null,h,o,r,m);return}if(d=s(null,l.start.row,l.start.column,r,m),d=!d&&s(l.placeholder,l.start.row,l.start.column,r),d||c===0)return;m=!l.sameRow,r=l.end.column}s(null,h,o,r,m)},g.prototype.getNextFoldTo=function(s,h){for(var o,r,a=0;a<this.folds.length;a++){if(o=this.folds[a],r=o.range.compareEnd(s,h),r==-1)return{fold:o,kind:"after"};if(r===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,h,o){var r=this.getNextFoldTo(s,h),a,l;if(r){if(a=r.fold,r.kind=="inside"&&a.start.column!=h&&a.start.row!=s)window.console&&window.console.log(s,h,a);else if(a.start.row==s){l=this.folds;var c=l.indexOf(a);for(c===0&&(this.start.column+=o),c;c<l.length;c++){if(a=l[c],a.start.column+=o,!a.sameRow)return;a.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,h){var o=this.getNextFoldTo(s,h);if(!o||o.kind=="inside")return null;var r=o.fold,a=this.folds,l=this.foldData,c=a.indexOf(r),d=a[c-1];this.end.row=d.end.row,this.end.column=d.end.column,a=a.splice(c,a.length-c);var m=new g(l,a);return l.splice(l.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var h=s.folds,o=0;o<h.length;o++)this.addFold(h[o]);var r=this.foldData;r.splice(r.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(h){s.push(" "+h.toString())}),s.push("]"),s.join(`
1003
- `)},g.prototype.idxToPosition=function(s){for(var h=0,o=0;o<this.folds.length;o++){var r=this.folds[o];if(s-=r.start.column-h,s<0)return{row:r.start.row,column:r.start.column+s};if(s-=r.placeholder.length,s<0)return r.start;h=r.end.column}return{row:this.end.row,column:this.end.column+s}},g}();i.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,p){var u=n("./range").Range,f=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(h,o,r){for(var a=this.ranges,l=r||0;l<a.length;l++){var c=a[l],d=f(h,c.end);if(!(d>0)){var m=f(h,c.start);return d===0?o&&m!==0?-l-2:l:m>0||m===0&&!o?l:-l-1}}return-l-1},s.prototype.add=function(h){var o=!h.isEmpty(),r=this.pointIndex(h.start,o);r<0&&(r=-r-1);var a=this.pointIndex(h.end,o,r);return a<0?a=-a-1:a++,this.ranges.splice(r,a-r,h)},s.prototype.addList=function(h){for(var o=[],r=h.length;r--;)o.push.apply(o,this.add(h[r]));return o},s.prototype.substractPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var h=[],o=this.ranges;o=o.sort(function(d,m){return f(d.start,m.start)});for(var r=o[0],a,l=1;l<o.length;l++){a=r,r=o[l];var c=f(a.end,r.start);c<0||c==0&&!a.isEmpty()&&!r.isEmpty()||(f(a.end,r.end)<0&&(a.end.row=r.end.row,a.end.column=r.end.column),o.splice(l,1),h.push(r),r=a,l--)}return this.ranges=o,h},s.prototype.contains=function(h,o){return this.pointIndex({row:h,column:o})>=0},s.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},s.prototype.rangeAtPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(h,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row<h)return[];var a=this.pointIndex({row:h,column:0});a<0&&(a=-a-1);var l=this.pointIndex({row:o,column:0},a);l<0&&(l=-l-1);for(var c=[],d=a;d<l;d++)c.push(r[d]);return c},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(h){this.session&&this.detach(),this.session=h,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},s.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},s.prototype.$onChange=function(h){for(var o=h.start,r=h.end,a=o.row,l=r.row,c=this.ranges,d=0,m=c.length;d<m;d++){var v=c[d];if(v.end.row>=a)break}if(h.action=="insert")for(var y=l-a,k=-o.column+r.column;d<m;d++){var v=c[d];if(v.start.row>a)break;if(v.start.row==a&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=k,v.start.row+=y)),v.end.row==a&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&k>0&&d<m-1&&v.end.column>v.start.column&&v.end.column==c[d+1].start.column&&(v.end.column-=k),v.end.column+=k,v.end.row+=y}}else for(var y=a-l,k=o.column-r.column;d<m;d++){var v=c[d];if(v.start.row>l)break;v.end.row<l&&(a<v.end.row||a==v.end.row&&o.column<v.end.column)?(v.end.row=a,v.end.column=o.column):v.end.row==l?v.end.column<=r.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=k,v.end.row+=y):v.end.row>l&&(v.end.row+=y),v.start.row<l&&(a<v.start.row||a==v.start.row&&o.column<v.start.column)?(v.start.row=a,v.start.column=o.column):v.start.row==l?v.start.column<=r.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=k,v.start.row+=y):v.start.row>l&&(v.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var v=c[d];v.start.row+=y,v.end.row+=y}},s}();g.prototype.comparePoints=f,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(l,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},a(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(l,c);function d(){this.constructor=l}l.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(a){u(l,a);function l(c,d){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=c,m.start=c.start,m.end=c.end,m.sameRow=c.start.row==c.end.row,m.subFolds=m.ranges=[],m}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(c){this.foldLine=c,this.subFolds.forEach(function(d){d.setFoldLine(c)})},l.prototype.clone=function(){var c=this.range.clone(),d=new l(c,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},l.prototype.addSubFold=function(c){if(!this.range.isEqual(c)){h(c,this.start);for(var k=c.start.row,C=c.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare(k,C),m==1);d++);var v=this.subFolds[d],y=0;if(m==0){if(v.range.containsRange(c))return v.addSubFold(c);y=1}for(var k=c.range.end.row,C=c.range.end.column,S=d,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(k,C),m==1);S++);m==0&&S++;for(var $=this.subFolds.splice(d,S-d,c),R=m==0?$.length-1:$.length,L=y;L<R;L++)c.addSubFold($[L]);return c.setFoldLine(this.foldLine),c}},l.prototype.restoreRange=function(c){return r(c,this.start)},l}(f);function s(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function h(a,l){s(a.start,l),s(a.end,l)}function o(a,l){a.row==0&&(a.column+=l.column),a.row+=l.row}function r(a,l){o(a.start,l),o(a.end,l)}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,p){var u=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,h=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(r,a,l){var c=this.getFoldLine(r);if(!c)return null;for(var d=c.folds,m=0;m<d.length;m++){var v=d[m].range;if(v.contains(r,a)){if(l==1&&v.isEnd(r,a)&&!v.isEmpty())continue;if(l==-1&&v.isStart(r,a)&&!v.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(r){var a=r.start,l=r.end,c=this.$foldData,d=[];a.column+=1,l.column-=1;for(var m=0;m<c.length;m++){var v=c[m].range.compareRange(r);if(v!=2){if(v==-2)break;for(var y=c[m].folds,k=0;k<y.length;k++){var C=y[k];if(v=C.range.compareRange(r),v==-2)break;if(v==2)continue;if(v==42)break;d.push(C)}}}return a.column-=1,l.column+=1,d},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var a=[];r.forEach(function(l){a=a.concat(this.getFoldsInRange(l))},this)}else var a=this.getFoldsInRange(r);return a},this.getAllFolds=function(){for(var r=[],a=this.$foldData,l=0;l<a.length;l++)for(var c=0;c<a[l].folds.length;c++)r.push(a[l].folds[c]);return r},this.getFoldStringAt=function(r,a,l,c){if(c=c||this.getFoldLine(r),!c)return null;for(var d={end:{column:0}},m,v,y=0;y<c.folds.length;y++){v=c.folds[y];var k=v.range.compareEnd(r,a);if(k==-1){m=this.getLine(v.start.row).substring(d.end.column,v.start.column);break}else if(k===0)return null;d=v}return m||(m=this.getLine(v.start.row).substring(d.end.column)),l==-1?m.substring(0,a-d.end.column):l==1?m.substring(a-d.end.column):m},this.getFoldLine=function(r,a){var l=this.$foldData,c=0;for(a&&(c=l.indexOf(a)),c==-1&&(c=0),c;c<l.length;c++){var d=l[c];if(d.start.row<=r&&d.end.row>=r)return d;if(d.end.row>r)return null}return null},this.getNextFoldLine=function(r,a){var l=this.$foldData,c=0;for(a&&(c=l.indexOf(a)),c==-1&&(c=0),c;c<l.length;c++){var d=l[c];if(d.end.row>=r)return d}return null},this.getFoldedRowCount=function(r,a){for(var l=this.$foldData,c=a-r+1,d=0;d<l.length;d++){var m=l[d],v=m.end.row,y=m.start.row;if(v>=a){y<a&&(y>=r?c-=a-y:c=0);break}else v>=r&&(y>=r?c-=v-y:c-=v-r+1)}return c},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(a,l){return a.start.row-l.start.row}),r},this.addFold=function(r,a){var l=this.$foldData,c=!1,d;r instanceof g?d=r:(d=new g(a,r),d.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,v=d.start.column,y=d.end.row,k=d.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(y,k,-1);if(C&&S==C)return C.addSubFold(d);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(y,k)&&this.removeFold(S);var $=this.getFoldsInRange(d.range);$.length>0&&(this.removeFolds($),d.collapseChildren||$.forEach(function(M){d.addSubFold(M)}));for(var R=0;R<l.length;R++){var L=l[R];if(y==L.start.row){L.addFold(d),c=!0;break}else if(m==L.end.row){if(L.addFold(d),c=!0,!d.sameRow){var x=l[R+1];if(x&&x.start.row==y){L.merge(x);break}}break}else if(y<=L.start.row)break}return c||(L=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(r){r.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(r){var a=r.foldLine,l=a.start.row,c=a.end.row,d=this.$foldData,m=a.folds;if(m.length==1)d.splice(d.indexOf(a),1);else if(a.range.isEnd(r.end.row,r.end.column))m.pop(),a.end.row=m[m.length-1].end.row,a.end.column=m[m.length-1].end.column;else if(a.range.isStart(r.start.row,r.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var v=a.split(r.start.row,r.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(l,c):this.$updateRowLengthCache(l,c)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var a=[],l=0;l<r.length;l++)a.push(r[l]);a.forEach(function(c){this.removeFold(c)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(a){r.restoreRange(a),this.addFold(a)},this),r.collapseChildren>0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(r,a){var l,c;if(r==null)l=new u(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof r=="number")l=new u(r,0,r,this.getLine(r).length);else if("row"in r)l=u.fromPoints(r,r);else{if(Array.isArray(r))return c=[],r.forEach(function(m){c=c.concat(this.unfold(m))},this),c;l=r}c=this.getFoldsInRangeList(l);for(var d=c;c.length==1&&u.comparePoints(c[0].start,l.start)<0&&u.comparePoints(c[0].end,l.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(l);if(a!=!1?this.removeFolds(c):this.expandFolds(c),d.length)return d},this.isRowFolded=function(r,a){return!!this.getFoldLine(r,a)},this.getRowFoldEnd=function(r,a){var l=this.getFoldLine(r,a);return l?l.end.row:r},this.getRowFoldStart=function(r,a){var l=this.getFoldLine(r,a);return l?l.start.row:r},this.getFoldDisplayLine=function(r,a,l,c,d){c==null&&(c=r.start.row),d==null&&(d=0),a==null&&(a=r.end.row),l==null&&(l=this.getLine(a).length);var m=this.doc,v="";return r.walk(function(y,k,C,S){if(!(k<c)){if(k==c){if(C<d)return;S=Math.max(d,S)}y!=null?v+=y:v+=m.getLine(k).substring(S,C)}},a,l),v},this.getDisplayLine=function(r,a,l,c){var d=this.getFoldLine(r);if(d)return this.getFoldDisplayLine(d,r,a,l,c);var m;return m=this.doc.getLine(r),m.substring(c||0,a||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(a){var l=a.folds.map(function(c){return c.clone()});return new f(r,l)}),r},this.toggleFold=function(r){var a=this.selection,l=a.getRange(),c,d;if(l.isEmpty()){var m=l.start;if(c=this.getFoldAt(m.row,m.column),c){this.expandFold(c);return}else(d=this.findMatchingBracket(m))?l.comparePoint(d)==1?l.end=d:(l.start=d,l.start.column++,l.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(l.comparePoint(d)==1?l.end=d:l.start=d,l.start.column++):l=this.getCommentFoldRange(m.row,m.column)||l}else{var v=this.getFoldsInRange(l);if(r&&v.length){this.expandFolds(v);return}else v.length==1&&(c=v[0])}if(c||(c=this.getFoldAt(l.start.row,l.start.column)),c&&c.range.toString()==l.toString()){this.expandFold(c);return}var y="...";if(!l.isMultiLine()){if(y=this.getTextRange(l),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,l)},this.getCommentFoldRange=function(r,a,l){var c=new s(this,r,a),d=c.getCurrentToken(),m=d&&d.type;if(d&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new u;if(l!=1){do d=c.stepBackward();while(d&&v.test(d.type)&&!/^comment.end/.test(d.type));d=c.stepForward()}if(y.start.row=c.getCurrentTokenRow(),y.start.column=c.getCurrentTokenColumn()+(/^comment.start/.test(d.type)?d.value.length:2),c=new s(this,r,a),l!=-1){var k=-1;do if(d=c.stepForward(),k==-1){var C=this.getState(c.$row);v.test(C)||(k=c.$row)}else if(c.$row>k)break;while(d&&v.test(d.type)&&!/^comment.start/.test(d.type));d=c.stepBackward()}else d=c.getCurrentToken();return y.end.row=c.getCurrentTokenRow(),y.end.column=c.getCurrentTokenColumn(),/^comment.end/.test(d.type)||(y.end.column+=d.value.length-2),y}},this.foldAll=function(r,a,l,c){l==null&&(l=1e5);var d=this.foldWidgets;if(d){a=a||this.getLength(),r=r||0;for(var m=r;m<a;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(c&&!c(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=a&&v.start.row>=r&&(m=v.end.row,v.collapseChildren=l,this.addFold("...",v))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(a){for(var l=r.getTokens(a),c=0;c<l.length;c++){var d=l[c];if(!(d.type=="text"&&/^\s+$/.test(d.value)))return!!/comment/.test(d.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(r){if(!this.$foldStyles[r])throw new Error("invalid fold style: "+r+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=r){this.$foldStyle=r,r=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(r){if(this.$foldMode!=r){if(this.$foldMode=r,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!r||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=r.getFoldWidget.bind(r,this,this.$foldStyle),this.getFoldWidgetRange=r.getFoldWidgetRange.bind(r,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(r,a){var l=this.foldWidgets;if(!l||a&&l[r])return{};for(var c=r-1,d;c>=0;){var m=l[c];if(m==null&&(m=l[c]=this.getFoldWidget(c)),m=="start"){var v=this.getFoldWidgetRange(c);if(d||(d=v),v&&v.end.row>=r)break}c--}return{range:c!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(r,a){a instanceof h&&(a=a.domEvent);var l={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},c=this.$toggleFoldWidget(r,l);if(!c){var d=a.target||a.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,a){if(this.getFoldWidget){var l=this.getFoldWidget(r),c=this.getLine(r),d=l==="end"?-1:1,m=this.getFoldAt(r,d===-1?0:c.length,d);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(r,!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(a.siblings){var y=this.getParentFoldRangeData(r);if(y.range)var k=y.range.start.row+1,C=y.range.end.row;this.foldAll(k,C,a.all?1e4:0)}else a.children?(C=v?v.end.row:this.getLength(),this.foldAll(r+1,C,a.all?1e4:0)):v&&(a.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var l=this.$toggleFoldWidget(a,{});if(!l){var c=this.getParentFoldRangeData(a,!0);if(l=c.range||c.firstRange,l){a=l.start.row;var d=this.getFoldAt(a,this.getLine(a).length,1);d?this.removeFold(d):this.addFold("...",l)}}},this.updateFoldWidgets=function(r){var a=r.start.row,l=r.end.row-a;if(l===0)this.foldWidgets[a]=null;else if(r.action=="remove")this.foldWidgets.splice(a,l+1,null);else{var c=Array(l+1);c.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(r){var a=r.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.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,p){var u=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(s,h){if(s.column==0)return null;var o=h||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var r=o.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],s):this.$findOpeningBracket(r[2],s):null},this.getBracketRange=function(s){var h=this.getLine(s.row),o=!0,r,a=h.charAt(s.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=h.charAt(s.column),s={row:s.row,column:s.column+1},l=a&&a.match(/([\(\[\{])|([\)\]\}])/),o=!1),!l)return null;if(l[1]){var c=this.$findClosingBracket(l[1],s);if(!c)return null;r=f.fromPoints(s,c),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var c=this.$findOpeningBracket(l[2],s);if(!c)return null;r=f.fromPoints(c,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,h){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,a=!h&&o.charAt(s.column-1),l=a&&a.match(r);if(l||(a=(h===void 0||h)&&o.charAt(s.column),s={row:s.row,column:s.column+1},l=a&&a.match(r)),!l)return null;var c=new f(s.row,s.column-1,s.row,s.column),d=l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s);if(!d)return[c];var m=new f(d.row,d.column,d.row,d.column+1);return[c,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,h,o){var r=this.$brackets[s],a=1,l=new u(this,h.row,h.column),c=l.getCurrentToken();if(c||(c=l.stepForward()),!!c){o||(o=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=h.column-l.getCurrentTokenColumn()-2,m=c.value;;){for(;d>=0;){var v=m.charAt(d);if(v==r){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:d+l.getCurrentTokenColumn()}}else v==s&&(a+=1);d-=1}do c=l.stepBackward();while(c&&!o.test(c.type));if(c==null)break;m=c.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,h,o){var r=this.$brackets[s],a=1,l=new u(this,h.row,h.column),c=l.getCurrentToken();if(c||(c=l.stepForward()),!!c){o||(o=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=h.column-l.getCurrentTokenColumn();;){for(var m=c.value,v=m.length;d<v;){var y=m.charAt(d);if(y==r){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:d+l.getCurrentTokenColumn()}}else y==s&&(a+=1);d+=1}do c=l.stepForward();while(c&&!o.test(c.type));if(c==null)break;d=0}return null}},this.getMatchingTags=function(s){var h=new u(this,s.row,s.column),o=this.$findTagName(h);if(o){var r=h.stepBackward();return r.value==="<"?this.$findClosingTag(h,o):this.$findOpeningTag(h,o)}},this.$findTagName=function(s){var h=s.getCurrentToken(),o=!1,r=!1;if(h&&h.type.indexOf("tag-name")===-1)do r?h=s.stepBackward():h=s.stepForward(),h&&(h.value==="/>"?r=!0:h.type.indexOf("tag-name")!==-1&&(o=!0));while(h&&!o);return h},this.$findClosingTag=function(s,h){var o,r=h.value,a=h.value,l=0,c=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);h=s.stepForward();var d=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length),m=!1;do if(o=h,h=s.stepForward(),h){if(h.value===">"&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(r=h.value,a===r){if(o.value==="<")l++;else if(o.value==="</"&&(l--,l<0)){s.stepBackward();var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);h=s.stepForward();var k=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),h&&h.value===">")var C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(a===r&&h.value==="/>"&&(l--,l<0))var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),k=y,C=k,v=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}while(h&&l>=0);if(c&&v&&y&&C&&d&&k)return{openTag:new f(c.start.row,c.start.column,v.end.row,v.end.column),closeTag:new f(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:d,closeTagName:k}},this.$findOpeningTag=function(s,h){var o=s.getCurrentToken(),r=h.value,a=0,l=s.getCurrentTokenRow(),c=s.getCurrentTokenColumn(),d=c+2,m=new f(l,c,l,d);s.stepForward();var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),!(!h||h.value!==">")){var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(h=o,l=s.getCurrentTokenRow(),c=s.getCurrentTokenColumn(),d=c+h.value.length,o=s.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(r===h.value)if(o.value==="<"){if(a++,a>0){var k=new f(l,c,l,d),C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do h=s.stepForward();while(h&&h.value!==">");var S=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&a--}else if(h.value==="/>"){for(var $=0,R=o;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===r){a--;break}else if(R.value==="<")break;R=s.stepBackward(),$++}for(var L=0;L<$;L++)s.stepForward()}}while(o&&a<=0);if(C&&S&&m&&y&&k&&v)return{openTag:new f(C.start.row,C.start.column,S.end.row,S.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:k,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,p){var u=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),h=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,a=n("./range").Range,l=n("./document").Document,c=n("./background_tokenizer").BackgroundTokenizer,d=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function b(A,_){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++b.$uid,this.$foldData.toString=function(){return this.join(`
1004
- `)},this.bgTokenizer=new c(new r().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(E){w._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new l(A)),this.setDocument(A),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(_),s._signal("session",this),this.destroyed=!1}return b.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},b.prototype.getDocument=function(){return this.doc},b.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,A)+1;_>w&&(this.$docRowCache.splice(w,_),this.$screenRowCache.splice(w,_))},b.prototype.$getRowCacheIndex=function(A,_){for(var w=0,E=A.length-1;w<=E;){var T=w+E>>1,O=A[T];if(_>O)w=T+1;else if(_<O)E=T-1;else return T}return w-1},b.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},b.prototype.onChangeFold=function(A){var _=A.data;this.$resetRowCache(_.start.row)},b.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var _=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(_&&_.length&&(this.$undoManager.add({action:"removeFolds",folds:_},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},b.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},b.fromJSON=function(A){A=JSON.parse(A);var _=new m;_.$undoStack=A.history.undo,_.$redoStack=A.history.redo,_.mark=A.history.mark,_.$rev=A.history.rev;var w=new b(A.value);return A.folds.forEach(function(E){w.addFold("...",a.fromPoints(E.start,E.end))}),w.setAnnotations(A.annotations),w.setBreakpoints(A.breakpoints),w.setMode(A.mode),w.setScrollLeft(A.scrollLeft),w.setScrollTop(A.scrollTop),w.setUndoManager(_),w.selection.fromJSON(A.selection),w},b.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},b.prototype.toString=function(){return this.doc.getValue()},b.prototype.getSelection=function(){return this.selection},b.prototype.getState=function(A){return this.bgTokenizer.getState(A)},b.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},b.prototype.getTokenAt=function(A,_){var w=this.bgTokenizer.getTokens(A),E,T=0;if(_==null){var O=w.length-1;T=this.getLine(A).length}else for(var O=0;O<w.length&&(T+=w[O].value.length,!(T>=_));O++);return E=w[O],E?(E.index=O,E.start=T-E.value.length,E):null},b.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var _=this;A.addSession(this),this.$syncInformUndoManager=function(){_.$informUndoManager.cancel(),_.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},b.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},b.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},b.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},b.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},b.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},b.prototype.setTabSize=function(A){this.setOption("tabSize",A)},b.prototype.getTabSize=function(){return this.$tabSize},b.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},b.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},b.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},b.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},b.prototype.getOverwrite=function(){return this.$overwrite},b.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},b.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},b.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},b.prototype.getBreakpoints=function(){return this.$breakpoints},b.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_<A.length;_++)this.$breakpoints[A[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},b.prototype.setBreakpoint=function(A,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[A]=_:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},b.prototype.addMarker=function(A,_,w,E){var T=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:_,inFront:!!E,id:T};return E?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},b.prototype.addDynamicMarker=function(A,_){if(A.update){var w=this.$markerId++;return A.id=w,A.inFront=!!_,_?(this.$frontMarkers[w]=A,this._signal("changeFrontMarker")):(this.$backMarkers[w]=A,this._signal("changeBackMarker")),A}},b.prototype.removeMarker=function(A){var _=this.$frontMarkers[A]||this.$backMarkers[A];if(_){var w=_.inFront?this.$frontMarkers:this.$backMarkers;delete w[A],this._signal(_.inFront?"changeFrontMarker":"changeBackMarker")}},b.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},b.prototype.highlight=function(A){if(!this.$searchHighlight){var _=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(A)},b.prototype.highlightLines=function(A,_,w,E){typeof _!="number"&&(w=_,_=A),w||(w="ace_step");var T=new a(A,0,_,1/0);return T.id=this.addMarker(T,w,"fullLine",E),T},b.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},b.prototype.getAnnotations=function(){return this.$annotations||[]},b.prototype.clearAnnotations=function(){this.setAnnotations([])},b.prototype.$detectNewLine=function(A){var _=A.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
1005
- `},b.prototype.getWordRange=function(A,_){var w=this.getLine(A),E=!1;if(_>0&&(E=!!w.charAt(_-1).match(this.tokenRe)),E||(E=!!w.charAt(_).match(this.tokenRe)),E)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(_-1,_+1)))var T=/\s/;else var T=this.nonTokenRe;var O=_;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=_;I<w.length&&w.charAt(I).match(T);)I++;return new a(A,O,A,I)},b.prototype.getAWordRange=function(A,_){for(var w=this.getWordRange(A,_),E=this.getLine(w.end.row);E.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},b.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},b.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},b.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},b.prototype.getUseWorker=function(){return this.$useWorker},b.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},b.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,E=w.path}else E=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[E]&&!w){this.$onChangeMode(this.$modes[E]),_&&_();return}this.$modeId=E,s.loadModule(["mode",E],(function(T){if(this.$modeId!==E)return _&&_();this.$modes[E]&&!w?this.$onChangeMode(this.$modes[E]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[E]=T,T.$id=E),this.$onChangeMode(T)),_&&_()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},b.prototype.$onChangeMode=function(A,_){if(_||(this.$modeId=A.$id),this.$mode!==A){var w=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var E=A.getTokenizer();if(E.on!==void 0){var T=this.onReloadTokenizer.bind(this);E.on("update",T)}this.bgTokenizer.setTokenizer(E),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=A.tokenRe,this.nonTokenRe=A.nonTokenRe,_||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:A}))}},b.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},b.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},b.prototype.getMode=function(){return this.$mode},b.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},b.prototype.getScrollTop=function(){return this.$scrollTop},b.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},b.prototype.getScrollLeft=function(){return this.$scrollLeft},b.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},b.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function(_){_&&_.screenWidth>A&&(A=_.screenWidth)}),this.lineWidgetWidth=A},b.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),w=this.$rowLengthCache,E=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,F=_.length,D=0;D<F;D++){if(D>I){if(D=O.end.row+1,D>=F)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(_[D])[0]),w[D]>E&&(E=w[D])}this.screenWidth=E}},b.prototype.getLine=function(A){return this.doc.getLine(A)},b.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},b.prototype.getLength=function(){return this.doc.getLength()},b.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},b.prototype.insert=function(A,_){return this.doc.insert(A,_)},b.prototype.remove=function(A){return this.doc.remove(A)},b.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},b.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var E=A[w];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},b.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var E=A[w];(E.action=="insert"||E.action=="remove")&&this.doc.$safeApplyDelta(E)}!_&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},b.prototype.setUndoSelect=function(A){this.$undoSelect=A},b.prototype.$getUndoSelection=function(A,_){function w(F){return _?F.action!=="insert":F.action==="insert"}for(var E,T,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!E){w(I)?E=a.fromPoints(I.start,I.end):E=a.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,E.compare(T.row,T.column)==-1&&E.setStart(T),T=I.end,E.compare(T.row,T.column)==1&&E.setEnd(T)):(T=I.start,E.compare(T.row,T.column)==-1&&(E=a.fromPoints(I.start,I.start)))}}return E},b.prototype.replace=function(A,_){return this.doc.replace(A,_)},b.prototype.moveText=function(A,_,w){var E=this.getTextRange(A),T=this.getFoldsInRange(A),O=a.fromPoints(_,_);if(!w){this.remove(A);var I=A.start.row-A.end.row,F=I?-A.end.column:A.start.column-A.end.column;F&&(O.start.row==A.end.row&&O.start.column>A.end.column&&(O.start.column+=F),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=F)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,E),T.length){var D=A.start,W=O.start,I=W.row-D.row,F=W.column-D.column;this.addFolds(T.map(function(U){return U=U.clone(),U.start.row==D.row&&(U.start.column+=F),U.end.row==D.row&&(U.end.column+=F),U.start.row+=I,U.end.row+=I,U}))}return O},b.prototype.indentRows=function(A,_,w){w=w.replace(/\t/g,this.getTabString());for(var E=A;E<=_;E++)this.doc.insertInLine({row:E,column:0},w)},b.prototype.outdentRows=function(A){for(var _=A.collapseRows(),w=new a(0,0,0,0),E=this.getTabSize(),T=_.start.row;T<=_.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<E&&O.charAt(I)==" ";++I);I<E&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},b.prototype.$moveLines=function(A,_,w){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),w<0){var E=this.getRowFoldStart(A+w);if(E<0)return 0;var T=E-A}else if(w>0){var E=this.getRowFoldEnd(_+w);if(E>this.doc.getLength()-1)return 0;var T=E-_}else{A=this.$clipRowToDocument(A),_=this.$clipRowToDocument(_);var T=_-A+1}var O=new a(A,0,_,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},b.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},b.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},b.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},b.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},b.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},b.prototype.$clipPositionToDocument=function(A,_){if(_=Math.max(0,_),A<0)A=0,_=0;else{var w=this.doc.getLength();A>=w?(A=w-1,_=this.doc.getLine(w-1).length):_=Math.min(this.doc.getLine(A).length,_)}return{row:A,column:_}},b.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var _=this.doc.getLength()-1;return A.end.row>_?(A.end.row=_,A.end.column=this.doc.getLine(_).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},b.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var _=this.getLength();this.$wrapData=Array(_),this.$updateWrapData(0,_-1)}this._signal("changeWrapMode")}},b.prototype.getUseWrapMode=function(){return this.$useWrapMode},b.prototype.setWrapLimitRange=function(A,_){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==_)&&(this.$wrapLimitRange={min:A,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},b.prototype.adjustWrapLimit=function(A,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var E=this.$constrainWrapLimit(A,w.min,w.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},b.prototype.$constrainWrapLimit=function(A,_,w){return _&&(A=Math.max(_,A)),w&&(A=Math.min(w,A)),A},b.prototype.getWrapLimit=function(){return this.$wrapLimit},b.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},b.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},b.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,w=A.action,E=A.start,T=A.end,O=E.row,I=T.row,F=I-O,D=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;D=this.getFoldsInRange(A),this.removeFolds(D);var j=this.getFoldLine(T.row),H=0;if(j){j.addRemoveChars(T.row,T.column,E.column-T.column),j.shiftRow(-F);var U=this.getFoldLine(O);U&&U!==j&&(U.merge(j),j=U),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=T.row&&j.shiftRow(-F)}I=O}else{var K=Array(F);K.unshift(O,0);var Z=_?this.$wrapData:this.$rowLengthCache;Z.splice.apply(Z,K);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var z=j.range.compareInside(E.row,E.column);z==0?(j=j.split(E.row,E.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,T.column-E.column))):z==-1&&(j.addRemoveChars(O,0,T.column-E.column),j.shiftRow(F)),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=O&&j.shiftRow(F)}}else{F=Math.abs(A.start.column-A.end.column),w==="remove"&&(D=this.getFoldsInRange(A),this.removeFolds(D),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,E.column,F)}return _&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},b.prototype.$updateRowLengthCache=function(A,_,w){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},b.prototype.$updateWrapData=function(A,_){var w=this.doc.getAllLines(),E=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,D=A;for(_=Math.min(_,w.length-1);D<=_;)F=this.getFoldLine(D,F),F?(I=[],F.walk((function(W,j,H,U){var K;if(W!=null){K=this.$getDisplayTokens(W,I.length),K[0]=C;for(var Z=1;Z<K.length;Z++)K[Z]=S}else K=this.$getDisplayTokens(w[j].substring(U,H),I.length);I=I.concat(K)}).bind(this),F.end.row,w[F.end.row].length+1),T[F.start.row]=this.$computeWrapSplits(I,O,E),D=F.end.row+1):(I=this.$getDisplayTokens(w[D]),T[D]=this.$computeWrapSplits(I,O,E),D++)},b.prototype.$computeWrapSplits=function(A,_,w){if(A.length==0)return[];var E=[],T=A.length,O=0,I=0,F=this.$wrapAsCode,D=this.$indentedSoftWrap,W=_<=Math.max(2*w,8)||D===!1?0:Math.floor(_/2);function j(){var z=0;if(W===0)return z;if(D)for(var X=0;X<A.length;X++){var Y=A[X];if(Y==R)z+=1;else if(Y==L)z+=w;else{if(Y==x)continue;break}}return F&&D!==!1&&(z+=w),Math.min(z,W)}function H(z){for(var X=z-O,Y=O;Y<z;Y++){var V=A[Y];(V===12||V===2)&&(X-=1)}E.length||(U=j(),E.indent=U),I+=X,E.push(I),O=z}for(var U=0;T-O>_-U;){var K=O+_-U;if(A[K-1]>=R&&A[K]>=R){H(K);continue}if(A[K]==C||A[K]==S){for(K;K!=O-1&&A[K]!=C;K--);if(K>O){H(K);continue}for(K=O+_,K;K<A.length&&A[K]==S;K++);if(K==A.length)break;H(K);continue}for(var Z=Math.max(K-(_-(_>>2)),O-1);K>Z&&A[K]<C;)K--;if(F){for(;K>Z&&A[K]<C;)K--;for(;K>Z&&A[K]==$;)K--}else for(;K>Z&&A[K]<R;)K--;if(K>Z){H(++K);continue}K=O+_,A[K]==k&&K--,H(K-U)}return E},b.prototype.$getDisplayTokens=function(A,_){var w=[],E;_=_||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){E=this.getScreenTabSize(w.length+_),w.push(L);for(var I=1;I<E;I++)w.push(x)}else O==32?w.push(R):O>39&&O<48||O>57&&O<64?w.push($):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},b.prototype.$getStringScreenWidth=function(A,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var E,T;for(T=0;T<A.length&&(E=A.charCodeAt(T),E==9?w+=this.getScreenTabSize(w):E>=4352&&M(E)?w+=2:w+=1,!(w>_));T++);return[w,T]},b.prototype.getRowLength=function(A){var _=1;return this.lineWidgets&&(_+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?_:this.$wrapData[A].length+_},b.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},b.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE),w=this.$wrapData[_.row];return w.length&&w[0]<_.column?w.indent:0}else return 0},b.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},b.prototype.getDocumentLastRowColumn=function(A,_){var w=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(w)},b.prototype.getDocumentLastRowColumnPosition=function(A,_){var w=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},b.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},b.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},b.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},b.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},b.prototype.screenToDocumentPosition=function(A,_,w){if(A<0)return{row:0,column:0};var E,T=0,O=0,I,F=0,D=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],T=this.$docRowCache[j],U=A>W[H-1];else var U=!H;for(var K=this.getLength()-1,Z=this.getNextFoldLine(T),z=Z?Z.start.row:1/0;F<=A&&(D=this.getRowLength(T),!(F+D>A||T>=K));)F+=D,T++,T>z&&(T=Z.end.row+1,Z=this.getNextFoldLine(T,Z),z=Z?Z.start.row:1/0),U&&(this.$docRowCache.push(T),this.$screenRowCache.push(F));if(Z&&Z.start.row<=T)E=this.getFoldDisplayLine(Z),T=Z.start.row;else{if(F+D<=A||T>K)return{row:K,column:this.getLine(K).length};E=this.getLine(T),Z=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var V=this.$wrapData[T];V&&(I=V[Y],Y>0&&V.length&&(X=V.indent,O=V[Y-1]||V[V.length-1],E=E.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:T,column:O}},b.prototype.documentToScreenPosition=function(A,_){if(typeof _>"u")var w=this.$clipPositionToDocument(A.row,A.column);else w=this.$clipPositionToDocument(A,_);A=w.row,_=w.column;var E=0,T=null,O=null;O=this.getFoldAt(A,_,1),O&&(A=O.start.row,_=O.start.column);var I,F=0,D=this.$docRowCache,W=this.$getRowCacheIndex(D,A),j=D.length;if(j&&W>=0)var F=D[W],E=this.$screenRowCache[W],H=A>D[j-1];else var H=!j;for(var U=this.getNextFoldLine(F),K=U?U.start.row:1/0;F<A;){if(F>=K){if(I=U.end.row+1,I>A)break;U=this.getNextFoldLine(I,U),K=U?U.start.row:1/0}else I=F+1;E+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(E))}var Z="";U&&F>=K?(Z=this.getFoldDisplayLine(U,A,_),T=U.start.row):(Z=this.getLine(A).substring(0,_),T=A);var z=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;Z.length>=X[Y];)E++,Y++;Z=Z.substring(X[Y-1]||0,Z.length),z=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(E+=this.lineWidgets[F].rowsAbove),{row:E,column:z+this.$getStringScreenWidth(Z)[0]}},b.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},b.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},b.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,E=0,_=this.$foldData[E++],I=_?_.start.row:1/0;O<T;){var F=this.$wrapData[O];A+=F?F.length+1:1,O++,O>I&&(O=_.end.row+1,_=this.$foldData[E++],I=_?_.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,E=0;E<w.length;E++)_=w[E],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},b.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,w,E){if(w===0)return[0,0];w||(w=1/0),E=E||0;var T,O;for(O=0;O<_.length&&(T=_.charAt(O),T===" "?E+=this.getScreenTabSize(E):E+=A.getCharacterWidth(T),!(E>w));O++);return[E,O]})},b.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()},b}();v.$uid=0,v.prototype.$modes=s.$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=M,u.implement(v.prototype,h);var y=1,k=2,C=3,S=4,$=9,R=10,L=11,x=12;function M(b){return b<4352?!1:b>=4352&&b<=4447||b>=4515&&b<=4519||b>=4602&&b<=4607||b>=9001&&b<=9002||b>=11904&&b<=11929||b>=11931&&b<=12019||b>=12032&&b<=12245||b>=12272&&b<=12283||b>=12288&&b<=12350||b>=12353&&b<=12438||b>=12441&&b<=12543||b>=12549&&b<=12589||b>=12593&&b<=12686||b>=12688&&b<=12730||b>=12736&&b<=12771||b>=12784&&b<=12830||b>=12832&&b<=12871||b>=12880&&b<=13054||b>=13056&&b<=19903||b>=19968&&b<=42124||b>=42128&&b<=42182||b>=43360&&b<=43388||b>=44032&&b<=55203||b>=55216&&b<=55238||b>=55243&&b<=55291||b>=63744&&b<=64255||b>=65040&&b<=65049||b>=65072&&b<=65106||b>=65108&&b<=65126||b>=65128&&b<=65131||b>=65281&&b<=65376||b>=65504&&b<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(b){if(!b||b=="off"?b=!1:b=="free"?b=!0:b=="printMargin"?b=-1:typeof b=="string"&&(b=parseInt(b,10)||!1),this.$wrap!=b)if(this.$wrap=b,!b)this.setUseWrapMode(!1);else{var A=typeof b=="number"?b:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(b){b=b=="auto"?this.$mode.type!="text":b!="text",b!=this.$wrapAsCode&&(this.$wrapAsCode=b,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(b){this.$useWorker=b,this.$stopWorker(),b&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(b){b=parseInt(b),b>0&&this.$tabSize!==b&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(b){this.setFoldStyle(b)},handlesSet:!0},overwrite:{set:function(b){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(b){this.doc.setNewLineMode(b)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(b){this.setMode(b)},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,p){var u=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return f.mixin(this.$options,r),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var a=this.$options,l=this.$matchIterator(r,a);if(!l)return!1;var c=null;return l.forEach(function(d,m,v,y){return c=new g(d,m,v,y),m==y&&a.start&&a.start.start&&a.skipCurrent!=!1&&c.isEqual(a.start)?(c=null,!1):!0}),c},o.prototype.findAll=function(r){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var l=a.range,c=l?r.getLines(l.start.row,l.end.row):r.doc.getAllLines(),d=[],m=a.re;if(a.$isMultiLine){var v=m.length,y=c.length-v,k;e:for(var C=m.offset||0;C<=y;C++){for(var S=0;S<v;S++)if(c[C+S].search(m[S])==-1)continue e;var $=c[C],R=c[C+v-1],L=$.length-$.match(m[0])[0].length,x=R.match(m[v-1])[0].length;k&&k.end.row===C&&k.end.column>L||(d.push(k=new g(C,L,C+v-1,x)),v>2&&(C=C+v-2))}}else for(var M=0;M<c.length;M++)for(var b=u.getMatchOffsets(c[M],m),S=0;S<b.length;S++){var A=b[S];d.push(new g(M,A.offset,M,A.offset+A.length))}if(l){for(var _=l.start.column,w=l.end.column,M=0,S=d.length-1;M<S&&d[M].start.column<_&&d[M].start.row==0;)M++;for(var E=l.end.row-l.start.row;M<S&&d[S].end.column>w&&d[S].end.row==E;)S--;for(d=d.slice(M,S+1),M=0,S=d.length;M<S;M++)d[M].start.row+=l.start.row,d[M].end.row+=l.start.row}return d},o.prototype.replace=function(r,a){var l=this.$options,c=this.$assembleRegExp(l);if(l.$isMultiLine)return a;if(c){var d=c.exec(r);if(!d||d[0].length!=r.length)return null;if(a=r.replace(c,a),l.preserveCase){a=a.split("");for(var m=Math.min(r.length,r.length);m--;){var v=r[m];v&&v.toLowerCase()!=v?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},o.prototype.$assembleRegExp=function(r,a){if(r.needle instanceof RegExp)return r.re=r.needle;var l=r.needle;if(!r.needle)return r.re=!1;r.regExp||(l=u.escapeRegExp(l));var c=r.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),r.$supportsUnicodeFlag=!0,c+="u"}catch{r.$supportsUnicodeFlag=!1}if(r.wholeWord&&(l=h(l,r)),r.$isMultiLine=!a&&/[\n\r]/.test(l),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(l,c);try{var d=new RegExp(l,c)}catch{d=!1}return r.re=d},o.prototype.$assembleMultilineRegExp=function(r,a){for(var l=r.replace(/\r\n|\r|\n/g,`$
1006
- ^`).split(`
1007
- `),c=[],d=0;d<l.length;d++)try{c.push(new RegExp(l[d],a))}catch{return!1}return c},o.prototype.$matchIterator=function(r,a){var l=this.$assembleRegExp(a);if(!l)return!1;var c=a.backwards==!0,d=a.skipCurrent!=!1,m=l.unicode,v=a.range,y=a.start;y||(y=v?v[c?"end":"start"]:r.selection.getRange()),y.start&&(y=y[d!=c?"end":"start"]);var k=v?v.start.row:0,C=v?v.end.row:r.getLength()-1;if(c)var S=function(L){var x=y.row;if(!R(x,y.column,L)){for(x--;x>=k;x--)if(R(x,Number.MAX_VALUE,L))return;if(a.wrap!=!1){for(x=C,k=y.row;x>=k;x--)if(R(x,Number.MAX_VALUE,L))return}}};else var S=function(x){var M=y.row;if(!R(M,y.column,x)){for(M=M+1;M<=C;M++)if(R(M,0,x))return;if(a.wrap!=!1){for(M=k,C=y.row;M<=C;M++)if(R(M,0,x))return}}};if(a.$isMultiLine)var $=l.length,R=function(L,x,M){var b=c?L-$+1:L;if(!(b<0||b+$>r.getLength())){var A=r.getLine(b),_=A.search(l[0]);if(!(!c&&_<x||_===-1)){for(var w=1;w<$;w++)if(A=r.getLine(b+w),A.search(l[w])==-1)return;var E=A.match(l[$-1])[0].length;if(!(c&&E>x)&&M(b,_,b+$-1,E))return!0}}};else if(c)var R=function(x,M,b){var A=r.getLine(x),_=[],w,E=0;for(l.lastIndex=0;w=l.exec(A);){var T=w[0].length;if(E=w.index,!T){if(E>=A.length)break;l.lastIndex=E+=u.skipEmptyMatch(A,E,m)}if(w.index+T>M)break;_.push(w.index,T)}for(var O=_.length-1;O>=0;O-=2){var I=_[O-1],T=_[O];if(b(x,I,x,I+T))return!0}};else var R=function(x,M,b){var A=r.getLine(x),_,w;for(l.lastIndex=M;w=l.exec(A);){var E=w[0].length;if(_=w.index,b(x,_,x,_+E))return!0;if(!E&&(l.lastIndex=_+=u.skipEmptyMatch(A,_,m),_>=A.length))return!1}};return{forEach:S}},o}();function h(o,r){var a=u.supportsLookbehind();function l(v,y){y===void 0&&(y=!0);var k=a&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return k.test(v)||r.regExp?a&&r.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var c=Array.from(o),d=c[0],m=c[c.length-1];return l(d)+o+l(m,!1)}i.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(l,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},a(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(l,c);function d(){this.constructor=l}l.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),s=f.KEY_MODS,h=function(){function a(l,c){this.$init(l,c,!1)}return a.prototype.$init=function(l,c,d){this.platform=c||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=d},a.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},a.prototype.removeCommand=function(l,c){var d=l&&(typeof l=="string"?l:l.name);l=this.commands[d],c||delete this.commands[d];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==l)delete m[v];else if(Array.isArray(y)){var k=y.indexOf(l);k!=-1&&(y.splice(k,1),y.length==1&&(m[v]=y[0]))}}},a.prototype.bindKey=function(l,c,d){if(typeof l=="object"&&l&&(d==null&&(d=l.position),l=l[this.platform]),!!l){if(typeof c=="function")return this.addCommand({exec:c,bindKey:l,name:c.name||l});l.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var $=this.parseKeys(S),R=s[$.hashId]+$.key;v+=(v?" ":"")+R,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var k=this.parseKeys(m),C=s[k.hashId]+k.key;this._addCommandToBinding(v+C,c,d)},this)}},a.prototype._addCommandToBinding=function(l,c,d){var m=this.commandKeyBinding,v;if(!c)delete m[l];else if(!m[l]||this.$singleCommand)m[l]=c;else{Array.isArray(m[l])?(v=m[l].indexOf(c))!=-1&&m[l].splice(v,1):m[l]=[m[l]],typeof d!="number"&&(d=o(c));var y=m[l];for(v=0;v<y.length;v++){var k=y[v],C=o(k);if(C>d)break}y.splice(v,0,c)}},a.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(c){var d=l[c];if(d){if(typeof d=="string")return this.bindKey(d,c);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=c),this.addCommand(d))}},this)},a.prototype.removeCommands=function(l){Object.keys(l).forEach(function(c){this.removeCommand(l[c])},this)},a.prototype.bindKeys=function(l){Object.keys(l).forEach(function(c){this.bindKey(c,l[c])},this)},a.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},a.prototype.parseKeys=function(l){var c=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),d=c.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(c.length){if(c.length==1&&c[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,y=c.length;y--;){var k=f.KEY_MODS[c[y]];if(k==null)return typeof console<"u"&&console.error("invalid modifier "+c[y]+" in "+l),!1;v|=k}return{key:d,hashId:v}},a.prototype.findKeyCommand=function(l,c){var d=s[l]+c;return this.commandKeyBinding[d]},a.prototype.handleKeyboard=function(l,c,d,m){if(!(m<0)){var v=s[c]+d,y=this.commandKeyBinding[v];return l.$keyChain&&(l.$keyChain+=" "+v,y=this.commandKeyBinding[l.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||v,{command:"null"}):(l.$keyChain&&((!c||c==4)&&d.length==1?l.$keyChain=l.$keyChain.slice(0,-v.length-1):(c==-1||m>0)&&(l.$keyChain="")),{command:y})}},a.prototype.getStatusText=function(l,c){return c.$keyChain||""},a}();function o(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var r=function(a){u(l,a);function l(c,d){var m=a.call(this,c,d)||this;return m.$singleCommand=!0,m}return l}(h);r.call=function(a,l,c){h.prototype.$init.call(a,l,c,!0)},h.call=function(a,l,c){h.prototype.$init.call(a,l,c,!1)},i.HashHandler=r,i.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var o=function(r,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(l[d]=c[d])},o(r,a)};return function(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");o(r,a);function l(){this.constructor=r}r.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,h=function(o){u(r,o);function r(a,l){var c=o.call(this,l,a)||this;return c.byName=c.commands,c.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),c}return r.prototype.exec=function(a,l,c){if(Array.isArray(a)){for(var d=a.length;d--;)if(this.exec(a[d],l,c))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!a||l&&l.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(l))return!1;var m={editor:l,command:a,args:c};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._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(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,a):this.exec(l[0],a,l[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(a){return a.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},r}(g);f.implement(h.prototype,s),i.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,p){var u=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function s(o,r){return{win:o,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){f.loadModule("ace/ext/settings_menu",function(r){r.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(o,r){typeof r=="number"&&!isNaN(r)&&o.gotoLine(r),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("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:s("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:s("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("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:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("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:s("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:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(o){f.loadModule("ace/ext/searchbox",function(r){r.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("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:s("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:s("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:s("Up","Up|Ctrl-P"),exec:function(o,r){o.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("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:s("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:s("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:s("Down","Down|Ctrl-N"),exec:function(o,r){o.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("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:s("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("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:s("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:s("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:s("Left","Left|Ctrl-B"),exec:function(o,r){o.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("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:s("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("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:s("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:s("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(o,r){o.navigateRight(r.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:s(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("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:s(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:s("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("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:s("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("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:s("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:s(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 r=o.$copyWithEmptySelection&&o.selection.isEmpty(),a=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",a),a.isEmpty()||o.session.remove(a),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,r){o.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(o){f.loadModule("ace/ext/searchbox",function(r){r.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("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:s("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:s("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(o){var r=o.selection.getRange();r.start.column=0,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var r=o.selection.getRange();r.end.column=Number.MAX_VALUE,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,r){o.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,r){o.insert(u.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(o){o.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var r=o.selection.getRange();r.start.column=r.end.column=0,r.end.row++,o.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(o){for(var r=o.selection.isBackwards(),a=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),l=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),c=o.session.doc.getLine(a.row).length,d=o.session.doc.getTextRange(o.selection.getRange()),m=d.replace(/\n\s*/," ").length,v=o.session.doc.getLine(a.row),y=a.row+1;y<=l.row+1;y++){var k=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(y)));k.length!==0&&(k=" "+k),v+=k}l.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(a.row,0,l.row+2,0),v),m>0?(o.selection.moveCursorTo(a.row,a.column),o.selection.selectTo(a.row,a.column+m)):(c=o.session.doc.getLine(a.row).length>c?c+1:c,o.selection.moveCursorTo(a.row,c))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,a=o.session.doc.getLine(r).length,l=o.selection.rangeList.ranges,c=[];l.length<1&&(l=[o.selection.getRange()]);for(var d=0;d<l.length;d++)d==l.length-1&&(l[d].end.row===r&&l[d].end.column===a||c.push(new g(l[d].end.row,l[d].end.column,r,a))),d===0?l[d].start.row===0&&l[d].start.column===0||c.push(new g(0,0,l[d].start.row,l[d].start.column)):c.push(new g(l[d-1].end.row,l[d-1].end.column,l[d].start.row,l[d].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var d=0;d<c.length;d++)o.selection.addRange(c[d],!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(`
1008
- `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var r=o.getCursorPosition();o.selection.moveTo(r.row-1,Number.MAX_VALUE),o.insert(`
1009
- `),r.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:s("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)i.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,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,p){var u=n("./lib/dom"),f=function(){function g(s){this.session=s,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(s){var h;return this.lineWidgets?h=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[s]?1+h:this.$wrapData[s].length+1+h},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(s+=h.rowCount)}),s},g.prototype.$onChangeEditor=function(s){this.attach(s.editor)},g.prototype.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),this.editor=s,s&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(s){var h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},g.prototype.updateOnFold=function(s,h){var o=h.lineWidgets;if(!(!o||!s.action)){for(var r=s.data,a=r.start.row,l=r.end.row,c=s.action=="add",d=a+1;d<l;d++)o[d]&&(o[d].hidden=c);o[l]&&(c?o[a]?o[l].hidden=c:o[a]=o[l]:(o[a]==o[l]&&(o[a]=void 0),o[l].hidden=c))}},g.prototype.updateOnChange=function(s){var h=this.session.lineWidgets;if(h){var o=s.start.row,r=s.end.row-o;if(r!==0)if(s.action=="remove"){var a=h.splice(o+1,r);!h[o]&&a[a.length-1]&&(h[o]=a.pop()),a.forEach(function(c){c&&this.removeLineWidget(c)},this),this.$updateRows()}else{var l=new Array(r);h[o]&&h[o].column!=null&&s.start.column>h[o].column&&o++,l.unshift(o,0),h.splice.apply(h,l),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var h=!0;s.forEach(function(o,r){if(o)for(h=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),h&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[s.row];return h&&(s.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},g.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var h=this.editor.renderer;s.html&&!s.el&&(s.el=u.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=u.createElement("div"),s.el.textContent=s.text),s.el&&(u.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&u.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex=5,h.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/h.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var r=this.session.lineWidgets;s.row==o.end.row&&!r[o.start.row]?r[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(s),s},g.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[s.row];if(h==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;h;){if(h.$oldWidget==s){h.$oldWidget=s.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var h=this.session.lineWidgets,o=h&&h[s],r=[];o;)r.push(o),o=o.$oldWidget;return r},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,h){var o=this.session._changedWidgets,r=h.layerConfig;if(!(!o||!o.length)){for(var a=1/0,l=0;l<o.length;l++){var c=o[l];if(!(!c||!c.el)&&c.session==this.session){if(!c._inDocument){if(this.session.lineWidgets[c.row]!=c)continue;c._inDocument=!0,h.container.appendChild(c.el)}c.h=c.el.offsetHeight,c.fixedWidth||(c.w=c.el.offsetWidth,c.screenWidth=Math.ceil(c.w/r.characterWidth));var d=c.h/r.lineHeight;c.coverLine&&(d-=this.session.getRowLineCount(c.row),d<0&&(d=0)),c.rowCount!=d&&(c.rowCount=d,c.row<a&&(a=c.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,h){var o=h.layerConfig,r=this.session.lineWidgets;if(r){for(var a=Math.min(this.firstRow,o.firstRow),l=Math.max(this.lastRow,o.lastRow,r.length);a>0&&!r[a];)a--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,h.$cursorLayer.config=o;for(var c=a;c<=l;c++){var d=r[c];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,h.container.appendChild(d.el));var m=h.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;d.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-o.offset+"px";var v=d.coverGutter?0:h.gutterWidth;d.fixedWidth||(v-=h.scrollLeft),d.el.style.left=v+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=o.width+2*o.padding+"px"),d.fixedWidth?d.el.style.right=h.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();i.LineWidgets=f}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,p){var u=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function h(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 f(this.editor)}return h.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))},h.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))},h.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=u.enter)return;o.preventDefault();var r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(a),c=this.$findNearestAnnotation(a);if(!(l===null&&c===null)){if(l===null&&c!==null){this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&c===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(c-a)<Math.abs(l-a)){this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new s(o,this))}).bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===u.tab){o.preventDefault();return}if(o.keyCode===u.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===u.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===u.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===u.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===u.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===u.enter||o.keyCode===u.space){switch(o.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var r=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==r&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(r),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=a.getBoundingClientRect(),c=this.annotationTooltip.getElement().style;c.left=l.right+"px",c.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},h.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()},h.prototype.$isFoldWidgetVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getFoldWidget(o).style.display!=="none";return r&&a},h.prototype.$isAnnotationVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getAnnotation(o).style.display!=="none";return r&&a},h.prototype.$getFoldWidget=function(o){var r=this.lines.get(o),a=r.element;return a.childNodes[1]},h.prototype.$getAnnotation=function(o){var r=this.lines.get(o),a=r.element;return a.childNodes[2]},h.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isFoldWidgetVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+r))return o+r}return null},h.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isAnnotationVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+r))return o+r}return null},h.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.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}},h.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}},h.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}},h.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}},h.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var r=this.$findNearestAnnotation(this.activeRowIndex);if(r==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(o){var r=this.lines.get(o);return r?r.row:null},h.prototype.$rowToRowIndex=function(o){for(var r=0;r<this.lines.getLength();r++){var a=this.lines.get(r);if(a.row==o)return r}return null},h}();i.GutterKeyboardHandler=g;var s=function(){function h(o,r){this.gutterKeyboardHandler=r,this.domEvent=o}return h.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h}();i.GutterKeyboardEvent=s}),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,p){var u=this&&this.__values||function(_){var w=typeof Symbol=="function"&&Symbol.iterator,E=w&&_[w],T=0;if(E)return E.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&T>=_.length&&(_=void 0),{value:_&&_[T++],done:!_}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),h=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,a=n("./mouse/fold_handler").FoldHandler,l=n("./keyboard/keybinding").KeyBinding,c=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,k=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,R=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,x=n("./clipboard"),M=n("./lib/keys"),b=function(){function _(w,E,T){this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++_.$uid,this.commands=new y(h.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new a(this)),this.keyBinding=new l(this),this.$search=new d().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,F){F._$emitInputEvent.schedule(31)}),this.setSession(E||T&&T.session||new c("")),C.resetOptions(this),T&&this.setOptions(T),C._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.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)},_.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()},_.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 E=this.curOp.command,T=E&&E.scrollIntoView;if(T){switch(T){case"center-animate":T="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}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var F=this.selection.toJSON();this.curOp.selectionAfter=F,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(F),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var E=this.prevOp,T=this.$mergeableCommands,O=E.command&&w.command.name==E.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(E.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(w,E){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;C.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),E&&E()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){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 T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.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:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(w,E){return this.session.doc.setValue(w),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),w},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(w){this.renderer.onResize(w)},_.prototype.setTheme=function(w,E){this.renderer.setTheme(w,E)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(w){this.renderer.setStyle(w)},_.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(w){this.setOption("fontSize",w)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var E=w.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(U){E.removeMarker(U)}),E.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=E.getMatchingBracketRanges(T,I);if(!F){var D=new S(E,T.row,T.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=E.getMatchingTags(T);j&&(F=[j.openTagName,j.closeTagName])}}if(!F&&E.$mode.getMatching&&(F=E.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(F)?F.length==1&&(H="ace_error_bracket"):F=[F],F.length==2&&(m.comparePoints(F[0].end,F[1].start)==0?F=[m.fromPoints(F[0].start,F[1].end)]:m.comparePoints(F[0].start,F[1].end)==0&&(F=[m.fromPoints(F[1].start,F[0].end)])),E.$bracketHighlight={ranges:F,markerIds:F.map(function(U){return E.addMarker(U,H,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},_.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(w){var E=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,E),this._signal("change",w),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(w){var E=w.data;this.renderer.updateLines(E.first,E.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),w.$highlightLineMarker&&!E)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&E){var T=new m(E.row,E.column,E.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else E&&(w.$highlightLineMarker.start.row=E.row,w.$highlightLineMarker.end.row=E.row,w.$highlightLineMarker.start.column=E.column,w._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(w){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var T=E.start.column,O=E.end.column,I=w.getLine(E.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(D.test(W))return D}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var w=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var F=O[I];I&&O[I-1].start.row==F.start.row||(w+=this.session.getLine(F.start.row)+E)}}var D={text:w};return this._signal("copy",D),x.lineMode=T?D.text:!1,D.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(w,E){var T={text:w,event:E};this.commands.exec("paste",this,T)},_.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var E=w.text,T=E===x.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(T)this.selection.rangeList.ranges.forEach(function(H){O.insert({row:H.start.row,column:0},E)});else{var I=E.split(/\r\n|\r|\n/),F=this.selection.rangeList.ranges,D=I.length==2&&(!I[0]||!I[1]);if(I.length!=F.length||D)return this.commands.exec("insertstring",this,E);for(var W=F.length;W--;){var j=F[W];j.isEmpty()||O.remove(j),O.insert(j.start,I[W])}}},_.prototype.execCommand=function(w,E){return this.commands.exec(w,this,E)},_.prototype.insert=function(w,E){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var F=O.transformAction(T.getState(I.row),"insertion",this,T,w);F&&(w!==F.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=F.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
1010
- `)==-1){var D=new 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==`
1011
- `||w==`\r
1012
- `){var U=T.getLine(I.row);if(I.column>U.search(/\S|$/)){var W=U.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,H=T.getState(I.row),U=T.getLine(I.row),K=O.checkOutdent(H,U,w);if(T.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+F.selection[0],I.row,j+F.selection[1])):this.selection.setSelectionRange(new m(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var Z=O.getNextLineIndent(H,U.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Z)}K&&O.autoOutdent(H,T,I.row)}},_.prototype.autoIndent=function(){var w=this.session,E=w.getMode(),T,O;if(this.selection.isEmpty())T=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();T=I.start.row,O=I.end.row}for(var F="",D="",W="",j,H,U,K=w.getTabString(),Z=T;Z<=O;Z++)Z>0&&(F=w.getState(Z-1),D=w.getLine(Z-1),W=E.getNextLineIndent(F,D,K)),j=w.getLine(Z),H=E.$getIndent(j),W!==H&&(H.length>0&&(U=new m(Z,0,Z,H.length),w.remove(U)),W.length>0&&w.insert({row:Z,column:0},W)),E.autoOutdent(F,w,Z)},_.prototype.onTextInput=function(w,E){if(!E)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var T=this.selection.getRange();T.start.column-=E.extendLeft,T.end.column+=E.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var T=this.selection.getRange();T.start.column-=E.restoreStart,T.end.column-=E.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,E,T){return this.keyBinding.onCommandKey(w,E,T)},_.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(E.start.row),I=T.getMode().transformAction(O,"deletion",this,T,E);if(E.end.column===0){var F=T.getTextRange(E);if(F[F.length-1]==`
1013
- `){var D=T.getLine(E.end.row);/^\s+$/.test(D)&&(E.end.column=D.length)}}I&&(E=I)}this.session.remove(E),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.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()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1014
- `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,E){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,E)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),E=w.column;if(E!==0){var T=this.session.getLine(w.row),O,I;E<T.length?(O=T.charAt(E)+T.charAt(E-1),I=new m(w.row,E-1,w.row,E+1)):(O=T.charAt(E-1)+T.charAt(E-2),I=new m(w.row,E-2,w.row,E)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},_.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(E.start.column<E.end.column){var O=w.getTextRange(E);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(E.start.row),F=E.start,D=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var j=D-W%D,H=s.stringRepeat(" ",j);else{for(var j=W%D;I[E.start.column-1]==" "&&j;)E.start.column--,j--;this.selection.setSelectionRange(E),H=" "}return this.insert(H)},_.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},_.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},_.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),E=this.session,T=[],O=w.first;O<=w.last;O++)T.push(E.getLine(O));T.sort(function(D,W){return D.toLowerCase()<W.toLowerCase()?-1:D.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=E.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,E.replace(I,T[O-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,E.first,E.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),E=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,T,w)},_.prototype.getNumberAt=function(w,E){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<E;){var I=T.exec(O);if(I.index<=E&&I.index+I[0].length>=E){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},_.prototype.modifyNumber=function(w){var E=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(E,T-1,E,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(E,T);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,j=parseFloat(F.value);j*=Math.pow(10,W),D!==F.end&&T<D?w*=Math.pow(10,F.end-T-1):w*=Math.pow(10,F.end-T),j+=w,j/=Math.pow(10,W);var H=j.toFixed(W),U=new m(E,F.start,E,F.end);this.session.replace(U,H),this.moveCursorTo(E,Math.max(F.start+1,T+H.length-F.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var w=this.selection.getCursor().row,E=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=E-O-1;F<0&&(F=0);var D=0,W=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,P){W=D+ee.length,F>=D&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,W+O)),D=W});for(var H=this.$toggleWordPairs,U,K=0;K<H.length;K++)for(var Z=H[K],z=0;z<=1;z++){var X=+!z,Y=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(Z[z])+")\\s?$","i"));if(Y){var V=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));V&&(U=T.replace(new RegExp(s.escapeRegExp(Z[z]),"i"),function(ee){var P=Z[X];return ee.toUpperCase()==ee?P=P.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(P=P.substr(0,0)+Z[X].charAt(0).toUpperCase()+P.substr(1)),P}),this.insert(U),U="")}}},_.prototype.findLinkAt=function(w,E){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=E;D<0&&(D=0);var W=0,j=0,H;try{for(var U=u(F),K=U.next();!K.done;K=U.next()){var Z=K.value;if(j=W+Z.length,D>=W&&D<=j&&Z.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Z.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(z){T={error:z}}finally{try{K&&!K.done&&(O=U.return)&&O.call(U)}finally{if(T)throw T.error}}return H},_.prototype.openLink=function(){var w=this.selection.getCursor(),E=this.findLinkAt(w.row,w.column);return E&&window.open(E,"_blank"),E!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,E=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;E.duplicateLines(I,I)}else{var F=O?T.start:T.end,D=E.insert(F,E.getTextRange(T),!1);T.start=F,T.end=D,w.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,E,T){return this.session.moveText(w,E,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,E){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();T=this.$getSelectedRows(F),O=this.session.$moveLines(T.first,T.last,E?0:w),E&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=D.length,U=0;U<H;U++){var K=U;D[U].moveBy(W,0),T=this.$getSelectedRows(D[U]);for(var Z=T.first,z=T.last;++U<H;){j&&D[U].moveBy(j,0);var X=this.$getSelectedRows(D[U]);if(E&&X.first!=z)break;if(!E&&X.first>z+1)break;z=X.last}for(U--,W=this.session.$moveLines(Z,z,E?0:w),E&&w==-1&&(K=U+1);K<=U;)D[K].moveBy(W,0),K++;E||(W=0),j+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},_.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},_.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(w,E){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):E===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),E!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(F)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},_.prototype.scrollToLine=function(w,E,T,O){this.renderer.scrollToLine(w,E,T,O)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),E={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(E,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(w,E){this.selection.moveCursorTo(w,E)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,E){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),F=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var W,j=!1,H={},U=T.column-D.start,K,Z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;U<D.value.length&&!j;U++)if(Z[D.value[U]])switch(K=Z[D.value[U]]+"."+D.type.replace("rparen","lparen"),isNaN(H[K])&&(H[K]=0),D.value[U]){case"(":case"[":case"{":H[K]++;break;case")":case"]":case"}":H[K]--,H[K]===-1&&(W="bracket",j=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(H[D.value])&&(H[D.value]=0),I.value==="<"&&F>1?H[D.value]++:I.value==="</"&&H[D.value]--,H[D.value]===-1&&(W="tag",j=!0));j||(I=D,F++,D=O.stepForward(),U=0)}while(D&&!j);if(W){var z,X;if(W==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1),X=z.start,(E||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(z=this.session.getBracketRange(X)));else if(W==="tag"){if(!D||D.type.indexOf("tag-name")===-1)return;if(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),z.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(z=Y.closeTag,X=z.start):(z=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?X=z.end:X=z.start))}X=X||z.start}X=z&&z.cursor||X,X&&(w?z&&E?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},_.prototype.gotoLine=function(w,E,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,E||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},_.prototype.navigateTo=function(w,E){this.selection.moveTo(w,E)},_.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},_.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},_.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},_.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var E=this.getSelectionRange().end;this.moveCursorToPosition(E)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(w,E){E&&this.$search.set(E);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},_.prototype.replaceAll=function(w,E){E&&this.$search.set(E);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=T.length-1;F>=0;--F)this.$tryReplace(T[F],w)&&O++;return this.selection.setSelectionRange(I),O},_.prototype.$tryReplace=function(w,E){var T=this.session.getTextRange(w);return E=this.$search.replace(T,E),E!==null?(w.end=this.session.replace(w,E),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,E,T){E||(E={}),typeof w=="string"||w instanceof RegExp?E.needle=w:typeof w=="object"&&f.mixin(E,w);var O=this.selection.getRange();E.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(E),E.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(E.preventScroll)return I;if(I)return this.revealRange(I,T),I;E.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(w,E){this.find({skipCurrent:!0,backwards:!1},w,E)},_.prototype.findPrevious=function(w,E){this.find(w,{skipCurrent:!0,backwards:!0},E)},_.prototype.revealRange=function(w,E){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(T)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.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()},_.prototype.setAutoScrollEditorIntoView=function(w){if(w){var E,T=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 F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(E=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&E&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,H=j.$cursorLayer.$pixelPos,U=j.layerConfig,K=H.top-U.offset;H.top>=0&&K+E.top<0?O=!0:H.top<U.height&&H.top+E.top+U.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=K+"px",I.style.left=H.left+"px",I.style.height=U.lineHeight+"px",I.scrollIntoView(O)),O=E=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(w)),E.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,E,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,T)})},_}();b.$uid=0,b.prototype.curOp=null,b.prototype.prevOp={},b.prototype.$mergeableCommands=["backspace","del","insertstring"],b.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"],["&&","||"],["==","!="]],f.implement(b.prototype,v),C.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){this.textInput.setReadOnly(_),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){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(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?A.attach(this):A.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?A.attach(this):A.detach(this)}},placeholder:{set:function(_){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 E=g.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,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(_){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},E=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.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",L("editor")),this.renderer.$gutter.setAttribute("aria-label",L("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),T||(T=new R(this)),T.addListener()):(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",E.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),T&&T.removeListener())},initialValue:!1},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 A={getText:function(_,w){return(Math.abs(_.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(_,w,E){return Math.max(w.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(_,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};i.Editor=b}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),f=function(){function g(s,h){this.element=s,this.canvasHeight=h||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){u.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,h){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,h,o){var r=h.firstRowScreen*h.lineHeight,a=Math.floor(r/this.canvasHeight),l=o.documentToScreenRow(s,0)*h.lineHeight;return l-a*this.canvasHeight},g.prototype.computeLineHeight=function(s,h,o){return h.lineHeight*o.getRowLineCount(s)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(s){return this.cells[s]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.appendChild(h)}else this.cells.push(s),this.element.appendChild(s.element)},g.prototype.unshift=function(s){if(Array.isArray(s)){this.cells.unshift.apply(this.cells,s);for(var h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}else this.cells.unshift(s),this.element.insertAdjacentElement("afterbegin",s.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(s){s&&(s.element.remove(),this.cellCache.push(s))},g.prototype.createCell=function(s,h,o,r){var a=this.cellCache.pop();if(!a){var l=u.createElement("div");r&&r(l),this.element.appendChild(l),a={element:l,text:"",row:s}}return a.row=s,a},g}();i.Lines=f}),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,p){var u=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,h=n("./lines").Lines,o=n("../config").nls,r=function(){function l(c){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",c.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(c){this.session&&this.session.off("change",this.$updateAnnotations),this.session=c,c&&c.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(c,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(c,d)},l.prototype.removeGutterDecoration=function(c,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(c,d)},l.prototype.setAnnotations=function(c){this.$annotations=[];for(var d=0;d<c.length;d++){var m=c[d],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var k=m.text,C=m.type;k=k?g.escapeHTML(k):m.html||"",y.text.indexOf(k)===-1&&(y.text.push(k),y.type.push(C));var S=m.className;S?y.className=S:C=="error"?y.className=" ace_error":C=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":C=="info"&&!y.className&&(y.className=" ace_info")}},l.prototype.$updateAnnotations=function(c){if(this.$annotations.length){var d=c.start.row,m=c.end.row-d;if(m!==0)if(c.action=="remove")this.$annotations.splice(d,m+1,null);else{var v=new Array(m+1);v.unshift(d,1),this.$annotations.splice.apply(this.$annotations,v)}}},l.prototype.update=function(c){this.config=c;var d=this.session,m=c.firstRow,v=Math.min(c.lastRow+c.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=c,this.$lines.moveContainer(c),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),k=y?y.start.row:1/0,C=null,S=-1,$=m;;){if($>k&&($=y.end.row+1,y=d.getNextFoldLine($,y),k=y?y.start.row:1/0),$>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=$:(C=this.$lines.createCell($,c,this.session,a),this.$lines.push(C)),this.$renderCell(C,c,y,$),$++}this._signal("afterRender"),this.$updateGutterWidth(c)},l.prototype.$updateGutterWidth=function(c){var d=this.session,m=d.gutterRenderer||this.$renderer,v=d.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(y=d.getLength()+v-1);var k=m?m.getWidth(d,y,c):y.toString().length*c.characterWidth,C=this.$padding||this.$computePadding();k+=C.left+C.right,k!==this.gutterWidth&&!isNaN(k)&&(this.gutterWidth=k,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",k))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var c=this.session.selection.getCursor();this.$cursorRow!==c.row&&(this.$cursorRow=c.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var c=this.session.selection.cursor.row;if(this.$cursorRow=c,!(this.$cursorCell&&this.$cursorCell.row==c)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<d.length;m++){var v=d[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==d[m-1].row)v=d[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},l.prototype.scrollLines=function(c){var d=this.config;if(this.config=c,this.$updateCursorRow(),this.$lines.pageChanged(d,c))return this.update(c);this.$lines.moveContainer(c);var m=Math.min(c.lastRow+c.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<c.firstRow)return this.update(c);if(m<d.firstRow)return this.update(c);if(d.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,c.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();c.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(c,c.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(c,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(c)},l.prototype.$renderLines=function(c,d,m){for(var v=[],y=d,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,c,this.session,a);this.$renderCell(S,c,k,y),v.push(S),y++}return v},l.prototype.$renderCell=function(c,d,m,v){var y=c.element,k=this.session,C=y.childNodes[0],S=y.childNodes[1],$=y.childNodes[2],R=$.firstChild,L=k.$firstLineNumber,x=k.$breakpoints,M=k.$decorations,b=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(b?b.getText(k,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=m.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=c&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=c)),x[v]&&(E+=x[v]),M[v]&&(E+=M[v]),this.$annotations[v]&&v!==_&&(E+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=k.getFoldWidget(v))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&v==_&&v<m.end.row;if(D){F+=" ace_closed";for(var W="",j=!1,H=v+1;H<=m.end.row;H++)if(this.$annotations[H]){if(this.$annotations[H].className===" ace_error"){j=!0,W=" ace_error_fold";break}if(this.$annotations[H].className===" ace_warning"){j=!0,W=" ace_warning_fold";continue}}E+=W}else F+=" ace_open";S.className!=F&&(S.className=F),u.setStyle(S.style,"height",w),u.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var U=k.getFoldWidgetRange(v);U?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[U.start.row+1,U.end.row+1])):m?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",o("Toggle code folding, row $0",[v+1])),D?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",o("Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",o("Fold code")))}else S&&(u.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));return j&&this.$showFoldedAnnotations?($.className="ace_gutter_annotation",R.className=T,R.className+=W,u.setStyle(R.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):this.$annotations[v]?($.className="ace_gutter_annotation",R.className=T,this.$useSvgGutterIcons?R.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(R.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):(u.setStyle($.style,"display","none"),$.removeAttribute("aria-label"),$.removeAttribute("role"),$.setAttribute("tabindex","0")),O!==C.data&&(C.data=O),y.className!=E&&(y.className=E),u.setStyle(c.element.style,"height",this.$lines.computeLineHeight(v,d,k)+"px"),u.setStyle(c.element.style,"top",this.$lines.computeLineTop(v,d,k)+"px"),c.text=O,$.style.display==="none"&&S.style.display==="none"?c.element.setAttribute("aria-hidden",!0):c.element.setAttribute("aria-hidden",!1),c},l.prototype.setHighlightGutterLine=function(c){this.$highlightGutterLine=c},l.prototype.setShowLineNumbers=function(c){this.$renderer=!c&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(c){c?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=c,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var c=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(c.borderLeftWidth)||0)+(parseInt(c.paddingLeft)||0)+1,this.$padding.right=(parseInt(c.borderRightWidth)||0)+(parseInt(c.paddingRight)||0),this.$padding},l.prototype.getRegion=function(c){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(c.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&c.x>m.right-d.right)return"foldWidgets"},l}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,f.implement(r.prototype,s);function a(l){var c=document.createTextNode("");l.appendChild(c);var d=u.createElement("span");l.appendChild(d);var m=u.createElement("span");l.appendChild(m);var v=u.createElement("span");return m.appendChild(v),l}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,p){var u=n("../range").Range,f=n("../lib/dom"),g=function(){function h(o){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return h.prototype.setPadding=function(o){this.$padding=o},h.prototype.setSession=function(o){this.session=o},h.prototype.setMarkers=function(o){this.markers=o},h.prototype.elt=function(o,r){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=r,a.className=o},h.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var a in this.markers){var l=this.markers[a];if(!l.range){l.update(r,this,this.session,o);continue}var c=l.range.clipRows(o.firstRow,o.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),l.renderer){var d=this.$getTop(c.start.row,o),m=this.$padding+c.start.column*o.characterWidth;l.renderer(r,c,m,d,o)}else l.type=="fullLine"?this.drawFullLineMarker(r,c,l.clazz,o):l.type=="screenLine"?this.drawScreenLineMarker(r,c,l.clazz,o):c.isMultiLine()?l.type=="text"?this.drawTextMarker(r,c,l.clazz,o):this.drawMultiLineMarker(r,c,l.clazz,o):this.drawSingleLineMarker(r,c,l.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(o,r){return(o-r.firstRowScreen)*r.lineHeight},h.prototype.drawTextMarker=function(o,r,a,l,c){for(var d=this.session,m=r.start.row,v=r.end.row,y=m,k=0,C=0,S=d.getScreenLastRowColumn(y),$=new u(y,r.start.column,y,C);y<=v;y++)$.start.row=$.end.row=y,$.start.column=y==m?r.start.column:d.getRowWrapIndent(y),$.end.column=S,k=C,C=S,S=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:r.end.column,this.drawSingleLineMarker(o,$,a+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&r.start.column,k<C,C>S,y==v),l,y==v?0:1,c)},h.prototype.drawMultiLineMarker=function(o,r,a,l,c){var d=this.$padding,m=l.lineHeight,v=this.$getTop(r.start.row,l),y=d+r.start.column*l.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var k=r.clone();k.end.row=k.start.row,k.end.column=this.session.getLine(k.start.row).length,this.drawBidiSingleLineMarker(o,k,a+" ace_br1 ace_start",l,null,c)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(c||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var k=r.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(o,k,a+" ace_br12",l,null,c)}else{v=this.$getTop(r.end.row,l);var C=r.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+d+"px;"+(c||""))}if(m=(r.end.row-r.start.row-1)*l.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,l);var S=(r.start.column?1:0)|(r.end.column?0:8);this.elt(a+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+d+"px;"+(c||""))}},h.prototype.drawSingleLineMarker=function(o,r,a,l,c,d){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,a,l,c,d);var m=l.lineHeight,v=(r.end.column+(c||0)-r.start.column)*l.characterWidth,y=this.$getTop(r.start.row,l),k=this.$padding+r.start.column*l.characterWidth;this.elt(a,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(d||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,a,l,c,d){var m=l.lineHeight,v=this.$getTop(r.start.row,l),y=this.$padding,k=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);k.forEach(function(C){this.elt(a,"height:"+m+"px;width:"+(C.width+(c||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(d||""))},this)},h.prototype.drawFullLineMarker=function(o,r,a,l,c){var d=this.$getTop(r.start.row,l),m=l.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,l)-d),this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(c||""))},h.prototype.drawScreenLineMarker=function(o,r,a,l,c){var d=this.$getTop(r.start.row,l),m=l.lineHeight;this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(c||""))},h}();g.prototype.$padding=0;function s(h,o,r,a){return(h?1:0)|(o?2:0)|(r?4:0)|(a?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,p){var u=new Set(["text","rparen","lparen"]);i.isTextToken=function(f){return u.has(f)}}),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,p){var u=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,a=function(){function l(c){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",c.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return l.prototype.$updateEolChar=function(){var c=this.session.doc,d=c.getNewLineCharacter()==`
1015
- `&&c.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},l.prototype.setPadding=function(c){this.$padding=c,this.element.style.margin="0 "+c+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(c){this.$fontMetrics=c,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(c){this.session=c,c&&this.$computeTabString()},l.prototype.setShowInvisibles=function(c){return this.showInvisibles==c?!1:(this.showInvisibles=c,typeof c=="string"?(this.showSpaces=/tab/i.test(c),this.showTabs=/space/i.test(c),this.showEOL=/eol/i.test(c)):this.showSpaces=this.showTabs=this.showEOL=c,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(c){return this.displayIndentGuides==c?!1:(this.displayIndentGuides=c,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(c){return this.$highlightIndentGuides===c?!1:(this.$highlightIndentGuides=c,c)},l.prototype.$computeTabString=function(){var c=this.session.getTabSize();this.tabSize=c;for(var d=this.$tabStrings=[0],m=1;m<c+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),d.push(v)}else d.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",k=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):C,v=this.dom.createElement("span");v.className=y+k,v.textContent=C,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+S,v.textContent=$,this.$tabStrings[" "]=v}},l.prototype.updateLines=function(c,d,m){if(this.config.lastRow!=c.lastRow||this.config.firstRow!=c.firstRow)return this.update(c);this.config=c;for(var v=Math.max(d,c.firstRow),y=Math.min(m,c.lastRow),k=this.element.childNodes,C=0,$=c.firstRow;$<v;$++){var R=this.session.getFoldLine($);if(R)if(R.containsRow(v)){v=R.start.row;break}else $=R.end.row;C++}for(var S=!1,$=v,R=this.session.getNextFoldLine($),L=R?R.start.row:1/0;$>L&&($=R.end.row+1,R=this.session.getNextFoldLine($,R),L=R?R.start.row:1/0),!($>y);){var x=k[C++];if(x){this.dom.removeChildren(x),this.$renderLine(x,$,$==L?R:!1),S&&(x.style.top=this.$lines.computeLineTop($,c,this.session)+"px");var M=c.lineHeight*this.session.getRowLength($)+"px";x.style.height!=M&&(S=!0,x.style.height=M)}$++}if(S)for(;C<this.$lines.cells.length;){var b=this.$lines.cells[C++];b.element.style.top=this.$lines.computeLineTop(b.row,c,this.session)+"px"}},l.prototype.scrollLines=function(c){var d=this.config;if(this.config=c,this.$lines.pageChanged(d,c))return this.update(c);this.$lines.moveContainer(c);var m=c.lastRow,v=d?d.lastRow:-1;if(!d||v<c.firstRow)return this.update(c);if(m<d.firstRow)return this.update(c);if(!d||d.lastRow<c.firstRow)return this.update(c);if(c.lastRow<d.firstRow)return this.update(c);if(d.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,c.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>c.lastRow)for(var y=this.session.getFoldedRowCount(c.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();c.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(c,c.firstRow,d.firstRow-1)),c.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(c,d.lastRow+1,c.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(c,d,m){for(var v=[],y=d,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,c,this.session),$=S.element;this.dom.removeChildren($),f.setStyle($.style,"height",this.$lines.computeLineHeight(y,c,this.session)+"px"),f.setStyle($.style,"top",this.$lines.computeLineTop(y,c,this.session)+"px"),this.$renderLine($,y,y==C?k:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(S),y++}return v},l.prototype.update=function(c){this.$lines.moveContainer(c),this.config=c;for(var d=c.firstRow,m=c.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(c,d,m))},l.prototype.$renderToken=function(c,d,m,v){for(var y=this,k=/(\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,C=this.dom.createFragment(this.element),S,$=0;S=k.exec(v);){var R=S[1],L=S[2],x=S[3],M=S[4],b=S[5];if(!(!y.showSpaces&&L)){var A=$!=S.index?v.slice($,S.index):"";if($=S.index+S[0].length,A&&C.appendChild(this.dom.createTextNode(A,this.element)),R){var _=y.session.getScreenTabSize(d+S.index);C.appendChild(y.$tabStrings[_].cloneNode(!0)),d+=_-1}else if(L)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(L,this.element));else if(x){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,x.length),C.appendChild(w)}else if(M){d+=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:M,C.appendChild(w)}else if(b){d+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=b,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode($?v.slice($):v,this.element)),r(m.type))c.appendChild(C);else{var E="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("Unfold code"))),w.className=E,w.appendChild(C),c.appendChild(w)}return d+v.length},l.prototype.renderIndentGuide=function(c,d,m){var v=d.search(this.$indentGuideRe);if(v<=0||v>=m)return d;if(d[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,k=0;k<y;k++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}else if(d[0]==" "){for(var k=0;k<v;k++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}return this.$highlightIndentGuide(),d},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var c=this.session.doc.$lines;if(c){var d=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(d.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:d.row};var y=this.session.$bracketHighlight;if(y){for(var k=this.session.$bracketHighlight.ranges,C=0;C<k.length;C++)if(d.row!==k[C].start.row){this.$highlightIndentGuideMarker.end=k[C].start.row,d.row>k[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&c[d.row]!==""&&d.column===c[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=d.row+1;C<c.length;C++){var S=c[C],$=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=C,$<=m))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var c=this.$lines.cells,d=0;d<c.length;d++){var m=c[d],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}}}},l.prototype.$setIndentGuideActive=function(c,d){var m=this.session.doc.getLine(c.row);if(m!==""){var v=c.element.childNodes;if(v){var y=v[d-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var c=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<c.length;m++){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}else for(var m=c.length-1;m>=0;m--){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}}},l.prototype.$createLineElement=function(c){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},l.prototype.$renderWrappedLine=function(c,d,m){var v=0,y=0,k=m[0],C=0,S=this.$createLineElement();c.appendChild(S);for(var $=0;$<d.length;$++){var R=d[$],L=R.value;if($==0&&this.displayIndentGuides){if(v=L.length,L=this.renderIndentGuide(S,L,k),!L)continue;v-=L.length}if(v+L.length<k)C=this.$renderToken(S,C,R,L),v+=L.length;else{for(;v+L.length>=k;)C=this.$renderToken(S,C,R,L.substring(0,k-v)),L=L.substring(k-v),v=k,S=this.$createLineElement(),c.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,C=0,k=m[y]||Number.MAX_VALUE;L.length!=0&&(v+=L.length,C=this.$renderToken(S,C,R,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,C,null,"",!0)},l.prototype.$renderSimpleLine=function(c,d){for(var m=0,v=0;v<d.length;v++){var y=d[v],k=y.value;if(!(v==0&&this.displayIndentGuides&&(k=this.renderIndentGuide(c,k),!k))){if(m+k.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(c,m,y,k);m=this.$renderToken(c,m,y,k)}}},l.prototype.$renderOverflowMessage=function(c,d,m,v,y){m&&this.$renderToken(c,d,m,v.slice(0,this.MAX_LINE_LENGTH-d));var k=this.dom.createElement("span");k.className="ace_inline_button ace_keyword ace_toggle_wrap",k.textContent=y?"<hide>":"<click to see more...>",c.appendChild(k)},l.prototype.$renderLine=function(c,d,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(d)),m)var v=this.$getFoldLineTokens(d,m);else var v=this.session.getTokens(d);var y=c;if(v.length){var k=this.session.getRowSplitData(d);if(k&&k.length){this.$renderWrappedLine(c,v,k);var y=c.lastChild}else{var y=c;this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y));if(this.showEOL&&y){m&&(d=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(C)}},l.prototype.$getFoldLineTokens=function(c,d){var m=this.session,v=[];function y(C,S,$){for(var R=0,L=0;L+C[R].value.length<S;)if(L+=C[R].value.length,R++,R==C.length)return;if(L!=S){var x=C[R].value.substring(S-L);x.length>$-S&&(x=x.substring(0,$-S)),v.push({type:C[R].type,value:x}),L=S+x.length,R+=1}for(;L<$&&R<C.length;){var x=C[R].value;x.length+L>$?v.push({type:C[R].type,value:x.substring(0,$-L)}):v.push(C[R]),L+=x.length,R+=1}}var k=m.getTokens(c);return d.walk(function(C,S,$,R,L){C!=null?v.push({type:"fold",value:C}):(L&&(k=m.getTokens(S)),k.length&&y(k,R,$))},d.end.row,this.session.getLine(d.end.row).length),v},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,u.implement(a.prototype,h),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),f=function(){function g(s){this.element=u.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),u.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var h=this.cursors,o=h.length;o--;)u.setStyle(h[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,h=s.length;h--;)s[h].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&u.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,u.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},g.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},g.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,u.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=u.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},g.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},g.prototype.hideCursor=function(){this.isVisible=!1,u.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,u.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,u.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&u.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),u.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var h=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),h()},this.blinkInterval),h()}},g.prototype.getPixelPosition=function(s,h){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),a=(o.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:a}},g.prototype.isCursorInView=function(s,h){return s.top>=0&&s.top<h.maxHeight},g.prototype.update=function(s){this.config=s;var h=this.session.$selectionMarkers,o=0,r=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var o=0,a=h.length;o<a;o++){var l=this.getPixelPosition(h[o].cursor,!0);if(!((l.top>s.height+s.offset||l.top<0)&&o>1)){var c=this.cursors[r++]||this.addCursor(),d=c.style;this.drawCursor?this.drawCursor(c,l,s,h[o],this.session):this.isCursorInView(l,s)?(u.setStyle(d,"display","block"),u.translate(c,l.left,l.top),u.setStyle(d,"width",Math.round(s.characterWidth)+"px"),u.setStyle(d,"height",s.lineHeight+"px")):u.setStyle(d,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=l,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?u.addCssClass(this.element,"ace_overwrite-cursors"):u.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();f.prototype.$padding=0,f.prototype.drawCursor=null,i.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(d,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(v[k]=y[k])},c(d,m)};return function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");c(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function c(d,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),d.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return c.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},c}();f.implement(r.prototype,h);var a=function(c){u(d,c);function d(m,v){var y=c.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 d.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},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(m){this.element.style.height=m+"px"},d.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"},d.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},d}(r);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(c){u(d,c);function d(m,v){var y=c.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 d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(m){this.element.style.width=m+"px"},d.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},d}(r);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=l,i.VScrollBar=a,i.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,d){return l=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])},l(c,d)};return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(c,d);function m(){this.constructor=c}c.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1016
- position: absolute;
1017
- background: rgba(128, 128, 128, 0.6);
1018
- -moz-box-sizing: border-box;
1019
- box-sizing: border-box;
1020
- border: 1px solid #bbb;
1021
- border-radius: 2px;
1022
- z-index: 8;
1023
- }
1024
- .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1025
- position: absolute;
1026
- z-index: 6;
1027
- background: none;
1028
- overflow: hidden!important;
1029
- }
1030
- .ace_editor>.ace_sb-v {
1031
- z-index: 6;
1032
- right: 0;
1033
- top: 0;
1034
- width: 12px;
1035
- }
1036
- .ace_editor>.ace_sb-v div {
1037
- z-index: 8;
1038
- right: 0;
1039
- width: 100%;
1040
- }
1041
- .ace_editor>.ace_sb-h {
1042
- bottom: 0;
1043
- left: 0;
1044
- height: 12px;
1045
- }
1046
- .ace_editor>.ace_sb-h div {
1047
- bottom: 0;
1048
- height: 100%;
1049
- }
1050
- .ace_editor>.ace_sb_grabbed {
1051
- z-index: 8;
1052
- background: #000;
1053
- }`,"ace_scrollbar.css",!1);var o=function(){function l(c,d){this.element=g.createElement("div"),this.element.className="ace_sb"+d,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1},l}();f.implement(o.prototype,h);var r=function(l){u(c,l);function c(d,m){var v=l.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return c.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,k=function(M){y=M.clientY},C=function(){clearInterval(L)},S=m.clientY,$=this.thumbTop,R=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop($+y-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,k,C);var L=setInterval(R,20);return s.preventDefault(m)}var x=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(x)}),s.preventDefault(m)}},c.prototype.getHeight=function(){return this.height},c.prototype.scrollTopFromThumbTop=function(d){var m=d*(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},c.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},c.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},c.prototype.setScrollHeight=function(d,m){this.pageHeight===d&&!m||(this.pageHeight=d,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})))},c.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},c}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var a=function(l){u(c,l);function c(d,m){var v=l.call(this,d,"-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 c.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,k=function(M){y=M.clientX},C=function(){clearInterval(L)},S=m.clientX,$=this.thumbLeft,R=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft($+y-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,k,C);var L=setInterval(R,20);return s.preventDefault(m)}var x=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(x)}),s.preventDefault(m)}},c.prototype.getHeight=function(){return this.isVisible?this.height:0},c.prototype.scrollLeftFromThumbLeft=function(d){var m=d*(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},c.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},c.prototype.setScrollWidth=function(d,m){this.pageWidth===d&&!m||(this.pageWidth=d,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})))},c.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},c}(o);a.prototype.setInnerWidth=a.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=a,i.VScrollBar=r,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,p){var u=n("./lib/event"),f=function(){function g(s,h){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var o=this;this._flush=function(r){o.pending=!1;var a=o.changes;if(a&&(u.blockIdle(100),o.changes=0,o.onRender(a)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(u.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var h=this.changes;return this.changes=0,h},g}();i.RenderLoop=f}),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,p){var u=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),h=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,a=typeof ResizeObserver=="function",l=200,c=function(){function d(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.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",r),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",h.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},d.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})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){m.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var v=this.$main.getBoundingClientRect();return v.width/r},d.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=f.buildDom([m(0,0),m(l,0),m(0,l),m(l,l)],this.el)},d.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=$(1/y,m)}function k(D,W,j){var H=D[1]*W[0]-D[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/H,(+D[1]*j[0]-D[0]*j[1])/H]}function C(D,W){return[D[0]-W[0],D[1]-W[1]]}function S(D,W){return[D[0]+W[0],D[1]+W[1]]}function $(D,W){return[D*W[0],D*W[1]]}this.els||this.$initTransformMeasureNodes();function R(D){var W=D.getBoundingClientRect();return[W.left,W.top]}var L=R(this.els[0]),x=R(this.els[1]),M=R(this.els[2]),b=R(this.els[3]),A=k(C(b,x),C(b,M),C(S(x,M),S(b,L))),_=$(1+A[0],C(x,L)),w=$(1+A[1],C(M,L));if(v){var E=v,T=A[0]*E[0]/l+A[1]*E[1]/l+1,O=S($(E[0],_),$(E[1],w));return S($(1/T/l,O),L)}var I=C(m,L),F=k(C(_,$(A[0],I)),C(w,$(A[1],I)),I);return $(l,F)},d}();c.prototype.$characterSize={width:0,height:0},u.implement(c.prototype,o),i.FontMetrics=c}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,p){p.exports=`
1054
- .ace_br1 {border-top-left-radius : 3px;}
1055
- .ace_br2 {border-top-right-radius : 3px;}
1056
- .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1057
- .ace_br4 {border-bottom-right-radius: 3px;}
1058
- .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1059
- .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1060
- .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1061
- .ace_br8 {border-bottom-left-radius : 3px;}
1062
- .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1063
- .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1064
- .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1065
- .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1066
- .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1067
- .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1068
- .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1069
-
1070
-
1071
- .ace_editor {
1072
- position: relative;
1073
- overflow: hidden;
1074
- padding: 0;
1075
- font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1076
- direction: ltr;
1077
- text-align: left;
1078
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1079
- }
1080
-
1081
- .ace_scroller {
1082
- position: absolute;
1083
- overflow: hidden;
1084
- top: 0;
1085
- bottom: 0;
1086
- background-color: inherit;
1087
- -ms-user-select: none;
1088
- -moz-user-select: none;
1089
- -webkit-user-select: none;
1090
- user-select: none;
1091
- cursor: text;
1092
- }
1093
-
1094
- .ace_content {
1095
- position: absolute;
1096
- box-sizing: border-box;
1097
- min-width: 100%;
1098
- contain: style size layout;
1099
- font-variant-ligatures: no-common-ligatures;
1100
- }
1101
-
1102
- .ace_keyboard-focus:focus {
1103
- box-shadow: inset 0 0 0 2px #5E9ED6;
1104
- outline: none;
1105
- }
1106
-
1107
- .ace_dragging .ace_scroller:before{
1108
- position: absolute;
1109
- top: 0;
1110
- left: 0;
1111
- right: 0;
1112
- bottom: 0;
1113
- content: '';
1114
- background: rgba(250, 250, 250, 0.01);
1115
- z-index: 1000;
1116
- }
1117
- .ace_dragging.ace_dark .ace_scroller:before{
1118
- background: rgba(0, 0, 0, 0.01);
1119
- }
1120
-
1121
- .ace_gutter {
1122
- position: absolute;
1123
- overflow : hidden;
1124
- width: auto;
1125
- top: 0;
1126
- bottom: 0;
1127
- left: 0;
1128
- cursor: default;
1129
- z-index: 4;
1130
- -ms-user-select: none;
1131
- -moz-user-select: none;
1132
- -webkit-user-select: none;
1133
- user-select: none;
1134
- contain: style size layout;
1135
- }
1136
-
1137
- .ace_gutter-active-line {
1138
- position: absolute;
1139
- left: 0;
1140
- right: 0;
1141
- }
1142
-
1143
- .ace_scroller.ace_scroll-left:after {
1144
- content: "";
1145
- position: absolute;
1146
- top: 0;
1147
- right: 0;
1148
- bottom: 0;
1149
- left: 0;
1150
- box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1151
- pointer-events: none;
1152
- }
1153
-
1154
- .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1155
- position: absolute;
1156
- top: 0;
1157
- left: 0;
1158
- right: 0;
1159
- padding-left: 19px;
1160
- padding-right: 6px;
1161
- background-repeat: no-repeat;
1162
- }
1163
-
1164
- .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1165
- margin-left: -14px;
1166
- float: left;
1167
- }
1168
-
1169
- .ace_gutter-cell .ace_gutter_annotation {
1170
- margin-left: -19px;
1171
- float: left;
1172
- }
1173
-
1174
- .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1175
- 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==");
1176
- background-repeat: no-repeat;
1177
- background-position: 2px center;
1178
- }
1179
-
1180
- .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1181
- 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==");
1182
- background-repeat: no-repeat;
1183
- background-position: 2px center;
1184
- }
1185
-
1186
- .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1187
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1188
- background-repeat: no-repeat;
1189
- background-position: 2px center;
1190
- }
1191
- .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1192
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1193
- }
1194
-
1195
- .ace_icon_svg.ace_error {
1196
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1197
- background-color: crimson;
1198
- }
1199
- .ace_icon_svg.ace_warning {
1200
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1201
- background-color: darkorange;
1202
- }
1203
- .ace_icon_svg.ace_info {
1204
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1205
- background-color: royalblue;
1206
- }
1207
-
1208
- .ace_icon_svg.ace_error_fold {
1209
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1210
- background-color: crimson;
1211
- }
1212
- .ace_icon_svg.ace_warning_fold {
1213
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1214
- background-color: darkorange;
1215
- }
1216
-
1217
- .ace_scrollbar {
1218
- contain: strict;
1219
- position: absolute;
1220
- right: 0;
1221
- bottom: 0;
1222
- z-index: 6;
1223
- }
1224
-
1225
- .ace_scrollbar-inner {
1226
- position: absolute;
1227
- cursor: text;
1228
- left: 0;
1229
- top: 0;
1230
- }
1231
-
1232
- .ace_scrollbar-v{
1233
- overflow-x: hidden;
1234
- overflow-y: scroll;
1235
- top: 0;
1236
- }
1237
-
1238
- .ace_scrollbar-h {
1239
- overflow-x: scroll;
1240
- overflow-y: hidden;
1241
- left: 0;
1242
- }
1243
-
1244
- .ace_print-margin {
1245
- position: absolute;
1246
- height: 100%;
1247
- }
1248
-
1249
- .ace_text-input {
1250
- position: absolute;
1251
- z-index: 0;
1252
- width: 0.5em;
1253
- height: 1em;
1254
- opacity: 0;
1255
- background: transparent;
1256
- -moz-appearance: none;
1257
- appearance: none;
1258
- border: none;
1259
- resize: none;
1260
- outline: none;
1261
- overflow: hidden;
1262
- font: inherit;
1263
- padding: 0 1px;
1264
- margin: 0 -1px;
1265
- contain: strict;
1266
- -ms-user-select: text;
1267
- -moz-user-select: text;
1268
- -webkit-user-select: text;
1269
- user-select: text;
1270
- /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1271
- white-space: pre!important;
1272
- }
1273
- .ace_text-input.ace_composition {
1274
- background: transparent;
1275
- color: inherit;
1276
- z-index: 1000;
1277
- opacity: 1;
1278
- }
1279
- .ace_composition_placeholder { color: transparent }
1280
- .ace_composition_marker {
1281
- border-bottom: 1px solid;
1282
- position: absolute;
1283
- border-radius: 0;
1284
- margin-top: 1px;
1285
- }
1286
-
1287
- [ace_nocontext=true] {
1288
- transform: none!important;
1289
- filter: none!important;
1290
- clip-path: none!important;
1291
- mask : none!important;
1292
- contain: none!important;
1293
- perspective: none!important;
1294
- mix-blend-mode: initial!important;
1295
- z-index: auto;
1296
- }
1297
-
1298
- .ace_layer {
1299
- z-index: 1;
1300
- position: absolute;
1301
- overflow: hidden;
1302
- /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1303
- word-wrap: normal;
1304
- white-space: pre;
1305
- height: 100%;
1306
- width: 100%;
1307
- box-sizing: border-box;
1308
- /* setting pointer-events: auto; on node under the mouse, which changes
1309
- during scroll, will break mouse wheel scrolling in Safari */
1310
- pointer-events: none;
1311
- }
1312
-
1313
- .ace_gutter-layer {
1314
- position: relative;
1315
- width: auto;
1316
- text-align: right;
1317
- pointer-events: auto;
1318
- height: 1000000px;
1319
- contain: style size layout;
1320
- }
1321
-
1322
- .ace_text-layer {
1323
- font: inherit !important;
1324
- position: absolute;
1325
- height: 1000000px;
1326
- width: 1000000px;
1327
- contain: style size layout;
1328
- }
1329
-
1330
- .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1331
- contain: style size layout;
1332
- position: absolute;
1333
- top: 0;
1334
- left: 0;
1335
- right: 0;
1336
- }
1337
-
1338
- .ace_hidpi .ace_text-layer,
1339
- .ace_hidpi .ace_gutter-layer,
1340
- .ace_hidpi .ace_content,
1341
- .ace_hidpi .ace_gutter {
1342
- contain: strict;
1343
- }
1344
- .ace_hidpi .ace_text-layer > .ace_line,
1345
- .ace_hidpi .ace_text-layer > .ace_line_group {
1346
- contain: strict;
1347
- }
1348
-
1349
- .ace_cjk {
1350
- display: inline-block;
1351
- text-align: center;
1352
- }
1353
-
1354
- .ace_cursor-layer {
1355
- z-index: 4;
1356
- }
1357
-
1358
- .ace_cursor {
1359
- z-index: 4;
1360
- position: absolute;
1361
- box-sizing: border-box;
1362
- border-left: 2px solid;
1363
- /* workaround for smooth cursor repaintng whole screen in chrome */
1364
- transform: translatez(0);
1365
- }
1366
-
1367
- .ace_multiselect .ace_cursor {
1368
- border-left-width: 1px;
1369
- }
1370
-
1371
- .ace_slim-cursors .ace_cursor {
1372
- border-left-width: 1px;
1373
- }
1374
-
1375
- .ace_overwrite-cursors .ace_cursor {
1376
- border-left-width: 0;
1377
- border-bottom: 1px solid;
1378
- }
1379
-
1380
- .ace_hidden-cursors .ace_cursor {
1381
- opacity: 0.2;
1382
- }
1383
-
1384
- .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1385
- opacity: 0;
1386
- }
1387
-
1388
- .ace_smooth-blinking .ace_cursor {
1389
- transition: opacity 0.18s;
1390
- }
1391
-
1392
- .ace_animate-blinking .ace_cursor {
1393
- animation-duration: 1000ms;
1394
- animation-timing-function: step-end;
1395
- animation-name: blink-ace-animate;
1396
- animation-iteration-count: infinite;
1397
- }
1398
-
1399
- .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1400
- animation-duration: 1000ms;
1401
- animation-timing-function: ease-in-out;
1402
- animation-name: blink-ace-animate-smooth;
1403
- }
1404
-
1405
- @keyframes blink-ace-animate {
1406
- from, to { opacity: 1; }
1407
- 60% { opacity: 0; }
1408
- }
1409
-
1410
- @keyframes blink-ace-animate-smooth {
1411
- from, to { opacity: 1; }
1412
- 45% { opacity: 1; }
1413
- 60% { opacity: 0; }
1414
- 85% { opacity: 0; }
1415
- }
1416
-
1417
- .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1418
- position: absolute;
1419
- z-index: 3;
1420
- }
1421
-
1422
- .ace_marker-layer .ace_selection {
1423
- position: absolute;
1424
- z-index: 5;
1425
- }
1426
-
1427
- .ace_marker-layer .ace_bracket {
1428
- position: absolute;
1429
- z-index: 6;
1430
- }
1431
-
1432
- .ace_marker-layer .ace_error_bracket {
1433
- position: absolute;
1434
- border-bottom: 1px solid #DE5555;
1435
- border-radius: 0;
1436
- }
1437
-
1438
- .ace_marker-layer .ace_active-line {
1439
- position: absolute;
1440
- z-index: 2;
1441
- }
1442
-
1443
- .ace_marker-layer .ace_selected-word {
1444
- position: absolute;
1445
- z-index: 4;
1446
- box-sizing: border-box;
1447
- }
1448
-
1449
- .ace_line .ace_fold {
1450
- box-sizing: border-box;
1451
-
1452
- display: inline-block;
1453
- height: 11px;
1454
- margin-top: -2px;
1455
- vertical-align: middle;
1456
-
1457
- background-image:
1458
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1459
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1460
- background-repeat: no-repeat, repeat-x;
1461
- background-position: center center, top left;
1462
- color: transparent;
1463
-
1464
- border: 1px solid black;
1465
- border-radius: 2px;
1466
-
1467
- cursor: pointer;
1468
- pointer-events: auto;
1469
- }
1470
-
1471
- .ace_dark .ace_fold {
1472
- }
1473
-
1474
- .ace_fold:hover{
1475
- background-image:
1476
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1477
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1478
- }
1479
-
1480
- .ace_tooltip {
1481
- background-color: #f5f5f5;
1482
- border: 1px solid gray;
1483
- border-radius: 1px;
1484
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1485
- color: black;
1486
- max-width: 100%;
1487
- padding: 3px 4px;
1488
- position: fixed;
1489
- z-index: 999999;
1490
- box-sizing: border-box;
1491
- cursor: default;
1492
- white-space: pre-wrap;
1493
- word-wrap: break-word;
1494
- line-height: normal;
1495
- font-style: normal;
1496
- font-weight: normal;
1497
- letter-spacing: normal;
1498
- pointer-events: none;
1499
- overflow: auto;
1500
- max-width: min(60em, 66vw);
1501
- }
1502
- .ace_tooltip pre {
1503
- white-space: pre-wrap;
1504
- }
1505
-
1506
- .ace_tooltip.ace_dark {
1507
- background-color: #636363;
1508
- color: #fff;
1509
- }
1510
-
1511
- .ace_tooltip:focus {
1512
- outline: 1px solid #5E9ED6;
1513
- }
1514
-
1515
- .ace_icon {
1516
- display: inline-block;
1517
- width: 18px;
1518
- vertical-align: top;
1519
- }
1520
-
1521
- .ace_icon_svg {
1522
- display: inline-block;
1523
- width: 12px;
1524
- vertical-align: top;
1525
- -webkit-mask-repeat: no-repeat;
1526
- -webkit-mask-size: 12px;
1527
- -webkit-mask-position: center;
1528
- }
1529
-
1530
- .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1531
- padding-right: 13px;
1532
- }
1533
-
1534
- .ace_fold-widget {
1535
- box-sizing: border-box;
1536
-
1537
- margin: 0 -12px 0 1px;
1538
- display: none;
1539
- width: 11px;
1540
- vertical-align: top;
1541
-
1542
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1543
- background-repeat: no-repeat;
1544
- background-position: center;
1545
-
1546
- border-radius: 3px;
1547
-
1548
- border: 1px solid transparent;
1549
- cursor: pointer;
1550
- }
1551
-
1552
- .ace_folding-enabled .ace_fold-widget {
1553
- display: inline-block;
1554
- }
1555
-
1556
- .ace_fold-widget.ace_end {
1557
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1558
- }
1559
-
1560
- .ace_fold-widget.ace_closed {
1561
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1562
- }
1563
-
1564
- .ace_fold-widget:hover {
1565
- border: 1px solid rgba(0, 0, 0, 0.3);
1566
- background-color: rgba(255, 255, 255, 0.2);
1567
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1568
- }
1569
-
1570
- .ace_fold-widget:active {
1571
- border: 1px solid rgba(0, 0, 0, 0.4);
1572
- background-color: rgba(0, 0, 0, 0.05);
1573
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1574
- }
1575
- /**
1576
- * Dark version for fold widgets
1577
- */
1578
- .ace_dark .ace_fold-widget {
1579
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1580
- }
1581
- .ace_dark .ace_fold-widget.ace_end {
1582
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1583
- }
1584
- .ace_dark .ace_fold-widget.ace_closed {
1585
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1586
- }
1587
- .ace_dark .ace_fold-widget:hover {
1588
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1589
- background-color: rgba(255, 255, 255, 0.1);
1590
- }
1591
- .ace_dark .ace_fold-widget:active {
1592
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1593
- }
1594
-
1595
- .ace_inline_button {
1596
- border: 1px solid lightgray;
1597
- display: inline-block;
1598
- margin: -1px 8px;
1599
- padding: 0 5px;
1600
- pointer-events: auto;
1601
- cursor: pointer;
1602
- }
1603
- .ace_inline_button:hover {
1604
- border-color: gray;
1605
- background: rgba(200,200,200,0.2);
1606
- display: inline-block;
1607
- pointer-events: auto;
1608
- }
1609
-
1610
- .ace_fold-widget.ace_invalid {
1611
- background-color: #FFB4B4;
1612
- border-color: #DE5555;
1613
- }
1614
-
1615
- .ace_fade-fold-widgets .ace_fold-widget {
1616
- transition: opacity 0.4s ease 0.05s;
1617
- opacity: 0;
1618
- }
1619
-
1620
- .ace_fade-fold-widgets:hover .ace_fold-widget {
1621
- transition: opacity 0.05s ease 0.05s;
1622
- opacity:1;
1623
- }
1624
-
1625
- .ace_underline {
1626
- text-decoration: underline;
1627
- }
1628
-
1629
- .ace_bold {
1630
- font-weight: bold;
1631
- }
1632
-
1633
- .ace_nobold .ace_bold {
1634
- font-weight: normal;
1635
- }
1636
-
1637
- .ace_italic {
1638
- font-style: italic;
1639
- }
1640
-
1641
-
1642
- .ace_error-marker {
1643
- background-color: rgba(255, 0, 0,0.2);
1644
- position: absolute;
1645
- z-index: 9;
1646
- }
1647
-
1648
- .ace_highlight-marker {
1649
- background-color: rgba(255, 255, 0,0.2);
1650
- position: absolute;
1651
- z-index: 8;
1652
- }
1653
-
1654
- .ace_mobile-menu {
1655
- position: absolute;
1656
- line-height: 1.5;
1657
- border-radius: 4px;
1658
- -ms-user-select: none;
1659
- -moz-user-select: none;
1660
- -webkit-user-select: none;
1661
- user-select: none;
1662
- background: white;
1663
- box-shadow: 1px 3px 2px grey;
1664
- border: 1px solid #dcdcdc;
1665
- color: black;
1666
- }
1667
- .ace_dark > .ace_mobile-menu {
1668
- background: #333;
1669
- color: #ccc;
1670
- box-shadow: 1px 3px 2px grey;
1671
- border: 1px solid #444;
1672
-
1673
- }
1674
- .ace_mobile-button {
1675
- padding: 2px;
1676
- cursor: pointer;
1677
- overflow: hidden;
1678
- }
1679
- .ace_mobile-button:hover {
1680
- background-color: #eee;
1681
- opacity:1;
1682
- }
1683
- .ace_mobile-button:active {
1684
- background-color: #ddd;
1685
- }
1686
-
1687
- .ace_placeholder {
1688
- font-family: arial;
1689
- transform: scale(0.9);
1690
- transform-origin: left;
1691
- white-space: pre;
1692
- opacity: 0.7;
1693
- margin: 0 10px;
1694
- }
1695
-
1696
- .ace_ghost_text {
1697
- opacity: 0.5;
1698
- font-style: italic;
1699
- white-space: pre;
1700
- }
1701
-
1702
- .ace_screenreader-only {
1703
- position:absolute;
1704
- left:-10000px;
1705
- top:auto;
1706
- width:1px;
1707
- height:1px;
1708
- overflow:hidden;
1709
- }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function h(o,r){this.canvas=u.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.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 h.prototype.$updateDecorators=function(o){var r=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 a=(o.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function c(b,A){return b.priority<A.priority?-1:b.priority>A.priority?1:0}var d=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),d){var m={info:1,warning:2,error:3};d.forEach(function(b){b.priority=m[b.type]||null}),d=d.sort(c);for(var v=this.renderer.session.$foldData,y=0;y<d.length;y++){var k=d[y].row,C=this.compensateFoldRows(k,v),S=Math.round((k-C)*this.lineHeight*this.heightRatio),$=Math.round((k-C)*this.lineHeight*this.heightRatio),R=Math.round(((k-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=R-$;if(L<this.minDecorationHeight){var x=($+R)/2|0;x<this.halfMinDecorationHeight?x=this.halfMinDecorationHeight:x+this.halfMinDecorationHeight>this.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(x-this.halfMinDecorationHeight),R=Math.round(x+this.halfMinDecorationHeight)}l.fillStyle=r[d[y].type]||null,l.fillRect(0,S,this.canvasWidth,R-$)}}var M=this.renderer.session.selection.getCursor();if(M){var C=this.compensateFoldRows(M.row,v),S=Math.round((M.row-C)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,S,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(o,r){var a=0;if(r&&r.length>0)for(var l=0;l<r.length;l++)o>r[l].start.row&&o<r[l].end.row?a+=o-r[l].start.row:o>=r[l].end.row&&(a+=r[l].end.row-r[l].start.row);return a},h}();f.implement(s.prototype,g),i.Decorator=s}),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"],function(n,i,p){var u=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),h=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,a=n("./layer/cursor").Cursor,l=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,k=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),S=n("./layer/decorators").Decorator,$=n("./lib/useragent");f.importCssString(C,"ace_editor.css",!1);var R=function(){function L(x,M){var b=this;this.container=x||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new r(this.content);this.canvas=A.element,this.$markerFront=new o(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function(_){b.$scrollAnimation||b.session.setScrollTop(_.data-b.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){b.$scrollAnimation||b.session.setScrollLeft(_.data-b.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(_){b.updateCharacterSize(),b.onResize(!0,b.gutterWidth,b.$size.width,b.$size.height),b._signal("changeCharacterSize",_)}),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=!$.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(),s.resetOptions(this),s._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(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(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(x,M,b){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:x,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(b)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(x){x?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(x,M,b,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),b||(b=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(x,M,b,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!b&&!A)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(x,M,b,A){A-=this.$extraHeight||0;var _=0,w=this.$size,E={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(x||w.height!=A)&&(w.height=A,_|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),b&&(x||w.width!=b)){_|=this.CHANGE_SIZE,w.width=b,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,f.setStyle(this.scrollBarH.element.style,"left",M+"px"),f.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,b-M-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",T),f.setStyle(this.scroller.style,"right",T),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&(_|=this.CHANGE_FULL)}return w.$dirty=!b||!A,_&&this._signal("resize",E),_},L.prototype.onGutterResize=function(x){var M=this.$showGutter?x:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,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 x=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},L.prototype.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(x){return this.setOption("showGutter",x)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},L.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=f.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.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 x=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){f.translate(this.textarea,-100,0);return}var b=this.$cursorLayer.$pixelPos;if(b){M&&M.markerRange&&(b=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=b.top,w=b.left;_-=A.offset;var E=M&&M.useTextareaForIME||$.isMobile?this.lineHeight:1;if(_<0||_>A.height-E){f.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-E;if(!M)_+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else _+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,f.setStyle(x,"height",E+"px"),f.setStyle(x,"width",T+"px"),f.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(_,O))}}},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 x=this.layerConfig,M=x.lastRow,b=this.session.documentToScreenRow(M,0)*x.lineHeight;return b-this.session.getScrollTop()>x.height-x.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(x,M,b,A){var _=this.scrollMargin;_.top=x|0,_.bottom=M|0,_.right=A|0,_.left=b|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},L.prototype.setMargin=function(x,M,b,A){var _=this.margin;_.top=x|0,_.bottom=M|0,_.right=A|0,_.left=b|0,_.v=_.top+_.bottom,_.h=_.left+_.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(x){this.setOption("hScrollBarAlwaysVisible",x)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},L.prototype.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-M&&(x=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+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(x,M){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!M){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var b=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),b.firstRow!=this.layerConfig.firstRow&&b.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(b.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}b=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-b.offset);var _=b.width+2*this.$padding+"px",w=b.minHeight+"px";f.setStyle(this.content.style,"width",_),f.setStyle(this.content.style,"height",w)}if(x&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-b.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(b),this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b),this.$markerBack.update(b),this.$markerFront.update(b),this.$cursorLayer.update(b),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(b):this.$textLayer.scrollLines(b),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(b):this.$gutterLayer.scrollLines(b)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b),this.$markerBack.update(b),this.$markerFront.update(b),this.$cursorLayer.update(b),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(b),this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(b),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(b)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(b),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(b),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(b),this._signal("afterRender",x)},L.prototype.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,b=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(b+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&b>this.$maxPixelHeight&&(b=this.$maxPixelHeight);var A=b<=2*this.lineHeight,_=!A&&x>M;if(b!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var w=this.container.clientWidth;this.container.style.height=b+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,b),this.desiredHeight=b,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var x=this.session,M=this.$size,b=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,w=this.$getLongestLine(),E=!b&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==E;T&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;_+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,_-M.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+D.right)));var W=!b&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-_+F<0||this.scrollTop>D.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,U=Math.ceil(I/this.lineHeight)-1,K=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Z=K+U,z,X,Y=this.lineHeight;K=x.screenToDocumentRow(K,0);var V=x.getFoldLine(K);V&&(K=V.start.row),z=x.documentToScreenRow(K,0),X=x.getRowLength(K)*Y,Z=Math.min(x.screenToDocumentRow(Z,0),x.getLength()-1),I=M.scrollerHeight+x.getRowLength(Z)*Y+X,H=this.scrollTop-z*Y;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:K,firstRowScreen:z,lastRow:Z,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:_,offset:H,gutterOffset:Y?Math.max(0,Math.ceil((H+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},L.prototype.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var b=this.layerConfig;if(!(x>b.lastRow+1)&&!(M<b.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(b),this.$textLayer.update(b);return}return this.$textLayer.updateLines(b,x,M),!0}}},L.prototype.$getLongestLine=function(){var x=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(x+=1),this.$textLayer&&x>this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*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(x,M){this.$gutterLayer.addGutterDecoration(x,M)},L.prototype.removeGutterDecoration=function(x,M){this.$gutterLayer.removeGutterDecoration(x,M)},L.prototype.updateBreakpoints=function(x){this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),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(x,M,b){this.scrollCursorIntoView(x,b),this.scrollCursorIntoView(M,b)},L.prototype.scrollCursorIntoView=function(x,M,b){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(x),_=A.left,w=A.top,E=b&&b.top||0,T=b&&b.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>w?(M&&O+E>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,F=2*this.layerConfig.characterWidth;_-F<I?(_-=F,_<this.$padding+F&&(_=-this.scrollMargin.left),this.session.setScrollLeft(_)):(_+=F,I+this.$size.scrollerWidth<_+this.characterWidth?this.session.setScrollLeft(Math.round(_+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&_-I<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(x){this.session.setScrollTop(x*this.lineHeight)},L.prototype.alignCursor=function(x,M){typeof x=="number"&&(x={row:x,column:0});var b=this.$cursorLayer.getPixelPosition(x),A=this.$size.scrollerHeight-this.lineHeight,_=b.top-A*(M||0);return this.session.setScrollTop(_),_},L.prototype.$calcSteps=function(x,M){var b=0,A=this.STEPS,_=[],w=function(E,T,O){return O*(Math.pow(E-1,3)+1)+T};for(b=0;b<A;++b)_.push(w(b/this.STEPS,x,M-x));return _},L.prototype.scrollToLine=function(x,M,b,A){var _=this.$cursorLayer.getPixelPosition({row:x,column:0}),w=_.top;M&&(w-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(w),b!==!1&&this.animateScrolling(E,A)},L.prototype.animateScrolling=function(x,M){var b=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(x==b)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(x=_[0],x==b))return}var w=A.$calcSteps(x,b);this.$scrollAnimation={from:x,to:b,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=b;function E(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){E();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=b):b!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(b),b=null):E()},10)},L.prototype.scrollToY=function(x){this.scrollTop!==x&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=x)},L.prototype.scrollToX=function(x){this.scrollLeft!==x&&(this.scrollLeft=x),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(x,M){this.session.setScrollTop(M),this.session.setScrollLeft(x)},L.prototype.scrollBy=function(x,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),x&&this.session.setScrollLeft(this.session.getScrollLeft()+x)},L.prototype.isScrollableBy=function(x,M){if(M<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(x,M){var b;if(this.$hasCssTransforms){b={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else b=this.scroller.getBoundingClientRect();var _=x+this.scrollLeft-b.left-this.$padding,w=_/this.characterWidth,E=Math.floor((M+this.scrollTop-b.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:T,side:w-T>0?1:-1,offsetX:_}},L.prototype.screenToTextCoordinates=function(x,M){var b;if(this.$hasCssTransforms){b={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else b=this.scroller.getBoundingClientRect();var _=x+this.scrollLeft-b.left-this.$padding,w=_/this.characterWidth,E=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-b.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(E,0),_)},L.prototype.textToScreenCoordinates=function(x,M){var b=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(x,M),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,x)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:b.left+_-this.scrollLeft,pageY:b.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(x){var M=this.session.selection.cursor;this.addToken(x,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(x,M){var b=this.session.selection.cursor,A=M||{row:b.row,column:b.column};this.removeGhostText();var _=x.split(`
1710
- `);if(this.addToken(_[0],"ghost_text",A.row,A.column),this.$ghostText={text:x,position:{row:A.row,column:A.column}},_.length>1){this.$ghostTextWidget={text:_.slice(1).join(`
1711
- `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(A,!0),E=this.container,T=E.getBoundingClientRect().height,O=_.length*this.lineHeight,I=O<T-w.top;if(I)return;O<T?this.scrollBy(0,(_.length-1)*this.lineHeight):this.scrollBy(0,w.top)}},L.prototype.removeGhostText=function(){if(this.$ghostText){var x=this.$ghostText.position;this.removeExtraToken(x.row,x.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(x,M,b,A){var _=this.session;_.bgTokenizer.lines[b]=null;var w={type:M,value:x},E=_.getTokens(b);if(A==null||!E.length)E.push(w);else for(var T=0,O=0;O<E.length;O++){var I=E[O];if(T+=I.value.length,A<=T){var F=I.value.length-(T-A),D=I.value.slice(0,F),W=I.value.slice(F);E.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:W});break}}this.updateLines(b,b)},L.prototype.removeExtraToken=function(x,M){this.session.bgTokenizer.lines[x]=null,this.updateLines(x,x)},L.prototype.setTheme=function(x,M){var b=this;if(this.$themeId=x,b._dispatchEvent("themeChange",{theme:x}),!x||typeof x=="string"){var A=x||this.$options.theme.initialValue;s.loadModule(["theme",A],_)}else _(x);function _(w){if(b.$themeId!=x)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+x+" or it didn't call define");w.$id&&(b.$themeId=w.$id),f.importCssString(w.cssText,w.cssClass,b.container),b.theme&&f.removeCssClass(b.container,b.theme.cssClass);var E="padding"in w?w.padding:"padding"in(b.theme||{})?4:b.$padding;b.$padding&&E!=b.$padding&&b.setPadding(E),b.$theme=w.cssClass,b.theme=w,f.addCssClass(b.container,w.cssClass),f.setCssClass(b.container,"ace_dark",w.isDark),b.$size&&(b.$size.width=0,b.$updateSizeAsync()),b._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(x,M){f.setCssClass(this.container,x,M!==!1)},L.prototype.unsetStyle=function(x){f.removeCssClass(this.container,x)},L.prototype.setCursorStyle=function(x){f.setStyle(this.scroller.style,"cursor",x)},L.prototype.setMouseCursor=function(x){f.setStyle(this.scroller.style,"cursor",x)},L.prototype.attachToShadowRoot=function(){f.importCssString(C,"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(x){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,x===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollTop(b.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollLeft(b.data-M.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new c(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollTop(b.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(b){M.$scrollAnimation||M.session.setScrollLeft(b.data-M.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var x=this;this.$resizeTimer=g.delayedCall(function(){x.destroyed||x.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var b=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(x.$size.width-b)>1||Math.abs(x.$size.height-A)>1?x.$resizeTimer.delay():x.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,u.implement(R.prototype,k),s.defineOptions(R.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){f.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:!$.isMobile&&!$.isIE}}),i.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,p){var u=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function h(l){var c="importScripts('"+f.qualifyURL(l)+"');";try{return new Blob([c],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(c),m.getBlob("application/javascript")}}function o(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var c=h(l),d=window.URL||window.webkitURL,m=d.createObjectURL(c);return new Worker(m)}return new Worker(l)}var r=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,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(){u.implement(this,g),this.$createWorkerFromOldConfig=function(l,c,d,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(c,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var k={};l.forEach(function(C){k[C]=y(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:k,module:c,classname:d}),this.$worker},this.onMessage=function(l){var c=l.data;switch(c.type){case"event":this._signal(c.name,{data:c.data});break;case"call":var d=this.callbacks[c.id];d&&(d(c.data),delete this.callbacks[c.id]);break;case"error":this.reportError(c.data);break;case"log":window.console&&console.log&&console.log.apply(console,c.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return f.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,c){this.$worker.postMessage({command:l,args:c})},this.call=function(l,c,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,c.push(m)}this.send(l,c)},this.emit=function(l,c){try{c.data&&c.data.err&&(c.data.err={message:c.data.err.message,stack:c.data.err.stack,code:c.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:c.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(r.prototype);var a=function(l,c,d){var m=null,v=!1,y=Object.create(g),k=[],C=new r({messageBuffer:k,terminate:function(){},postMessage:function($){k.push($),m&&(v?setTimeout(S):S())}});C.setEmitSync=function($){v=$};var S=function(){var $=k.shift();$.command?m[$.command].apply(m,$.args):$.event&&y._signal($.event,$.data)};return y.postMessage=function($){C.onMessage({data:$})},y.callback=function($,R){this.postMessage({type:"call",id:R,data:$})},y.emit=function($,R){this.postMessage({type:"event",name:$,data:R})},s.loadModule(["worker",c],function($){for(m=new $[d](y);k.length;)S()}),C};i.UIWorkerClient=a,i.WorkerClient=r,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,p){var u=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function h(o,r,a,l,c,d){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=c,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=a;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var o=this,r=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=a.addMarker(new u(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var d=r.createAnchor(c.row,c.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),a.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=o.addMarker(new u(a.row,a.column,a.row,a.column+r.length),r.othersClass,null,!1)})}},h.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)}},h.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var r=o;if(r.start.row===r.end.row&&r.start.row===this.pos.row){this.$updating=!0;var a=o.action==="insert"?r.end.column-r.start.column:r.start.column-r.end.column,l=r.start.column>=this.pos.column&&r.start.column<=this.pos.column+this.length+1,c=r.start.column-this.pos.column;if(this.updateAnchors(o),l&&(this.length+=a),l&&!this.session.$fromUndo){if(o.action==="insert")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+c};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+c};this.doc.remove(new u(v.row,v.column,v.row,v.column-a))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,a=function(c,d){r.removeMarker(c.markerId),c.markerId=r.addMarker(new u(c.row,c.column,c.row,c.column+o.length),d,null,!1)};a(this.pos,this.mainClass);for(var l=this.others.length;l--;)a(this.others[l],this.othersClass)}},h.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},h.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},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,a=0;a<r;a++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h}();g.implement(s.prototype,f),i.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),f=n("../lib/useragent");function g(h,o){return h.row==o.row&&h.column==o.column}function s(h){var o=h.domEvent,r=o.altKey,a=o.shiftKey,l=o.ctrlKey,c=h.getAccelKey(),d=h.getButton();if(l&&f.isMac&&(d=o.button),h.editor.inMultiSelectMode&&d==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!l&&!r&&!c){d===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(d===0){var m=h.editor,v=m.selection,y=m.inMultiSelectMode,k=h.getDocumentPosition(),C=v.getCursor(),S=h.inSelection()||v.isEmpty()&&g(k,C),$=h.x,R=h.y,L=function(W){$=W.clientX,R=W.clientY},x=m.session,M=m.renderer.pixelToScreenCoordinates($,R),b=M,A;if(m.$mouseHandler.$enableJumpToDef)l&&r||c&&r?A=a?"block":"add":r&&m.$blockSelectEnabled&&(A="block");else if(c&&!r){if(A="add",!y&&a)return}else r&&m.$blockSelectEnabled&&(A="block");if(A&&f.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),A=="add"){if(!y&&S)return;if(!y){var _=v.toOrientedRange();m.addSelectionMarker(_)}var w=v.rangeList.rangeAtPoint(k);m.inVirtualSelectionMode=!0,a&&(w=null,_=v.ranges[0]||_,m.removeSelectionMarker(_)),m.once("mouseup",function(){var W=v.toOrientedRange();w&&W.isEmpty()&&g(w.cursor,W.cursor)?v.substractPoint(W.cursor):(a?v.substractPoint(_.cursor):_&&(m.removeSelectionMarker(_),v.addRange(_)),v.addRange(W)),m.inVirtualSelectionMode=!1})}else if(A=="block"){h.stop(),m.inVirtualSelectionMode=!0;var E,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,R),j=x.screenToDocumentPosition(W.row,W.column,W.offsetX);g(b,W)&&g(j,v.lead)||(b=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(b,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!c?v.toSingleRange():!y&&c&&(E=v.toOrientedRange(),m.addSelectionMarker(E)),a?M=x.documentToScreenPosition(v.lead):v.moveToPosition(k),b={row:-1,column:-1};var I=function(W){O(),clearInterval(D),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),E&&(m.removeSelectionMarker(E),v.toSingleRange(E));for(var j=0;j<T.length;j++)v.addRange(T[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},F=O;u.capture(m.container,L,I);var D=setInterval(function(){F()},20);return h.preventDefault()}}}i.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,p){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.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(f){f.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(f){f.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(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.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(f){f.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(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.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(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var u=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new u(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,p){var u=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var a=n("./search").Search,l=new a;function c(C,S,$){return l.$options.wrap=!0,l.$options.needle=S,l.$options.backwards=$==-1,l.find(C)}var d=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,S){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var $=this.toOrientedRange();if(this.rangeList.add($),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add($),this.$onAddRange($)}C.cursor||(C.cursor=C.end);var R=this.rangeList.add(C);return this.$onAddRange(C),R.length&&this.$onRemoveRange(R),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var S=this.rangeList.substractPoint(C);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();C.push(S),this.rangeCount=0}for(var $=C.length;$--;){var R=this.ranges.indexOf(C[$]);this.ranges.splice(R,1)}this._signal("removeRange",{ranges:C}),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 u,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],S=[],$=0;$<C.length;$++){var R=C[$],L=R.start.row,x=R.end.row;if(L===x)S.push(R.clone());else{for(S.push(new f(L,R.start.column,L,this.session.getLine(L).length));++L<x;)S.push(this.getLineRange(L,!0));S.push(new f(x,0,x,R.end.column))}$==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var $=S.length;$--;)this.addRange(S[$])},this.joinSelections=function(){var C=this.rangeList.ranges,S=C[C.length-1],$=f.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange($,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,S=C[C.length-1],$=f.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange($,S.cursor==S.start)}else{var R=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),x=this.rectangularRangeBlock(R,L);x.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,$){var R=[],L=C.column<S.column;if(L)var x=C.column,M=S.column,b=C.offsetX,A=S.offsetX;else var x=S.column,M=C.column,b=S.offsetX,A=C.offsetX;var _=C.row<S.row;if(_)var w=C.row,E=S.row;else var w=S.row,E=C.row;x<0&&(x=0),w<0&&(w=0),w==E&&($=!0);for(var T,O=w;O<=E;O++){var I=f.fromPoints(this.session.screenToDocumentPosition(O,x,b),this.session.screenToDocumentPosition(O,M,A));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=L?I.start:I.end,R.push(I)}if(_&&R.reverse(),!$){for(var F=R.length-1;R[F].isEmpty()&&F>0;)F--;if(F>0)for(var D=0;R[D].isEmpty();)D++;for(var W=F;W>=D;W--)R[W].isEmpty()&&R.splice(W,1)}return R}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var S=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",S),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var S=this.session.$selectionMarkers.indexOf(C);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var S=this.session.$selectionMarkers,$=C.length;$--;){var R=C[$];if(R.marker){this.session.removeMarker(R.marker);var L=S.indexOf(R);L!=-1&&S.splice(L,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(r.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(r.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var S=C.command,$=C.editor;if($.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?R=$.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?R=$.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?($.exitMultiSelectMode(),R=S.exec($,C.args||{})):R=S.multiSelectAction($,C.args||{});else{var R=S.exec($,C.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(C,S,$){if(!this.inVirtualSelectionMode){var R=$&&$.keepOrder,L=$==!0||$&&$.$byLines,x=this.session,M=this.selection,b=M.rangeList,A=(R?M:b).ranges,_;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var E=new g(x);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(L)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;E.fromOrientedRange(A[T]),E.index=T,this.selection=x.selection=E;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!_&&O!==void 0&&(_=O),E.toOrientedRange(A[T])}E.detach(),this.selection=x.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,$=[],R=0;R<S.length;R++)$.push(this.session.getTextRange(S[R]));var L=this.session.getDocument().getNewLineCharacter();C=$.join(L),C.length==($.length-1)*L.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var $=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var R=S==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;R.row!=S.row||this.session.$clipPositionToDocument(R.row,R.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,S,$){if(S=S||{},S.needle=C||S.needle,S.needle==null){var R=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(R)}this.$search.set(S);var L=this.$search.findAll(this.session);if(!L.length)return 0;var x=this.multiSelect;$||x.toSingleRange(L[0]);for(var M=L.length;M--;)x.addRange(L[M],!0);return R&&x.rangeList.rangeAtPoint(R.start)&&x.addRange(R,!0),L.length},this.selectMoreLines=function(C,S){var $=this.selection.toOrientedRange(),R=$.cursor==$.end,L=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var x=this.session.screenToDocumentPosition(L.row+C,L.column);if($.isEmpty())var b=x;else var M=this.session.documentToScreenPosition(R?$.end:$.start),b=this.session.screenToDocumentPosition(M.row+C,M.column);if(R){var A=f.fromPoints(x,b);A.cursor=A.start}else{var A=f.fromPoints(b,x);A.cursor=A.end}if(A.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange($);else if(S)var _=$.cursor;this.selection.addRange(A),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var S=this.session,$=S.multiSelect,R=$.ranges,L=R.length;L--;){var x=R[L];if(x.isEmpty()){var M=S.getWordRange(x.start.row,x.start.column);x.start.row=M.start.row,x.start.column=M.start.column,x.end.row=M.end.row,x.end.column=M.end.column}}$.mergeOverlappingRanges();for(var b=[],L=R.length;L--;){var x=R[L];b.unshift(S.getTextRange(x))}C<0?b.unshift(b.pop()):b.push(b.shift());for(var L=R.length;L--;){var x=R[L],M=x.clone();S.replace(x,b[L]),x.start.row=M.start.row,x.start.column=M.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(C,S,$){var R=this.session,L=R.multiSelect,x=L.toOrientedRange();if(!(x.isEmpty()&&(x=R.getWordRange(x.start.row,x.start.column),x.cursor=C==-1?x.start:x.end,this.multiSelect.addRange(x),$))){var M=R.getTextRange(x),b=c(R,M,C);b&&(b.cursor=C==-1?b.start:b.end,this.session.unfold(b),this.multiSelect.addRange(b),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(x.cursor)}},this.alignCursors=function(){var C=this.session,S=C.multiSelect,$=S.ranges,R=-1,L=$.filter(function(F){if(F.cursor.row==R)return!0;R=F.cursor.row});if(!$.length||L.length==$.length-1){var x=this.selection.getRange(),M=x.start.row,b=x.end.row,A=M==b;if(A){var _=this.session.getLength(),w;do w=this.session.getLine(b);while(/[=:]/.test(w)&&++b<_);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),b>=_&&(b=_-1)}var E=this.session.removeFullLines(M,b);E=this.$reAlignText(E,A),this.session.insert({row:M,column:0},E.join(`
1712
- `)+`
1713
- `),A||(x.start.column=0,x.end.column=E[E.length-1].length),this.selection.setRange(x)}else{L.forEach(function(F){S.substractPoint(F.cursor)});var T=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=C.getLine(D.row),j=W.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>T&&(T=D.column),j<O&&(O=j),j});$.forEach(function(F,D){var W=F.cursor,j=T-W.column,H=I[D]-O;j>H?C.insert(W,o.stringRepeat(" ",j-H)):C.remove(new f(W.row,W.column,W.row,W.column-j+H)),F.start.column=F.end.column=T,F.start.row=F.end.row=W.row,F.cursor=F.end}),S.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,S){var $=!0,R=!0,L,x,M;return C.map(function(E){var T=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,x=T[2].length,M=T[3].length,T):(L+x+M!=T[1].length+T[2].length+T[3].length&&(R=!1),L!=T[1].length&&($=!1),L>T[1].length&&(L=T[1].length),x<T[2].length&&(x=T[2].length),M>T[3].length&&(M=T[3].length),T):[E]}).map(S?A:$?R?_:A:w);function b(E){return o.stringRepeat(" ",E)}function A(E){return E[2]?b(L)+E[2]+b(x-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function _(E){return E[2]?b(L+x-E[2].length)+E[2]+b(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function w(E){return E[2]?b(L)+E[2]+b(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}}}).call(m.prototype);function v(C,S){return C.row==S.row&&C.column==S.column}i.onSessionChange=function(C){var S=C.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var $=C.oldSession;$&&($.multiSelect.off("addRange",this.$onAddRange),$.multiSelect.off("removeRange",this.$onRemoveRange),$.multiSelect.off("multiSelect",this.$onMultiSelect),$.multiSelect.off("singleSelect",this.$onSingleSelect),$.multiSelect.lead.off("change",this.$checkMultiselectChange),$.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(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=i.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",s),C.commands.addCommands(r.defaultCommands),k(C))}function k(C){if(!C.textInput)return;var S=C.textInput.getElement(),$=!1;h.addListener(S,"keydown",function(L){var x=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);C.$blockSelectEnabled&&x?$||(C.renderer.setMouseCursor("crosshair"),$=!0):$&&R()},C),h.addListener(S,"keyup",R,C),h.addListener(S,"blur",R,C);function R(L){$&&(C.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){y(this),C?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,p){var u=n("../../range").Range,f=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,h){var o=g.getLine(h);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,h){return null},this.indentationBlock=function(g,s,h){var o=/\S/,r=g.getLine(s),a=r.search(o);if(a!=-1){for(var l=h||r.length,c=g.getLength(),d=s,m=s;++s<c;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=a){var y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>d){var k=g.getLine(m).length;return new u(d,l,m,k)}}},this.openingBracketBlock=function(g,s,h,o,r){var a={row:h,column:o+1},l=g.$findClosingBracket(s,a,r);if(l){var c=g.foldWidgets[l.row];return c==null&&(c=g.getFoldWidget(l.row)),c=="start"&&l.row>a.row&&(l.row--,l.column=g.getLine(l.row).length),u.fromPoints(a,l)}},this.closingBracketBlock=function(g,s,h,o,r){var a={row:h,column:o},l=g.$findOpeningBracket(s,a);if(l)return l.column++,a.column--,u.fromPoints(l,a)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,p){var u=n("../line_widgets").LineWidgets,f=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function h(r,a,l){for(var c=0,d=r.length-1;c<=d;){var m=c+d>>1,v=l(a,r[m]);if(v>0)c=m+1;else if(v<0)d=m-1;else return m}return-(c+1)}function o(r,a,l){var c=r.getAnnotations().sort(g.comparePoints);if(c.length){var d=h(c,{row:a,column:-1},g.comparePoints);d<0&&(d=-d-1),d>=c.length?d=l>0?0:c.length-1:d===0&&l<0&&(d=c.length-1);var m=c[d];if(!(!m||!l)){if(m.row===a){do m=c[d+=l];while(m&&m.row===a);if(!m)return c.slice()}var v=[];a=m.row;do v[l<0?"unshift":"push"](m),m=c[d+=l];while(m&&m.row==a);return v.length&&v}}}i.showErrorMarker=function(r,a){var l=r.session;l.widgetManager||(l.widgetManager=new u(l),l.widgetManager.attach(r));var c=r.getCursorPosition(),d=c.row,m=l.widgetManager.getWidgetsAtRow(d).filter(function(x){return x.type=="errorMarker"})[0];m?m.destroy():d-=a;var v=o(l,d,a),y;if(v){var k=v[0];c.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,c.row=k.row,y=r.renderer.$gutterLayer.$annotations[c.row]}else{if(m)return;y={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(c.row),r.selection.moveToPosition(c);var C={row:c.row,fixedWidth:!0,coverGutter:!0,el:f.createElement("div"),type:"errorMarker"},S=C.el.appendChild(f.createElement("div")),$=C.el.appendChild(f.createElement("div"));$.className="error_widget_arrow "+y.className;var R=r.renderer.$cursorLayer.getPixelPosition(c).left;$.style.left=R+r.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",S.className="error_widget "+y.className,S.innerHTML=y.text.join("<br>"),S.appendChild(f.createElement("div"));var L=function(x,M,b){if(M===0&&(b==="esc"||b==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(L),l.widgetManager.removeLineWidget(C),r.off("changeSelection",C.destroy),r.off("changeSession",C.destroy),r.off("mouseup",C.destroy),r.off("change",C.destroy))},r.keyBinding.addKeyboardHandler(L),r.on("changeSelection",C.destroy),r.on("changeSession",C.destroy),r.on("mouseup",C.destroy),r.on("change",C.destroy),r.session.widgetManager.addLineWidget(C),C.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},f.importCssString(`
1714
- .error_widget_wrapper {
1715
- background: inherit;
1716
- color: inherit;
1717
- border:none
1718
- }
1719
- .error_widget {
1720
- border-top: solid 2px;
1721
- border-bottom: solid 2px;
1722
- margin: 5px 0;
1723
- padding: 10px 40px;
1724
- white-space: pre-wrap;
1725
- }
1726
- .error_widget.ace_error, .error_widget_arrow.ace_error{
1727
- border-color: #ff5a5a
1728
- }
1729
- .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1730
- border-color: #F1D817
1731
- }
1732
- .error_widget.ace_info, .error_widget_arrow.ace_info{
1733
- border-color: #5a5a5a
1734
- }
1735
- .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1736
- border-color: #5aaa5a
1737
- }
1738
- .error_widget_arrow {
1739
- position: absolute;
1740
- border: solid 5px;
1741
- border-top-color: transparent!important;
1742
- border-right-color: transparent!important;
1743
- border-left-color: transparent!important;
1744
- top: -5px;
1745
- }
1746
- `,"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,p){n("./loader_build")(i);var u=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,h=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(r,a){if(typeof r=="string"){var l=r;if(r=document.getElementById(l),!r)throw new Error("ace.edit can't find div #"+l)}if(r&&r.env&&r.env.editor instanceof g)return r.env.editor;var c="";if(r&&/input|textarea/i.test(r.tagName)){var d=r;c=d.value,r=u.createElement("pre"),d.parentNode.replaceChild(r,d)}else r&&(c=r.textContent,r.innerHTML="");var m=i.createEditSession(c),v=new g(new o(r),m,a),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return d&&(y.textarea=d),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},i.createEditSession=function(r,a){var l=new s(r,a);return l.setUndoManager(new h),l},i.Range=f,i.Editor=g,i.EditSession=s,i.UndoManager=h,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 p in n)n.hasOwnProperty(p)&&(i.ace[p]=n[p]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(ap);var j2=ap.exports;const Rl=un(j2),G2="/assets/mode-yaml-24faa242.js",K2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Rl.config.setModuleUrl("ace/mode/yaml",G2);Rl.config.setModuleUrl("ace/theme/monokai",K2);var lp=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(p,u){return p[0]===n?(i=u,!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),p=this.__entries__[i];return p&&p[1]},t.prototype.set=function(n,i){var p=e(this.__entries__,n);~p?this.__entries__[p][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,p=e(i,n);~p&&i.splice(p,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 p=0,u=this.__entries__;p<u.length;p++){var f=u[p];n.call(i,f[1],f[0])}},t}()}(),$a=typeof window<"u"&&typeof document<"u"&&window.document===document,xo=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")()}(),Y2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),X2=2;function Z2(e,t){var n=!1,i=!1,p=0;function u(){n&&(n=!1,e()),i&&g()}function f(){Y2(u)}function g(){var s=Date.now();if(n){if(s-p<X2)return;i=!0}else n=!0,i=!1,setTimeout(f,t);p=s}return g}var Q2=20,J2=["top","right","bottom","left","width","height","size","weight"],q2=typeof MutationObserver<"u",ek=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Z2(this.refresh.bind(this),Q2)}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(){!$a||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),q2?(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(){!$a||!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,p=J2.some(function(u){return!!~i.indexOf(u)});p&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),cp=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var p=i[n];Object.defineProperty(e,p,{value:t[p],enumerable:!1,writable:!1,configurable:!0})}return e},ki=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||xo},up=hs(0,0,0,0);function Eo(e){return parseFloat(e)||0}function Au(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,p){var u=e["border-"+p+"-width"];return i+Eo(u)},0)}function tk(e){for(var t=["top","right","bottom","left"],n={},i=0,p=t;i<p.length;i++){var u=p[i],f=e["padding-"+u];n[u]=Eo(f)}return n}function nk(e){var t=e.getBBox();return hs(0,0,t.width,t.height)}function ik(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return up;var i=ki(e).getComputedStyle(e),p=tk(i),u=p.left+p.right,f=p.top+p.bottom,g=Eo(i.width),s=Eo(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=Au(i,"left","right")+u),Math.round(s+f)!==n&&(s-=Au(i,"top","bottom")+f)),!ok(e)){var h=Math.round(g+u)-t,o=Math.round(s+f)-n;Math.abs(h)!==1&&(g-=h),Math.abs(o)!==1&&(s-=o)}return hs(p.left,p.top,g,s)}var rk=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ki(e).SVGGraphicsElement}:function(e){return e instanceof ki(e).SVGElement&&typeof e.getBBox=="function"}}();function ok(e){return e===ki(e).document.documentElement}function sk(e){return $a?rk(e)?nk(e):ik(e):up}function ak(e){var t=e.x,n=e.y,i=e.width,p=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(u.prototype);return cp(f,{x:t,y:n,width:i,height:p,top:n,right:t+i,bottom:p+n,left:t}),f}function hs(e,t,n,i){return{x:e,y:t,width:n,height:i}}var lk=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=sk(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}(),ck=function(){function e(t,n){var i=ak(n);cp(this,{target:t,contentRect:i})}return e}(),uk=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new lp,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 ki(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new lk(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 ki(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 ck(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}(),hp=typeof WeakMap<"u"?new WeakMap:new lp,fp=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=ek.getInstance(),i=new uk(t,n,this);hp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){fp.prototype[e]=function(){var t;return(t=hp.get(this))[e].apply(t,arguments)}});var hk=function(){return typeof xo.ResizeObserver<"u"?xo.ResizeObserver:fp}();const ku=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],dp=$e({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",...ku],render(){return Oi("div")},mounted(){const e=this._editor=Wo(Rl.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)}),ku.forEach(t=>{const n="on"+Ri(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new hk(()=>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)}}}),fk=$e({name:"RuleInputForm",components:{VAceEditor:dp},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=yi(e,"yaml");return Th(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),dk={class:"block"};function pk(e,t,n,i,p,u){const f=he("VAceEditor");return q(),oe("div",dk,[fe(f,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=g=>e.yamlInput=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const pp=ke(fk,[["render",pk]]),gk=$e({name:"EditRule",components:{InputForm:pp,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Ii(),n=yi(e,"rule"),i=yi(n.value,"yaml"),p=n$();return{edit:async()=>{const g=await p.perform({id:e.rule.id,yaml:i.value});t.push({name:"Rule",params:{id:g.id}})},yaml:i,updateYAML:g=>{i.value=g},updateRuleTask:p}}}),mk={class:"column"},vk={class:"is-size-2 mb-4"},yk={class:"field is-grouped is-grouped-centered"},bk={class:"control"},wk={class:"icon is-small"},$k=N("span",null,"Edit",-1),_k={key:0},Ck=N("hr",null,null,-1);function Sk(e,t,n,i,p,u){var h,o;const f=he("InputForm"),g=he("font-awesome-icon"),s=he("ErrorMessage");return q(),oe("div",mk,[N("h2",vk,"Edit rule: "+Ae(e.rule.id),1),fe(f,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",yk,[N("p",bk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[N("span",wk,[fe(g,{icon:"edit"})]),$k])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",_k,[Ck,fe(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Ak=ke(gk,[["render",Sk]]),kk=$e({name:"EditRuleWrapper",components:{EditRule:Ak,Loading:ni,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Bd(),n=async()=>{await t.perform(e.id)};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function xk(e,t,n,i,p,u){var h,o;const f=he("Loading"),g=he("ErrorMessage"),s=he("EditRule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Le(f,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Le(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Le(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const Ek=ke(kk,[["render",xk]]),Rk=$e({name:"EditRuleView",components:{EditRule:Ek},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ti(`Edit rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function Tk(e,t,n,i,p,u){const f=he("EditRule",!0);return q(),Le(f,{id:e.id},null,8,["id"])}const Lk=ke(Rk,[["render",Tk]]);function Mk(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 p=i.reduce(function(g,s){var h=s.match(/\n([\t ]+|(?!\s).)/g);return h?g.concat(h.map(function(o){var r,a;return(a=(r=o.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&a!==void 0?a:0})):g},[]);if(p.length){var u=new RegExp(`
1747
- [ ]{`+Math.min.apply(Math,p)+"}","g");i=i.map(function(g){return g.replace(u,`
1748
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var f=i[0];return t.forEach(function(g,s){var h=f.match(/(?:^|\n)( *)$/),o=h?h[1]:"",r=g;typeof g=="string"&&g.includes(`
1749
- `)&&(r=String(g).split(`
1750
- `).map(function(a,l){return l===0?a:""+o+a}).join(`
1751
- `)),f+=r+i[s+1]}),f}var qr,Ok=new Uint8Array(16);function Ik(){if(!qr&&(qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qr(Ok)}const Fk=/^(?:[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 Nk(e){return typeof e=="string"&&Fk.test(e)}var it=[];for(var Os=0;Os<256;++Os)it.push((Os+256).toString(16).substr(1));function Pk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(!Nk(n))throw TypeError("Stringified UUID is invalid");return n}function Dk(e,t,n){e=e||{};var i=e.random||(e.rng||Ik)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(var p=0;p<16;++p)t[n+p]=i[p];return t}return Pk(i)}function Bk(){const e=Dk(),t=Pi();return Mk`---
1752
- id: ${e}
1753
- title: Title goes here
1754
- description: Description goes here
1755
- created_on: ${t.format("YYYY-MM-DD")}
1756
- queries: []`}const Wk=$e({name:"NewRule",components:{InputForm:pp,ErrorMessage:hn},setup(){const e=Ii(),t=Ie(Bk()),n=t$();return{yaml:t,create:async()=>{const u=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:u.id}})},updateYAML:u=>{t.value=u},createRuleTask:n}}}),Hk={class:"column"},Uk=N("h2",{class:"is-size-2 mb-4"},"New rule",-1),zk={class:"field is-grouped is-grouped-centered"},Vk={class:"control"},jk={class:"icon is-small"},Gk=N("span",null,"Create",-1),Kk={key:0},Yk=N("hr",null,null,-1);function Xk(e,t,n,i,p,u){var h,o;const f=he("InputForm"),g=he("font-awesome-icon"),s=he("ErrorMessage");return q(),oe("div",Hk,[Uk,fe(f,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",zk,[N("p",Vk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[N("span",jk,[fe(g,{icon:"plus"})]),Gk])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Kk,[Yk,fe(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Zk=ke(Wk,[["render",Xk]]),Qk=$e({name:"NewRuleView",components:{NewRule:Zk},setup(){const e=()=>{ti("New rule - Mihari")};tt(()=>{e()})}});function Jk(e,t,n,i,p,u){const f=he("NewRule",!0);return q(),Le(f)}const qk=ke(Qk,[["render",Jk]]),ex=$e({name:"YAML",components:{VAceEditor:dp},props:{yaml:{type:String,required:!0}},setup(){}}),tx={class:"block"};function nx(e,t,n,i,p,u){const f=he("VAceEditor");return q(),oe("div",tx,[fe(f,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ix=ke(ex,[["render",nx]]),rx=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:ix,Alerts:Jd,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Ii(),i=q1(),p=e$();return{deleteRule:async()=>{window.confirm(`Are you sure you want to delete ${e.rule.id}?`)&&(await i.perform(e.rule.id),n.push("/"))},runRule:async()=>{await p.perform(e.rule.id),t.emit("refresh")},runRuleTask:p}}}),ox={class:"column"},sx={key:0},ax=N("hr",null,null,-1),lx=N("h2",{class:"is-size-2 mb-4"},"Rule",-1),cx={class:"block is-clearfix"},ux={class:"buttons is-pulled-right"},hx=N("span",null,"Run",-1),fx={class:"icon is-small"},dx=N("span",null,"Edit",-1),px={class:"icon is-small"},gx=N("span",null,"Delete",-1),mx={class:"icon is-small"},vx=N("hr",null,null,-1),yx={class:"column"},bx=N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function wx(e,t,n,i,p,u){var r;const f=he("ErrorMessage"),g=he("font-awesome-icon"),s=he("router-link"),h=he("YAML"),o=he("Alerts");return q(),oe(Se,null,[N("div",ox,[(r=e.runRuleTask.last)!=null&&r.error?(q(),oe("div",sx,[fe(f,{error:e.runRuleTask.last.error},null,8,["error"]),ax])):we("",!0),lx,N("p",cx,[N("span",ux,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...a)=>e.runRule&&e.runRule(...a))},[hx,N("span",fx,[e.runRuleTask.isRunning?(q(),Le(g,{key:0,icon:"spinner",spin:""})):(q(),Le(g,{key:1,icon:"arrow-right"}))])]),fe(s,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:kt(()=>[dx,N("span",px,[fe(g,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...a)=>e.deleteRule&&e.deleteRule(...a))},[gx,N("span",mx,[fe(g,{icon:"times"})])])])]),fe(h,{yaml:e.rule.yaml},null,8,["yaml"])]),vx,N("div",yx,[bx,fe(o,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const $x=ke(rx,[["render",wx]]),_x=$e({name:"RuleWrapper",components:{Rule:$x,Loading:ni,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Bd(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function Cx(e,t,n,i,p,u){var h,o;const f=he("Loading"),g=he("ErrorMessage"),s=he("Rule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Le(f,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Le(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Le(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const Sx=ke(_x,[["render",Cx]]),Ax=$e({name:"RuleView",components:{Rule:Sx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ti(`Rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function kx(e,t,n,i,p,u){const f=he("Rule",!0);return q(),Le(f,{id:e.id},null,8,["id"])}const xx=ke(Ax,[["render",kx]]),Ex=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=yi(e,"tag"),u=Ie(void 0),f=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=Kd(h))},s=()=>(g(),{description:n.value===""?void 0:n.value,page:e.page,tag:p.value===""?void 0:p.value,title:u.value===""?void 0:u.value,toAt:f.value===""?void 0:f.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{description:n,fromAt:i,getSearchParams:s,title:u,toAt:f,tagInput:p}}}),Rx={class:"columns"},Tx={class:"column"},Lx={class:"field is-horizontal"},Mx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Title")],-1),Ox={class:"field-body"},Ix={class:"field"},Fx={class:"control"},Nx={class:"column"},Px={class:"field is-horizontal"},Dx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Description")],-1),Bx={class:"field-body"},Wx={class:"field"},Hx={class:"control"},Ux={class:"columns"},zx={class:"column"},Vx={class:"field is-horizontal"},jx=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),Gx={class:"field-body"},Kx={class:"field"},Yx={class:"control"},Xx={class:"select"},Zx=N("option",null,null,-1),Qx=N("div",{class:"column"},null,-1),Jx={class:"columns"},qx={class:"column"},eE={class:"field is-horizontal"},tE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),nE={class:"field-body"},iE={class:"field"},rE={class:"control"},oE={class:"column"},sE={class:"field is-horizontal"},aE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),lE={class:"field-body"},cE={class:"field"},uE={class:"control"};function hE(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",Rx,[N("div",Tx,[N("div",Lx,[Mx,N("div",Ox,[N("div",Ix,[N("p",Fx,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=f=>e.title=f)},null,512),[[Ft,e.title]])])])])])]),N("div",Nx,[N("div",Px,[Dx,N("div",Bx,[N("div",Wx,[N("p",Hx,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=f=>e.description=f)},null,512),[[Ft,e.description]])])])])])])]),N("div",Ux,[N("div",zx,[N("div",Vx,[jx,N("div",Gx,[N("div",Kx,[N("div",Yx,[N("div",Xx,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=f=>e.tagInput=f)},[Zx,(q(!0),oe(Se,null,lt(e.tags,f=>(q(),oe("option",{key:f},Ae(f),1))),128))],512),[[vr,e.tagInput]])])])])])])]),Qx]),N("div",Jx,[N("div",qx,[N("div",eE,[tE,N("div",nE,[N("div",iE,[N("p",rE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=f=>e.fromAt=f)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",oE,[N("div",sE,[aE,N("div",lE,[N("div",cE,[N("p",uE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=f=>e.toAt=f)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const fE=ke(Ex,[["render",hE]]),dE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Yd,Tags:Hd},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})},i=g=>{n(),t.emit("update-page",g)},p=()=>{n(),t.emit("refresh-page")},u=g=>{n(),t.emit("update-tag",g)},f=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:p,updateTag:u,hasRules:f}}}),pE={key:0},gE={class:"table is-fullwidth"},mE=N("tr",null,[N("th",null,"ID"),N("th",null,"Title"),N("th",null,"Description"),N("th",null,"Tags")],-1),vE={class:"help"};function yE(e,t,n,i,p,u){const f=he("router-link"),g=he("Tags"),s=he("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",pE,[N("table",gE,[mE,(q(!0),oe(Se,null,lt(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[N("td",null,[fe(f,{to:{name:"Rule",params:{id:h.id}}},{default:kt(()=>[ft(Ae(h.id),1)]),_:2},1032,["to"])]),N("td",null,Ae(h.title),1),N("td",null,Ae(h.description),1),N("td",null,[fe(g,{tags:h.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),fe(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",vE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const bE=ke(dE,[["render",yE]]),wE=$e({name:"RulesWrapper",components:{Rules:bE,Loading:ni,FormComponent:fE,ErrorMessage:hn},setup(){const e=Ie(1),t=Ie(void 0),n=Ie(),i=J1(),p=Pd(),u=async()=>{var a;const r=(a=n.value)==null?void 0:a.getSearchParams();return await i.perform(r)},f=r=>{e.value=r},g=()=>{e.value=1},s=async()=>{g(),await u()},h=r=>{t.value===r?t.value=void 0:t.value=r,Vt(async()=>await s())},o=async()=>{await s()};return tt(async()=>{p.perform(),await u()}),Ye([e,t],async()=>{Vt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:p,page:e,tag:t,refreshPage:o,search:s,updatePage:f,updateTag:h}}}),$E={class:"box mb-6"},_E=N("hr",null,null,-1),CE={class:"column"},SE={class:"field is-grouped is-grouped-centered"},AE={class:"control"},kE={class:"icon is-small"},xE=N("span",null,"Search",-1),EE={key:0},RE=N("hr",null,null,-1);function TE(e,t,n,i,p,u){var r,a,l;const f=he("FormComponent"),g=he("font-awesome-icon"),s=he("Loading"),h=he("ErrorMessage"),o=he("Rules");return q(),oe(Se,null,[N("div",$E,[fe(f,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),_E,N("div",CE,[N("div",SE,[N("p",AE,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...c)=>e.search&&e.search(...c))},[N("span",kE,[fe(g,{icon:"search"})]),xE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",EE,[RE,e.getRulesTask.isRunning?(q(),Le(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Le(h,{key:1,error:(a=e.getRulesTask.last)==null?void 0:a.error},null,8,["error"])):we("",!0),(l=e.getRulesTask.last)!=null&&l.value?(q(),Le(o,{key:2,rules:e.getRulesTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["rules","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const LE=ke(wE,[["render",TE]]),ME=$e({name:"RulesView",components:{Rules:LE},setup(){ti("Rules - Mihari")}});function OE(e,t,n,i,p,u){const f=he("Rules",!0);return q(),Le(f)}const IE=ke(ME,[["render",OE]]),FE=[{path:"/",name:"Alerts",component:kC},{path:"/configs",name:"Configs",component:V2},{path:"/artifacts/:id",name:"Artifact",component:C2,props:!0},{path:"/rules",name:"Rules",component:IE},{path:"/rules/new",name:"NewRule",component:qk},{path:"/rules/:id",name:"Rule",component:xx,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:Lk,props:!0}],NE=ew({history:mb(),routes:FE});Zg.add(tm,fm,um,em,hm,im,Jg,sm,om,cm,lm);const gp=Ff(Q0);gp.component("font-awesome-icon",N0);gp.use(NE).mount("#app");