mihari 7.1.3 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/Rakefile +8 -1
  4. data/lefthook.yml +4 -1
  5. data/lib/mihari/actor.rb +9 -0
  6. data/lib/mihari/analyzers/base.rb +7 -18
  7. data/lib/mihari/analyzers/binaryedge.rb +0 -6
  8. data/lib/mihari/analyzers/censys.rb +0 -9
  9. data/lib/mihari/analyzers/circl.rb +0 -6
  10. data/lib/mihari/analyzers/fofa.rb +0 -6
  11. data/lib/mihari/analyzers/greynoise.rb +0 -6
  12. data/lib/mihari/analyzers/hunterhow.rb +0 -6
  13. data/lib/mihari/analyzers/onyphe.rb +0 -6
  14. data/lib/mihari/analyzers/otx.rb +0 -6
  15. data/lib/mihari/analyzers/passivetotal.rb +0 -4
  16. data/lib/mihari/analyzers/pulsedive.rb +0 -6
  17. data/lib/mihari/analyzers/securitytrails.rb +0 -4
  18. data/lib/mihari/analyzers/shodan.rb +0 -6
  19. data/lib/mihari/analyzers/urlscan.rb +0 -6
  20. data/lib/mihari/analyzers/virustotal.rb +0 -4
  21. data/lib/mihari/analyzers/virustotal_intelligence.rb +7 -6
  22. data/lib/mihari/analyzers/zoomeye.rb +0 -6
  23. data/lib/mihari/commands/web.rb +1 -1
  24. data/lib/mihari/concerns/falsepositive_normalizable.rb +30 -0
  25. data/lib/mihari/concerns/falsepositive_validatable.rb +1 -17
  26. data/lib/mihari/config.rb +1 -1
  27. data/lib/mihari/database.rb +18 -1
  28. data/lib/mihari/emitters/database.rb +0 -6
  29. data/lib/mihari/emitters/misp.rb +0 -6
  30. data/lib/mihari/emitters/slack.rb +5 -21
  31. data/lib/mihari/emitters/the_hive.rb +0 -6
  32. data/lib/mihari/enrichers/whois.rb +5 -7
  33. data/lib/mihari/entities/artifact.rb +6 -2
  34. data/lib/mihari/entities/autonomous_system.rb +1 -1
  35. data/lib/mihari/entities/cpe.rb +1 -1
  36. data/lib/mihari/entities/port.rb +1 -1
  37. data/lib/mihari/entities/vulnerability.rb +10 -0
  38. data/lib/mihari/errors.rb +2 -0
  39. data/lib/mihari/models/artifact.rb +65 -30
  40. data/lib/mihari/models/vulnerability.rb +12 -0
  41. data/lib/mihari/rule.rb +18 -24
  42. data/lib/mihari/schemas/rule.rb +7 -0
  43. data/lib/mihari/services/builders.rb +22 -3
  44. data/lib/mihari/services/enrichers.rb +2 -0
  45. data/lib/mihari/services/feed.rb +2 -5
  46. data/lib/mihari/services/proxies.rb +3 -3
  47. data/lib/mihari/structs/censys.rb +2 -2
  48. data/lib/mihari/structs/greynoise.rb +1 -1
  49. data/lib/mihari/structs/onyphe.rb +1 -1
  50. data/lib/mihari/structs/shodan.rb +59 -21
  51. data/lib/mihari/version.rb +1 -1
  52. data/lib/mihari/web/endpoints/artifacts.rb +4 -2
  53. data/lib/mihari/web/endpoints/rules.rb +1 -1
  54. data/lib/mihari/web/public/assets/{index-TOeU8PE2.js → index-GWurHG1o.js} +46 -46
  55. data/lib/mihari/web/public/assets/{index-dVaNxqTC.css → index-ReF8ffd-.css} +1 -1
  56. data/lib/mihari/web/public/index.html +2 -2
  57. data/lib/mihari/web/public/redoc-static.html +17 -17
  58. data/lib/mihari.rb +3 -0
  59. metadata +7 -4
@@ -1,6 +1,6 @@
1
- var kp=Object.defineProperty;var Ep=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(Ep(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 f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const u of f)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function n(f){const u={};return f.integrity&&(u.integrity=f.integrity),f.referrerPolicy&&(u.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?u.credentials="include":f.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(f){if(f.ep)return;f.ep=!0;const u=n(f);fetch(f.href,u)}})();function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(r){nt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function so(e){"@babel/helpers - typeof";return so=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},so(e)}function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xp(e,t,n){return t&&Pl(e.prototype,t),n&&Pl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ma(e,t){return Lp(e)||Op(e,t)||Mu(e,t)||Fp()}function gi(e){return Tp(e)||Mp(e)||Mu(e)||Ip()}function Tp(e){if(Array.isArray(e))return Bs(e)}function Lp(e){if(Array.isArray(e))return e}function Mp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Op(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],f=!0,u=!1,h,g;try{for(n=n.call(e);!(f=(h=n.next()).done)&&(r.push(h.value),!(t&&r.length===t));f=!0);}catch(s){u=!0,g=s}finally{try{!f&&n.return!=null&&n.return()}finally{if(u)throw g}}return r}}function Mu(e,t){if(e){if(typeof e=="string")return Bs(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 Bs(e,t)}}function Bs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ip(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ var kp=Object.defineProperty;var Ep=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(Ep(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 f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const u of f)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function n(f){const u={};return f.integrity&&(u.integrity=f.integrity),f.referrerPolicy&&(u.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?u.credentials="include":f.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(f){if(f.ep)return;f.ep=!0;const u=n(f);fetch(f.href,u)}})();function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(r){nt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xp(e,t,n){return t&&Pl(e.prototype,t),n&&Pl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oa(e,t){return Lp(e)||Op(e,t)||Mu(e,t)||Fp()}function gi(e){return Tp(e)||Mp(e)||Mu(e)||Ip()}function Tp(e){if(Array.isArray(e))return Ws(e)}function Lp(e){if(Array.isArray(e))return e}function Mp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Op(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],f=!0,u=!1,h,g;try{for(n=n.call(e);!(f=(h=n.next()).done)&&(r.push(h.value),!(t&&r.length===t));f=!0);}catch(s){u=!0,g=s}finally{try{!f&&n.return!=null&&n.return()}finally{if(u)throw g}}return r}}function Mu(e,t){if(e){if(typeof e=="string")return Ws(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 Ws(e,t)}}function Ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ip(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fp(){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 Bl=function(){},Oa={},Ou={},Iu=null,Fu={mark:Bl,measure:Bl};try{typeof window<"u"&&(Oa=window),typeof document<"u"&&(Ou=document),typeof MutationObserver<"u"&&(Iu=MutationObserver),typeof performance<"u"&&(Fu=performance)}catch{}var Np=Oa.navigator||{},Wl=Np.userAgent,Hl=Wl===void 0?"":Wl,_n=Oa,Ge=Ou,Ul=Iu,Ti=Fu;_n.document;var on=!!Ge.documentElement&&!!Ge.head&&typeof Ge.addEventListener=="function"&&typeof Ge.createElement=="function",Nu=~Hl.indexOf("MSIE")||~Hl.indexOf("Trident/"),Li,Mi,Oi,Ii,Fi,tn="___FONT_AWESOME___",Ws=16,Du="fa",Pu="svg-inline--fa",Un="data-fa-i2svg",Hs="data-fa-pseudo-element",Dp="data-fa-pseudo-element-pending",Ia="data-prefix",Fa="data-icon",Vl="fontawesome-i2svg",Pp="async",Bp=["HTML","HEAD","STYLE","SCRIPT"],Bu=function(){try{return!0}catch{return!1}}(),je="classic",Ze="sharp",Na=[je,Ze];function mi(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[je]}})}var Qr=mi((Li={},nt(Li,je,{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"}),nt(Li,Ze,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Li)),ei=mi((Mi={},nt(Mi,je,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),nt(Mi,Ze,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Mi)),ti=mi((Oi={},nt(Oi,je,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),nt(Oi,Ze,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Oi)),Wp=mi((Ii={},nt(Ii,je,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),nt(Ii,Ze,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Ii)),Hp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Wu="fa-layers-text",Up=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Vp=mi((Fi={},nt(Fi,je,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),nt(Fi,Ze,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Fi)),Hu=[1,2,3,4,5,6,7,8,9,10],zp=Hu.concat([11,12,13,14,15,16,17,18,19,20]),jp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],In={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ni=new Set;Object.keys(ei[je]).map(ni.add.bind(ni));Object.keys(ei[Ze]).map(ni.add.bind(ni));var Gp=[].concat(Na,gi(ni),["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",In.GROUP,In.SWAP_OPACITY,In.PRIMARY,In.SECONDARY]).concat(Hu.map(function(e){return"".concat(e,"x")})).concat(zp.map(function(e){return"w-".concat(e)})),Ur=_n.FontAwesomeConfig||{};function Kp(e){var t=Ge.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Yp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ge&&typeof Ge.querySelector=="function"){var Xp=[["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"]];Xp.forEach(function(e){var t=Ma(e,2),n=t[0],r=t[1],f=Yp(Kp(n));f!=null&&(Ur[r]=f)})}var Uu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Du,replacementClass:Pu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ur.familyPrefix&&(Ur.cssPrefix=Ur.familyPrefix);var dr=me(me({},Uu),Ur);dr.autoReplaceSvg||(dr.observeMutations=!1);var _e={};Object.keys(Uu).forEach(function(e){Object.defineProperty(_e,e,{enumerable:!0,set:function(n){dr[e]=n,Vr.forEach(function(r){return r(_e)})},get:function(){return dr[e]}})});Object.defineProperty(_e,"familyPrefix",{enumerable:!0,set:function(t){dr.cssPrefix=t,Vr.forEach(function(n){return n(_e)})},get:function(){return dr.cssPrefix}});_n.FontAwesomeConfig=_e;var Vr=[];function Zp(e){return Vr.push(e),function(){Vr.splice(Vr.indexOf(e),1)}}var cn=Ws,Wt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function qp(e){if(!(!e||!on)){var t=Ge.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ge.head.childNodes,r=null,f=n.length-1;f>-1;f--){var u=n[f],h=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(r=u)}return Ge.head.insertBefore(t,r),e}}var Jp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ri(){for(var e=12,t="";e-- >0;)t+=Jp[Math.random()*62|0];return t}function Sr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Da(e){return e.classList?Sr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Vu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Vu(e[n]),'" ')},"").trim()}function Eo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Pa(e){return e.size!==Wt.size||e.x!==Wt.x||e.y!==Wt.y||e.rotate!==Wt.rotate||e.flipX||e.flipY}function eg(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,f={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),h="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(h," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:f,inner:s,path:p}}function tg(e){var t=e.transform,n=e.width,r=n===void 0?Ws:n,f=e.height,u=f===void 0?Ws:f,h=e.startCentered,g=h===void 0?!1:h,s="";return g&&Nu?s+="translate(".concat(t.x/cn-r/2,"em, ").concat(t.y/cn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/cn,"em), calc(-50% + ").concat(t.y/cn,"em)) "):s+="translate(".concat(t.x/cn,"em, ").concat(t.y/cn,"em) "),s+="scale(".concat(t.size/cn*(t.flipX?-1:1),", ").concat(t.size/cn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var ng=`:root, :host {
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bl=function(){},Ia={},Ou={},Iu=null,Fu={mark:Bl,measure:Bl};try{typeof window<"u"&&(Ia=window),typeof document<"u"&&(Ou=document),typeof MutationObserver<"u"&&(Iu=MutationObserver),typeof performance<"u"&&(Fu=performance)}catch{}var Np=Ia.navigator||{},Wl=Np.userAgent,Hl=Wl===void 0?"":Wl,_n=Ia,Ye=Ou,Ul=Iu,Li=Fu;_n.document;var on=!!Ye.documentElement&&!!Ye.head&&typeof Ye.addEventListener=="function"&&typeof Ye.createElement=="function",Nu=~Hl.indexOf("MSIE")||~Hl.indexOf("Trident/"),Mi,Oi,Ii,Fi,Ni,tn="___FONT_AWESOME___",Hs=16,Du="fa",Pu="svg-inline--fa",Un="data-fa-i2svg",Us="data-fa-pseudo-element",Dp="data-fa-pseudo-element-pending",Fa="data-prefix",Na="data-icon",Vl="fontawesome-i2svg",Pp="async",Bp=["HTML","HEAD","STYLE","SCRIPT"],Bu=function(){try{return!0}catch{return!1}}(),Ge="classic",Je="sharp",Da=[Ge,Je];function mi(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Ge]}})}var Jr=mi((Mi={},nt(Mi,Ge,{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"}),nt(Mi,Je,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Mi)),ei=mi((Oi={},nt(Oi,Ge,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),nt(Oi,Je,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Oi)),ti=mi((Ii={},nt(Ii,Ge,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),nt(Ii,Je,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Ii)),Wp=mi((Fi={},nt(Fi,Ge,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),nt(Fi,Je,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Fi)),Hp=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Wu="fa-layers-text",Up=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Vp=mi((Ni={},nt(Ni,Ge,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),nt(Ni,Je,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Ni)),Hu=[1,2,3,4,5,6,7,8,9,10],zp=Hu.concat([11,12,13,14,15,16,17,18,19,20]),jp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],In={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ni=new Set;Object.keys(ei[Ge]).map(ni.add.bind(ni));Object.keys(ei[Je]).map(ni.add.bind(ni));var Gp=[].concat(Da,gi(ni),["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",In.GROUP,In.SWAP_OPACITY,In.PRIMARY,In.SECONDARY]).concat(Hu.map(function(e){return"".concat(e,"x")})).concat(zp.map(function(e){return"w-".concat(e)})),Ur=_n.FontAwesomeConfig||{};function Kp(e){var t=Ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Yp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ye&&typeof Ye.querySelector=="function"){var Xp=[["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"]];Xp.forEach(function(e){var t=Oa(e,2),n=t[0],r=t[1],f=Yp(Kp(n));f!=null&&(Ur[r]=f)})}var Uu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Du,replacementClass:Pu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ur.familyPrefix&&(Ur.cssPrefix=Ur.familyPrefix);var dr=me(me({},Uu),Ur);dr.autoReplaceSvg||(dr.observeMutations=!1);var Se={};Object.keys(Uu).forEach(function(e){Object.defineProperty(Se,e,{enumerable:!0,set:function(n){dr[e]=n,Vr.forEach(function(r){return r(Se)})},get:function(){return dr[e]}})});Object.defineProperty(Se,"familyPrefix",{enumerable:!0,set:function(t){dr.cssPrefix=t,Vr.forEach(function(n){return n(Se)})},get:function(){return dr.cssPrefix}});_n.FontAwesomeConfig=Se;var Vr=[];function Zp(e){return Vr.push(e),function(){Vr.splice(Vr.indexOf(e),1)}}var cn=Hs,Wt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Qp(e){if(!(!e||!on)){var t=Ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ye.head.childNodes,r=null,f=n.length-1;f>-1;f--){var u=n[f],h=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(r=u)}return Ye.head.insertBefore(t,r),e}}var qp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ri(){for(var e=12,t="";e-- >0;)t+=qp[Math.random()*62|0];return t}function Sr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Pa(e){return e.classList?Sr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Vu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Jp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Vu(e[n]),'" ')},"").trim()}function Ro(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ba(e){return e.size!==Wt.size||e.x!==Wt.x||e.y!==Wt.y||e.rotate!==Wt.rotate||e.flipX||e.flipY}function eg(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,f={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),h="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(h," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:f,inner:s,path:p}}function tg(e){var t=e.transform,n=e.width,r=n===void 0?Hs:n,f=e.height,u=f===void 0?Hs:f,h=e.startCentered,g=h===void 0?!1:h,s="";return g&&Nu?s+="translate(".concat(t.x/cn-r/2,"em, ").concat(t.y/cn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/cn,"em), calc(-50% + ").concat(t.y/cn,"em)) "):s+="translate(".concat(t.x/cn,"em, ").concat(t.y/cn,"em) "),s+="scale(".concat(t.size/cn*(t.flipX?-1:1),", ").concat(t.size/cn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var ng=`:root, :host {
4
4
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
5
5
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
6
6
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -757,55 +757,55 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
757
757
  .fad.fa-inverse,
758
758
  .fa-duotone.fa-inverse {
759
759
  color: var(--fa-inverse, #fff);
760
- }`;function zu(){var e=Du,t=Pu,n=_e.cssPrefix,r=_e.replacementClass,f=ng;if(n!==e||r!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");f=f.replace(u,".".concat(n,"-")).replace(h,"--".concat(n,"-")).replace(g,".".concat(r))}return f}var zl=!1;function ps(){_e.autoAddCss&&!zl&&(qp(zu()),zl=!0)}var rg={mixout:function(){return{dom:{css:zu,insertCss:ps}}},hooks:function(){return{beforeDOMElementCreation:function(){ps()},beforeI2svg:function(){ps()}}}},nn=_n||{};nn[tn]||(nn[tn]={});nn[tn].styles||(nn[tn].styles={});nn[tn].hooks||(nn[tn].hooks={});nn[tn].shims||(nn[tn].shims=[]);var Ft=nn[tn],ju=[],ig=function e(){Ge.removeEventListener("DOMContentLoaded",e),ao=1,ju.map(function(t){return t()})},ao=!1;on&&(ao=(Ge.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ge.readyState),ao||Ge.addEventListener("DOMContentLoaded",ig));function og(e){on&&(ao?setTimeout(e,0):ju.push(e))}function vi(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,f=e.children,u=f===void 0?[]:f;return typeof e=="string"?Vu(e):"<".concat(t," ").concat(Qp(r),">").concat(u.map(vi).join(""),"</").concat(t,">")}function jl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var sg=function(t,n){return function(r,f,u,h){return t.call(n,r,f,u,h)}},gs=function(t,n,r,f){var u=Object.keys(t),h=u.length,g=f!==void 0?sg(n,f):n,s,p,o;for(r===void 0?(s=1,o=t[u[0]]):(s=0,o=r);s<h;s++)p=u[s],o=g(o,t[p],p,t);return o};function ag(e){for(var t=[],n=0,r=e.length;n<r;){var f=e.charCodeAt(n++);if(f>=55296&&f<=56319&&n<r){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((f&1023)<<10)+(u&1023)+65536):(t.push(f),n--)}else t.push(f)}return t}function Us(e){var t=ag(e);return t.length===1?t[0].toString(16):null}function lg(e,t){var n=e.length,r=e.charCodeAt(t),f;return r>=55296&&r<=56319&&n>t+1&&(f=e.charCodeAt(t+1),f>=56320&&f<=57343)?(r-55296)*1024+f-56320+65536:r}function Gl(e){return Object.keys(e).reduce(function(t,n){var r=e[n],f=!!r.icon;return f?t[r.iconName]=r.icon:t[n]=r,t},{})}function Vs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,f=r===void 0?!1:r,u=Gl(t);typeof Ft.hooks.addPack=="function"&&!f?Ft.hooks.addPack(e,Gl(t)):Ft.styles[e]=me(me({},Ft.styles[e]||{}),u),e==="fas"&&Vs("fa",t)}var Ni,Di,Pi,ir=Ft.styles,cg=Ft.shims,ug=(Ni={},nt(Ni,je,Object.values(ti[je])),nt(Ni,Ze,Object.values(ti[Ze])),Ni),Ba=null,Gu={},Ku={},Yu={},Xu={},Zu={},hg=(Di={},nt(Di,je,Object.keys(Qr[je])),nt(Di,Ze,Object.keys(Qr[Ze])),Di);function fg(e){return~Gp.indexOf(e)}function dg(e,t){var n=t.split("-"),r=n[0],f=n.slice(1).join("-");return r===e&&f!==""&&!fg(f)?f:null}var qu=function(){var t=function(u){return gs(ir,function(h,g,s){return h[s]=gs(g,u,{}),h},{})};Gu=t(function(f,u,h){if(u[3]&&(f[u[3]]=h),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){f[s.toString(16)]=h})}return f}),Ku=t(function(f,u,h){if(f[h]=h,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){f[s]=h})}return f}),Zu=t(function(f,u,h){var g=u[2];return f[h]=h,g.forEach(function(s){f[s]=h}),f});var n="far"in ir||_e.autoFetchSvg,r=gs(cg,function(f,u){var h=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof h=="string"&&(f.names[h]={prefix:g,iconName:s}),typeof h=="number"&&(f.unicodes[h.toString(16)]={prefix:g,iconName:s}),f},{names:{},unicodes:{}});Yu=r.names,Xu=r.unicodes,Ba=Ro(_e.styleDefault,{family:_e.familyDefault})};Zp(function(e){Ba=Ro(e.styleDefault,{family:_e.familyDefault})});qu();function Wa(e,t){return(Gu[e]||{})[t]}function pg(e,t){return(Ku[e]||{})[t]}function Fn(e,t){return(Zu[e]||{})[t]}function Ju(e){return Yu[e]||{prefix:null,iconName:null}}function gg(e){var t=Xu[e],n=Wa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Sn(){return Ba}var Ha=function(){return{prefix:null,iconName:null,rest:[]}};function Ro(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?je:n,f=Qr[r][e],u=ei[r][e]||ei[r][f],h=e in Ft.styles?e:null;return u||h||null}var Kl=(Pi={},nt(Pi,je,Object.keys(ti[je])),nt(Pi,Ze,Object.keys(ti[Ze])),Pi);function xo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,f=r===void 0?!1:r,u=(t={},nt(t,je,"".concat(_e.cssPrefix,"-").concat(je)),nt(t,Ze,"".concat(_e.cssPrefix,"-").concat(Ze)),t),h=null,g=je;(e.includes(u[je])||e.some(function(p){return Kl[je].includes(p)}))&&(g=je),(e.includes(u[Ze])||e.some(function(p){return Kl[Ze].includes(p)}))&&(g=Ze);var s=e.reduce(function(p,o){var i=dg(_e.cssPrefix,o);if(ir[o]?(o=ug[g].includes(o)?Wp[g][o]:o,h=o,p.prefix=o):hg[g].indexOf(o)>-1?(h=o,p.prefix=Ro(o,{family:g})):i?p.iconName=i:o!==_e.replacementClass&&o!==u[je]&&o!==u[Ze]&&p.rest.push(o),!f&&p.prefix&&p.iconName){var a=h==="fa"?Ju(p.iconName):{},c=Fn(p.prefix,p.iconName);a.prefix&&(h=null),p.iconName=a.iconName||c||p.iconName,p.prefix=a.prefix||p.prefix,p.prefix==="far"&&!ir.far&&ir.fas&&!_e.autoFetchSvg&&(p.prefix="fas")}return p},Ha());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&&(ir.fass||_e.autoFetchSvg)&&(s.prefix="fass",s.iconName=Fn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||h==="fa")&&(s.prefix=Sn()||"fas"),s}var mg=function(){function e(){Rp(this,e),this.definitions={}}return xp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,f=new Array(r),u=0;u<r;u++)f[u]=arguments[u];var h=f.reduce(this._pullDefinitions,{});Object.keys(h).forEach(function(g){n.definitions[g]=me(me({},n.definitions[g]||{}),h[g]),Vs(g,h[g]);var s=ti[je][g];s&&Vs(s,h[g]),qu()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var f=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(f).map(function(u){var h=f[u],g=h.prefix,s=h.iconName,p=h.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(i){typeof i=="string"&&(n[g][i]=p)}),n[g][s]=p}),n}}]),e}(),Yl=[],or={},ar={},vg=Object.keys(ar);function yg(e,t){var n=t.mixoutsTo;return Yl=e,or={},Object.keys(ar).forEach(function(r){vg.indexOf(r)===-1&&delete ar[r]}),Yl.forEach(function(r){var f=r.mixout?r.mixout():{};if(Object.keys(f).forEach(function(h){typeof f[h]=="function"&&(n[h]=f[h]),so(f[h])==="object"&&Object.keys(f[h]).forEach(function(g){n[h]||(n[h]={}),n[h][g]=f[h][g]})}),r.hooks){var u=r.hooks();Object.keys(u).forEach(function(h){or[h]||(or[h]=[]),or[h].push(u[h])})}r.provides&&r.provides(ar)}),n}function zs(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),f=2;f<n;f++)r[f-2]=arguments[f];var u=or[e]||[];return u.forEach(function(h){t=h.apply(null,[t].concat(r))}),t}function Vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var f=or[e]||[];f.forEach(function(u){u.apply(null,n)})}function rn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ar[e]?ar[e].apply(null,t):void 0}function js(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Sn();if(t)return t=Fn(n,t)||t,jl(Qu.definitions,n,t)||jl(Ft.styles,n,t)}var Qu=new mg,bg=function(){_e.autoReplaceSvg=!1,_e.observeMutations=!1,Vn("noAuto")},wg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return on?(Vn("beforeI2svg",t),rn("pseudoElements2svg",t),rn("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;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,og(function(){_g({autoReplaceSvgRoot:n}),Vn("watch",t)})}},$g={icon:function(t){if(t===null)return null;if(so(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Fn(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],r=Ro(t[0]);return{prefix:r,iconName:Fn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(_e.cssPrefix,"-"))>-1||t.match(Hp))){var f=xo(t.split(" "),{skipLookups:!0});return{prefix:f.prefix||Sn(),iconName:Fn(f.prefix,f.iconName)||f.iconName}}if(typeof t=="string"){var u=Sn();return{prefix:u,iconName:Fn(u,t)||t}}}},Et={noAuto:bg,config:_e,dom:wg,parse:$g,library:Qu,findIconDefinition:js,toHtml:vi},_g=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ge:n;(Object.keys(Ft.styles).length>0||_e.autoFetchSvg)&&on&&_e.autoReplaceSvg&&Et.dom.i2svg({node:r})};function To(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return vi(r)})}}),Object.defineProperty(e,"node",{get:function(){if(on){var r=Ge.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Sg(e){var t=e.children,n=e.main,r=e.mask,f=e.attributes,u=e.styles,h=e.transform;if(Pa(h)&&n.found&&!r.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};f.style=Eo(me(me({},u),{},{"transform-origin":"".concat(p.x+h.x/16,"em ").concat(p.y+h.y/16,"em")}))}return[{tag:"svg",attributes:f,children:t}]}function Cg(e){var t=e.prefix,n=e.iconName,r=e.children,f=e.attributes,u=e.symbol,h=u===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:me(me({},f),{},{id:h}),children:r}]}]}function Ua(e){var t=e.icons,n=t.main,r=t.mask,f=e.prefix,u=e.iconName,h=e.transform,g=e.symbol,s=e.title,p=e.maskId,o=e.titleId,i=e.extra,a=e.watchable,c=a===void 0?!1:a,l=r.found?r:n,d=l.width,m=l.height,v=f==="fak",y=[_e.replacementClass,u?"".concat(_e.cssPrefix,"-").concat(u):""].filter(function(E){return i.classes.indexOf(E)===-1}).filter(function(E){return E!==""||!!E}).concat(i.classes).join(" "),k={children:[],attributes:me(me({},i.attributes),{},{"data-prefix":f,"data-icon":u,class:y,role:i.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)})},C=v&&!~i.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};c&&(k.attributes[Un]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(o||ri())},children:[s]}),delete k.attributes.title);var S=me(me({},k),{},{prefix:f,iconName:u,main:n,mask:r,maskId:p,transform:h,symbol:g,styles:me(me({},C),i.styles)}),b=r.found&&n.found?rn("generateAbstractMask",S)||{children:[],attributes:{}}:rn("generateAbstractIcon",S)||{children:[],attributes:{}},R=b.children,L=b.attributes;return S.children=R,S.attributes=L,g?Cg(S):Sg(S)}function Xl(e){var t=e.content,n=e.width,r=e.height,f=e.transform,u=e.title,h=e.extra,g=e.watchable,s=g===void 0?!1:g,p=me(me(me({},h.attributes),u?{title:u}:{}),{},{class:h.classes.join(" ")});s&&(p[Un]="");var o=me({},h.styles);Pa(f)&&(o.transform=tg({transform:f,startCentered:!0,width:n,height:r}),o["-webkit-transform"]=o.transform);var i=Eo(o);i.length>0&&(p.style=i);var a=[];return a.push({tag:"span",attributes:p,children:[t]}),u&&a.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),a}function Ag(e){var t=e.content,n=e.title,r=e.extra,f=me(me(me({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),u=Eo(r.styles);u.length>0&&(f.style=u);var h=[];return h.push({tag:"span",attributes:f,children:[t]}),n&&h.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),h}var ms=Ft.styles;function Gs(e){var t=e[0],n=e[1],r=e.slice(4),f=Ma(r,1),u=f[0],h=null;return Array.isArray(u)?h={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(In.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(In.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(In.PRIMARY),fill:"currentColor",d:u[1]}}]}:h={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:h}}var kg={found:!1,width:512,height:512};function Eg(e,t){!Bu&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ks(e,t){var n=t;return t==="fa"&&_e.styleDefault!==null&&(t=Sn()),new Promise(function(r,f){if(rn("missingIconAbstract"),n==="fa"){var u=Ju(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&ms[t]&&ms[t][e]){var h=ms[t][e];return r(Gs(h))}Eg(e,t),r(me(me({},kg),{},{icon:_e.showMissingIcons&&e?rn("missingIconAbstract")||{}:{}}))})}var Zl=function(){},Ys=_e.measurePerformance&&Ti&&Ti.mark&&Ti.measure?Ti:{mark:Zl,measure:Zl},Br='FA "6.5.1"',Rg=function(t){return Ys.mark("".concat(Br," ").concat(t," begins")),function(){return eh(t)}},eh=function(t){Ys.mark("".concat(Br," ").concat(t," ends")),Ys.measure("".concat(Br," ").concat(t),"".concat(Br," ").concat(t," begins"),"".concat(Br," ").concat(t," ends"))},Va={begin:Rg,end:eh},Ji=function(){};function ql(e){var t=e.getAttribute?e.getAttribute(Un):null;return typeof t=="string"}function xg(e){var t=e.getAttribute?e.getAttribute(Ia):null,n=e.getAttribute?e.getAttribute(Fa):null;return t&&n}function Tg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function Lg(){if(_e.autoReplaceSvg===!0)return Qi.replace;var e=Qi[_e.autoReplaceSvg];return e||Qi.replace}function Mg(e){return Ge.createElementNS("http://www.w3.org/2000/svg",e)}function Og(e){return Ge.createElement(e)}function th(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Mg:Og:n;if(typeof e=="string")return Ge.createTextNode(e);var f=r(e.tag);Object.keys(e.attributes||[]).forEach(function(h){f.setAttribute(h,e.attributes[h])});var u=e.children||[];return u.forEach(function(h){f.appendChild(th(h,{ceFn:r}))}),f}function Ig(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Qi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(f){n.parentNode.insertBefore(th(f),n)}),n.getAttribute(Un)===null&&_e.keepOriginalSource){var r=Ge.createComment(Ig(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Da(n).indexOf(_e.replacementClass))return Qi.replace(t);var f=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var u=r[0].attributes.class.split(" ").reduce(function(g,s){return s===_e.replacementClass||s.match(f)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});r[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var h=r.map(function(g){return vi(g)}).join(`
761
- `);n.setAttribute(Un,""),n.innerHTML=h}};function Jl(e){e()}function nh(e,t){var n=typeof t=="function"?t:Ji;if(e.length===0)n();else{var r=Jl;_e.mutateApproach===Pp&&(r=_n.requestAnimationFrame||Jl),r(function(){var f=Lg(),u=Va.begin("mutate");e.map(f),u(),n()})}}var za=!1;function rh(){za=!0}function Xs(){za=!1}var lo=null;function Ql(e){if(Ul&&_e.observeMutations){var t=e.treeCallback,n=t===void 0?Ji:t,r=e.nodeCallback,f=r===void 0?Ji:r,u=e.pseudoElementsCallback,h=u===void 0?Ji:u,g=e.observeMutationsRoot,s=g===void 0?Ge:g;lo=new Ul(function(p){if(!za){var o=Sn();Sr(p).forEach(function(i){if(i.type==="childList"&&i.addedNodes.length>0&&!ql(i.addedNodes[0])&&(_e.searchPseudoElements&&h(i.target),n(i.target)),i.type==="attributes"&&i.target.parentNode&&_e.searchPseudoElements&&h(i.target.parentNode),i.type==="attributes"&&ql(i.target)&&~jp.indexOf(i.attributeName))if(i.attributeName==="class"&&xg(i.target)){var a=xo(Da(i.target)),c=a.prefix,l=a.iconName;i.target.setAttribute(Ia,c||o),l&&i.target.setAttribute(Fa,l)}else Tg(i.target)&&f(i.target)})}}),on&&lo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Fg(){lo&&lo.disconnect()}function Ng(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,f){var u=f.split(":"),h=u[0],g=u.slice(1);return h&&g.length>0&&(r[h]=g.join(":").trim()),r},{})),n}function Dg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",f=xo(Da(e));return f.prefix||(f.prefix=Sn()),t&&n&&(f.prefix=t,f.iconName=n),f.iconName&&f.prefix||(f.prefix&&r.length>0&&(f.iconName=pg(f.prefix,e.innerText)||Wa(f.prefix,Us(e.innerText))),!f.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(f.iconName=e.firstChild.data)),f}function Pg(e){var t=Sr(e.attributes).reduce(function(f,u){return f.name!=="class"&&f.name!=="style"&&(f[u.name]=u.value),f},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(r||ri()):(t["aria-hidden"]="true",t.focusable="false")),t}function Bg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Wt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Dg(e),r=n.iconName,f=n.prefix,u=n.rest,h=Pg(e),g=zs("parseNodeAttributes",{},e),s=t.styleParser?Ng(e):[];return me({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:f,transform:Wt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:h}},g)}var Wg=Ft.styles;function ih(e){var t=_e.autoReplaceSvg==="nest"?ec(e,{styleParser:!1}):ec(e);return~t.extra.classes.indexOf(Wu)?rn("generateLayersText",e,t):rn("generateSvgReplacementMutation",e,t)}var Cn=new Set;Na.map(function(e){Cn.add("fa-".concat(e))});Object.keys(Qr[je]).map(Cn.add.bind(Cn));Object.keys(Qr[Ze]).map(Cn.add.bind(Cn));Cn=gi(Cn);function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!on)return Promise.resolve();var n=Ge.documentElement.classList,r=function(i){return n.add("".concat(Vl,"-").concat(i))},f=function(i){return n.remove("".concat(Vl,"-").concat(i))},u=_e.autoFetchSvg?Cn:Na.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Wg));u.includes("fa")||u.push("fa");var h=[".".concat(Wu,":not([").concat(Un,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Un,"])")})).join(", ");if(h.length===0)return Promise.resolve();var g=[];try{g=Sr(e.querySelectorAll(h))}catch{}if(g.length>0)r("pending"),f("complete");else return Promise.resolve();var s=Va.begin("onTree"),p=g.reduce(function(o,i){try{var a=ih(i);a&&o.push(a)}catch(c){Bu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,i){Promise.all(p).then(function(a){nh(a,function(){r("active"),r("complete"),f("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(a){s(),i(a)})})}function Hg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ih(e).then(function(n){n&&nh([n],t)})}function Ug(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:js(t||{}),f=n.mask;return f&&(f=(f||{}).icon?f:js(f||{})),e(r,me(me({},n),{},{mask:f}))}}var Vg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,f=r===void 0?Wt:r,u=n.symbol,h=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,i=n.title,a=i===void 0?null:i,c=n.titleId,l=c===void 0?null:c,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,b=t.iconName,R=t.icon;return To(me({type:"icon"},t),function(){return Vn("beforeDOMElementCreation",{iconDefinition:t,params:n}),_e.autoA11y&&(a?y["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(l||ri()):(y["aria-hidden"]="true",y.focusable="false")),Ua({icons:{main:Gs(R),mask:s?Gs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:b,transform:me(me({},Wt),f),symbol:h,title:a,maskId:o,titleId:l,extra:{attributes:y,styles:C,classes:m}})})}},zg={mixout:function(){return{icon:Ug(Vg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=tc,n.nodeCallback=Hg,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,f=r===void 0?Ge:r,u=n.callback,h=u===void 0?function(){}:u;return tc(f,h)},t.generateSvgReplacementMutation=function(n,r){var f=r.iconName,u=r.title,h=r.titleId,g=r.prefix,s=r.transform,p=r.symbol,o=r.mask,i=r.maskId,a=r.extra;return new Promise(function(c,l){Promise.all([Ks(f,g),o.iconName?Ks(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(d){var m=Ma(d,2),v=m[0],y=m[1];c([n,Ua({icons:{main:v,mask:y},prefix:g,iconName:f,transform:s,symbol:p,maskId:i,title:u,titleId:h,extra:a,watchable:!0})])}).catch(l)})},t.generateAbstractIcon=function(n){var r=n.children,f=n.attributes,u=n.main,h=n.transform,g=n.styles,s=Eo(g);s.length>0&&(f.style=s);var p;return Pa(h)&&(p=rn("generateAbstractTransformGrouping",{main:u,transform:h,containerWidth:u.width,iconWidth:u.width})),r.push(p||u.icon),{children:r,attributes:f}}}},jg={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.classes,u=f===void 0?[]:f;return To({type:"layer"},function(){Vn("beforeDOMElementCreation",{assembler:n,params:r});var h=[];return n(function(g){Array.isArray(g)?g.map(function(s){h=h.concat(s.abstract)}):h=h.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(_e.cssPrefix,"-layers")].concat(gi(u)).join(" ")},children:h}]})}}}},Gg={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.title,u=f===void 0?null:f,h=r.classes,g=h===void 0?[]:h,s=r.attributes,p=s===void 0?{}:s,o=r.styles,i=o===void 0?{}:o;return To({type:"counter",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Ag({content:n.toString(),title:u,extra:{attributes:p,styles:i,classes:["".concat(_e.cssPrefix,"-layers-counter")].concat(gi(g))}})})}}}},Kg={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.transform,u=f===void 0?Wt:f,h=r.title,g=h===void 0?null:h,s=r.classes,p=s===void 0?[]:s,o=r.attributes,i=o===void 0?{}:o,a=r.styles,c=a===void 0?{}:a;return To({type:"text",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Xl({content:n,transform:me(me({},Wt),u),title:g,extra:{attributes:i,styles:c,classes:["".concat(_e.cssPrefix,"-layers-text")].concat(gi(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var f=r.title,u=r.transform,h=r.extra,g=null,s=null;if(Nu){var p=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/p,s=o.height/p}return _e.autoA11y&&!f&&(h.attributes["aria-hidden"]="true"),Promise.resolve([n,Xl({content:n.innerHTML,width:g,height:s,transform:u,title:f,extra:h,watchable:!0})])}}},Yg=new RegExp('"',"ug"),nc=[1105920,1112319];function Xg(e){var t=e.replace(Yg,""),n=lg(t,0),r=n>=nc[0]&&n<=nc[1],f=t.length===2?t[0]===t[1]:!1;return{value:Us(f?t[0]:t),isSecondary:r||f}}function rc(e,t){var n="".concat(Dp).concat(t.replace(":","-"));return new Promise(function(r,f){if(e.getAttribute(n)!==null)return r();var u=Sr(e.children),h=u.filter(function(R){return R.getAttribute(Hs)===t})[0],g=_n.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Up),p=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(h&&!s)return e.removeChild(h),r();if(s&&o!=="none"&&o!==""){var i=g.getPropertyValue("content"),a=~["Sharp"].indexOf(s[2])?Ze:je,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?ei[a][s[2].toLowerCase()]:Vp[a][p],l=Xg(i),d=l.value,m=l.isSecondary,v=s[0].startsWith("FontAwesome"),y=Wa(c,d),k=y;if(v){var C=gg(d);C.iconName&&C.prefix&&(y=C.iconName,c=C.prefix)}if(y&&!m&&(!h||h.getAttribute(Ia)!==c||h.getAttribute(Fa)!==k)){e.setAttribute(n,k),h&&e.removeChild(h);var S=Bg(),b=S.extra;b.attributes[Hs]=t,Ks(y,c).then(function(R){var L=Ua(me(me({},S),{},{icons:{main:R,mask:Ha()},prefix:c,iconName:k,extra:b,watchable:!0})),E=Ge.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=L.map(function(M){return vi(M)}).join(`
762
- `),e.removeAttribute(n),r()}).catch(f)}else r()}else r()})}function Zg(e){return Promise.all([rc(e,"::before"),rc(e,"::after")])}function qg(e){return e.parentNode!==document.head&&!~Bp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Hs)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ic(e){if(on)return new Promise(function(t,n){var r=Sr(e.querySelectorAll("*")).filter(qg).map(Zg),f=Va.begin("searchPseudoElements");rh(),Promise.all(r).then(function(){f(),Xs(),t()}).catch(function(){f(),Xs(),n()})})}var Jg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ic,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,f=r===void 0?Ge:r;_e.searchPseudoElements&&ic(f)}}},oc=!1,Qg={mixout:function(){return{dom:{unwatch:function(){rh(),oc=!0}}}},hooks:function(){return{bootstrap:function(){Ql(zs("mutationObserverCallbacks",{}))},noAuto:function(){Fg()},watch:function(n){var r=n.observeMutationsRoot;oc?Xs():Ql(zs("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},sc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,f){var u=f.toLowerCase().split("-"),h=u[0],g=u.slice(1).join("-");if(h&&g==="h")return r.flipX=!0,r;if(h&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(h){case"grow":r.size=r.size+g;break;case"shrink":r.size=r.size-g;break;case"left":r.x=r.x-g;break;case"right":r.x=r.x+g;break;case"up":r.y=r.y-g;break;case"down":r.y=r.y+g;break;case"rotate":r.rotate=r.rotate+g;break}return r},n)},em={mixout:function(){return{parse:{transform:function(n){return sc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-transform");return f&&(n.transform=sc(f)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,f=n.transform,u=n.containerWidth,h=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(f.x*32,", ").concat(f.y*32,") "),p="scale(".concat(f.size/16*(f.flipX?-1:1),", ").concat(f.size/16*(f.flipY?-1:1),") "),o="rotate(".concat(f.rotate," 0 0)"),i={transform:"".concat(s," ").concat(p," ").concat(o)},a={transform:"translate(".concat(h/2*-1," -256)")},c={outer:g,inner:i,path:a};return{tag:"g",attributes:me({},c.outer),children:[{tag:"g",attributes:me({},c.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:me(me({},r.icon.attributes),c.path)}]}]}}}},vs={x:0,y:0,width:"100%",height:"100%"};function ac(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 tm(e){return e.tag==="g"?e.children:[e]}var nm={hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-mask"),u=f?xo(f.split(" ").map(function(h){return h.trim()})):Ha();return u.prefix||(u.prefix=Sn()),n.mask=u,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,f=n.attributes,u=n.main,h=n.mask,g=n.maskId,s=n.transform,p=u.width,o=u.icon,i=h.width,a=h.icon,c=eg({transform:s,containerWidth:i,iconWidth:p}),l={tag:"rect",attributes:me(me({},vs),{},{fill:"white"})},d=o.children?{children:o.children.map(ac)}:{},m={tag:"g",attributes:me({},c.inner),children:[ac(me({tag:o.tag,attributes:me(me({},o.attributes),c.path)},d))]},v={tag:"g",attributes:me({},c.outer),children:[m]},y="mask-".concat(g||ri()),k="clip-".concat(g||ri()),C={tag:"mask",attributes:me(me({},vs),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[l,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:tm(a)},C]};return r.push(S,{tag:"rect",attributes:me({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},vs)}),{children:r,attributes:f}}}},rm={provides:function(t){var n=!1;_n.matchMedia&&(n=_n.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],f={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:me(me({},f),{},{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 h=me(me({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:me(me({},f),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:me(me({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:me(me({},h),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:me(me({},f),{},{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:me(me({},h),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:me(me({},f),{},{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:me(me({},h),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},im={hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-symbol"),u=f===null?!1:f===""?!0:f;return n.symbol=u,n}}}},om=[rg,zg,jg,Gg,Kg,Jg,Qg,em,nm,rm,im];yg(om,{mixoutsTo:Et});Et.noAuto;Et.config;var sm=Et.library;Et.dom;var Zs=Et.parse;Et.findIconDefinition;Et.toHtml;var am=Et.icon;Et.layer;Et.text;Et.counter;var lm={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"]},cm={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"]},um=cm,hm={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},fm={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"]},dm={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"]},pm=dm,gm={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"]},mm={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},vm={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128z"]},oh={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"]},ym=oh,bm={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"]},wm={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"]},$m=wm,_m={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"]},Sm={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"]},Cm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Am={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"]},km={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"]};/**
763
- * @vue/shared v3.4.11
760
+ }`;function zu(){var e=Du,t=Pu,n=Se.cssPrefix,r=Se.replacementClass,f=ng;if(n!==e||r!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");f=f.replace(u,".".concat(n,"-")).replace(h,"--".concat(n,"-")).replace(g,".".concat(r))}return f}var zl=!1;function gs(){Se.autoAddCss&&!zl&&(Qp(zu()),zl=!0)}var rg={mixout:function(){return{dom:{css:zu,insertCss:gs}}},hooks:function(){return{beforeDOMElementCreation:function(){gs()},beforeI2svg:function(){gs()}}}},nn=_n||{};nn[tn]||(nn[tn]={});nn[tn].styles||(nn[tn].styles={});nn[tn].hooks||(nn[tn].hooks={});nn[tn].shims||(nn[tn].shims=[]);var Ft=nn[tn],ju=[],ig=function e(){Ye.removeEventListener("DOMContentLoaded",e),lo=1,ju.map(function(t){return t()})},lo=!1;on&&(lo=(Ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ye.readyState),lo||Ye.addEventListener("DOMContentLoaded",ig));function og(e){on&&(lo?setTimeout(e,0):ju.push(e))}function vi(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,f=e.children,u=f===void 0?[]:f;return typeof e=="string"?Vu(e):"<".concat(t," ").concat(Jp(r),">").concat(u.map(vi).join(""),"</").concat(t,">")}function jl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var sg=function(t,n){return function(r,f,u,h){return t.call(n,r,f,u,h)}},ms=function(t,n,r,f){var u=Object.keys(t),h=u.length,g=f!==void 0?sg(n,f):n,s,p,o;for(r===void 0?(s=1,o=t[u[0]]):(s=0,o=r);s<h;s++)p=u[s],o=g(o,t[p],p,t);return o};function ag(e){for(var t=[],n=0,r=e.length;n<r;){var f=e.charCodeAt(n++);if(f>=55296&&f<=56319&&n<r){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((f&1023)<<10)+(u&1023)+65536):(t.push(f),n--)}else t.push(f)}return t}function Vs(e){var t=ag(e);return t.length===1?t[0].toString(16):null}function lg(e,t){var n=e.length,r=e.charCodeAt(t),f;return r>=55296&&r<=56319&&n>t+1&&(f=e.charCodeAt(t+1),f>=56320&&f<=57343)?(r-55296)*1024+f-56320+65536:r}function Gl(e){return Object.keys(e).reduce(function(t,n){var r=e[n],f=!!r.icon;return f?t[r.iconName]=r.icon:t[n]=r,t},{})}function zs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,f=r===void 0?!1:r,u=Gl(t);typeof Ft.hooks.addPack=="function"&&!f?Ft.hooks.addPack(e,Gl(t)):Ft.styles[e]=me(me({},Ft.styles[e]||{}),u),e==="fas"&&zs("fa",t)}var Di,Pi,Bi,ir=Ft.styles,cg=Ft.shims,ug=(Di={},nt(Di,Ge,Object.values(ti[Ge])),nt(Di,Je,Object.values(ti[Je])),Di),Wa=null,Gu={},Ku={},Yu={},Xu={},Zu={},hg=(Pi={},nt(Pi,Ge,Object.keys(Jr[Ge])),nt(Pi,Je,Object.keys(Jr[Je])),Pi);function fg(e){return~Gp.indexOf(e)}function dg(e,t){var n=t.split("-"),r=n[0],f=n.slice(1).join("-");return r===e&&f!==""&&!fg(f)?f:null}var Qu=function(){var t=function(u){return ms(ir,function(h,g,s){return h[s]=ms(g,u,{}),h},{})};Gu=t(function(f,u,h){if(u[3]&&(f[u[3]]=h),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){f[s.toString(16)]=h})}return f}),Ku=t(function(f,u,h){if(f[h]=h,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){f[s]=h})}return f}),Zu=t(function(f,u,h){var g=u[2];return f[h]=h,g.forEach(function(s){f[s]=h}),f});var n="far"in ir||Se.autoFetchSvg,r=ms(cg,function(f,u){var h=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof h=="string"&&(f.names[h]={prefix:g,iconName:s}),typeof h=="number"&&(f.unicodes[h.toString(16)]={prefix:g,iconName:s}),f},{names:{},unicodes:{}});Yu=r.names,Xu=r.unicodes,Wa=xo(Se.styleDefault,{family:Se.familyDefault})};Zp(function(e){Wa=xo(e.styleDefault,{family:Se.familyDefault})});Qu();function Ha(e,t){return(Gu[e]||{})[t]}function pg(e,t){return(Ku[e]||{})[t]}function Fn(e,t){return(Zu[e]||{})[t]}function qu(e){return Yu[e]||{prefix:null,iconName:null}}function gg(e){var t=Xu[e],n=Ha("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Sn(){return Wa}var Ua=function(){return{prefix:null,iconName:null,rest:[]}};function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ge:n,f=Jr[r][e],u=ei[r][e]||ei[r][f],h=e in Ft.styles?e:null;return u||h||null}var Kl=(Bi={},nt(Bi,Ge,Object.keys(ti[Ge])),nt(Bi,Je,Object.keys(ti[Je])),Bi);function To(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,f=r===void 0?!1:r,u=(t={},nt(t,Ge,"".concat(Se.cssPrefix,"-").concat(Ge)),nt(t,Je,"".concat(Se.cssPrefix,"-").concat(Je)),t),h=null,g=Ge;(e.includes(u[Ge])||e.some(function(p){return Kl[Ge].includes(p)}))&&(g=Ge),(e.includes(u[Je])||e.some(function(p){return Kl[Je].includes(p)}))&&(g=Je);var s=e.reduce(function(p,o){var i=dg(Se.cssPrefix,o);if(ir[o]?(o=ug[g].includes(o)?Wp[g][o]:o,h=o,p.prefix=o):hg[g].indexOf(o)>-1?(h=o,p.prefix=xo(o,{family:g})):i?p.iconName=i:o!==Se.replacementClass&&o!==u[Ge]&&o!==u[Je]&&p.rest.push(o),!f&&p.prefix&&p.iconName){var a=h==="fa"?qu(p.iconName):{},c=Fn(p.prefix,p.iconName);a.prefix&&(h=null),p.iconName=a.iconName||c||p.iconName,p.prefix=a.prefix||p.prefix,p.prefix==="far"&&!ir.far&&ir.fas&&!Se.autoFetchSvg&&(p.prefix="fas")}return p},Ua());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Je&&(ir.fass||Se.autoFetchSvg)&&(s.prefix="fass",s.iconName=Fn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||h==="fa")&&(s.prefix=Sn()||"fas"),s}var mg=function(){function e(){Rp(this,e),this.definitions={}}return xp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,f=new Array(r),u=0;u<r;u++)f[u]=arguments[u];var h=f.reduce(this._pullDefinitions,{});Object.keys(h).forEach(function(g){n.definitions[g]=me(me({},n.definitions[g]||{}),h[g]),zs(g,h[g]);var s=ti[Ge][g];s&&zs(s,h[g]),Qu()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var f=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(f).map(function(u){var h=f[u],g=h.prefix,s=h.iconName,p=h.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(i){typeof i=="string"&&(n[g][i]=p)}),n[g][s]=p}),n}}]),e}(),Yl=[],or={},ar={},vg=Object.keys(ar);function yg(e,t){var n=t.mixoutsTo;return Yl=e,or={},Object.keys(ar).forEach(function(r){vg.indexOf(r)===-1&&delete ar[r]}),Yl.forEach(function(r){var f=r.mixout?r.mixout():{};if(Object.keys(f).forEach(function(h){typeof f[h]=="function"&&(n[h]=f[h]),ao(f[h])==="object"&&Object.keys(f[h]).forEach(function(g){n[h]||(n[h]={}),n[h][g]=f[h][g]})}),r.hooks){var u=r.hooks();Object.keys(u).forEach(function(h){or[h]||(or[h]=[]),or[h].push(u[h])})}r.provides&&r.provides(ar)}),n}function js(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),f=2;f<n;f++)r[f-2]=arguments[f];var u=or[e]||[];return u.forEach(function(h){t=h.apply(null,[t].concat(r))}),t}function Vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var f=or[e]||[];f.forEach(function(u){u.apply(null,n)})}function rn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ar[e]?ar[e].apply(null,t):void 0}function Gs(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Sn();if(t)return t=Fn(n,t)||t,jl(Ju.definitions,n,t)||jl(Ft.styles,n,t)}var Ju=new mg,bg=function(){Se.autoReplaceSvg=!1,Se.observeMutations=!1,Vn("noAuto")},wg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return on?(Vn("beforeI2svg",t),rn("pseudoElements2svg",t),rn("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;Se.autoReplaceSvg===!1&&(Se.autoReplaceSvg=!0),Se.observeMutations=!0,og(function(){_g({autoReplaceSvgRoot:n}),Vn("watch",t)})}},$g={icon:function(t){if(t===null)return null;if(ao(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Fn(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],r=xo(t[0]);return{prefix:r,iconName:Fn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Se.cssPrefix,"-"))>-1||t.match(Hp))){var f=To(t.split(" "),{skipLookups:!0});return{prefix:f.prefix||Sn(),iconName:Fn(f.prefix,f.iconName)||f.iconName}}if(typeof t=="string"){var u=Sn();return{prefix:u,iconName:Fn(u,t)||t}}}},Et={noAuto:bg,config:Se,dom:wg,parse:$g,library:Ju,findIconDefinition:Gs,toHtml:vi},_g=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ye:n;(Object.keys(Ft.styles).length>0||Se.autoFetchSvg)&&on&&Se.autoReplaceSvg&&Et.dom.i2svg({node:r})};function Lo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return vi(r)})}}),Object.defineProperty(e,"node",{get:function(){if(on){var r=Ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Sg(e){var t=e.children,n=e.main,r=e.mask,f=e.attributes,u=e.styles,h=e.transform;if(Ba(h)&&n.found&&!r.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};f.style=Ro(me(me({},u),{},{"transform-origin":"".concat(p.x+h.x/16,"em ").concat(p.y+h.y/16,"em")}))}return[{tag:"svg",attributes:f,children:t}]}function Cg(e){var t=e.prefix,n=e.iconName,r=e.children,f=e.attributes,u=e.symbol,h=u===!0?"".concat(t,"-").concat(Se.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:me(me({},f),{},{id:h}),children:r}]}]}function Va(e){var t=e.icons,n=t.main,r=t.mask,f=e.prefix,u=e.iconName,h=e.transform,g=e.symbol,s=e.title,p=e.maskId,o=e.titleId,i=e.extra,a=e.watchable,c=a===void 0?!1:a,l=r.found?r:n,d=l.width,m=l.height,v=f==="fak",y=[Se.replacementClass,u?"".concat(Se.cssPrefix,"-").concat(u):""].filter(function(E){return i.classes.indexOf(E)===-1}).filter(function(E){return E!==""||!!E}).concat(i.classes).join(" "),k={children:[],attributes:me(me({},i.attributes),{},{"data-prefix":f,"data-icon":u,class:y,role:i.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)})},C=v&&!~i.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};c&&(k.attributes[Un]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(o||ri())},children:[s]}),delete k.attributes.title);var S=me(me({},k),{},{prefix:f,iconName:u,main:n,mask:r,maskId:p,transform:h,symbol:g,styles:me(me({},C),i.styles)}),b=r.found&&n.found?rn("generateAbstractMask",S)||{children:[],attributes:{}}:rn("generateAbstractIcon",S)||{children:[],attributes:{}},R=b.children,L=b.attributes;return S.children=R,S.attributes=L,g?Cg(S):Sg(S)}function Xl(e){var t=e.content,n=e.width,r=e.height,f=e.transform,u=e.title,h=e.extra,g=e.watchable,s=g===void 0?!1:g,p=me(me(me({},h.attributes),u?{title:u}:{}),{},{class:h.classes.join(" ")});s&&(p[Un]="");var o=me({},h.styles);Ba(f)&&(o.transform=tg({transform:f,startCentered:!0,width:n,height:r}),o["-webkit-transform"]=o.transform);var i=Ro(o);i.length>0&&(p.style=i);var a=[];return a.push({tag:"span",attributes:p,children:[t]}),u&&a.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),a}function Ag(e){var t=e.content,n=e.title,r=e.extra,f=me(me(me({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),u=Ro(r.styles);u.length>0&&(f.style=u);var h=[];return h.push({tag:"span",attributes:f,children:[t]}),n&&h.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),h}var vs=Ft.styles;function Ks(e){var t=e[0],n=e[1],r=e.slice(4),f=Oa(r,1),u=f[0],h=null;return Array.isArray(u)?h={tag:"g",attributes:{class:"".concat(Se.cssPrefix,"-").concat(In.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(In.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(In.PRIMARY),fill:"currentColor",d:u[1]}}]}:h={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:h}}var kg={found:!1,width:512,height:512};function Eg(e,t){!Bu&&!Se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ys(e,t){var n=t;return t==="fa"&&Se.styleDefault!==null&&(t=Sn()),new Promise(function(r,f){if(rn("missingIconAbstract"),n==="fa"){var u=qu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&vs[t]&&vs[t][e]){var h=vs[t][e];return r(Ks(h))}Eg(e,t),r(me(me({},kg),{},{icon:Se.showMissingIcons&&e?rn("missingIconAbstract")||{}:{}}))})}var Zl=function(){},Xs=Se.measurePerformance&&Li&&Li.mark&&Li.measure?Li:{mark:Zl,measure:Zl},Br='FA "6.5.1"',Rg=function(t){return Xs.mark("".concat(Br," ").concat(t," begins")),function(){return eh(t)}},eh=function(t){Xs.mark("".concat(Br," ").concat(t," ends")),Xs.measure("".concat(Br," ").concat(t),"".concat(Br," ").concat(t," begins"),"".concat(Br," ").concat(t," ends"))},za={begin:Rg,end:eh},Ji=function(){};function Ql(e){var t=e.getAttribute?e.getAttribute(Un):null;return typeof t=="string"}function xg(e){var t=e.getAttribute?e.getAttribute(Fa):null,n=e.getAttribute?e.getAttribute(Na):null;return t&&n}function Tg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Se.replacementClass)}function Lg(){if(Se.autoReplaceSvg===!0)return eo.replace;var e=eo[Se.autoReplaceSvg];return e||eo.replace}function Mg(e){return Ye.createElementNS("http://www.w3.org/2000/svg",e)}function Og(e){return Ye.createElement(e)}function th(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Mg:Og:n;if(typeof e=="string")return Ye.createTextNode(e);var f=r(e.tag);Object.keys(e.attributes||[]).forEach(function(h){f.setAttribute(h,e.attributes[h])});var u=e.children||[];return u.forEach(function(h){f.appendChild(th(h,{ceFn:r}))}),f}function Ig(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var eo={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(f){n.parentNode.insertBefore(th(f),n)}),n.getAttribute(Un)===null&&Se.keepOriginalSource){var r=Ye.createComment(Ig(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Pa(n).indexOf(Se.replacementClass))return eo.replace(t);var f=new RegExp("".concat(Se.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var u=r[0].attributes.class.split(" ").reduce(function(g,s){return s===Se.replacementClass||s.match(f)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});r[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var h=r.map(function(g){return vi(g)}).join(`
761
+ `);n.setAttribute(Un,""),n.innerHTML=h}};function ql(e){e()}function nh(e,t){var n=typeof t=="function"?t:Ji;if(e.length===0)n();else{var r=ql;Se.mutateApproach===Pp&&(r=_n.requestAnimationFrame||ql),r(function(){var f=Lg(),u=za.begin("mutate");e.map(f),u(),n()})}}var ja=!1;function rh(){ja=!0}function Zs(){ja=!1}var co=null;function Jl(e){if(Ul&&Se.observeMutations){var t=e.treeCallback,n=t===void 0?Ji:t,r=e.nodeCallback,f=r===void 0?Ji:r,u=e.pseudoElementsCallback,h=u===void 0?Ji:u,g=e.observeMutationsRoot,s=g===void 0?Ye:g;co=new Ul(function(p){if(!ja){var o=Sn();Sr(p).forEach(function(i){if(i.type==="childList"&&i.addedNodes.length>0&&!Ql(i.addedNodes[0])&&(Se.searchPseudoElements&&h(i.target),n(i.target)),i.type==="attributes"&&i.target.parentNode&&Se.searchPseudoElements&&h(i.target.parentNode),i.type==="attributes"&&Ql(i.target)&&~jp.indexOf(i.attributeName))if(i.attributeName==="class"&&xg(i.target)){var a=To(Pa(i.target)),c=a.prefix,l=a.iconName;i.target.setAttribute(Fa,c||o),l&&i.target.setAttribute(Na,l)}else Tg(i.target)&&f(i.target)})}}),on&&co.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Fg(){co&&co.disconnect()}function Ng(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,f){var u=f.split(":"),h=u[0],g=u.slice(1);return h&&g.length>0&&(r[h]=g.join(":").trim()),r},{})),n}function Dg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",f=To(Pa(e));return f.prefix||(f.prefix=Sn()),t&&n&&(f.prefix=t,f.iconName=n),f.iconName&&f.prefix||(f.prefix&&r.length>0&&(f.iconName=pg(f.prefix,e.innerText)||Ha(f.prefix,Vs(e.innerText))),!f.iconName&&Se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(f.iconName=e.firstChild.data)),f}function Pg(e){var t=Sr(e.attributes).reduce(function(f,u){return f.name!=="class"&&f.name!=="style"&&(f[u.name]=u.value),f},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Se.autoA11y&&(n?t["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(r||ri()):(t["aria-hidden"]="true",t.focusable="false")),t}function Bg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Wt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Dg(e),r=n.iconName,f=n.prefix,u=n.rest,h=Pg(e),g=js("parseNodeAttributes",{},e),s=t.styleParser?Ng(e):[];return me({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:f,transform:Wt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:h}},g)}var Wg=Ft.styles;function ih(e){var t=Se.autoReplaceSvg==="nest"?ec(e,{styleParser:!1}):ec(e);return~t.extra.classes.indexOf(Wu)?rn("generateLayersText",e,t):rn("generateSvgReplacementMutation",e,t)}var Cn=new Set;Da.map(function(e){Cn.add("fa-".concat(e))});Object.keys(Jr[Ge]).map(Cn.add.bind(Cn));Object.keys(Jr[Je]).map(Cn.add.bind(Cn));Cn=gi(Cn);function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!on)return Promise.resolve();var n=Ye.documentElement.classList,r=function(i){return n.add("".concat(Vl,"-").concat(i))},f=function(i){return n.remove("".concat(Vl,"-").concat(i))},u=Se.autoFetchSvg?Cn:Da.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Wg));u.includes("fa")||u.push("fa");var h=[".".concat(Wu,":not([").concat(Un,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Un,"])")})).join(", ");if(h.length===0)return Promise.resolve();var g=[];try{g=Sr(e.querySelectorAll(h))}catch{}if(g.length>0)r("pending"),f("complete");else return Promise.resolve();var s=za.begin("onTree"),p=g.reduce(function(o,i){try{var a=ih(i);a&&o.push(a)}catch(c){Bu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,i){Promise.all(p).then(function(a){nh(a,function(){r("active"),r("complete"),f("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(a){s(),i(a)})})}function Hg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ih(e).then(function(n){n&&nh([n],t)})}function Ug(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Gs(t||{}),f=n.mask;return f&&(f=(f||{}).icon?f:Gs(f||{})),e(r,me(me({},n),{},{mask:f}))}}var Vg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,f=r===void 0?Wt:r,u=n.symbol,h=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,i=n.title,a=i===void 0?null:i,c=n.titleId,l=c===void 0?null:c,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,b=t.iconName,R=t.icon;return Lo(me({type:"icon"},t),function(){return Vn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Se.autoA11y&&(a?y["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(l||ri()):(y["aria-hidden"]="true",y.focusable="false")),Va({icons:{main:Ks(R),mask:s?Ks(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:b,transform:me(me({},Wt),f),symbol:h,title:a,maskId:o,titleId:l,extra:{attributes:y,styles:C,classes:m}})})}},zg={mixout:function(){return{icon:Ug(Vg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=tc,n.nodeCallback=Hg,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,f=r===void 0?Ye:r,u=n.callback,h=u===void 0?function(){}:u;return tc(f,h)},t.generateSvgReplacementMutation=function(n,r){var f=r.iconName,u=r.title,h=r.titleId,g=r.prefix,s=r.transform,p=r.symbol,o=r.mask,i=r.maskId,a=r.extra;return new Promise(function(c,l){Promise.all([Ys(f,g),o.iconName?Ys(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(d){var m=Oa(d,2),v=m[0],y=m[1];c([n,Va({icons:{main:v,mask:y},prefix:g,iconName:f,transform:s,symbol:p,maskId:i,title:u,titleId:h,extra:a,watchable:!0})])}).catch(l)})},t.generateAbstractIcon=function(n){var r=n.children,f=n.attributes,u=n.main,h=n.transform,g=n.styles,s=Ro(g);s.length>0&&(f.style=s);var p;return Ba(h)&&(p=rn("generateAbstractTransformGrouping",{main:u,transform:h,containerWidth:u.width,iconWidth:u.width})),r.push(p||u.icon),{children:r,attributes:f}}}},jg={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.classes,u=f===void 0?[]:f;return Lo({type:"layer"},function(){Vn("beforeDOMElementCreation",{assembler:n,params:r});var h=[];return n(function(g){Array.isArray(g)?g.map(function(s){h=h.concat(s.abstract)}):h=h.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(Se.cssPrefix,"-layers")].concat(gi(u)).join(" ")},children:h}]})}}}},Gg={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.title,u=f===void 0?null:f,h=r.classes,g=h===void 0?[]:h,s=r.attributes,p=s===void 0?{}:s,o=r.styles,i=o===void 0?{}:o;return Lo({type:"counter",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Ag({content:n.toString(),title:u,extra:{attributes:p,styles:i,classes:["".concat(Se.cssPrefix,"-layers-counter")].concat(gi(g))}})})}}}},Kg={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=r.transform,u=f===void 0?Wt:f,h=r.title,g=h===void 0?null:h,s=r.classes,p=s===void 0?[]:s,o=r.attributes,i=o===void 0?{}:o,a=r.styles,c=a===void 0?{}:a;return Lo({type:"text",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Xl({content:n,transform:me(me({},Wt),u),title:g,extra:{attributes:i,styles:c,classes:["".concat(Se.cssPrefix,"-layers-text")].concat(gi(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var f=r.title,u=r.transform,h=r.extra,g=null,s=null;if(Nu){var p=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/p,s=o.height/p}return Se.autoA11y&&!f&&(h.attributes["aria-hidden"]="true"),Promise.resolve([n,Xl({content:n.innerHTML,width:g,height:s,transform:u,title:f,extra:h,watchable:!0})])}}},Yg=new RegExp('"',"ug"),nc=[1105920,1112319];function Xg(e){var t=e.replace(Yg,""),n=lg(t,0),r=n>=nc[0]&&n<=nc[1],f=t.length===2?t[0]===t[1]:!1;return{value:Vs(f?t[0]:t),isSecondary:r||f}}function rc(e,t){var n="".concat(Dp).concat(t.replace(":","-"));return new Promise(function(r,f){if(e.getAttribute(n)!==null)return r();var u=Sr(e.children),h=u.filter(function(R){return R.getAttribute(Us)===t})[0],g=_n.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Up),p=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(h&&!s)return e.removeChild(h),r();if(s&&o!=="none"&&o!==""){var i=g.getPropertyValue("content"),a=~["Sharp"].indexOf(s[2])?Je:Ge,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?ei[a][s[2].toLowerCase()]:Vp[a][p],l=Xg(i),d=l.value,m=l.isSecondary,v=s[0].startsWith("FontAwesome"),y=Ha(c,d),k=y;if(v){var C=gg(d);C.iconName&&C.prefix&&(y=C.iconName,c=C.prefix)}if(y&&!m&&(!h||h.getAttribute(Fa)!==c||h.getAttribute(Na)!==k)){e.setAttribute(n,k),h&&e.removeChild(h);var S=Bg(),b=S.extra;b.attributes[Us]=t,Ys(y,c).then(function(R){var L=Va(me(me({},S),{},{icons:{main:R,mask:Ua()},prefix:c,iconName:k,extra:b,watchable:!0})),E=Ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=L.map(function(M){return vi(M)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(f)}else r()}else r()})}function Zg(e){return Promise.all([rc(e,"::before"),rc(e,"::after")])}function Qg(e){return e.parentNode!==document.head&&!~Bp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Us)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ic(e){if(on)return new Promise(function(t,n){var r=Sr(e.querySelectorAll("*")).filter(Qg).map(Zg),f=za.begin("searchPseudoElements");rh(),Promise.all(r).then(function(){f(),Zs(),t()}).catch(function(){f(),Zs(),n()})})}var qg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ic,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,f=r===void 0?Ye:r;Se.searchPseudoElements&&ic(f)}}},oc=!1,Jg={mixout:function(){return{dom:{unwatch:function(){rh(),oc=!0}}}},hooks:function(){return{bootstrap:function(){Jl(js("mutationObserverCallbacks",{}))},noAuto:function(){Fg()},watch:function(n){var r=n.observeMutationsRoot;oc?Zs():Jl(js("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},sc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,f){var u=f.toLowerCase().split("-"),h=u[0],g=u.slice(1).join("-");if(h&&g==="h")return r.flipX=!0,r;if(h&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(h){case"grow":r.size=r.size+g;break;case"shrink":r.size=r.size-g;break;case"left":r.x=r.x-g;break;case"right":r.x=r.x+g;break;case"up":r.y=r.y-g;break;case"down":r.y=r.y+g;break;case"rotate":r.rotate=r.rotate+g;break}return r},n)},em={mixout:function(){return{parse:{transform:function(n){return sc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-transform");return f&&(n.transform=sc(f)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,f=n.transform,u=n.containerWidth,h=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(f.x*32,", ").concat(f.y*32,") "),p="scale(".concat(f.size/16*(f.flipX?-1:1),", ").concat(f.size/16*(f.flipY?-1:1),") "),o="rotate(".concat(f.rotate," 0 0)"),i={transform:"".concat(s," ").concat(p," ").concat(o)},a={transform:"translate(".concat(h/2*-1," -256)")},c={outer:g,inner:i,path:a};return{tag:"g",attributes:me({},c.outer),children:[{tag:"g",attributes:me({},c.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:me(me({},r.icon.attributes),c.path)}]}]}}}},ys={x:0,y:0,width:"100%",height:"100%"};function ac(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 tm(e){return e.tag==="g"?e.children:[e]}var nm={hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-mask"),u=f?To(f.split(" ").map(function(h){return h.trim()})):Ua();return u.prefix||(u.prefix=Sn()),n.mask=u,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,f=n.attributes,u=n.main,h=n.mask,g=n.maskId,s=n.transform,p=u.width,o=u.icon,i=h.width,a=h.icon,c=eg({transform:s,containerWidth:i,iconWidth:p}),l={tag:"rect",attributes:me(me({},ys),{},{fill:"white"})},d=o.children?{children:o.children.map(ac)}:{},m={tag:"g",attributes:me({},c.inner),children:[ac(me({tag:o.tag,attributes:me(me({},o.attributes),c.path)},d))]},v={tag:"g",attributes:me({},c.outer),children:[m]},y="mask-".concat(g||ri()),k="clip-".concat(g||ri()),C={tag:"mask",attributes:me(me({},ys),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[l,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:tm(a)},C]};return r.push(S,{tag:"rect",attributes:me({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},ys)}),{children:r,attributes:f}}}},rm={provides:function(t){var n=!1;_n.matchMedia&&(n=_n.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],f={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:me(me({},f),{},{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 h=me(me({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:me(me({},f),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:me(me({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:me(me({},h),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:me(me({},f),{},{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:me(me({},h),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:me(me({},f),{},{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:me(me({},h),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},im={hooks:function(){return{parseNodeAttributes:function(n,r){var f=r.getAttribute("data-fa-symbol"),u=f===null?!1:f===""?!0:f;return n.symbol=u,n}}}},om=[rg,zg,jg,Gg,Kg,qg,Jg,em,nm,rm,im];yg(om,{mixoutsTo:Et});Et.noAuto;Et.config;var sm=Et.library;Et.dom;var Qs=Et.parse;Et.findIconDefinition;Et.toHtml;var am=Et.icon;Et.layer;Et.text;Et.counter;var lm={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"]},cm={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"]},um=cm,hm={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},fm={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"]},dm={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"]},pm=dm,gm={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"]},mm={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},vm={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128z"]},oh={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"]},ym=oh,bm={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"]},wm={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"]},$m=wm,_m={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"]},Sm={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"]},Cm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Am={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"]},km={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"]};/**
763
+ * @vue/shared v3.4.13
764
764
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
765
765
  * @license MIT
766
- **/function Lo(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Be={},lr=[],bt=()=>{},Em=()=>!1,yi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ja=e=>e.startsWith("onUpdate:"),Ke=Object.assign,Ga=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rm=Object.prototype.hasOwnProperty,Ie=(e,t)=>Rm.call(e,t),ve=Array.isArray,cr=e=>Cr(e)==="[object Map]",qn=e=>Cr(e)==="[object Set]",lc=e=>Cr(e)==="[object Date]",xm=e=>Cr(e)==="[object RegExp]",Re=e=>typeof e=="function",Ye=e=>typeof e=="string",An=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",Ka=e=>(He(e)||Re(e))&&Re(e.then)&&Re(e.catch),sh=Object.prototype.toString,Cr=e=>sh.call(e),Tm=e=>Cr(e).slice(8,-1),ah=e=>Cr(e)==="[object Object]",Ya=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zr=Lo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Lm=/-(\w)/g,gt=Mo(e=>e.replace(Lm,(t,n)=>n?n.toUpperCase():"")),Mm=/\B([A-Z])/g,At=Mo(e=>e.replace(Mm,"-$1").toLowerCase()),Ar=Mo(e=>e.charAt(0).toUpperCase()+e.slice(1)),jr=Mo(e=>e?`on${Ar(e)}`:""),Nt=(e,t)=>!Object.is(e,t),ur=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},co=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ho=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let cc;const lh=()=>cc||(cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Om="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,Error",Im=Lo(Om);function bi(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],f=Ye(r)?Pm(r):bi(r);if(f)for(const u in f)t[u]=f[u]}return t}else if(Ye(e)||He(e))return e}const Fm=/;(?![^(]*\))/g,Nm=/:([^]+)/,Dm=/\/\*[^]*?\*\//g;function Pm(e){const t={};return e.replace(Dm,"").split(Fm).forEach(n=>{if(n){const r=n.split(Nm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function kr(e){let t="";if(Ye(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const r=kr(e[n]);r&&(t+=r+" ")}else if(He(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=kr(t)),n&&(e.style=bi(n)),e}const Wm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hm=Lo(Wm);function ch(e){return!!e||e===""}function Um(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=kn(e[r],t[r]);return n}function kn(e,t){if(e===t)return!0;let n=lc(e),r=lc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=An(e),r=An(t),n||r)return e===t;if(n=ve(e),r=ve(t),n||r)return n&&r?Um(e,t):!1;if(n=He(e),r=He(t),n||r){if(!n||!r)return!1;const f=Object.keys(e).length,u=Object.keys(t).length;if(f!==u)return!1;for(const h in e){const g=e.hasOwnProperty(h),s=t.hasOwnProperty(h);if(g&&!s||!g&&s||!kn(e[h],t[h]))return!1}}return String(e)===String(t)}function Oo(e,t){return e.findIndex(n=>kn(n,t))}const ye=e=>Ye(e)?e:e==null?"":ve(e)||He(e)&&(e.toString===sh||!Re(e.toString))?JSON.stringify(e,uh,2):String(e),uh=(e,t)=>t&&t.__v_isRef?uh(e,t.value):cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,f],u)=>(n[ys(r,u)+" =>"]=f,n),{})}:qn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ys(n))}:An(t)?ys(t):He(t)&&!ve(t)&&!ah(t)?String(t):t,ys=(e,t="")=>{var n;return An(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
767
- * @vue/reactivity v3.4.11
766
+ **/function Mo(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Be={},lr=[],bt=()=>{},Em=()=>!1,yi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ga=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Ka=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rm=Object.prototype.hasOwnProperty,Ie=(e,t)=>Rm.call(e,t),ve=Array.isArray,cr=e=>Cr(e)==="[object Map]",Qn=e=>Cr(e)==="[object Set]",lc=e=>Cr(e)==="[object Date]",xm=e=>Cr(e)==="[object RegExp]",Re=e=>typeof e=="function",Qe=e=>typeof e=="string",An=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",Ya=e=>(He(e)||Re(e))&&Re(e.then)&&Re(e.catch),sh=Object.prototype.toString,Cr=e=>sh.call(e),Tm=e=>Cr(e).slice(8,-1),ah=e=>Cr(e)==="[object Object]",Xa=e=>Qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zr=Mo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Lm=/-(\w)/g,gt=Oo(e=>e.replace(Lm,(t,n)=>n?n.toUpperCase():"")),Mm=/\B([A-Z])/g,At=Oo(e=>e.replace(Mm,"-$1").toLowerCase()),Ar=Oo(e=>e.charAt(0).toUpperCase()+e.slice(1)),jr=Oo(e=>e?`on${Ar(e)}`:""),Nt=(e,t)=>!Object.is(e,t),ur=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},uo=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},fo=e=>{const t=Qe(e)?Number(e):NaN;return isNaN(t)?e:t};let cc;const lh=()=>cc||(cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Om="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,Error",Im=Mo(Om);function bi(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],f=Qe(r)?Pm(r):bi(r);if(f)for(const u in f)t[u]=f[u]}return t}else if(Qe(e)||He(e))return e}const Fm=/;(?![^(]*\))/g,Nm=/:([^]+)/,Dm=/\/\*[^]*?\*\//g;function Pm(e){const t={};return e.replace(Dm,"").split(Fm).forEach(n=>{if(n){const r=n.split(Nm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function kr(e){let t="";if(Qe(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const r=kr(e[n]);r&&(t+=r+" ")}else if(He(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Qe(t)&&(e.class=kr(t)),n&&(e.style=bi(n)),e}const Wm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hm=Mo(Wm);function ch(e){return!!e||e===""}function Um(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=kn(e[r],t[r]);return n}function kn(e,t){if(e===t)return!0;let n=lc(e),r=lc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=An(e),r=An(t),n||r)return e===t;if(n=ve(e),r=ve(t),n||r)return n&&r?Um(e,t):!1;if(n=He(e),r=He(t),n||r){if(!n||!r)return!1;const f=Object.keys(e).length,u=Object.keys(t).length;if(f!==u)return!1;for(const h in e){const g=e.hasOwnProperty(h),s=t.hasOwnProperty(h);if(g&&!s||!g&&s||!kn(e[h],t[h]))return!1}}return String(e)===String(t)}function Io(e,t){return e.findIndex(n=>kn(n,t))}const ye=e=>Qe(e)?e:e==null?"":ve(e)||He(e)&&(e.toString===sh||!Re(e.toString))?JSON.stringify(e,uh,2):String(e),uh=(e,t)=>t&&t.__v_isRef?uh(e,t.value):cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,f],u)=>(n[bs(r,u)+" =>"]=f,n),{})}:Qn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>bs(n))}:An(t)?bs(t):He(t)&&!ve(t)&&!ah(t)?String(t):t,bs=(e,t="")=>{var n;return An(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
767
+ * @vue/reactivity v3.4.13
768
768
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
769
769
  * @license MIT
770
- **/let St;class Xa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=St,!t&&St&&(this.index=(St.scopes||(St.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=St;try{return St=this,t()}finally{St=n}}}on(){St=this}off(){St=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const f=this.parent.scopes.pop();f&&f!==this&&(this.parent.scopes[this.index]=f,f.index=this.index)}this.parent=void 0,this._active=!1}}}function hh(e){return new Xa(e)}function fh(e,t=St){t&&t.active&&t.effects.push(e)}function Za(){return St}function dh(e){St&&St.cleanups.push(e)}let Dn;class pr{constructor(t,n,r,f){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,fh(this,f)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,Jn();for(const t of this.deps)if(t.computed&&(Vm(t.computed),this._dirtyLevel>=2))break;Qn(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=$n,n=Dn;try{return $n=!0,Dn=this,this._runnings++,uc(this),this.fn()}finally{hc(this),this._runnings--,Dn=n,$n=t}}stop(){var t;this.active&&(uc(this),hc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Vm(e){return e.value}function uc(e){e._trackId++,e._depsLength=0}function hc(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ph(e.deps[t],e);e.deps.length=e._depsLength}}function ph(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function zm(e,t){e.effect instanceof pr&&(e=e.effect.fn);const n=new pr(e,bt,()=>{n.dirty&&n.run()});t&&(Ke(n,t),t.scope&&fh(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function jm(e){e.effect.stop()}let $n=!0,qs=0;const gh=[];function Jn(){gh.push($n),$n=!1}function Qn(){const e=gh.pop();$n=e===void 0?!0:e}function qa(){qs++}function Ja(){for(qs--;!qs&&Js.length;)Js.shift()()}function mh(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ph(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Js=[];function vh(e,t,n){qa();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel<t&&(!r._runnings||r.allowRecurse||t!==2)){const f=r._dirtyLevel;r._dirtyLevel=t,f===0&&(!r._queryings||t!==2)&&(r.trigger(),r.scheduler&&Js.push(r.scheduler))}Ja()}const yh=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},fo=new WeakMap,Pn=Symbol(""),Qs=Symbol("");function $t(e,t,n){if($n&&Dn){let r=fo.get(e);r||fo.set(e,r=new Map);let f=r.get(n);f||r.set(n,f=yh(()=>r.delete(n))),mh(Dn,f)}}function qt(e,t,n,r,f,u){const h=fo.get(e);if(!h)return;let g=[];if(t==="clear")g=[...h.values()];else if(n==="length"&&ve(e)){const s=Number(r);h.forEach((p,o)=>{(o==="length"||!An(o)&&o>=s)&&g.push(p)})}else switch(n!==void 0&&g.push(h.get(n)),t){case"add":ve(e)?Ya(n)&&g.push(h.get("length")):(g.push(h.get(Pn)),cr(e)&&g.push(h.get(Qs)));break;case"delete":ve(e)||(g.push(h.get(Pn)),cr(e)&&g.push(h.get(Qs)));break;case"set":cr(e)&&g.push(h.get(Pn));break}qa();for(const s of g)s&&vh(s,3);Ja()}function Gm(e,t){var n;return(n=fo.get(e))==null?void 0:n.get(t)}const Km=Lo("__proto__,__v_isRef,__isVue"),bh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An)),fc=Ym();function Ym(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Le(this);for(let u=0,h=this.length;u<h;u++)$t(r,"get",u+"");const f=r[t](...n);return f===-1||f===!1?r[t](...n.map(Le)):f}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Jn(),qa();const r=Le(this)[t].apply(this,n);return Ja(),Qn(),r}}),e}function Xm(e){const t=Le(this);return $t(t,"has",e),t.hasOwnProperty(e)}class wh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const f=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!f;if(n==="__v_isReadonly")return f;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(f?u?kh:Ah:u?Ch:Sh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const h=ve(t);if(!f){if(h&&Ie(fc,n))return Reflect.get(fc,n,r);if(n==="hasOwnProperty")return Xm}const g=Reflect.get(t,n,r);return(An(n)?bh.has(n):Km(n))||(f||$t(t,"get",n),u)?g:at(g)?h&&Ya(n)?g:g.value:He(g)?f?No(g):Er(g):g}}class $h extends wh{constructor(t=!1){super(!1,t)}set(t,n,r,f){let u=t[n];if(!this._shallow){const s=zn(u);if(!ii(r)&&!zn(r)&&(u=Le(u),r=Le(r)),!ve(t)&&at(u)&&!at(r))return s?!1:(u.value=r,!0)}const h=ve(t)&&Ya(n)?Number(n)<t.length:Ie(t,n),g=Reflect.set(t,n,r,f);return t===Le(f)&&(h?Nt(r,u)&&qt(t,"set",n,r):qt(t,"add",n,r)),g}deleteProperty(t,n){const r=Ie(t,n);t[n];const f=Reflect.deleteProperty(t,n);return f&&r&&qt(t,"delete",n,void 0),f}has(t,n){const r=Reflect.has(t,n);return(!An(n)||!bh.has(n))&&$t(t,"has",n),r}ownKeys(t){return $t(t,"iterate",ve(t)?"length":Pn),Reflect.ownKeys(t)}}class _h extends wh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Zm=new $h,qm=new _h,Jm=new $h(!0),Qm=new _h(!0),Qa=e=>e,Io=e=>Reflect.getPrototypeOf(e);function Bi(e,t,n=!1,r=!1){e=e.__v_raw;const f=Le(e),u=Le(t);n||(Nt(t,u)&&$t(f,"get",t),$t(f,"get",u));const{has:h}=Io(f),g=r?Qa:n?nl:oi;if(h.call(f,t))return g(e.get(t));if(h.call(f,u))return g(e.get(u));e!==f&&e.get(t)}function Wi(e,t=!1){const n=this.__v_raw,r=Le(n),f=Le(e);return t||(Nt(e,f)&&$t(r,"has",e),$t(r,"has",f)),e===f?n.has(e):n.has(e)||n.has(f)}function Hi(e,t=!1){return e=e.__v_raw,!t&&$t(Le(e),"iterate",Pn),Reflect.get(e,"size",e)}function dc(e){e=Le(e);const t=Le(this);return Io(t).has.call(t,e)||(t.add(e),qt(t,"add",e,e)),this}function pc(e,t){t=Le(t);const n=Le(this),{has:r,get:f}=Io(n);let u=r.call(n,e);u||(e=Le(e),u=r.call(n,e));const h=f.call(n,e);return n.set(e,t),u?Nt(t,h)&&qt(n,"set",e,t):qt(n,"add",e,t),this}function gc(e){const t=Le(this),{has:n,get:r}=Io(t);let f=n.call(t,e);f||(e=Le(e),f=n.call(t,e)),r&&r.call(t,e);const u=t.delete(e);return f&&qt(t,"delete",e,void 0),u}function mc(){const e=Le(this),t=e.size!==0,n=e.clear();return t&&qt(e,"clear",void 0,void 0),n}function Ui(e,t){return function(r,f){const u=this,h=u.__v_raw,g=Le(h),s=t?Qa:e?nl:oi;return!e&&$t(g,"iterate",Pn),h.forEach((p,o)=>r.call(f,s(p),s(o),u))}}function Vi(e,t,n){return function(...r){const f=this.__v_raw,u=Le(f),h=cr(u),g=e==="entries"||e===Symbol.iterator&&h,s=e==="keys"&&h,p=f[e](...r),o=n?Qa:t?nl:oi;return!t&&$t(u,"iterate",s?Qs:Pn),{next(){const{value:i,done:a}=p.next();return a?{value:i,done:a}:{value:g?[o(i[0]),o(i[1])]:o(i),done:a}},[Symbol.iterator](){return this}}}}function un(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ev(){const e={get(u){return Bi(this,u)},get size(){return Hi(this)},has:Wi,add:dc,set:pc,delete:gc,clear:mc,forEach:Ui(!1,!1)},t={get(u){return Bi(this,u,!1,!0)},get size(){return Hi(this)},has:Wi,add:dc,set:pc,delete:gc,clear:mc,forEach:Ui(!1,!0)},n={get(u){return Bi(this,u,!0)},get size(){return Hi(this,!0)},has(u){return Wi.call(this,u,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ui(!0,!1)},r={get(u){return Bi(this,u,!0,!0)},get size(){return Hi(this,!0)},has(u){return Wi.call(this,u,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ui(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=Vi(u,!1,!1),n[u]=Vi(u,!0,!1),t[u]=Vi(u,!1,!0),r[u]=Vi(u,!0,!0)}),[e,n,t,r]}const[tv,nv,rv,iv]=ev();function Fo(e,t){const n=t?e?iv:rv:e?nv:tv;return(r,f,u)=>f==="__v_isReactive"?!e:f==="__v_isReadonly"?e:f==="__v_raw"?r:Reflect.get(Ie(n,f)&&f in r?n:r,f,u)}const ov={get:Fo(!1,!1)},sv={get:Fo(!1,!0)},av={get:Fo(!0,!1)},lv={get:Fo(!0,!0)},Sh=new WeakMap,Ch=new WeakMap,Ah=new WeakMap,kh=new WeakMap;function cv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uv(e){return e.__v_skip||!Object.isExtensible(e)?0:cv(Tm(e))}function Er(e){return zn(e)?e:Do(e,!1,Zm,ov,Sh)}function el(e){return Do(e,!1,Jm,sv,Ch)}function No(e){return Do(e,!0,qm,av,Ah)}function hv(e){return Do(e,!0,Qm,lv,kh)}function Do(e,t,n,r,f){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=f.get(e);if(u)return u;const h=uv(e);if(h===0)return e;const g=new Proxy(e,h===2?r:n);return f.set(e,g),g}function Bn(e){return zn(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function zn(e){return!!(e&&e.__v_isReadonly)}function ii(e){return!!(e&&e.__v_isShallow)}function tl(e){return Bn(e)||zn(e)}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Po(e){return co(e,"__v_skip",!0),e}const oi=e=>He(e)?Er(e):e,nl=e=>He(e)?No(e):e;class Eh{constructor(t,n,r,f){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new pr(()=>t(this._value),()=>si(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!f,this.__v_isReadonly=r}get value(){const t=Le(this);return rl(t),(!t._cacheable||t.effect.dirty)&&Nt(t._value,t._value=t.effect.run())&&si(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function fv(e,t,n=!1){let r,f;const u=Re(e);return u?(r=e,f=bt):(r=e.get,f=e.set),new Eh(r,f,u||!f,n)}function rl(e){$n&&Dn&&(e=Le(e),mh(Dn,e.dep||(e.dep=yh(()=>e.dep=void 0,e instanceof Eh?e:void 0))))}function si(e,t=3,n){e=Le(e);const r=e.dep;r&&vh(r,t)}function at(e){return!!(e&&e.__v_isRef===!0)}function Ne(e){return xh(e,!1)}function Rh(e){return xh(e,!0)}function xh(e,t){return at(e)?e:new dv(e,t)}class dv{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Le(t),this._value=n?t:oi(t)}get value(){return rl(this),this._value}set value(t){const n=this.__v_isShallow||ii(t)||zn(t);t=n?t:Le(t),Nt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:oi(t),si(this,3))}}function pv(e){si(e,3)}function Jt(e){return at(e)?e.value:e}function gv(e){return Re(e)?e():Jt(e)}const mv={get:(e,t,n)=>Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const f=e[t];return at(f)&&!at(n)?(f.value=n,!0):Reflect.set(e,t,n,r)}};function il(e){return Bn(e)?e:new Proxy(e,mv)}class vv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>rl(this),()=>si(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Bo(e){return new vv(e)}function yv(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Th(e,n);return t}class bv{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 Gm(Le(this._object),this._key)}}class wv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Wo(e,t,n){return at(e)?e:Re(e)?new wv(e):He(e)&&arguments.length>1?Th(e,t,n):Ne(e)}function Th(e,t,n){const r=e[t];return at(r)?r:new bv(e,t,n)}const $v={GET:"get",HAS:"has",ITERATE:"iterate"},_v={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
771
- * @vue/runtime-core v3.4.11
770
+ **/let St;class Za{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=St,!t&&St&&(this.index=(St.scopes||(St.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=St;try{return St=this,t()}finally{St=n}}}on(){St=this}off(){St=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const f=this.parent.scopes.pop();f&&f!==this&&(this.parent.scopes[this.index]=f,f.index=this.index)}this.parent=void 0,this._active=!1}}}function hh(e){return new Za(e)}function fh(e,t=St){t&&t.active&&t.effects.push(e)}function Qa(){return St}function dh(e){St&&St.cleanups.push(e)}let Dn;class pr{constructor(t,n,r,f){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,fh(this,f)}get dirty(){if(this._dirtyLevel===1){qn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Vm(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Jn()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=$n,n=Dn;try{return $n=!0,Dn=this,this._runnings++,uc(this),this.fn()}finally{hc(this),this._runnings--,Dn=n,$n=t}}stop(){var t;this.active&&(uc(this),hc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Vm(e){return e.value}function uc(e){e._trackId++,e._depsLength=0}function hc(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ph(e.deps[t],e);e.deps.length=e._depsLength}}function ph(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function zm(e,t){e.effect instanceof pr&&(e=e.effect.fn);const n=new pr(e,bt,()=>{n.dirty&&n.run()});t&&(Ze(n,t),t.scope&&fh(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function jm(e){e.effect.stop()}let $n=!0,qs=0;const gh=[];function qn(){gh.push($n),$n=!1}function Jn(){const e=gh.pop();$n=e===void 0?!0:e}function qa(){qs++}function Ja(){for(qs--;!qs&&Js.length;)Js.shift()()}function mh(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ph(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Js=[];function vh(e,t,n){qa();for(const r of e.keys())if(e.get(r)===r._trackId){if(r._dirtyLevel<t){const f=r._dirtyLevel;r._dirtyLevel=t,f===0&&(r._shouldSchedule=!0,r.trigger())}r.scheduler&&r._shouldSchedule&&(!r._runnings||r.allowRecurse)&&(r._shouldSchedule=!1,Js.push(r.scheduler))}Ja()}const yh=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},po=new WeakMap,Pn=Symbol(""),ea=Symbol("");function $t(e,t,n){if($n&&Dn){let r=po.get(e);r||po.set(e,r=new Map);let f=r.get(n);f||r.set(n,f=yh(()=>r.delete(n))),mh(Dn,f)}}function Qt(e,t,n,r,f,u){const h=po.get(e);if(!h)return;let g=[];if(t==="clear")g=[...h.values()];else if(n==="length"&&ve(e)){const s=Number(r);h.forEach((p,o)=>{(o==="length"||!An(o)&&o>=s)&&g.push(p)})}else switch(n!==void 0&&g.push(h.get(n)),t){case"add":ve(e)?Xa(n)&&g.push(h.get("length")):(g.push(h.get(Pn)),cr(e)&&g.push(h.get(ea)));break;case"delete":ve(e)||(g.push(h.get(Pn)),cr(e)&&g.push(h.get(ea)));break;case"set":cr(e)&&g.push(h.get(Pn));break}qa();for(const s of g)s&&vh(s,2);Ja()}function Gm(e,t){var n;return(n=po.get(e))==null?void 0:n.get(t)}const Km=Mo("__proto__,__v_isRef,__isVue"),bh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An)),fc=Ym();function Ym(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Le(this);for(let u=0,h=this.length;u<h;u++)$t(r,"get",u+"");const f=r[t](...n);return f===-1||f===!1?r[t](...n.map(Le)):f}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){qn(),qa();const r=Le(this)[t].apply(this,n);return Ja(),Jn(),r}}),e}function Xm(e){const t=Le(this);return $t(t,"has",e),t.hasOwnProperty(e)}class wh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const f=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!f;if(n==="__v_isReadonly")return f;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(f?u?kh:Ah:u?Ch:Sh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const h=ve(t);if(!f){if(h&&Ie(fc,n))return Reflect.get(fc,n,r);if(n==="hasOwnProperty")return Xm}const g=Reflect.get(t,n,r);return(An(n)?bh.has(n):Km(n))||(f||$t(t,"get",n),u)?g:at(g)?h&&Xa(n)?g:g.value:He(g)?f?Do(g):Er(g):g}}class $h extends wh{constructor(t=!1){super(!1,t)}set(t,n,r,f){let u=t[n];if(!this._shallow){const s=zn(u);if(!ii(r)&&!zn(r)&&(u=Le(u),r=Le(r)),!ve(t)&&at(u)&&!at(r))return s?!1:(u.value=r,!0)}const h=ve(t)&&Xa(n)?Number(n)<t.length:Ie(t,n),g=Reflect.set(t,n,r,f);return t===Le(f)&&(h?Nt(r,u)&&Qt(t,"set",n,r):Qt(t,"add",n,r)),g}deleteProperty(t,n){const r=Ie(t,n);t[n];const f=Reflect.deleteProperty(t,n);return f&&r&&Qt(t,"delete",n,void 0),f}has(t,n){const r=Reflect.has(t,n);return(!An(n)||!bh.has(n))&&$t(t,"has",n),r}ownKeys(t){return $t(t,"iterate",ve(t)?"length":Pn),Reflect.ownKeys(t)}}class _h extends wh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Zm=new $h,Qm=new _h,qm=new $h(!0),Jm=new _h(!0),el=e=>e,Fo=e=>Reflect.getPrototypeOf(e);function Wi(e,t,n=!1,r=!1){e=e.__v_raw;const f=Le(e),u=Le(t);n||(Nt(t,u)&&$t(f,"get",t),$t(f,"get",u));const{has:h}=Fo(f),g=r?el:n?rl:oi;if(h.call(f,t))return g(e.get(t));if(h.call(f,u))return g(e.get(u));e!==f&&e.get(t)}function Hi(e,t=!1){const n=this.__v_raw,r=Le(n),f=Le(e);return t||(Nt(e,f)&&$t(r,"has",e),$t(r,"has",f)),e===f?n.has(e):n.has(e)||n.has(f)}function Ui(e,t=!1){return e=e.__v_raw,!t&&$t(Le(e),"iterate",Pn),Reflect.get(e,"size",e)}function dc(e){e=Le(e);const t=Le(this);return Fo(t).has.call(t,e)||(t.add(e),Qt(t,"add",e,e)),this}function pc(e,t){t=Le(t);const n=Le(this),{has:r,get:f}=Fo(n);let u=r.call(n,e);u||(e=Le(e),u=r.call(n,e));const h=f.call(n,e);return n.set(e,t),u?Nt(t,h)&&Qt(n,"set",e,t):Qt(n,"add",e,t),this}function gc(e){const t=Le(this),{has:n,get:r}=Fo(t);let f=n.call(t,e);f||(e=Le(e),f=n.call(t,e)),r&&r.call(t,e);const u=t.delete(e);return f&&Qt(t,"delete",e,void 0),u}function mc(){const e=Le(this),t=e.size!==0,n=e.clear();return t&&Qt(e,"clear",void 0,void 0),n}function Vi(e,t){return function(r,f){const u=this,h=u.__v_raw,g=Le(h),s=t?el:e?rl:oi;return!e&&$t(g,"iterate",Pn),h.forEach((p,o)=>r.call(f,s(p),s(o),u))}}function zi(e,t,n){return function(...r){const f=this.__v_raw,u=Le(f),h=cr(u),g=e==="entries"||e===Symbol.iterator&&h,s=e==="keys"&&h,p=f[e](...r),o=n?el:t?rl:oi;return!t&&$t(u,"iterate",s?ea:Pn),{next(){const{value:i,done:a}=p.next();return a?{value:i,done:a}:{value:g?[o(i[0]),o(i[1])]:o(i),done:a}},[Symbol.iterator](){return this}}}}function un(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ev(){const e={get(u){return Wi(this,u)},get size(){return Ui(this)},has:Hi,add:dc,set:pc,delete:gc,clear:mc,forEach:Vi(!1,!1)},t={get(u){return Wi(this,u,!1,!0)},get size(){return Ui(this)},has:Hi,add:dc,set:pc,delete:gc,clear:mc,forEach:Vi(!1,!0)},n={get(u){return Wi(this,u,!0)},get size(){return Ui(this,!0)},has(u){return Hi.call(this,u,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Vi(!0,!1)},r={get(u){return Wi(this,u,!0,!0)},get size(){return Ui(this,!0)},has(u){return Hi.call(this,u,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Vi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=zi(u,!1,!1),n[u]=zi(u,!0,!1),t[u]=zi(u,!1,!0),r[u]=zi(u,!0,!0)}),[e,n,t,r]}const[tv,nv,rv,iv]=ev();function No(e,t){const n=t?e?iv:rv:e?nv:tv;return(r,f,u)=>f==="__v_isReactive"?!e:f==="__v_isReadonly"?e:f==="__v_raw"?r:Reflect.get(Ie(n,f)&&f in r?n:r,f,u)}const ov={get:No(!1,!1)},sv={get:No(!1,!0)},av={get:No(!0,!1)},lv={get:No(!0,!0)},Sh=new WeakMap,Ch=new WeakMap,Ah=new WeakMap,kh=new WeakMap;function cv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uv(e){return e.__v_skip||!Object.isExtensible(e)?0:cv(Tm(e))}function Er(e){return zn(e)?e:Po(e,!1,Zm,ov,Sh)}function tl(e){return Po(e,!1,qm,sv,Ch)}function Do(e){return Po(e,!0,Qm,av,Ah)}function hv(e){return Po(e,!0,Jm,lv,kh)}function Po(e,t,n,r,f){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=f.get(e);if(u)return u;const h=uv(e);if(h===0)return e;const g=new Proxy(e,h===2?r:n);return f.set(e,g),g}function Bn(e){return zn(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function zn(e){return!!(e&&e.__v_isReadonly)}function ii(e){return!!(e&&e.__v_isShallow)}function nl(e){return Bn(e)||zn(e)}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Bo(e){return uo(e,"__v_skip",!0),e}const oi=e=>He(e)?Er(e):e,rl=e=>He(e)?Do(e):e;class Eh{constructor(t,n,r,f){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new pr(()=>t(this._value),()=>si(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!f,this.__v_isReadonly=r}get value(){const t=Le(this);return(!t._cacheable||t.effect.dirty)&&Nt(t._value,t._value=t.effect.run())&&si(t,2),il(t),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function fv(e,t,n=!1){let r,f;const u=Re(e);return u?(r=e,f=bt):(r=e.get,f=e.set),new Eh(r,f,u||!f,n)}function il(e){$n&&Dn&&(e=Le(e),mh(Dn,e.dep||(e.dep=yh(()=>e.dep=void 0,e instanceof Eh?e:void 0))))}function si(e,t=2,n){e=Le(e);const r=e.dep;r&&vh(r,t)}function at(e){return!!(e&&e.__v_isRef===!0)}function Fe(e){return xh(e,!1)}function Rh(e){return xh(e,!0)}function xh(e,t){return at(e)?e:new dv(e,t)}class dv{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Le(t),this._value=n?t:oi(t)}get value(){return il(this),this._value}set value(t){const n=this.__v_isShallow||ii(t)||zn(t);t=n?t:Le(t),Nt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:oi(t),si(this,2))}}function pv(e){si(e,2)}function qt(e){return at(e)?e.value:e}function gv(e){return Re(e)?e():qt(e)}const mv={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const f=e[t];return at(f)&&!at(n)?(f.value=n,!0):Reflect.set(e,t,n,r)}};function ol(e){return Bn(e)?e:new Proxy(e,mv)}class vv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>il(this),()=>si(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Wo(e){return new vv(e)}function yv(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Th(e,n);return t}class bv{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 Gm(Le(this._object),this._key)}}class wv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ho(e,t,n){return at(e)?e:Re(e)?new wv(e):He(e)&&arguments.length>1?Th(e,t,n):Fe(e)}function Th(e,t,n){const r=e[t];return at(r)?r:new bv(e,t,n)}const $v={GET:"get",HAS:"has",ITERATE:"iterate"},_v={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
771
+ * @vue/runtime-core v3.4.13
772
772
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
773
773
  * @license MIT
774
- **/function Sv(e,t){}const Cv={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Av={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Qt(e,t,n,r){let f;try{f=r?e(...r):e()}catch(u){er(u,t,n)}return f}function kt(e,t,n,r){if(Re(e)){const u=Qt(e,t,n,r);return u&&Ka(u)&&u.catch(h=>{er(h,t,n)}),u}const f=[];for(let u=0;u<e.length;u++)f.push(kt(e[u],t,n,r));return f}function er(e,t,n,r=!0){const f=t?t.vnode:null;if(t){let u=t.parent;const h=t.proxy,g=`https://vuejs.org/errors/#runtime-${n}`;for(;u;){const p=u.ec;if(p){for(let o=0;o<p.length;o++)if(p[o](e,h,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){Qt(s,null,10,[e,h,g]);return}}kv(e,n,f,r)}function kv(e,t,n,r=!0){console.error(e)}let ai=!1,ea=!1;const ut=[];let Bt=0;const hr=[];let mn=null,On=0;const Lh=Promise.resolve();let ol=null;function wi(e){const t=ol||Lh;return e?t.then(this?e.bind(this):e):t}function Ev(e){let t=Bt+1,n=ut.length;for(;t<n;){const r=t+n>>>1,f=ut[r],u=li(f);u<e||u===e&&f.pre?t=r+1:n=r}return t}function Ho(e){(!ut.length||!ut.includes(e,ai&&e.allowRecurse?Bt+1:Bt))&&(e.id==null?ut.push(e):ut.splice(Ev(e.id),0,e),Mh())}function Mh(){!ai&&!ea&&(ea=!0,ol=Lh.then(Oh))}function Rv(e){const t=ut.indexOf(e);t>Bt&&ut.splice(t,1)}function po(e){ve(e)?hr.push(...e):(!mn||!mn.includes(e,e.allowRecurse?On+1:On))&&hr.push(e),Mh()}function vc(e,t,n=ai?Bt+1:0){for(;n<ut.length;n++){const r=ut[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;ut.splice(n,1),n--,r()}}}function go(e){if(hr.length){const t=[...new Set(hr)].sort((n,r)=>li(n)-li(r));if(hr.length=0,mn){mn.push(...t);return}for(mn=t,On=0;On<mn.length;On++)mn[On]();mn=null,On=0}}const li=e=>e.id==null?1/0:e.id,xv=(e,t)=>{const n=li(e)-li(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Oh(e){ea=!1,ai=!0,ut.sort(xv);try{for(Bt=0;Bt<ut.length;Bt++){const t=ut[Bt];t&&t.active!==!1&&Qt(t,null,14)}}finally{Bt=0,ut.length=0,go(),ai=!1,ol=null,(ut.length||hr.length)&&Oh()}}let nr,zi=[];function Ih(e,t){var n,r;nr=e,nr?(nr.enabled=!0,zi.forEach(({event:f,args:u})=>nr.emit(f,...u)),zi=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{Ih(u,t)}),setTimeout(()=>{nr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,zi=[])},3e3)):zi=[]}function Tv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Be;let f=n;const u=t.startsWith("update:"),h=u&&t.slice(7);if(h&&h in r){const o=`${h==="modelValue"?"model":h}Modifiers`,{number:i,trim:a}=r[o]||Be;a&&(f=n.map(c=>Ye(c)?c.trim():c)),i&&(f=n.map(uo))}let g,s=r[g=jr(t)]||r[g=jr(gt(t))];!s&&u&&(s=r[g=jr(At(t))]),s&&kt(s,e,6,f);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,kt(p,e,6,f)}}function Fh(e,t,n=!1){const r=t.emitsCache,f=r.get(e);if(f!==void 0)return f;const u=e.emits;let h={},g=!1;if(!Re(e)){const s=p=>{const o=Fh(p,t,!0);o&&(g=!0,Ke(h,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(He(e)&&r.set(e,null),null):(ve(u)?u.forEach(s=>h[s]=null):Ke(h,u),He(e)&&r.set(e,h),h)}function Uo(e,t){return!e||!yi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,At(t))||Ie(e,t))}let Qe=null,Vo=null;function ci(e){const t=Qe;return Qe=e,Vo=e&&e.type.__scopeId||null,t}function zo(e){Vo=e}function jo(){Vo=null}const Lv=e=>Je;function Je(e,t=Qe,n){if(!t||e._n)return e;const r=(...f)=>{r._d&&la(-1);const u=ci(t);let h;try{h=e(...f)}finally{ci(u),r._d&&la(1)}return h};return r._n=!0,r._c=!0,r._d=!0,r}function eo(e){const{type:t,vnode:n,proxy:r,withProxy:f,props:u,propsOptions:[h],slots:g,attrs:s,emit:p,render:o,renderCache:i,data:a,setupState:c,ctx:l,inheritAttrs:d}=e;let m,v;const y=ci(e);try{if(n.shapeFlag&4){const C=f||r,S=C;m=Ct(o.call(S,C,i,u,c,a,l)),v=s}else{const C=t;m=Ct(C.length>1?C(u,{attrs:s,slots:g,emit:p}):C(u,null)),v=t.props?s:Ov(s)}}catch(C){Xr.length=0,er(C,e,1),m=se(ht)}let k=m;if(v&&d!==!1){const C=Object.keys(v),{shapeFlag:S}=k;C.length&&S&7&&(h&&C.some(ja)&&(v=Iv(v,h)),k=Vt(k,v))}return n.dirs&&(k=Vt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,ci(y),m}function Mv(e,t=!0){let n;for(let r=0;r<e.length;r++){const f=e[r];if(En(f)){if(f.type!==ht||f.children==="v-if"){if(n)return;n=f}}else return}return n}const Ov=e=>{let t;for(const n in e)(n==="class"||n==="style"||yi(n))&&((t||(t={}))[n]=e[n]);return t},Iv=(e,t)=>{const n={};for(const r in e)(!ja(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fv(e,t,n){const{props:r,children:f,component:u}=e,{props:h,children:g,patchFlag:s}=t,p=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?yc(r,h,p):!!h;if(s&8){const o=t.dynamicProps;for(let i=0;i<o.length;i++){const a=o[i];if(h[a]!==r[a]&&!Uo(p,a))return!0}}}else return(f||g)&&(!g||!g.$stable)?!0:r===h?!1:r?h?yc(r,h,p):!0:!!h;return!1}function yc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let f=0;f<r.length;f++){const u=r[f];if(t[u]!==e[u]&&!Uo(n,u))return!0}return!1}function sl({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const al="components",Nv="directives";function ie(e,t){return ll(al,e,!0,t)||e}const Nh=Symbol.for("v-ndc");function Dv(e){return Ye(e)?ll(al,e,!1)||e:e||Nh}function Pv(e){return ll(Nv,e)}function ll(e,t,n=!0,r=!1){const f=Qe||tt;if(f){const u=f.type;if(e===al){const g=da(u,!1);if(g&&(g===t||g===gt(t)||g===Ar(gt(t))))return u}const h=bc(f[e]||u[e],t)||bc(f.appContext[e],t);return!h&&r?u:h}}function bc(e,t){return e&&(e[t]||e[gt(t)]||e[Ar(gt(t))])}const Dh=e=>e.__isSuspense;let ta=0;const Bv={name:"Suspense",__isSuspense:!0,process(e,t,n,r,f,u,h,g,s,p){if(e==null)Hv(t,n,r,f,u,h,g,s,p);else{if(u&&u.deps>0){t.suspense=e.suspense;return}Uv(e,t,n,r,f,h,g,s,p)}},hydrate:Vv,create:cl,normalize:zv},Wv=Bv;function ui(e,t){const n=e.props&&e.props[t];Re(n)&&n()}function Hv(e,t,n,r,f,u,h,g,s){const{p,o:{createElement:o}}=s,i=o("div"),a=e.suspense=cl(e,f,r,t,i,n,u,h,g,s);p(null,a.pendingBranch=e.ssContent,i,null,r,a,u,h),a.deps>0?(ui(e,"onPending"),ui(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,u,h),fr(a,e.ssFallback)):a.resolve(!1,!0)}function Uv(e,t,n,r,f,u,h,g,{p:s,um:p,o:{createElement:o}}){const i=t.suspense=e.suspense;i.vnode=t,t.el=e.el;const a=t.ssContent,c=t.ssFallback,{activeBranch:l,pendingBranch:d,isInFallback:m,isHydrating:v}=i;if(d)i.pendingBranch=a,It(a,d)?(s(d,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0?i.resolve():m&&(v||(s(l,c,n,r,f,null,u,h,g),fr(i,c)))):(i.pendingId=ta++,v?(i.isHydrating=!1,i.activeBranch=d):p(d,f,i),i.deps=0,i.effects.length=0,i.hiddenContainer=o("div"),m?(s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0?i.resolve():(s(l,c,n,r,f,null,u,h,g),fr(i,c))):l&&It(a,l)?(s(l,a,n,r,f,i,u,h,g),i.resolve(!0)):(s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0&&i.resolve()));else if(l&&It(a,l))s(l,a,n,r,f,i,u,h,g),fr(i,a);else if(ui(t,"onPending"),i.pendingBranch=a,a.shapeFlag&512?i.pendingId=a.component.suspenseId:i.pendingId=ta++,s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0)i.resolve();else{const{timeout:y,pendingId:k}=i;y>0?setTimeout(()=>{i.pendingId===k&&i.fallback(c)},y):y===0&&i.fallback(c)}}function cl(e,t,n,r,f,u,h,g,s,p,o=!1){const{p:i,m:a,um:c,n:l,o:{parentNode:d,remove:m}}=p;let v;const y=jv(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?ho(e.props.timeout):void 0,C=u,S={vnode:e,parent:t,parentComponent:n,namespace:h,container:r,hiddenContainer:f,deps:0,pendingId:ta++,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!o,isHydrating:o,isUnmounted:!1,effects:[],resolve(b=!1,R=!1){const{vnode:L,activeBranch:E,pendingBranch:M,pendingId:$,effects:A,parentComponent:_,container:w}=S;let x=!1;S.isHydrating?S.isHydrating=!1:b||(x=E&&M.transition&&M.transition.mode==="out-in",x&&(E.transition.afterLeave=()=>{$===S.pendingId&&(a(M,w,u===C?l(E):u,0),po(A))}),E&&(d(E.el)!==S.hiddenContainer&&(u=l(E)),c(E,_,S,!0)),x||a(M,w,u,0)),fr(S,M),S.pendingBranch=null,S.isInFallback=!1;let T=S.parent,O=!1;for(;T;){if(T.pendingBranch){T.effects.push(...A),O=!0;break}T=T.parent}!O&&!x&&po(A),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!R&&t.resolve()),ui(L,"onResolve")},fallback(b){if(!S.pendingBranch)return;const{vnode:R,activeBranch:L,parentComponent:E,container:M,namespace:$}=S;ui(R,"onFallback");const A=l(L),_=()=>{S.isInFallback&&(i(null,b,M,A,E,null,$,g,s),fr(S,b))},w=b.transition&&b.transition.mode==="out-in";w&&(L.transition.afterLeave=_),S.isInFallback=!0,c(L,E,null,!0),w||_()},move(b,R,L){S.activeBranch&&a(S.activeBranch,b,R,L),S.container=b},next(){return S.activeBranch&&l(S.activeBranch)},registerDep(b,R){const L=!!S.pendingBranch;L&&S.deps++;const E=b.vnode.el;b.asyncDep.catch(M=>{er(M,b,0)}).then(M=>{if(b.isUnmounted||S.isUnmounted||S.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:$}=b;ha(b,M,!1),E&&($.el=E);const A=!E&&b.subTree.el;R(b,$,d(E||b.subTree.el),E?null:l(b.subTree),S,h,s),A&&m(A),sl(b,$.el),L&&--S.deps===0&&S.resolve()})},unmount(b,R){S.isUnmounted=!0,S.activeBranch&&c(S.activeBranch,n,b,R),S.pendingBranch&&c(S.pendingBranch,n,b,R)}};return S}function Vv(e,t,n,r,f,u,h,g,s){const p=t.suspense=cl(t,r,n,e.parentNode,document.createElement("div"),null,f,u,h,g,!0),o=s(e,p.pendingBranch=t.ssContent,n,p,u,h);return p.deps===0&&p.resolve(!1,!0),o}function zv(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=wc(r?n.default:n),e.ssFallback=r?wc(n.fallback):se(ht)}function wc(e){let t;if(Re(e)){const n=Kn&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=wt,yf())}return ve(e)&&(e=Mv(e)),e=Ct(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ph(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):po(e)}function fr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let f=t.el;for(;!f&&t.component;)t=t.component.subTree,f=t.el;n.el=f,r&&r.subTree===n&&(r.vnode.el=f,sl(r,f))}function jv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Bh=Symbol.for("v-scx"),Wh=()=>Tt(Bh);function Hh(e,t){return $i(e,null,t)}function Uh(e,t){return $i(e,null,{flush:"post"})}function Vh(e,t){return $i(e,null,{flush:"sync"})}const ji={};function qe(e,t,n){return $i(e,t,n)}function $i(e,t,{immediate:n,deep:r,flush:f,once:u,onTrack:h,onTrigger:g}=Be){if(t&&u){const b=t;t=(...R)=>{b(...R),S()}}const s=tt,p=b=>r===!0?b:Nn(b,r===!1?1:void 0);let o,i=!1,a=!1;if(at(e)?(o=()=>e.value,i=ii(e)):Bn(e)?(o=()=>p(e),i=!0):ve(e)?(a=!0,i=e.some(b=>Bn(b)||ii(b)),o=()=>e.map(b=>{if(at(b))return b.value;if(Bn(b))return p(b);if(Re(b))return Qt(b,s,2)})):Re(e)?t?o=()=>Qt(e,s,2):o=()=>(c&&c(),kt(e,s,3,[l])):o=bt,t&&r){const b=o;o=()=>Nn(b())}let c,l=b=>{c=k.onStop=()=>{Qt(b,s,4),c=k.onStop=void 0}},d;if(Si)if(l=bt,t?n&&kt(t,s,3,[o(),a?[]:void 0,l]):o(),f==="sync"){const b=Wh();d=b.__watcherHandles||(b.__watcherHandles=[])}else return bt;let m=a?new Array(e.length).fill(ji):ji;const v=()=>{if(!(!k.active||!k.dirty))if(t){const b=k.run();(r||i||(a?b.some((R,L)=>Nt(R,m[L])):Nt(b,m)))&&(c&&c(),kt(t,s,3,[b,m===ji?void 0:a&&m[0]===ji?[]:m,l]),m=b)}else k.run()};v.allowRecurse=!!t;let y;f==="sync"?y=v:f==="post"?y=()=>ot(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),y=()=>Ho(v));const k=new pr(o,bt,y),C=Za(),S=()=>{k.stop(),C&&Ga(C.effects,k)};return t?n?v():m=k.run():f==="post"?ot(k.run.bind(k),s&&s.suspense):k.run(),d&&d.push(S),S}function Gv(e,t,n){const r=this.proxy,f=Ye(e)?e.includes(".")?zh(r,e):()=>r[e]:e.bind(r,r);let u;Re(t)?u=t:(u=t.handler,n=t);const h=Yn(this),g=$i(f,u.bind(r),n);return h(),g}function zh(e,t){const n=t.split(".");return()=>{let r=e;for(let f=0;f<n.length&&r;f++)r=r[n[f]];return r}}function Nn(e,t,n=0,r){if(!He(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),at(e))Nn(e.value,t,n,r);else if(ve(e))for(let f=0;f<e.length;f++)Nn(e[f],t,n,r);else if(qn(e)||cr(e))e.forEach(f=>{Nn(f,t,n,r)});else if(ah(e))for(const f in e)Nn(e[f],t,n,r);return e}function Go(e,t){if(Qe===null)return e;const n=Qo(Qe)||Qe.proxy,r=e.dirs||(e.dirs=[]);for(let f=0;f<t.length;f++){let[u,h,g,s=Be]=t[f];u&&(Re(u)&&(u={mounted:u,updated:u}),u.deep&&Nn(h),r.push({dir:u,instance:n,value:h,oldValue:void 0,arg:g,modifiers:s}))}return e}function Pt(e,t,n,r){const f=e.dirs,u=t&&t.dirs;for(let h=0;h<f.length;h++){const g=f[h];u&&(g.oldValue=u[h].value);let s=g.dir[r];s&&(Jn(),kt(s,n,8,[e.el,g,e,t]),Qn())}}const vn=Symbol("_leaveCb"),Gi=Symbol("_enterCb");function ul(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xe(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const xt=[Function,Array],hl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xt,onEnter:xt,onAfterEnter:xt,onEnterCancelled:xt,onBeforeLeave:xt,onLeave:xt,onAfterLeave:xt,onLeaveCancelled:xt,onBeforeAppear:xt,onAppear:xt,onAfterAppear:xt,onAppearCancelled:xt},Kv={name:"BaseTransition",props:hl,setup(e,{slots:t}){const n=Ot(),r=ul();let f;return()=>{const u=t.default&&Ko(t.default(),!0);if(!u||!u.length)return;let h=u[0];if(u.length>1){for(const d of u)if(d.type!==ht){h=d;break}}const g=Le(e),{mode:s}=g;if(r.isLeaving)return bs(h);const p=$c(h);if(!p)return bs(h);const o=gr(p,g,r,n);jn(p,o);const i=n.subTree,a=i&&$c(i);let c=!1;const{getTransitionKey:l}=p.type;if(l){const d=l();f===void 0?f=d:d!==f&&(f=d,c=!0)}if(a&&a.type!==ht&&(!It(p,a)||c)){const d=gr(a,g,r,n);if(jn(a,d),s==="out-in")return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},bs(h);s==="in-out"&&p.type!==ht&&(d.delayLeave=(m,v,y)=>{const k=Gh(r,a);k[String(a.key)]=a,m[vn]=()=>{v(),m[vn]=void 0,delete o.delayedLeave},o.delayedLeave=y})}return h}}},jh=Kv;function Gh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function gr(e,t,n,r){const{appear:f,mode:u,persisted:h=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:p,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:c,onLeaveCancelled:l,onBeforeAppear:d,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),C=Gh(n,e),S=(L,E)=>{L&&kt(L,r,9,E)},b=(L,E)=>{const M=E[1];S(L,E),ve(L)?L.every($=>$.length<=1)&&M():L.length<=1&&M()},R={mode:u,persisted:h,beforeEnter(L){let E=g;if(!n.isMounted)if(f)E=d||g;else return;L[vn]&&L[vn](!0);const M=C[k];M&&It(e,M)&&M.el[vn]&&M.el[vn](),S(E,[L])},enter(L){let E=s,M=p,$=o;if(!n.isMounted)if(f)E=m||s,M=v||p,$=y||o;else return;let A=!1;const _=L[Gi]=w=>{A||(A=!0,w?S($,[L]):S(M,[L]),R.delayedLeave&&R.delayedLeave(),L[Gi]=void 0)};E?b(E,[L,_]):_()},leave(L,E){const M=String(e.key);if(L[Gi]&&L[Gi](!0),n.isUnmounting)return E();S(i,[L]);let $=!1;const A=L[vn]=_=>{$||($=!0,E(),_?S(l,[L]):S(c,[L]),L[vn]=void 0,C[M]===e&&delete C[M])};C[M]=e,a?b(a,[L,A]):A()},clone(L){return gr(L,t,n,r)}};return R}function bs(e){if(_i(e))return e=Vt(e),e.children=null,e}function $c(e){return _i(e)?e.children?e.children[0]:void 0:e}function jn(e,t){e.shapeFlag&6&&e.component?jn(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 Ko(e,t=!1,n){let r=[],f=0;for(let u=0;u<e.length;u++){let h=e[u];const g=n==null?h.key:String(n)+String(h.key!=null?h.key:u);h.type===xe?(h.patchFlag&128&&f++,r=r.concat(Ko(h.children,t,g))):(t||h.type!==ht)&&r.push(g!=null?Vt(h,{key:g}):h)}if(f>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function be(e,t){return Re(e)?Ke({name:e.name},t,{setup:e}):e}const Wn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Yv(e){Re(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:f=200,timeout:u,suspensible:h=!0,onError:g}=e;let s=null,p,o=0;const i=()=>(o++,s=null,a()),a=()=>{let c;return s||(c=s=t().catch(l=>{if(l=l instanceof Error?l:new Error(String(l)),g)return new Promise((d,m)=>{g(l,()=>d(i()),()=>m(l),o+1)});throw l}).then(l=>c!==s&&s?s:(l&&(l.__esModule||l[Symbol.toStringTag]==="Module")&&(l=l.default),p=l,l)))};return be({name:"AsyncComponentWrapper",__asyncLoader:a,get __asyncResolved(){return p},setup(){const c=tt;if(p)return()=>ws(p,c);const l=y=>{s=null,er(y,c,13,!r)};if(h&&c.suspense||Si)return a().then(y=>()=>ws(y,c)).catch(y=>(l(y),()=>r?se(r,{error:y}):null));const d=Ne(!1),m=Ne(),v=Ne(!!f);return f&&setTimeout(()=>{v.value=!1},f),u!=null&&setTimeout(()=>{if(!d.value&&!m.value){const y=new Error(`Async component timed out after ${u}ms.`);l(y),m.value=y}},u),a().then(()=>{d.value=!0,c.parent&&_i(c.parent.vnode)&&(c.parent.effect.dirty=!0,Ho(c.parent.update))}).catch(y=>{l(y),m.value=y}),()=>{if(d.value&&p)return ws(p,c);if(m.value&&r)return se(r,{error:m.value});if(n&&!v.value)return se(n)}}})}function ws(e,t){const{ref:n,props:r,children:f,ce:u}=t.vnode,h=se(e,r,f);return h.ref=n,h.ce=u,delete t.vnode.ce,h}const _i=e=>e.type.__isKeepAlive,Xv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ot(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const f=new Map,u=new Set;let h=null;const g=n.suspense,{renderer:{p:s,m:p,um:o,o:{createElement:i}}}=r,a=i("div");r.activate=(y,k,C,S,b)=>{const R=y.component;p(y,k,C,0,g),s(R.vnode,y,k,C,R,g,S,y.slotScopeIds,b),ot(()=>{R.isDeactivated=!1,R.a&&ur(R.a);const L=y.props&&y.props.onVnodeMounted;L&&yt(L,R.parent,y)},g)},r.deactivate=y=>{const k=y.component;p(y,a,null,1,g),ot(()=>{k.da&&ur(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&yt(C,k.parent,y),k.isDeactivated=!0},g)};function c(y){$s(y),o(y,n,g,!0)}function l(y){f.forEach((k,C)=>{const S=da(k.type);S&&(!y||!y(S))&&d(C)})}function d(y){const k=f.get(y);!h||!It(k,h)?c(k):h&&$s(h),f.delete(y),u.delete(y)}qe(()=>[e.include,e.exclude],([y,k])=>{y&&l(C=>Wr(y,C)),k&&l(C=>!Wr(k,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&f.set(m,_s(n.subTree))};return Xe(v),Xo(v),Rr(()=>{f.forEach(y=>{const{subTree:k,suspense:C}=n,S=_s(k);if(y.type===S.type&&y.key===S.key){$s(S);const b=S.component.da;b&&ot(b,C);return}c(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return h=null,y;if(!En(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return h=null,k;let C=_s(k);const S=C.type,b=da(Wn(C)?C.type.__asyncResolved||{}:S),{include:R,exclude:L,max:E}=e;if(R&&(!b||!Wr(R,b))||L&&b&&Wr(L,b))return h=C,k;const M=C.key==null?S:C.key,$=f.get(M);return C.el&&(C=Vt(C),k.shapeFlag&128&&(k.ssContent=C)),m=M,$?(C.el=$.el,C.component=$.component,C.transition&&jn(C,C.transition),C.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),E&&u.size>parseInt(E,10)&&d(u.values().next().value)),C.shapeFlag|=256,h=C,Dh(k.type)?k:C}}},Zv=Xv;function Wr(e,t){return ve(e)?e.some(n=>Wr(n,t)):Ye(e)?e.split(",").includes(t):xm(e)?e.test(t):!1}function Kh(e,t){Xh(e,"a",t)}function Yh(e,t){Xh(e,"da",t)}function Xh(e,t,n=tt){const r=e.__wdc||(e.__wdc=()=>{let f=n;for(;f;){if(f.isDeactivated)return;f=f.parent}return e()});if(Yo(t,r,n),n){let f=n.parent;for(;f&&f.parent;)_i(f.parent.vnode)&&qv(r,t,n,f),f=f.parent}}function qv(e,t,n,r){const f=Yo(t,e,r,!0);Zo(()=>{Ga(r[t],f)},n)}function $s(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function _s(e){return e.shapeFlag&128?e.ssContent:e}function Yo(e,t,n=tt,r=!1){if(n){const f=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...h)=>{if(n.isUnmounted)return;Jn();const g=Yn(n),s=kt(t,n,e,h);return g(),Qn(),s});return r?f.unshift(u):f.push(u),u}}const sn=e=>(t,n=tt)=>(!Si||e==="sp")&&Yo(e,(...r)=>t(...r),n),Zh=sn("bm"),Xe=sn("m"),qh=sn("bu"),Xo=sn("u"),Rr=sn("bum"),Zo=sn("um"),Jh=sn("sp"),Qh=sn("rtg"),ef=sn("rtc");function tf(e,t=tt){Yo("ec",e,t)}function _t(e,t,n,r){let f;const u=n&&n[r];if(ve(e)||Ye(e)){f=new Array(e.length);for(let h=0,g=e.length;h<g;h++)f[h]=t(e[h],h,void 0,u&&u[h])}else if(typeof e=="number"){f=new Array(e);for(let h=0;h<e;h++)f[h]=t(h+1,h,void 0,u&&u[h])}else if(He(e))if(e[Symbol.iterator])f=Array.from(e,(h,g)=>t(h,g,void 0,u&&u[g]));else{const h=Object.keys(e);f=new Array(h.length);for(let g=0,s=h.length;g<s;g++){const p=h[g];f[g]=t(e[p],p,g,u&&u[g])}}else f=[];return n&&(n[r]=f),f}function Jv(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ve(r))for(let f=0;f<r.length;f++)e[r[f].name]=r[f].fn;else r&&(e[r.name]=r.key?(...f)=>{const u=r.fn(...f);return u&&(u.key=r.key),u}:r.fn)}return e}function Qv(e,t,n={},r,f){if(Qe.isCE||Qe.parent&&Wn(Qe.parent)&&Qe.parent.isCE)return t!=="default"&&(n.name=t),se("slot",n,r&&r());let u=e[t];u&&u._c&&(u._d=!1),Z();const h=u&&nf(u(n)),g=Ce(xe,{key:n.key||h&&h.key||`_${t}`},h||(r?r():[]),h&&e._===1?64:-2);return!f&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function nf(e){return e.some(t=>En(t)?!(t.type===ht||t.type===xe&&!nf(t.children)):!0)?e:null}function ey(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:jr(r)]=e[r];return n}const na=e=>e?Cf(e)?Qo(e)||e.proxy:na(e.parent):null,Gr=Ke(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=>na(e.parent),$root:e=>na(e.root),$emit:e=>e.emit,$options:e=>fl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ho(e.update)}),$nextTick:e=>e.n||(e.n=wi.bind(e.proxy)),$watch:e=>Gv.bind(e)}),Ss=(e,t)=>e!==Be&&!e.__isScriptSetup&&Ie(e,t),ra={get({_:e},t){const{ctx:n,setupState:r,data:f,props:u,accessCache:h,type:g,appContext:s}=e;let p;if(t[0]!=="$"){const c=h[t];if(c!==void 0)switch(c){case 1:return r[t];case 2:return f[t];case 4:return n[t];case 3:return u[t]}else{if(Ss(r,t))return h[t]=1,r[t];if(f!==Be&&Ie(f,t))return h[t]=2,f[t];if((p=e.propsOptions[0])&&Ie(p,t))return h[t]=3,u[t];if(n!==Be&&Ie(n,t))return h[t]=4,n[t];ia&&(h[t]=0)}}const o=Gr[t];let i,a;if(o)return t==="$attrs"&&$t(e,"get",t),o(e);if((i=g.__cssModules)&&(i=i[t]))return i;if(n!==Be&&Ie(n,t))return h[t]=4,n[t];if(a=s.config.globalProperties,Ie(a,t))return a[t]},set({_:e},t,n){const{data:r,setupState:f,ctx:u}=e;return Ss(f,t)?(f[t]=n,!0):r!==Be&&Ie(r,t)?(r[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:f,propsOptions:u}},h){let g;return!!n[h]||e!==Be&&Ie(e,h)||Ss(t,h)||(g=u[0])&&Ie(g,h)||Ie(r,h)||Ie(Gr,h)||Ie(f.config.globalProperties,h)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ty=Ke({},ra,{get(e,t){if(t!==Symbol.unscopables)return ra.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Im(t)}});function ny(){return null}function ry(){return null}function iy(e){}function oy(e){}function sy(){return null}function ay(){}function ly(e,t){return null}function cy(){return rf().slots}function uy(){return rf().attrs}function rf(){const e=Ot();return e.setupContext||(e.setupContext=Ef(e))}function hi(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hy(e,t){const n=hi(e);for(const r in t){if(r.startsWith("__skip"))continue;let f=n[r];f?ve(f)||Re(f)?f=n[r]={type:f,default:t[r]}:f.default=t[r]:f===null&&(f=n[r]={default:t[r]}),f&&t[`__skip_${r}`]&&(f.skipFactory=!0)}return n}function fy(e,t){return!e||!t?e||t:ve(e)&&ve(t)?e.concat(t):Ke({},hi(e),hi(t))}function dy(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function py(e){const t=Ot();let n=e();return ua(),Ka(n)&&(n=n.catch(r=>{throw Yn(t),r})),[n,()=>Yn(t)]}let ia=!0;function gy(e){const t=fl(e),n=e.proxy,r=e.ctx;ia=!1,t.beforeCreate&&_c(t.beforeCreate,e,"bc");const{data:f,computed:u,methods:h,watch:g,provide:s,inject:p,created:o,beforeMount:i,mounted:a,beforeUpdate:c,updated:l,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:C,render:S,renderTracked:b,renderTriggered:R,errorCaptured:L,serverPrefetch:E,expose:M,inheritAttrs:$,components:A,directives:_,filters:w}=t;if(p&&my(p,r,null),h)for(const O in h){const I=h[O];Re(I)&&(r[O]=I.bind(n))}if(f){const O=f.call(n,n);He(O)&&(e.data=Er(O))}if(ia=!0,u)for(const O in u){const I=u[O],F=Re(I)?I.bind(n,n):Re(I.get)?I.get.bind(n,n):bt,P=!Re(I)&&Re(I.set)?I.set.bind(n):bt,W=ke({get:F,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)of(g[O],r,n,O);if(s){const O=Re(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Kr(I,O[I])})}o&&_c(o,e,"c");function T(O,I){ve(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Zh,i),T(Xe,a),T(qh,c),T(Xo,l),T(Kh,d),T(Yh,m),T(tf,L),T(ef,b),T(Qh,R),T(Rr,y),T(Zo,C),T(Jh,E),ve(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===bt&&(e.render=S),$!=null&&(e.inheritAttrs=$),A&&(e.components=A),_&&(e.directives=_)}function my(e,t,n=bt){ve(e)&&(e=oa(e));for(const r in e){const f=e[r];let u;He(f)?"default"in f?u=Tt(f.from||r,f.default,!0):u=Tt(f.from||r):u=Tt(f),at(u)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:h=>u.value=h}):t[r]=u}}function _c(e,t,n){kt(ve(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function of(e,t,n,r){const f=r.includes(".")?zh(n,r):()=>n[r];if(Ye(e)){const u=t[e];Re(u)&&qe(f,u)}else if(Re(e))qe(f,e.bind(n));else if(He(e))if(ve(e))e.forEach(u=>of(u,t,n,r));else{const u=Re(e.handler)?e.handler.bind(n):t[e.handler];Re(u)&&qe(f,u,e)}}function fl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:f,optionsCache:u,config:{optionMergeStrategies:h}}=e.appContext,g=u.get(t);let s;return g?s=g:!f.length&&!n&&!r?s=t:(s={},f.length&&f.forEach(p=>mo(s,p,h,!0)),mo(s,t,h)),He(t)&&u.set(t,s),s}function mo(e,t,n,r=!1){const{mixins:f,extends:u}=t;u&&mo(e,u,n,!0),f&&f.forEach(h=>mo(e,h,n,!0));for(const h in t)if(!(r&&h==="expose")){const g=vy[h]||n&&n[h];e[h]=g?g(e[h],t[h]):t[h]}return e}const vy={data:Sc,props:Cc,emits:Cc,methods:Hr,computed:Hr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Hr,directives:Hr,watch:by,provide:Sc,inject:yy};function Sc(e,t){return t?e?function(){return Ke(Re(e)?e.call(this,this):e,Re(t)?t.call(this,this):t)}:t:e}function yy(e,t){return Hr(oa(e),oa(t))}function oa(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function Hr(e,t){return e?Ke(Object.create(null),e,t):t}function Cc(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ke(Object.create(null),hi(e),hi(t??{})):t}function by(e,t){if(!e)return t;if(!t)return e;const n=Ke(Object.create(null),e);for(const r in t)n[r]=pt(e[r],t[r]);return n}function sf(){return{app:null,config:{isNativeTag:Em,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 wy=0;function $y(e,t){return function(r,f=null){Re(r)||(r=Ke({},r)),f!=null&&!He(f)&&(f=null);const u=sf(),h=new WeakSet;let g=!1;const s=u.app={_uid:wy++,_component:r,_props:f,_container:null,_context:u,_instance:null,version:xf,get config(){return u.config},set config(p){},use(p,...o){return h.has(p)||(p&&Re(p.install)?(h.add(p),p.install(s,...o)):Re(p)&&(h.add(p),p(s,...o))),s},mixin(p){return u.mixins.includes(p)||u.mixins.push(p),s},component(p,o){return o?(u.components[p]=o,s):u.components[p]},directive(p,o){return o?(u.directives[p]=o,s):u.directives[p]},mount(p,o,i){if(!g){const a=se(r,f);return a.appContext=u,i===!0?i="svg":i===!1&&(i=void 0),o&&t?t(a,p):e(a,p,i),g=!0,s._container=p,p.__vue_app__=s,Qo(a.component)||a.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(p,o){return u.provides[p]=o,s},runWithContext(p){fi=s;try{return p()}finally{fi=null}}};return s}}let fi=null;function Kr(e,t){if(tt){let n=tt.provides;const r=tt.parent&&tt.parent.provides;r===n&&(n=tt.provides=Object.create(r)),n[e]=t}}function Tt(e,t,n=!1){const r=tt||Qe;if(r||fi){const f=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:fi._context.provides;if(f&&e in f)return f[e];if(arguments.length>1)return n&&Re(t)?t.call(r&&r.proxy):t}}function _y(){return!!(tt||Qe||fi)}function Sy(e,t,n,r=!1){const f={},u={};co(u,qo,1),e.propsDefaults=Object.create(null),af(e,t,f,u);for(const h in e.propsOptions[0])h in f||(f[h]=void 0);n?e.props=r?f:el(f):e.type.props?e.props=f:e.props=u,e.attrs=u}function Cy(e,t,n,r){const{props:f,attrs:u,vnode:{patchFlag:h}}=e,g=Le(f),[s]=e.propsOptions;let p=!1;if((r||h>0)&&!(h&16)){if(h&8){const o=e.vnode.dynamicProps;for(let i=0;i<o.length;i++){let a=o[i];if(Uo(e.emitsOptions,a))continue;const c=t[a];if(s)if(Ie(u,a))c!==u[a]&&(u[a]=c,p=!0);else{const l=gt(a);f[l]=sa(s,g,l,c,e,!1)}else c!==u[a]&&(u[a]=c,p=!0)}}}else{af(e,t,f,u)&&(p=!0);let o;for(const i in g)(!t||!Ie(t,i)&&((o=At(i))===i||!Ie(t,o)))&&(s?n&&(n[i]!==void 0||n[o]!==void 0)&&(f[i]=sa(s,g,i,void 0,e,!0)):delete f[i]);if(u!==g)for(const i in u)(!t||!Ie(t,i))&&(delete u[i],p=!0)}p&&qt(e,"set","$attrs")}function af(e,t,n,r){const[f,u]=e.propsOptions;let h=!1,g;if(t)for(let s in t){if(zr(s))continue;const p=t[s];let o;f&&Ie(f,o=gt(s))?!u||!u.includes(o)?n[o]=p:(g||(g={}))[o]=p:Uo(e.emitsOptions,s)||(!(s in r)||p!==r[s])&&(r[s]=p,h=!0)}if(u){const s=Le(n),p=g||Be;for(let o=0;o<u.length;o++){const i=u[o];n[i]=sa(f,s,i,p[i],e,!Ie(p,i))}}return h}function sa(e,t,n,r,f,u){const h=e[n];if(h!=null){const g=Ie(h,"default");if(g&&r===void 0){const s=h.default;if(h.type!==Function&&!h.skipFactory&&Re(s)){const{propsDefaults:p}=f;if(n in p)r=p[n];else{const o=Yn(f);r=p[n]=s.call(null,t),o()}}else r=s}h[0]&&(u&&!g?r=!1:h[1]&&(r===""||r===At(n))&&(r=!0))}return r}function lf(e,t,n=!1){const r=t.propsCache,f=r.get(e);if(f)return f;const u=e.props,h={},g=[];let s=!1;if(!Re(e)){const o=i=>{s=!0;const[a,c]=lf(i,t,!0);Ke(h,a),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return He(e)&&r.set(e,lr),lr;if(ve(u))for(let o=0;o<u.length;o++){const i=gt(u[o]);Ac(i)&&(h[i]=Be)}else if(u)for(const o in u){const i=gt(o);if(Ac(i)){const a=u[o],c=h[i]=ve(a)||Re(a)?{type:a}:Ke({},a);if(c){const l=Rc(Boolean,c.type),d=Rc(String,c.type);c[0]=l>-1,c[1]=d<0||l<d,(l>-1||Ie(c,"default"))&&g.push(i)}}}const p=[h,g];return He(e)&&r.set(e,p),p}function Ac(e){return e[0]!=="$"}function kc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ec(e,t){return kc(e)===kc(t)}function Rc(e,t){return ve(t)?t.findIndex(n=>Ec(n,e)):Re(t)&&Ec(t,e)?0:-1}const cf=e=>e[0]==="_"||e==="$stable",dl=e=>ve(e)?e.map(Ct):[Ct(e)],Ay=(e,t,n)=>{if(t._n)return t;const r=Je((...f)=>dl(t(...f)),n);return r._c=!1,r},uf=(e,t,n)=>{const r=e._ctx;for(const f in e){if(cf(f))continue;const u=e[f];if(Re(u))t[f]=Ay(f,u,r);else if(u!=null){const h=dl(u);t[f]=()=>h}}},hf=(e,t)=>{const n=dl(t);e.slots.default=()=>n},ky=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),co(t,"_",n)):uf(t,e.slots={})}else e.slots={},t&&hf(e,t);co(e.slots,qo,1)},Ey=(e,t,n)=>{const{vnode:r,slots:f}=e;let u=!0,h=Be;if(r.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(Ke(f,t),!n&&g===1&&delete f._):(u=!t.$stable,uf(t,f)),h=t}else t&&(hf(e,t),h={default:1});if(u)for(const g in f)!cf(g)&&h[g]==null&&delete f[g]};function vo(e,t,n,r,f=!1){if(ve(e)){e.forEach((a,c)=>vo(a,t&&(ve(t)?t[c]:t),n,r,f));return}if(Wn(r)&&!f)return;const u=r.shapeFlag&4?Qo(r.component)||r.component.proxy:r.el,h=f?null:u,{i:g,r:s}=e,p=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,i=g.setupState;if(p!=null&&p!==s&&(Ye(p)?(o[p]=null,Ie(i,p)&&(i[p]=null)):at(p)&&(p.value=null)),Re(s))Qt(s,g,12,[h,o]);else{const a=Ye(s),c=at(s);if(a||c){const l=()=>{if(e.f){const d=a?Ie(i,s)?i[s]:o[s]:s.value;f?ve(d)&&Ga(d,u):ve(d)?d.includes(u)||d.push(u):a?(o[s]=[u],Ie(i,s)&&(i[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else a?(o[s]=h,Ie(i,s)&&(i[s]=h)):c&&(s.value=h,e.k&&(o[e.k]=h))};h?(l.id=-1,ot(l,n)):l()}}}let hn=!1;const Ry=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",xy=e=>e.namespaceURI.includes("MathML"),Ki=e=>{if(Ry(e))return"svg";if(xy(e))return"mathml"},Yi=e=>e.nodeType===8;function Ty(e){const{mt:t,p:n,o:{patchProp:r,createText:f,nextSibling:u,parentNode:h,remove:g,insert:s,createComment:p}}=e,o=(k,C)=>{if(!C.hasChildNodes()){n(null,k,C),go(),C._vnode=k;return}hn=!1,i(C.firstChild,k,null,null,null),go(),C._vnode=k,hn&&console.error("Hydration completed but contains mismatches.")},i=(k,C,S,b,R,L=!1)=>{const E=Yi(k)&&k.data==="[",M=()=>d(k,C,S,b,R,E),{type:$,ref:A,shapeFlag:_,patchFlag:w}=C;let x=k.nodeType;C.el=k,w===-2&&(L=!1,C.dynamicChildren=null);let T=null;switch($){case Gn:x!==3?C.children===""?(s(C.el=f(""),h(k),k),T=k):T=M():(k.data!==C.children&&(hn=!0,k.data=C.children),T=u(k));break;case ht:y(k)?(T=u(k),v(C.el=k.content.firstChild,k,S)):x!==8||E?T=M():T=u(k);break;case Hn:if(E&&(k=u(k),x=k.nodeType),x===1||x===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 E?u(T):T}else M();break;case xe:E?T=l(k,C,S,b,R,L):T=M();break;default:if(_&1)(x!==1||C.type.toLowerCase()!==k.tagName.toLowerCase())&&!y(k)?T=M():T=a(k,C,S,b,R,L);else if(_&6){C.slotScopeIds=R;const O=h(k);if(E?T=m(k):Yi(k)&&k.data==="teleport start"?T=m(k,k.data,"teleport end"):T=u(k),t(C,O,null,S,b,Ki(O),L),Wn(C)){let I;E?(I=se(xe),I.anchor=T?T.previousSibling:O.lastChild):I=k.nodeType===3?et(""):se("div"),I.el=k,C.component.subTree=I}}else _&64?x!==8?T=M():T=C.type.hydrate(k,C,S,b,R,L,e,c):_&128&&(T=C.type.hydrate(k,C,S,b,Ki(h(k)),R,L,e,i))}return A!=null&&vo(A,null,b,C),T},a=(k,C,S,b,R,L)=>{L=L||!!C.dynamicChildren;const{type:E,props:M,patchFlag:$,shapeFlag:A,dirs:_,transition:w}=C,x=E==="input"||E==="option";if(x||$!==-1){_&&Pt(C,null,S,"created");let T=!1;if(y(k)){T=gf(b,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=k.content.firstChild;T&&w.beforeEnter(I),v(I,k,S),C.el=k=I}if(A&16&&!(M&&(M.innerHTML||M.textContent))){let I=c(k.firstChild,C,k,S,b,R,L);for(;I;){hn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&k.textContent!==C.children&&(hn=!0,k.textContent=C.children);if(M)if(x||!L||$&48)for(const I in M)(x&&(I.endsWith("value")||I==="indeterminate")||yi(I)&&!zr(I)||I[0]===".")&&r(k,I,null,M[I],void 0,void 0,S);else M.onClick&&r(k,"onClick",null,M.onClick,void 0,void 0,S);let O;(O=M&&M.onVnodeBeforeMount)&&yt(O,S,C),_&&Pt(C,null,S,"beforeMount"),((O=M&&M.onVnodeMounted)||_||T)&&Ph(()=>{O&&yt(O,S,C),T&&w.enter(k),_&&Pt(C,null,S,"mounted")},b)}return k.nextSibling},c=(k,C,S,b,R,L,E)=>{E=E||!!C.dynamicChildren;const M=C.children,$=M.length;for(let A=0;A<$;A++){const _=E?M[A]:M[A]=Ct(M[A]);if(k)k=i(k,_,b,R,L,E);else{if(_.type===Gn&&!_.children)continue;hn=!0,n(null,_,S,null,b,R,Ki(S),L)}}return k},l=(k,C,S,b,R,L)=>{const{slotScopeIds:E}=C;E&&(R=R?R.concat(E):E);const M=h(k),$=c(u(k),C,M,S,b,R,L);return $&&Yi($)&&$.data==="]"?u(C.anchor=$):(hn=!0,s(C.anchor=p("]"),M,$),$)},d=(k,C,S,b,R,L)=>{if(hn=!0,C.el=null,L){const $=m(k);for(;;){const A=u(k);if(A&&A!==$)g(A);else break}}const E=u(k),M=h(k);return g(k),n(null,C,M,E,S,b,Ki(M),R),E},m=(k,C="[",S="]")=>{let b=0;for(;k;)if(k=u(k),k&&Yi(k)&&(k.data===C&&b++,k.data===S)){if(b===0)return u(k);b--}return k},v=(k,C,S)=>{const b=C.parentNode;b&&b.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,i]}const ot=Ph;function ff(e){return pf(e)}function df(e){return pf(e,Ty)}function pf(e,t){const n=lh();n.__VUE__=!0;const{insert:r,remove:f,patchProp:u,createElement:h,createText:g,createComment:s,setText:p,setElementText:o,parentNode:i,nextSibling:a,setScopeId:c=bt,insertStaticContent:l}=e,d=(D,B,K,Q=null,te=null,ae=null,fe=void 0,ce=null,he=!!B.dynamicChildren)=>{if(D===B)return;D&&!It(D,B)&&(Q=U(D),j(D,te,ae,!0),D=null),B.patchFlag===-2&&(he=!1,B.dynamicChildren=null);const{type:oe,ref:pe,shapeFlag:Se}=B;switch(oe){case Gn:m(D,B,K,Q);break;case ht:v(D,B,K,Q);break;case Hn:D==null&&y(B,K,Q,fe);break;case xe:A(D,B,K,Q,te,ae,fe,ce,he);break;default:Se&1?S(D,B,K,Q,te,ae,fe,ce,he):Se&6?_(D,B,K,Q,te,ae,fe,ce,he):(Se&64||Se&128)&&oe.process(D,B,K,Q,te,ae,fe,ce,he,z)}pe!=null&&te&&vo(pe,D&&D.ref,ae,B||D,!B)},m=(D,B,K,Q)=>{if(D==null)r(B.el=g(B.children),K,Q);else{const te=B.el=D.el;B.children!==D.children&&p(te,B.children)}},v=(D,B,K,Q)=>{D==null?r(B.el=s(B.children||""),K,Q):B.el=D.el},y=(D,B,K,Q)=>{[D.el,D.anchor]=l(D.children,B,K,Q,D.el,D.anchor)},k=({el:D,anchor:B},K,Q)=>{let te;for(;D&&D!==B;)te=a(D),r(D,K,Q),D=te;r(B,K,Q)},C=({el:D,anchor:B})=>{let K;for(;D&&D!==B;)K=a(D),f(D),D=K;f(B)},S=(D,B,K,Q,te,ae,fe,ce,he)=>{B.type==="svg"?fe="svg":B.type==="math"&&(fe="mathml"),D==null?b(B,K,Q,te,ae,fe,ce,he):E(D,B,te,ae,fe,ce,he)},b=(D,B,K,Q,te,ae,fe,ce)=>{let he,oe;const{props:pe,shapeFlag:Se,transition:we,dirs:J}=D;if(he=D.el=h(D.type,ae,pe&&pe.is,pe),Se&8?o(he,D.children):Se&16&&L(D.children,he,null,Q,te,Cs(D,ae),fe,ce),J&&Pt(D,null,Q,"created"),R(he,D,D.scopeId,fe,Q),pe){for(const de in pe)de!=="value"&&!zr(de)&&u(he,de,null,pe[de],ae,D.children,Q,te,q);"value"in pe&&u(he,"value",null,pe.value,ae),(oe=pe.onVnodeBeforeMount)&&yt(oe,Q,D)}J&&Pt(D,null,Q,"beforeMount");const le=gf(te,we);le&&we.beforeEnter(he),r(he,B,K),((oe=pe&&pe.onVnodeMounted)||le||J)&&ot(()=>{oe&&yt(oe,Q,D),le&&we.enter(he),J&&Pt(D,null,Q,"mounted")},te)},R=(D,B,K,Q,te)=>{if(K&&c(D,K),Q)for(let ae=0;ae<Q.length;ae++)c(D,Q[ae]);if(te){let ae=te.subTree;if(B===ae){const fe=te.vnode;R(D,fe,fe.scopeId,fe.slotScopeIds,te.parent)}}},L=(D,B,K,Q,te,ae,fe,ce,he=0)=>{for(let oe=he;oe<D.length;oe++){const pe=D[oe]=ce?yn(D[oe]):Ct(D[oe]);d(null,pe,B,K,Q,te,ae,fe,ce)}},E=(D,B,K,Q,te,ae,fe)=>{const ce=B.el=D.el;let{patchFlag:he,dynamicChildren:oe,dirs:pe}=B;he|=D.patchFlag&16;const Se=D.props||Be,we=B.props||Be;let J;if(K&&Tn(K,!1),(J=we.onVnodeBeforeUpdate)&&yt(J,K,B,D),pe&&Pt(B,D,K,"beforeUpdate"),K&&Tn(K,!0),oe?M(D.dynamicChildren,oe,ce,K,Q,Cs(B,te),ae):fe||I(D,B,ce,null,K,Q,Cs(B,te),ae,!1),he>0){if(he&16)$(ce,B,Se,we,K,Q,te);else if(he&2&&Se.class!==we.class&&u(ce,"class",null,we.class,te),he&4&&u(ce,"style",Se.style,we.style,te),he&8){const le=B.dynamicProps;for(let de=0;de<le.length;de++){const $e=le[de],Ee=Se[$e],Me=we[$e];(Me!==Ee||$e==="value")&&u(ce,$e,Ee,Me,te,D.children,K,Q,q)}}he&1&&D.children!==B.children&&o(ce,B.children)}else!fe&&oe==null&&$(ce,B,Se,we,K,Q,te);((J=we.onVnodeUpdated)||pe)&&ot(()=>{J&&yt(J,K,B,D),pe&&Pt(B,D,K,"updated")},Q)},M=(D,B,K,Q,te,ae,fe)=>{for(let ce=0;ce<B.length;ce++){const he=D[ce],oe=B[ce],pe=he.el&&(he.type===xe||!It(he,oe)||he.shapeFlag&70)?i(he.el):K;d(he,oe,pe,null,Q,te,ae,fe,!0)}},$=(D,B,K,Q,te,ae,fe)=>{if(K!==Q){if(K!==Be)for(const ce in K)!zr(ce)&&!(ce in Q)&&u(D,ce,K[ce],null,fe,B.children,te,ae,q);for(const ce in Q){if(zr(ce))continue;const he=Q[ce],oe=K[ce];he!==oe&&ce!=="value"&&u(D,ce,oe,he,fe,B.children,te,ae,q)}"value"in Q&&u(D,"value",K.value,Q.value,fe)}},A=(D,B,K,Q,te,ae,fe,ce,he)=>{const oe=B.el=D?D.el:g(""),pe=B.anchor=D?D.anchor:g("");let{patchFlag:Se,dynamicChildren:we,slotScopeIds:J}=B;J&&(ce=ce?ce.concat(J):J),D==null?(r(oe,K,Q),r(pe,K,Q),L(B.children||[],K,pe,te,ae,fe,ce,he)):Se>0&&Se&64&&we&&D.dynamicChildren?(M(D.dynamicChildren,we,K,te,ae,fe,ce),(B.key!=null||te&&B===te.subTree)&&pl(D,B,!0)):I(D,B,K,pe,te,ae,fe,ce,he)},_=(D,B,K,Q,te,ae,fe,ce,he)=>{B.slotScopeIds=ce,D==null?B.shapeFlag&512?te.ctx.activate(B,K,Q,fe,he):w(B,K,Q,te,ae,fe,he):x(D,B,he)},w=(D,B,K,Q,te,ae,fe)=>{const ce=D.component=Sf(D,Q,te);if(_i(D)&&(ce.ctx.renderer=z),Af(ce),ce.asyncDep){if(te&&te.registerDep(ce,T),!D.el){const he=ce.subTree=se(ht);v(null,he,B,K)}}else T(ce,D,B,K,te,ae,fe)},x=(D,B,K)=>{const Q=B.component=D.component;if(Fv(D,B,K))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,K);return}else Q.next=B,Rv(Q.update),Q.effect.dirty=!0,Q.update();else B.el=D.el,Q.vnode=B},T=(D,B,K,Q,te,ae,fe)=>{const ce=()=>{if(D.isMounted){let{next:pe,bu:Se,u:we,parent:J,vnode:le}=D;{const Ue=mf(D);if(Ue){pe&&(pe.el=le.el,O(D,pe,fe)),Ue.asyncDep.then(()=>{D.isUnmounted||ce()});return}}let de=pe,$e;Tn(D,!1),pe?(pe.el=le.el,O(D,pe,fe)):pe=le,Se&&ur(Se),($e=pe.props&&pe.props.onVnodeBeforeUpdate)&&yt($e,J,pe,le),Tn(D,!0);const Ee=eo(D),Me=D.subTree;D.subTree=Ee,d(Me,Ee,i(Me.el),U(Me),D,te,ae),pe.el=Ee.el,de===null&&sl(D,Ee.el),we&&ot(we,te),($e=pe.props&&pe.props.onVnodeUpdated)&&ot(()=>yt($e,J,pe,le),te)}else{let pe;const{el:Se,props:we}=B,{bm:J,m:le,parent:de}=D,$e=Wn(B);if(Tn(D,!1),J&&ur(J),!$e&&(pe=we&&we.onVnodeBeforeMount)&&yt(pe,de,B),Tn(D,!0),Se&&ue){const Ee=()=>{D.subTree=eo(D),ue(Se,D.subTree,D,te,null)};$e?B.type.__asyncLoader().then(()=>!D.isUnmounted&&Ee()):Ee()}else{const Ee=D.subTree=eo(D);d(null,Ee,K,Q,D,te,ae),B.el=Ee.el}if(le&&ot(le,te),!$e&&(pe=we&&we.onVnodeMounted)){const Ee=B;ot(()=>yt(pe,de,Ee),te)}(B.shapeFlag&256||de&&Wn(de.vnode)&&de.vnode.shapeFlag&256)&&D.a&&ot(D.a,te),D.isMounted=!0,B=K=Q=null}},he=D.effect=new pr(ce,bt,()=>Ho(oe),D.scope),oe=D.update=()=>{he.dirty&&he.run()};oe.id=D.uid,Tn(D,!0),oe()},O=(D,B,K)=>{B.component=D;const Q=D.vnode.props;D.vnode=B,D.next=null,Cy(D,B.props,Q,K),Ey(D,B.children,K),Jn(),vc(D),Qn()},I=(D,B,K,Q,te,ae,fe,ce,he=!1)=>{const oe=D&&D.children,pe=D?D.shapeFlag:0,Se=B.children,{patchFlag:we,shapeFlag:J}=B;if(we>0){if(we&128){P(oe,Se,K,Q,te,ae,fe,ce,he);return}else if(we&256){F(oe,Se,K,Q,te,ae,fe,ce,he);return}}J&8?(pe&16&&q(oe,te,ae),Se!==oe&&o(K,Se)):pe&16?J&16?P(oe,Se,K,Q,te,ae,fe,ce,he):q(oe,te,ae,!0):(pe&8&&o(K,""),J&16&&L(Se,K,Q,te,ae,fe,ce,he))},F=(D,B,K,Q,te,ae,fe,ce,he)=>{D=D||lr,B=B||lr;const oe=D.length,pe=B.length,Se=Math.min(oe,pe);let we;for(we=0;we<Se;we++){const J=B[we]=he?yn(B[we]):Ct(B[we]);d(D[we],J,K,null,te,ae,fe,ce,he)}oe>pe?q(D,te,ae,!0,!1,Se):L(B,K,Q,te,ae,fe,ce,he,Se)},P=(D,B,K,Q,te,ae,fe,ce,he)=>{let oe=0;const pe=B.length;let Se=D.length-1,we=pe-1;for(;oe<=Se&&oe<=we;){const J=D[oe],le=B[oe]=he?yn(B[oe]):Ct(B[oe]);if(It(J,le))d(J,le,K,null,te,ae,fe,ce,he);else break;oe++}for(;oe<=Se&&oe<=we;){const J=D[Se],le=B[we]=he?yn(B[we]):Ct(B[we]);if(It(J,le))d(J,le,K,null,te,ae,fe,ce,he);else break;Se--,we--}if(oe>Se){if(oe<=we){const J=we+1,le=J<pe?B[J].el:Q;for(;oe<=we;)d(null,B[oe]=he?yn(B[oe]):Ct(B[oe]),K,le,te,ae,fe,ce,he),oe++}}else if(oe>we)for(;oe<=Se;)j(D[oe],te,ae,!0),oe++;else{const J=oe,le=oe,de=new Map;for(oe=le;oe<=we;oe++){const We=B[oe]=he?yn(B[oe]):Ct(B[oe]);We.key!=null&&de.set(We.key,oe)}let $e,Ee=0;const Me=we-le+1;let Ue=!1,ze=0;const De=new Array(Me);for(oe=0;oe<Me;oe++)De[oe]=0;for(oe=J;oe<=Se;oe++){const We=D[oe];if(Ee>=Me){j(We,te,ae,!0);continue}let ct;if(We.key!=null)ct=de.get(We.key);else for($e=le;$e<=we;$e++)if(De[$e-le]===0&&It(We,B[$e])){ct=$e;break}ct===void 0?j(We,te,ae,!0):(De[ct-le]=oe+1,ct>=ze?ze=ct:Ue=!0,d(We,B[ct],K,null,te,ae,fe,ce,he),Ee++)}const Fe=Ue?Ly(De):lr;for($e=Fe.length-1,oe=Me-1;oe>=0;oe--){const We=le+oe,ct=B[We],Or=We+1<pe?B[We+1].el:Q;De[oe]===0?d(null,ct,K,Or,te,ae,fe,ce,he):Ue&&($e<0||oe!==Fe[$e]?W(ct,K,Or,2):$e--)}}},W=(D,B,K,Q,te=null)=>{const{el:ae,type:fe,transition:ce,children:he,shapeFlag:oe}=D;if(oe&6){W(D.component.subTree,B,K,Q);return}if(oe&128){D.suspense.move(B,K,Q);return}if(oe&64){fe.move(D,B,K,z);return}if(fe===xe){r(ae,B,K);for(let Se=0;Se<he.length;Se++)W(he[Se],B,K,Q);r(D.anchor,B,K);return}if(fe===Hn){k(D,B,K);return}if(Q!==2&&oe&1&&ce)if(Q===0)ce.beforeEnter(ae),r(ae,B,K),ot(()=>ce.enter(ae),te);else{const{leave:Se,delayLeave:we,afterLeave:J}=ce,le=()=>r(ae,B,K),de=()=>{Se(ae,()=>{le(),J&&J()})};we?we(ae,le,de):de()}else r(ae,B,K)},j=(D,B,K,Q=!1,te=!1)=>{const{type:ae,props:fe,ref:ce,children:he,dynamicChildren:oe,shapeFlag:pe,patchFlag:Se,dirs:we}=D;if(ce!=null&&vo(ce,null,K,D,!0),pe&256){B.ctx.deactivate(D);return}const J=pe&1&&we,le=!Wn(D);let de;if(le&&(de=fe&&fe.onVnodeBeforeUnmount)&&yt(de,B,D),pe&6)G(D.component,K,Q);else{if(pe&128){D.suspense.unmount(K,Q);return}J&&Pt(D,null,B,"beforeUnmount"),pe&64?D.type.remove(D,B,K,te,z,Q):oe&&(ae!==xe||Se>0&&Se&64)?q(oe,B,K,!1,!0):(ae===xe&&Se&384||!te&&pe&16)&&q(he,B,K),Q&&H(D)}(le&&(de=fe&&fe.onVnodeUnmounted)||J)&&ot(()=>{de&&yt(de,B,D),J&&Pt(D,null,B,"unmounted")},K)},H=D=>{const{type:B,el:K,anchor:Q,transition:te}=D;if(B===xe){V(K,Q);return}if(B===Hn){C(D);return}const ae=()=>{f(K),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(D.shapeFlag&1&&te&&!te.persisted){const{leave:fe,delayLeave:ce}=te,he=()=>fe(K,ae);ce?ce(D.el,ae,he):he()}else ae()},V=(D,B)=>{let K;for(;D!==B;)K=a(D),f(D),D=K;f(B)},G=(D,B,K)=>{const{bum:Q,scope:te,update:ae,subTree:fe,um:ce}=D;Q&&ur(Q),te.stop(),ae&&(ae.active=!1,j(fe,D,B,K)),ce&&ot(ce,B),ot(()=>{D.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},q=(D,B,K,Q=!1,te=!1,ae=0)=>{for(let fe=ae;fe<D.length;fe++)j(D[fe],B,K,Q,te)},U=D=>D.shapeFlag&6?U(D.component.subTree):D.shapeFlag&128?D.suspense.next():a(D.anchor||D.el);let X=!1;const Y=(D,B,K)=>{D==null?B._vnode&&j(B._vnode,null,null,!0):d(B._vnode||null,D,B,null,null,null,K),X||(X=!0,vc(),go(),X=!1),B._vnode=D},z={p:d,um:j,m:W,r:H,mt:w,mc:L,pc:I,pbc:M,n:U,o:e};let ee,ue;return t&&([ee,ue]=t(z)),{render:Y,hydrate:ee,createApp:$y(Y,ee)}}function Cs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pl(e,t,n=!1){const r=e.children,f=t.children;if(ve(r)&&ve(f))for(let u=0;u<r.length;u++){const h=r[u];let g=f[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=f[u]=yn(f[u]),g.el=h.el),n||pl(h,g)),g.type===Gn&&(g.el=h.el)}}function Ly(e){const t=e.slice(),n=[0];let r,f,u,h,g;const s=e.length;for(r=0;r<s;r++){const p=e[r];if(p!==0){if(f=n[n.length-1],e[f]<p){t[r]=f,n.push(r);continue}for(u=0,h=n.length-1;u<h;)g=u+h>>1,e[n[g]]<p?u=g+1:h=g;p<e[n[u]]&&(u>0&&(t[r]=n[u-1]),n[u]=r)}}for(u=n.length,h=n[u-1];u-- >0;)n[u]=h,h=t[h];return n}function mf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mf(t)}const My=e=>e.__isTeleport,Yr=e=>e&&(e.disabled||e.disabled===""),xc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Tc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,aa=(e,t)=>{const n=e&&e.to;return Ye(n)?t?t(n):null:n},Oy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,f,u,h,g,s,p){const{mc:o,pc:i,pbc:a,o:{insert:c,querySelector:l,createText:d,createComment:m}}=p,v=Yr(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const S=t.el=d(""),b=t.anchor=d("");c(S,n,r),c(b,n,r);const R=t.target=aa(t.props,l),L=t.targetAnchor=d("");R&&(c(L,R),h==="svg"||xc(R)?h="svg":(h==="mathml"||Tc(R))&&(h="mathml"));const E=(M,$)=>{y&16&&o(k,M,$,f,u,h,g,s)};v?E(n,b):R&&E(R,L)}else{t.el=e.el;const S=t.anchor=e.anchor,b=t.target=e.target,R=t.targetAnchor=e.targetAnchor,L=Yr(e.props),E=L?n:b,M=L?S:R;if(h==="svg"||xc(b)?h="svg":(h==="mathml"||Tc(b))&&(h="mathml"),C?(a(e.dynamicChildren,C,E,f,u,h,g),pl(e,t,!0)):s||i(e,t,E,M,f,u,h,g,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xi(t,n,S,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=aa(t.props,l);$&&Xi(t,$,null,p,0)}else L&&Xi(t,b,R,p,1)}vf(t)},remove(e,t,n,r,{um:f,o:{remove:u}},h){const{shapeFlag:g,children:s,anchor:p,targetAnchor:o,target:i,props:a}=e;if(i&&u(o),h&&u(p),g&16){const c=h||!Yr(a);for(let l=0;l<s.length;l++){const d=s[l];f(d,t,n,c,!!d.dynamicChildren)}}},move:Xi,hydrate:Iy};function Xi(e,t,n,{o:{insert:r},m:f},u=2){u===0&&r(e.targetAnchor,t,n);const{el:h,anchor:g,shapeFlag:s,children:p,props:o}=e,i=u===2;if(i&&r(h,t,n),(!i||Yr(o))&&s&16)for(let a=0;a<p.length;a++)f(p[a],t,n,2);i&&r(g,t,n)}function Iy(e,t,n,r,f,u,{o:{nextSibling:h,parentNode:g,querySelector:s}},p){const o=t.target=aa(t.props,s);if(o){const i=o._lpa||o.firstChild;if(t.shapeFlag&16)if(Yr(t.props))t.anchor=p(h(e),t,g(e),n,r,f,u),t.targetAnchor=i;else{t.anchor=h(e);let a=i;for(;a;)if(a=h(a),a&&a.nodeType===8&&a.data==="teleport anchor"){t.targetAnchor=a,o._lpa=t.targetAnchor&&h(t.targetAnchor);break}p(i,t,o,n,r,f,u)}vf(t)}return t.anchor&&h(t.anchor)}const Fy=Oy;function vf(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 xe=Symbol.for("v-fgt"),Gn=Symbol.for("v-txt"),ht=Symbol.for("v-cmt"),Hn=Symbol.for("v-stc"),Xr=[];let wt=null;function Z(e=!1){Xr.push(wt=e?null:[])}function yf(){Xr.pop(),wt=Xr[Xr.length-1]||null}let Kn=1;function la(e){Kn+=e}function bf(e){return e.dynamicChildren=Kn>0?wt||lr:null,yf(),Kn>0&&wt&&wt.push(e),e}function re(e,t,n,r,f,u){return bf(N(e,t,n,r,f,u,!0))}function Ce(e,t,n,r,f){return bf(se(e,t,n,r,f,!0))}function En(e){return e?e.__v_isVNode===!0:!1}function It(e,t){return e.type===t.type&&e.key===t.key}function Ny(e){}const qo="__vInternal",wf=({key:e})=>e??null,to=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||at(e)||Re(e)?{i:Qe,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,f=null,u=e===xe?0:1,h=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wf(t),ref:t&&to(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:r,dynamicProps:f,dynamicChildren:null,appContext:null,ctx:Qe};return g?(gl(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ye(n)?8:16),Kn>0&&!h&&wt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&wt.push(s),s}const se=Dy;function Dy(e,t=null,n=null,r=0,f=null,u=!1){if((!e||e===Nh)&&(e=ht),En(e)){const g=Vt(e,t,!0);return n&&gl(g,n),Kn>0&&!u&&wt&&(g.shapeFlag&6?wt[wt.indexOf(e)]=g:wt.push(g)),g.patchFlag|=-2,g}if(zy(e)&&(e=e.__vccOpts),t){t=$f(t);let{class:g,style:s}=t;g&&!Ye(g)&&(t.class=kr(g)),He(s)&&(tl(s)&&!ve(s)&&(s=Ke({},s)),t.style=bi(s))}const h=Ye(e)?1:Dh(e)?128:My(e)?64:He(e)?4:Re(e)?2:0;return N(e,t,n,r,f,h,u,!0)}function $f(e){return e?tl(e)||qo in e?Ke({},e):e:null}function Vt(e,t,n=!1){const{props:r,ref:f,patchFlag:u,children:h}=e,g=t?_f(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&wf(g),ref:t&&t.ref?n&&f?ve(f)?f.concat(to(t)):[f,to(t)]:to(t):f,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:h,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?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&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return se(Gn,null,e,t)}function Jo(e,t){const n=se(Hn,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(Z(),Ce(ht,null,e)):se(ht,null,e)}function Ct(e){return e==null||typeof e=="boolean"?se(ht):ve(e)?se(xe,null,e.slice()):typeof e=="object"?yn(e):se(Gn,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function gl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(r&65){const f=t.default;f&&(f._c&&(f._d=!1),gl(e,f()),f._c&&(f._d=!0));return}else{n=32;const f=t._;!f&&!(qo in t)?t._ctx=Qe:f===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Re(t)?(t={default:t,_ctx:Qe},n=32):(t=String(t),r&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function _f(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const f in r)if(f==="class")t.class!==r.class&&(t.class=kr([t.class,r.class]));else if(f==="style")t.style=bi([t.style,r.style]);else if(yi(f)){const u=t[f],h=r[f];h&&u!==h&&!(ve(u)&&u.includes(h))&&(t[f]=u?[].concat(u,h):h)}else f!==""&&(t[f]=r[f])}return t}function yt(e,t,n,r=null){kt(e,t,7,[n,r])}const Py=sf();let By=0;function Sf(e,t,n){const r=e.type,f=(t?t.appContext:e.appContext)||Py,u={uid:By++,vnode:e,type:r,parent:t,appContext:f,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(f.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lf(r,f),emitsOptions:Fh(r,f),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:r.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=Tv.bind(null,u),e.ce&&e.ce(u),u}let tt=null;const Ot=()=>tt||Qe;let yo,ca;{const e=lh(),t=(n,r)=>{let f;return(f=e[n])||(f=e[n]=[]),f.push(r),u=>{f.length>1?f.forEach(h=>h(u)):f[0](u)}};yo=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),ca=t("__VUE_SSR_SETTERS__",n=>Si=n)}const Yn=e=>{const t=tt;return yo(e),e.scope.on(),()=>{e.scope.off(),yo(t)}},ua=()=>{tt&&tt.scope.off(),yo(null)};function Cf(e){return e.vnode.shapeFlag&4}let Si=!1;function Af(e,t=!1){t&&ca(t);const{props:n,children:r}=e.vnode,f=Cf(e);Sy(e,n,f,t),ky(e,r);const u=f?Wy(e,t):void 0;return t&&ca(!1),u}function Wy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Po(new Proxy(e.ctx,ra));const{setup:r}=n;if(r){const f=e.setupContext=r.length>1?Ef(e):null,u=Yn(e);Jn();const h=Qt(r,e,0,[e.props,f]);if(Qn(),u(),Ka(h)){if(h.then(ua,ua),t)return h.then(g=>{ha(e,g,t)}).catch(g=>{er(g,e,0)});e.asyncDep=h}else ha(e,h,t)}else kf(e,t)}function ha(e,t,n){Re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(e.setupState=il(t)),kf(e,n)}let bo,fa;function Hy(e){bo=e,fa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ty))}}const Uy=()=>!bo;function kf(e,t,n){const r=e.type;if(!e.render){if(!t&&bo&&!r.render){const f=r.template||fl(e).template;if(f){const{isCustomElement:u,compilerOptions:h}=e.appContext.config,{delimiters:g,compilerOptions:s}=r,p=Ke(Ke({isCustomElement:u,delimiters:g},h),s);r.render=bo(f,p)}}e.render=r.render||bt,fa&&fa(e)}{const f=Yn(e);Jn();try{gy(e)}finally{Qn(),f()}}}function Vy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $t(e,"get","$attrs"),t[n]}}))}function Ef(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Vy(e)},slots:e.slots,emit:e.emit,expose:t}}function Qo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(il(Po(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Gr)return Gr[n](e)},has(t,n){return n in t||n in Gr}}))}function da(e,t=!0){return Re(e)?e.displayName||e.name:e.name||t&&e.__name}function zy(e){return Re(e)&&"__vccOpts"in e}const ke=(e,t)=>fv(e,t,Si);function jy(e,t,n=Be){const r=Ot(),f=gt(t),u=At(t),h=Bo((s,p)=>{let o;return Vh(()=>{const i=e[t];Nt(o,i)&&(o=i,p())}),{get(){return s(),n.get?n.get(o):o},set(i){const a=r.vnode.props;!(a&&(t in a||f in a||u in a)&&(`onUpdate:${t}`in a||`onUpdate:${f}`in a||`onUpdate:${u}`in a))&&Nt(i,o)&&(o=i,p()),r.emit(`update:${t}`,n.set?n.set(i):i)}}}),g=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return h[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?e[g]||{}:h,done:!1}:{done:!0}}}},h}function xr(e,t,n){const r=arguments.length;return r===2?He(t)&&!ve(t)?En(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&En(n)&&(n=[n]),se(e,t,n))}function Gy(){}function Ky(e,t,n,r){const f=n[r];if(f&&Rf(f,e))return f;const u=t();return u.memo=e.slice(),n[r]=u}function Rf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Nt(n[r],t[r]))return!1;return Kn>0&&wt&&wt.push(e),!0}const xf="3.4.11",Yy=bt,Xy=Av,Zy=nr,qy=Ih,Jy={createComponentInstance:Sf,setupComponent:Af,renderComponentRoot:eo,setCurrentRenderingInstance:ci,isVNode:En,normalizeVNode:Ct},Qy=Jy,e0=null,t0=null,n0=null;/**
775
- * @vue/runtime-dom v3.4.11
774
+ **/function Sv(e,t){}const Cv={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Av={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Jt(e,t,n,r){let f;try{f=r?e(...r):e()}catch(u){er(u,t,n)}return f}function kt(e,t,n,r){if(Re(e)){const u=Jt(e,t,n,r);return u&&Ya(u)&&u.catch(h=>{er(h,t,n)}),u}const f=[];for(let u=0;u<e.length;u++)f.push(kt(e[u],t,n,r));return f}function er(e,t,n,r=!0){const f=t?t.vnode:null;if(t){let u=t.parent;const h=t.proxy,g=`https://vuejs.org/errors/#runtime-${n}`;for(;u;){const p=u.ec;if(p){for(let o=0;o<p.length;o++)if(p[o](e,h,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){Jt(s,null,10,[e,h,g]);return}}kv(e,n,f,r)}function kv(e,t,n,r=!0){console.error(e)}let ai=!1,ta=!1;const ut=[];let Bt=0;const hr=[];let mn=null,On=0;const Lh=Promise.resolve();let sl=null;function wi(e){const t=sl||Lh;return e?t.then(this?e.bind(this):e):t}function Ev(e){let t=Bt+1,n=ut.length;for(;t<n;){const r=t+n>>>1,f=ut[r],u=li(f);u<e||u===e&&f.pre?t=r+1:n=r}return t}function Uo(e){(!ut.length||!ut.includes(e,ai&&e.allowRecurse?Bt+1:Bt))&&(e.id==null?ut.push(e):ut.splice(Ev(e.id),0,e),Mh())}function Mh(){!ai&&!ta&&(ta=!0,sl=Lh.then(Oh))}function Rv(e){const t=ut.indexOf(e);t>Bt&&ut.splice(t,1)}function go(e){ve(e)?hr.push(...e):(!mn||!mn.includes(e,e.allowRecurse?On+1:On))&&hr.push(e),Mh()}function vc(e,t,n=ai?Bt+1:0){for(;n<ut.length;n++){const r=ut[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;ut.splice(n,1),n--,r()}}}function mo(e){if(hr.length){const t=[...new Set(hr)].sort((n,r)=>li(n)-li(r));if(hr.length=0,mn){mn.push(...t);return}for(mn=t,On=0;On<mn.length;On++)mn[On]();mn=null,On=0}}const li=e=>e.id==null?1/0:e.id,xv=(e,t)=>{const n=li(e)-li(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Oh(e){ta=!1,ai=!0,ut.sort(xv);try{for(Bt=0;Bt<ut.length;Bt++){const t=ut[Bt];t&&t.active!==!1&&Jt(t,null,14)}}finally{Bt=0,ut.length=0,mo(),ai=!1,sl=null,(ut.length||hr.length)&&Oh()}}let nr,ji=[];function Ih(e,t){var n,r;nr=e,nr?(nr.enabled=!0,ji.forEach(({event:f,args:u})=>nr.emit(f,...u)),ji=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{Ih(u,t)}),setTimeout(()=>{nr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ji=[])},3e3)):ji=[]}function Tv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Be;let f=n;const u=t.startsWith("update:"),h=u&&t.slice(7);if(h&&h in r){const o=`${h==="modelValue"?"model":h}Modifiers`,{number:i,trim:a}=r[o]||Be;a&&(f=n.map(c=>Qe(c)?c.trim():c)),i&&(f=n.map(ho))}let g,s=r[g=jr(t)]||r[g=jr(gt(t))];!s&&u&&(s=r[g=jr(At(t))]),s&&kt(s,e,6,f);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,kt(p,e,6,f)}}function Fh(e,t,n=!1){const r=t.emitsCache,f=r.get(e);if(f!==void 0)return f;const u=e.emits;let h={},g=!1;if(!Re(e)){const s=p=>{const o=Fh(p,t,!0);o&&(g=!0,Ze(h,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(He(e)&&r.set(e,null),null):(ve(u)?u.forEach(s=>h[s]=null):Ze(h,u),He(e)&&r.set(e,h),h)}function Vo(e,t){return!e||!yi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,At(t))||Ie(e,t))}let et=null,zo=null;function ci(e){const t=et;return et=e,zo=e&&e.type.__scopeId||null,t}function jo(e){zo=e}function Go(){zo=null}const Lv=e=>Ve;function Ve(e,t=et,n){if(!t||e._n)return e;const r=(...f)=>{r._d&&ca(-1);const u=ci(t);let h;try{h=e(...f)}finally{ci(u),r._d&&ca(1)}return h};return r._n=!0,r._c=!0,r._d=!0,r}function to(e){const{type:t,vnode:n,proxy:r,withProxy:f,props:u,propsOptions:[h],slots:g,attrs:s,emit:p,render:o,renderCache:i,data:a,setupState:c,ctx:l,inheritAttrs:d}=e;let m,v;const y=ci(e);try{if(n.shapeFlag&4){const C=f||r,S=C;m=Ct(o.call(S,C,i,u,c,a,l)),v=s}else{const C=t;m=Ct(C.length>1?C(u,{attrs:s,slots:g,emit:p}):C(u,null)),v=t.props?s:Ov(s)}}catch(C){Xr.length=0,er(C,e,1),m=oe(ht)}let k=m;if(v&&d!==!1){const C=Object.keys(v),{shapeFlag:S}=k;C.length&&S&7&&(h&&C.some(Ga)&&(v=Iv(v,h)),k=Vt(k,v))}return n.dirs&&(k=Vt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,ci(y),m}function Mv(e,t=!0){let n;for(let r=0;r<e.length;r++){const f=e[r];if(En(f)){if(f.type!==ht||f.children==="v-if"){if(n)return;n=f}}else return}return n}const Ov=e=>{let t;for(const n in e)(n==="class"||n==="style"||yi(n))&&((t||(t={}))[n]=e[n]);return t},Iv=(e,t)=>{const n={};for(const r in e)(!Ga(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fv(e,t,n){const{props:r,children:f,component:u}=e,{props:h,children:g,patchFlag:s}=t,p=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?yc(r,h,p):!!h;if(s&8){const o=t.dynamicProps;for(let i=0;i<o.length;i++){const a=o[i];if(h[a]!==r[a]&&!Vo(p,a))return!0}}}else return(f||g)&&(!g||!g.$stable)?!0:r===h?!1:r?h?yc(r,h,p):!0:!!h;return!1}function yc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let f=0;f<r.length;f++){const u=r[f];if(t[u]!==e[u]&&!Vo(n,u))return!0}return!1}function al({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ll="components",Nv="directives";function ne(e,t){return cl(ll,e,!0,t)||e}const Nh=Symbol.for("v-ndc");function Dv(e){return Qe(e)?cl(ll,e,!1)||e:e||Nh}function Pv(e){return cl(Nv,e)}function cl(e,t,n=!0,r=!1){const f=et||tt;if(f){const u=f.type;if(e===ll){const g=pa(u,!1);if(g&&(g===t||g===gt(t)||g===Ar(gt(t))))return u}const h=bc(f[e]||u[e],t)||bc(f.appContext[e],t);return!h&&r?u:h}}function bc(e,t){return e&&(e[t]||e[gt(t)]||e[Ar(gt(t))])}const Dh=e=>e.__isSuspense;let na=0;const Bv={name:"Suspense",__isSuspense:!0,process(e,t,n,r,f,u,h,g,s,p){if(e==null)Hv(t,n,r,f,u,h,g,s,p);else{if(u&&u.deps>0){t.suspense=e.suspense;return}Uv(e,t,n,r,f,h,g,s,p)}},hydrate:Vv,create:ul,normalize:zv},Wv=Bv;function ui(e,t){const n=e.props&&e.props[t];Re(n)&&n()}function Hv(e,t,n,r,f,u,h,g,s){const{p,o:{createElement:o}}=s,i=o("div"),a=e.suspense=ul(e,f,r,t,i,n,u,h,g,s);p(null,a.pendingBranch=e.ssContent,i,null,r,a,u,h),a.deps>0?(ui(e,"onPending"),ui(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,u,h),fr(a,e.ssFallback)):a.resolve(!1,!0)}function Uv(e,t,n,r,f,u,h,g,{p:s,um:p,o:{createElement:o}}){const i=t.suspense=e.suspense;i.vnode=t,t.el=e.el;const a=t.ssContent,c=t.ssFallback,{activeBranch:l,pendingBranch:d,isInFallback:m,isHydrating:v}=i;if(d)i.pendingBranch=a,It(a,d)?(s(d,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0?i.resolve():m&&(v||(s(l,c,n,r,f,null,u,h,g),fr(i,c)))):(i.pendingId=na++,v?(i.isHydrating=!1,i.activeBranch=d):p(d,f,i),i.deps=0,i.effects.length=0,i.hiddenContainer=o("div"),m?(s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0?i.resolve():(s(l,c,n,r,f,null,u,h,g),fr(i,c))):l&&It(a,l)?(s(l,a,n,r,f,i,u,h,g),i.resolve(!0)):(s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0&&i.resolve()));else if(l&&It(a,l))s(l,a,n,r,f,i,u,h,g),fr(i,a);else if(ui(t,"onPending"),i.pendingBranch=a,a.shapeFlag&512?i.pendingId=a.component.suspenseId:i.pendingId=na++,s(null,a,i.hiddenContainer,null,f,i,u,h,g),i.deps<=0)i.resolve();else{const{timeout:y,pendingId:k}=i;y>0?setTimeout(()=>{i.pendingId===k&&i.fallback(c)},y):y===0&&i.fallback(c)}}function ul(e,t,n,r,f,u,h,g,s,p,o=!1){const{p:i,m:a,um:c,n:l,o:{parentNode:d,remove:m}}=p;let v;const y=jv(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?fo(e.props.timeout):void 0,C=u,S={vnode:e,parent:t,parentComponent:n,namespace:h,container:r,hiddenContainer:f,deps:0,pendingId:na++,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!o,isHydrating:o,isUnmounted:!1,effects:[],resolve(b=!1,R=!1){const{vnode:L,activeBranch:E,pendingBranch:M,pendingId:$,effects:A,parentComponent:_,container:w}=S;let x=!1;S.isHydrating?S.isHydrating=!1:b||(x=E&&M.transition&&M.transition.mode==="out-in",x&&(E.transition.afterLeave=()=>{$===S.pendingId&&(a(M,w,u===C?l(E):u,0),go(A))}),E&&(d(E.el)!==S.hiddenContainer&&(u=l(E)),c(E,_,S,!0)),x||a(M,w,u,0)),fr(S,M),S.pendingBranch=null,S.isInFallback=!1;let T=S.parent,O=!1;for(;T;){if(T.pendingBranch){T.effects.push(...A),O=!0;break}T=T.parent}!O&&!x&&go(A),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!R&&t.resolve()),ui(L,"onResolve")},fallback(b){if(!S.pendingBranch)return;const{vnode:R,activeBranch:L,parentComponent:E,container:M,namespace:$}=S;ui(R,"onFallback");const A=l(L),_=()=>{S.isInFallback&&(i(null,b,M,A,E,null,$,g,s),fr(S,b))},w=b.transition&&b.transition.mode==="out-in";w&&(L.transition.afterLeave=_),S.isInFallback=!0,c(L,E,null,!0),w||_()},move(b,R,L){S.activeBranch&&a(S.activeBranch,b,R,L),S.container=b},next(){return S.activeBranch&&l(S.activeBranch)},registerDep(b,R){const L=!!S.pendingBranch;L&&S.deps++;const E=b.vnode.el;b.asyncDep.catch(M=>{er(M,b,0)}).then(M=>{if(b.isUnmounted||S.isUnmounted||S.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:$}=b;fa(b,M,!1),E&&($.el=E);const A=!E&&b.subTree.el;R(b,$,d(E||b.subTree.el),E?null:l(b.subTree),S,h,s),A&&m(A),al(b,$.el),L&&--S.deps===0&&S.resolve()})},unmount(b,R){S.isUnmounted=!0,S.activeBranch&&c(S.activeBranch,n,b,R),S.pendingBranch&&c(S.pendingBranch,n,b,R)}};return S}function Vv(e,t,n,r,f,u,h,g,s){const p=t.suspense=ul(t,r,n,e.parentNode,document.createElement("div"),null,f,u,h,g,!0),o=s(e,p.pendingBranch=t.ssContent,n,p,u,h);return p.deps===0&&p.resolve(!1,!0),o}function zv(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=wc(r?n.default:n),e.ssFallback=r?wc(n.fallback):oe(ht)}function wc(e){let t;if(Re(e)){const n=Kn&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=wt,yf())}return ve(e)&&(e=Mv(e)),e=Ct(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ph(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):go(e)}function fr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let f=t.el;for(;!f&&t.component;)t=t.component.subTree,f=t.el;n.el=f,r&&r.subTree===n&&(r.vnode.el=f,al(r,f))}function jv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Bh=Symbol.for("v-scx"),Wh=()=>Tt(Bh);function Hh(e,t){return $i(e,null,t)}function Uh(e,t){return $i(e,null,{flush:"post"})}function Vh(e,t){return $i(e,null,{flush:"sync"})}const Gi={};function Xe(e,t,n){return $i(e,t,n)}function $i(e,t,{immediate:n,deep:r,flush:f,once:u,onTrack:h,onTrigger:g}=Be){if(t&&u){const b=t;t=(...R)=>{b(...R),S()}}const s=tt,p=b=>r===!0?b:Nn(b,r===!1?1:void 0);let o,i=!1,a=!1;if(at(e)?(o=()=>e.value,i=ii(e)):Bn(e)?(o=()=>p(e),i=!0):ve(e)?(a=!0,i=e.some(b=>Bn(b)||ii(b)),o=()=>e.map(b=>{if(at(b))return b.value;if(Bn(b))return p(b);if(Re(b))return Jt(b,s,2)})):Re(e)?t?o=()=>Jt(e,s,2):o=()=>(c&&c(),kt(e,s,3,[l])):o=bt,t&&r){const b=o;o=()=>Nn(b())}let c,l=b=>{c=k.onStop=()=>{Jt(b,s,4),c=k.onStop=void 0}},d;if(Si)if(l=bt,t?n&&kt(t,s,3,[o(),a?[]:void 0,l]):o(),f==="sync"){const b=Wh();d=b.__watcherHandles||(b.__watcherHandles=[])}else return bt;let m=a?new Array(e.length).fill(Gi):Gi;const v=()=>{if(!(!k.active||!k.dirty))if(t){const b=k.run();(r||i||(a?b.some((R,L)=>Nt(R,m[L])):Nt(b,m)))&&(c&&c(),kt(t,s,3,[b,m===Gi?void 0:a&&m[0]===Gi?[]:m,l]),m=b)}else k.run()};v.allowRecurse=!!t;let y;f==="sync"?y=v:f==="post"?y=()=>ot(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),y=()=>Uo(v));const k=new pr(o,bt,y),C=Qa(),S=()=>{k.stop(),C&&Ka(C.effects,k)};return t?n?v():m=k.run():f==="post"?ot(k.run.bind(k),s&&s.suspense):k.run(),d&&d.push(S),S}function Gv(e,t,n){const r=this.proxy,f=Qe(e)?e.includes(".")?zh(r,e):()=>r[e]:e.bind(r,r);let u;Re(t)?u=t:(u=t.handler,n=t);const h=Yn(this),g=$i(f,u.bind(r),n);return h(),g}function zh(e,t){const n=t.split(".");return()=>{let r=e;for(let f=0;f<n.length&&r;f++)r=r[n[f]];return r}}function Nn(e,t,n=0,r){if(!He(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),at(e))Nn(e.value,t,n,r);else if(ve(e))for(let f=0;f<e.length;f++)Nn(e[f],t,n,r);else if(Qn(e)||cr(e))e.forEach(f=>{Nn(f,t,n,r)});else if(ah(e))for(const f in e)Nn(e[f],t,n,r);return e}function Ko(e,t){if(et===null)return e;const n=es(et)||et.proxy,r=e.dirs||(e.dirs=[]);for(let f=0;f<t.length;f++){let[u,h,g,s=Be]=t[f];u&&(Re(u)&&(u={mounted:u,updated:u}),u.deep&&Nn(h),r.push({dir:u,instance:n,value:h,oldValue:void 0,arg:g,modifiers:s}))}return e}function Pt(e,t,n,r){const f=e.dirs,u=t&&t.dirs;for(let h=0;h<f.length;h++){const g=f[h];u&&(g.oldValue=u[h].value);let s=g.dir[r];s&&(qn(),kt(s,n,8,[e.el,g,e,t]),Jn())}}const vn=Symbol("_leaveCb"),Ki=Symbol("_enterCb");function hl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const xt=[Function,Array],fl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xt,onEnter:xt,onAfterEnter:xt,onEnterCancelled:xt,onBeforeLeave:xt,onLeave:xt,onAfterLeave:xt,onLeaveCancelled:xt,onBeforeAppear:xt,onAppear:xt,onAfterAppear:xt,onAppearCancelled:xt},Kv={name:"BaseTransition",props:fl,setup(e,{slots:t}){const n=Ot(),r=hl();let f;return()=>{const u=t.default&&Yo(t.default(),!0);if(!u||!u.length)return;let h=u[0];if(u.length>1){for(const d of u)if(d.type!==ht){h=d;break}}const g=Le(e),{mode:s}=g;if(r.isLeaving)return ws(h);const p=$c(h);if(!p)return ws(h);const o=gr(p,g,r,n);jn(p,o);const i=n.subTree,a=i&&$c(i);let c=!1;const{getTransitionKey:l}=p.type;if(l){const d=l();f===void 0?f=d:d!==f&&(f=d,c=!0)}if(a&&a.type!==ht&&(!It(p,a)||c)){const d=gr(a,g,r,n);if(jn(a,d),s==="out-in")return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ws(h);s==="in-out"&&p.type!==ht&&(d.delayLeave=(m,v,y)=>{const k=Gh(r,a);k[String(a.key)]=a,m[vn]=()=>{v(),m[vn]=void 0,delete o.delayedLeave},o.delayedLeave=y})}return h}}},jh=Kv;function Gh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function gr(e,t,n,r){const{appear:f,mode:u,persisted:h=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:p,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:c,onLeaveCancelled:l,onBeforeAppear:d,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),C=Gh(n,e),S=(L,E)=>{L&&kt(L,r,9,E)},b=(L,E)=>{const M=E[1];S(L,E),ve(L)?L.every($=>$.length<=1)&&M():L.length<=1&&M()},R={mode:u,persisted:h,beforeEnter(L){let E=g;if(!n.isMounted)if(f)E=d||g;else return;L[vn]&&L[vn](!0);const M=C[k];M&&It(e,M)&&M.el[vn]&&M.el[vn](),S(E,[L])},enter(L){let E=s,M=p,$=o;if(!n.isMounted)if(f)E=m||s,M=v||p,$=y||o;else return;let A=!1;const _=L[Ki]=w=>{A||(A=!0,w?S($,[L]):S(M,[L]),R.delayedLeave&&R.delayedLeave(),L[Ki]=void 0)};E?b(E,[L,_]):_()},leave(L,E){const M=String(e.key);if(L[Ki]&&L[Ki](!0),n.isUnmounting)return E();S(i,[L]);let $=!1;const A=L[vn]=_=>{$||($=!0,E(),_?S(l,[L]):S(c,[L]),L[vn]=void 0,C[M]===e&&delete C[M])};C[M]=e,a?b(a,[L,A]):A()},clone(L){return gr(L,t,n,r)}};return R}function ws(e){if(_i(e))return e=Vt(e),e.children=null,e}function $c(e){return _i(e)?e.children?e.children[0]:void 0:e}function jn(e,t){e.shapeFlag&6&&e.component?jn(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 Yo(e,t=!1,n){let r=[],f=0;for(let u=0;u<e.length;u++){let h=e[u];const g=n==null?h.key:String(n)+String(h.key!=null?h.key:u);h.type===xe?(h.patchFlag&128&&f++,r=r.concat(Yo(h.children,t,g))):(t||h.type!==ht)&&r.push(g!=null?Vt(h,{key:g}):h)}if(f>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function we(e,t){return Re(e)?Ze({name:e.name},t,{setup:e}):e}const Wn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Yv(e){Re(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:f=200,timeout:u,suspensible:h=!0,onError:g}=e;let s=null,p,o=0;const i=()=>(o++,s=null,a()),a=()=>{let c;return s||(c=s=t().catch(l=>{if(l=l instanceof Error?l:new Error(String(l)),g)return new Promise((d,m)=>{g(l,()=>d(i()),()=>m(l),o+1)});throw l}).then(l=>c!==s&&s?s:(l&&(l.__esModule||l[Symbol.toStringTag]==="Module")&&(l=l.default),p=l,l)))};return we({name:"AsyncComponentWrapper",__asyncLoader:a,get __asyncResolved(){return p},setup(){const c=tt;if(p)return()=>$s(p,c);const l=y=>{s=null,er(y,c,13,!r)};if(h&&c.suspense||Si)return a().then(y=>()=>$s(y,c)).catch(y=>(l(y),()=>r?oe(r,{error:y}):null));const d=Fe(!1),m=Fe(),v=Fe(!!f);return f&&setTimeout(()=>{v.value=!1},f),u!=null&&setTimeout(()=>{if(!d.value&&!m.value){const y=new Error(`Async component timed out after ${u}ms.`);l(y),m.value=y}},u),a().then(()=>{d.value=!0,c.parent&&_i(c.parent.vnode)&&(c.parent.effect.dirty=!0,Uo(c.parent.update))}).catch(y=>{l(y),m.value=y}),()=>{if(d.value&&p)return $s(p,c);if(m.value&&r)return oe(r,{error:m.value});if(n&&!v.value)return oe(n)}}})}function $s(e,t){const{ref:n,props:r,children:f,ce:u}=t.vnode,h=oe(e,r,f);return h.ref=n,h.ce=u,delete t.vnode.ce,h}const _i=e=>e.type.__isKeepAlive,Xv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ot(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const f=new Map,u=new Set;let h=null;const g=n.suspense,{renderer:{p:s,m:p,um:o,o:{createElement:i}}}=r,a=i("div");r.activate=(y,k,C,S,b)=>{const R=y.component;p(y,k,C,0,g),s(R.vnode,y,k,C,R,g,S,y.slotScopeIds,b),ot(()=>{R.isDeactivated=!1,R.a&&ur(R.a);const L=y.props&&y.props.onVnodeMounted;L&&yt(L,R.parent,y)},g)},r.deactivate=y=>{const k=y.component;p(y,a,null,1,g),ot(()=>{k.da&&ur(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&yt(C,k.parent,y),k.isDeactivated=!0},g)};function c(y){_s(y),o(y,n,g,!0)}function l(y){f.forEach((k,C)=>{const S=pa(k.type);S&&(!y||!y(S))&&d(C)})}function d(y){const k=f.get(y);!h||!It(k,h)?c(k):h&&_s(h),f.delete(y),u.delete(y)}Xe(()=>[e.include,e.exclude],([y,k])=>{y&&l(C=>Wr(y,C)),k&&l(C=>!Wr(k,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&f.set(m,Ss(n.subTree))};return qe(v),Zo(v),Rr(()=>{f.forEach(y=>{const{subTree:k,suspense:C}=n,S=Ss(k);if(y.type===S.type&&y.key===S.key){_s(S);const b=S.component.da;b&&ot(b,C);return}c(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return h=null,y;if(!En(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return h=null,k;let C=Ss(k);const S=C.type,b=pa(Wn(C)?C.type.__asyncResolved||{}:S),{include:R,exclude:L,max:E}=e;if(R&&(!b||!Wr(R,b))||L&&b&&Wr(L,b))return h=C,k;const M=C.key==null?S:C.key,$=f.get(M);return C.el&&(C=Vt(C),k.shapeFlag&128&&(k.ssContent=C)),m=M,$?(C.el=$.el,C.component=$.component,C.transition&&jn(C,C.transition),C.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),E&&u.size>parseInt(E,10)&&d(u.values().next().value)),C.shapeFlag|=256,h=C,Dh(k.type)?k:C}}},Zv=Xv;function Wr(e,t){return ve(e)?e.some(n=>Wr(n,t)):Qe(e)?e.split(",").includes(t):xm(e)?e.test(t):!1}function Kh(e,t){Xh(e,"a",t)}function Yh(e,t){Xh(e,"da",t)}function Xh(e,t,n=tt){const r=e.__wdc||(e.__wdc=()=>{let f=n;for(;f;){if(f.isDeactivated)return;f=f.parent}return e()});if(Xo(t,r,n),n){let f=n.parent;for(;f&&f.parent;)_i(f.parent.vnode)&&Qv(r,t,n,f),f=f.parent}}function Qv(e,t,n,r){const f=Xo(t,e,r,!0);Qo(()=>{Ka(r[t],f)},n)}function _s(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ss(e){return e.shapeFlag&128?e.ssContent:e}function Xo(e,t,n=tt,r=!1){if(n){const f=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...h)=>{if(n.isUnmounted)return;qn();const g=Yn(n),s=kt(t,n,e,h);return g(),Jn(),s});return r?f.unshift(u):f.push(u),u}}const sn=e=>(t,n=tt)=>(!Si||e==="sp")&&Xo(e,(...r)=>t(...r),n),Zh=sn("bm"),qe=sn("m"),Qh=sn("bu"),Zo=sn("u"),Rr=sn("bum"),Qo=sn("um"),qh=sn("sp"),Jh=sn("rtg"),ef=sn("rtc");function tf(e,t=tt){Xo("ec",e,t)}function _t(e,t,n,r){let f;const u=n&&n[r];if(ve(e)||Qe(e)){f=new Array(e.length);for(let h=0,g=e.length;h<g;h++)f[h]=t(e[h],h,void 0,u&&u[h])}else if(typeof e=="number"){f=new Array(e);for(let h=0;h<e;h++)f[h]=t(h+1,h,void 0,u&&u[h])}else if(He(e))if(e[Symbol.iterator])f=Array.from(e,(h,g)=>t(h,g,void 0,u&&u[g]));else{const h=Object.keys(e);f=new Array(h.length);for(let g=0,s=h.length;g<s;g++){const p=h[g];f[g]=t(e[p],p,g,u&&u[g])}}else f=[];return n&&(n[r]=f),f}function qv(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ve(r))for(let f=0;f<r.length;f++)e[r[f].name]=r[f].fn;else r&&(e[r.name]=r.key?(...f)=>{const u=r.fn(...f);return u&&(u.key=r.key),u}:r.fn)}return e}function Jv(e,t,n={},r,f){if(et.isCE||et.parent&&Wn(et.parent)&&et.parent.isCE)return t!=="default"&&(n.name=t),oe("slot",n,r&&r());let u=e[t];u&&u._c&&(u._d=!1),X();const h=u&&nf(u(n)),g=be(xe,{key:n.key||h&&h.key||`_${t}`},h||(r?r():[]),h&&e._===1?64:-2);return!f&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function nf(e){return e.some(t=>En(t)?!(t.type===ht||t.type===xe&&!nf(t.children)):!0)?e:null}function ey(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:jr(r)]=e[r];return n}const ra=e=>e?Cf(e)?es(e)||e.proxy:ra(e.parent):null,Gr=Ze(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=>ra(e.parent),$root:e=>ra(e.root),$emit:e=>e.emit,$options:e=>dl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Uo(e.update)}),$nextTick:e=>e.n||(e.n=wi.bind(e.proxy)),$watch:e=>Gv.bind(e)}),Cs=(e,t)=>e!==Be&&!e.__isScriptSetup&&Ie(e,t),ia={get({_:e},t){const{ctx:n,setupState:r,data:f,props:u,accessCache:h,type:g,appContext:s}=e;let p;if(t[0]!=="$"){const c=h[t];if(c!==void 0)switch(c){case 1:return r[t];case 2:return f[t];case 4:return n[t];case 3:return u[t]}else{if(Cs(r,t))return h[t]=1,r[t];if(f!==Be&&Ie(f,t))return h[t]=2,f[t];if((p=e.propsOptions[0])&&Ie(p,t))return h[t]=3,u[t];if(n!==Be&&Ie(n,t))return h[t]=4,n[t];oa&&(h[t]=0)}}const o=Gr[t];let i,a;if(o)return t==="$attrs"&&$t(e,"get",t),o(e);if((i=g.__cssModules)&&(i=i[t]))return i;if(n!==Be&&Ie(n,t))return h[t]=4,n[t];if(a=s.config.globalProperties,Ie(a,t))return a[t]},set({_:e},t,n){const{data:r,setupState:f,ctx:u}=e;return Cs(f,t)?(f[t]=n,!0):r!==Be&&Ie(r,t)?(r[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:f,propsOptions:u}},h){let g;return!!n[h]||e!==Be&&Ie(e,h)||Cs(t,h)||(g=u[0])&&Ie(g,h)||Ie(r,h)||Ie(Gr,h)||Ie(f.config.globalProperties,h)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ty=Ze({},ia,{get(e,t){if(t!==Symbol.unscopables)return ia.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Im(t)}});function ny(){return null}function ry(){return null}function iy(e){}function oy(e){}function sy(){return null}function ay(){}function ly(e,t){return null}function cy(){return rf().slots}function uy(){return rf().attrs}function rf(){const e=Ot();return e.setupContext||(e.setupContext=Ef(e))}function hi(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hy(e,t){const n=hi(e);for(const r in t){if(r.startsWith("__skip"))continue;let f=n[r];f?ve(f)||Re(f)?f=n[r]={type:f,default:t[r]}:f.default=t[r]:f===null&&(f=n[r]={default:t[r]}),f&&t[`__skip_${r}`]&&(f.skipFactory=!0)}return n}function fy(e,t){return!e||!t?e||t:ve(e)&&ve(t)?e.concat(t):Ze({},hi(e),hi(t))}function dy(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function py(e){const t=Ot();let n=e();return ha(),Ya(n)&&(n=n.catch(r=>{throw Yn(t),r})),[n,()=>Yn(t)]}let oa=!0;function gy(e){const t=dl(e),n=e.proxy,r=e.ctx;oa=!1,t.beforeCreate&&_c(t.beforeCreate,e,"bc");const{data:f,computed:u,methods:h,watch:g,provide:s,inject:p,created:o,beforeMount:i,mounted:a,beforeUpdate:c,updated:l,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:C,render:S,renderTracked:b,renderTriggered:R,errorCaptured:L,serverPrefetch:E,expose:M,inheritAttrs:$,components:A,directives:_,filters:w}=t;if(p&&my(p,r,null),h)for(const O in h){const I=h[O];Re(I)&&(r[O]=I.bind(n))}if(f){const O=f.call(n,n);He(O)&&(e.data=Er(O))}if(oa=!0,u)for(const O in u){const I=u[O],F=Re(I)?I.bind(n,n):Re(I.get)?I.get.bind(n,n):bt,P=!Re(I)&&Re(I.set)?I.set.bind(n):bt,W=ke({get:F,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)of(g[O],r,n,O);if(s){const O=Re(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Kr(I,O[I])})}o&&_c(o,e,"c");function T(O,I){ve(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Zh,i),T(qe,a),T(Qh,c),T(Zo,l),T(Kh,d),T(Yh,m),T(tf,L),T(ef,b),T(Jh,R),T(Rr,y),T(Qo,C),T(qh,E),ve(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===bt&&(e.render=S),$!=null&&(e.inheritAttrs=$),A&&(e.components=A),_&&(e.directives=_)}function my(e,t,n=bt){ve(e)&&(e=sa(e));for(const r in e){const f=e[r];let u;He(f)?"default"in f?u=Tt(f.from||r,f.default,!0):u=Tt(f.from||r):u=Tt(f),at(u)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:h=>u.value=h}):t[r]=u}}function _c(e,t,n){kt(ve(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function of(e,t,n,r){const f=r.includes(".")?zh(n,r):()=>n[r];if(Qe(e)){const u=t[e];Re(u)&&Xe(f,u)}else if(Re(e))Xe(f,e.bind(n));else if(He(e))if(ve(e))e.forEach(u=>of(u,t,n,r));else{const u=Re(e.handler)?e.handler.bind(n):t[e.handler];Re(u)&&Xe(f,u,e)}}function dl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:f,optionsCache:u,config:{optionMergeStrategies:h}}=e.appContext,g=u.get(t);let s;return g?s=g:!f.length&&!n&&!r?s=t:(s={},f.length&&f.forEach(p=>vo(s,p,h,!0)),vo(s,t,h)),He(t)&&u.set(t,s),s}function vo(e,t,n,r=!1){const{mixins:f,extends:u}=t;u&&vo(e,u,n,!0),f&&f.forEach(h=>vo(e,h,n,!0));for(const h in t)if(!(r&&h==="expose")){const g=vy[h]||n&&n[h];e[h]=g?g(e[h],t[h]):t[h]}return e}const vy={data:Sc,props:Cc,emits:Cc,methods:Hr,computed:Hr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Hr,directives:Hr,watch:by,provide:Sc,inject:yy};function Sc(e,t){return t?e?function(){return Ze(Re(e)?e.call(this,this):e,Re(t)?t.call(this,this):t)}:t:e}function yy(e,t){return Hr(sa(e),sa(t))}function sa(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function Hr(e,t){return e?Ze(Object.create(null),e,t):t}function Cc(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ze(Object.create(null),hi(e),hi(t??{})):t}function by(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const r in t)n[r]=pt(e[r],t[r]);return n}function sf(){return{app:null,config:{isNativeTag:Em,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 wy=0;function $y(e,t){return function(r,f=null){Re(r)||(r=Ze({},r)),f!=null&&!He(f)&&(f=null);const u=sf(),h=new WeakSet;let g=!1;const s=u.app={_uid:wy++,_component:r,_props:f,_container:null,_context:u,_instance:null,version:xf,get config(){return u.config},set config(p){},use(p,...o){return h.has(p)||(p&&Re(p.install)?(h.add(p),p.install(s,...o)):Re(p)&&(h.add(p),p(s,...o))),s},mixin(p){return u.mixins.includes(p)||u.mixins.push(p),s},component(p,o){return o?(u.components[p]=o,s):u.components[p]},directive(p,o){return o?(u.directives[p]=o,s):u.directives[p]},mount(p,o,i){if(!g){const a=oe(r,f);return a.appContext=u,i===!0?i="svg":i===!1&&(i=void 0),o&&t?t(a,p):e(a,p,i),g=!0,s._container=p,p.__vue_app__=s,es(a.component)||a.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(p,o){return u.provides[p]=o,s},runWithContext(p){fi=s;try{return p()}finally{fi=null}}};return s}}let fi=null;function Kr(e,t){if(tt){let n=tt.provides;const r=tt.parent&&tt.parent.provides;r===n&&(n=tt.provides=Object.create(r)),n[e]=t}}function Tt(e,t,n=!1){const r=tt||et;if(r||fi){const f=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:fi._context.provides;if(f&&e in f)return f[e];if(arguments.length>1)return n&&Re(t)?t.call(r&&r.proxy):t}}function _y(){return!!(tt||et||fi)}function Sy(e,t,n,r=!1){const f={},u={};uo(u,qo,1),e.propsDefaults=Object.create(null),af(e,t,f,u);for(const h in e.propsOptions[0])h in f||(f[h]=void 0);n?e.props=r?f:tl(f):e.type.props?e.props=f:e.props=u,e.attrs=u}function Cy(e,t,n,r){const{props:f,attrs:u,vnode:{patchFlag:h}}=e,g=Le(f),[s]=e.propsOptions;let p=!1;if((r||h>0)&&!(h&16)){if(h&8){const o=e.vnode.dynamicProps;for(let i=0;i<o.length;i++){let a=o[i];if(Vo(e.emitsOptions,a))continue;const c=t[a];if(s)if(Ie(u,a))c!==u[a]&&(u[a]=c,p=!0);else{const l=gt(a);f[l]=aa(s,g,l,c,e,!1)}else c!==u[a]&&(u[a]=c,p=!0)}}}else{af(e,t,f,u)&&(p=!0);let o;for(const i in g)(!t||!Ie(t,i)&&((o=At(i))===i||!Ie(t,o)))&&(s?n&&(n[i]!==void 0||n[o]!==void 0)&&(f[i]=aa(s,g,i,void 0,e,!0)):delete f[i]);if(u!==g)for(const i in u)(!t||!Ie(t,i))&&(delete u[i],p=!0)}p&&Qt(e,"set","$attrs")}function af(e,t,n,r){const[f,u]=e.propsOptions;let h=!1,g;if(t)for(let s in t){if(zr(s))continue;const p=t[s];let o;f&&Ie(f,o=gt(s))?!u||!u.includes(o)?n[o]=p:(g||(g={}))[o]=p:Vo(e.emitsOptions,s)||(!(s in r)||p!==r[s])&&(r[s]=p,h=!0)}if(u){const s=Le(n),p=g||Be;for(let o=0;o<u.length;o++){const i=u[o];n[i]=aa(f,s,i,p[i],e,!Ie(p,i))}}return h}function aa(e,t,n,r,f,u){const h=e[n];if(h!=null){const g=Ie(h,"default");if(g&&r===void 0){const s=h.default;if(h.type!==Function&&!h.skipFactory&&Re(s)){const{propsDefaults:p}=f;if(n in p)r=p[n];else{const o=Yn(f);r=p[n]=s.call(null,t),o()}}else r=s}h[0]&&(u&&!g?r=!1:h[1]&&(r===""||r===At(n))&&(r=!0))}return r}function lf(e,t,n=!1){const r=t.propsCache,f=r.get(e);if(f)return f;const u=e.props,h={},g=[];let s=!1;if(!Re(e)){const o=i=>{s=!0;const[a,c]=lf(i,t,!0);Ze(h,a),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return He(e)&&r.set(e,lr),lr;if(ve(u))for(let o=0;o<u.length;o++){const i=gt(u[o]);Ac(i)&&(h[i]=Be)}else if(u)for(const o in u){const i=gt(o);if(Ac(i)){const a=u[o],c=h[i]=ve(a)||Re(a)?{type:a}:Ze({},a);if(c){const l=Rc(Boolean,c.type),d=Rc(String,c.type);c[0]=l>-1,c[1]=d<0||l<d,(l>-1||Ie(c,"default"))&&g.push(i)}}}const p=[h,g];return He(e)&&r.set(e,p),p}function Ac(e){return e[0]!=="$"}function kc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ec(e,t){return kc(e)===kc(t)}function Rc(e,t){return ve(t)?t.findIndex(n=>Ec(n,e)):Re(t)&&Ec(t,e)?0:-1}const cf=e=>e[0]==="_"||e==="$stable",pl=e=>ve(e)?e.map(Ct):[Ct(e)],Ay=(e,t,n)=>{if(t._n)return t;const r=Ve((...f)=>pl(t(...f)),n);return r._c=!1,r},uf=(e,t,n)=>{const r=e._ctx;for(const f in e){if(cf(f))continue;const u=e[f];if(Re(u))t[f]=Ay(f,u,r);else if(u!=null){const h=pl(u);t[f]=()=>h}}},hf=(e,t)=>{const n=pl(t);e.slots.default=()=>n},ky=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),uo(t,"_",n)):uf(t,e.slots={})}else e.slots={},t&&hf(e,t);uo(e.slots,qo,1)},Ey=(e,t,n)=>{const{vnode:r,slots:f}=e;let u=!0,h=Be;if(r.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(Ze(f,t),!n&&g===1&&delete f._):(u=!t.$stable,uf(t,f)),h=t}else t&&(hf(e,t),h={default:1});if(u)for(const g in f)!cf(g)&&h[g]==null&&delete f[g]};function yo(e,t,n,r,f=!1){if(ve(e)){e.forEach((a,c)=>yo(a,t&&(ve(t)?t[c]:t),n,r,f));return}if(Wn(r)&&!f)return;const u=r.shapeFlag&4?es(r.component)||r.component.proxy:r.el,h=f?null:u,{i:g,r:s}=e,p=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,i=g.setupState;if(p!=null&&p!==s&&(Qe(p)?(o[p]=null,Ie(i,p)&&(i[p]=null)):at(p)&&(p.value=null)),Re(s))Jt(s,g,12,[h,o]);else{const a=Qe(s),c=at(s);if(a||c){const l=()=>{if(e.f){const d=a?Ie(i,s)?i[s]:o[s]:s.value;f?ve(d)&&Ka(d,u):ve(d)?d.includes(u)||d.push(u):a?(o[s]=[u],Ie(i,s)&&(i[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else a?(o[s]=h,Ie(i,s)&&(i[s]=h)):c&&(s.value=h,e.k&&(o[e.k]=h))};h?(l.id=-1,ot(l,n)):l()}}}let hn=!1;const Ry=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",xy=e=>e.namespaceURI.includes("MathML"),Yi=e=>{if(Ry(e))return"svg";if(xy(e))return"mathml"},Xi=e=>e.nodeType===8;function Ty(e){const{mt:t,p:n,o:{patchProp:r,createText:f,nextSibling:u,parentNode:h,remove:g,insert:s,createComment:p}}=e,o=(k,C)=>{if(!C.hasChildNodes()){n(null,k,C),mo(),C._vnode=k;return}hn=!1,i(C.firstChild,k,null,null,null),mo(),C._vnode=k,hn&&console.error("Hydration completed but contains mismatches.")},i=(k,C,S,b,R,L=!1)=>{const E=Xi(k)&&k.data==="[",M=()=>d(k,C,S,b,R,E),{type:$,ref:A,shapeFlag:_,patchFlag:w}=C;let x=k.nodeType;C.el=k,w===-2&&(L=!1,C.dynamicChildren=null);let T=null;switch($){case Gn:x!==3?C.children===""?(s(C.el=f(""),h(k),k),T=k):T=M():(k.data!==C.children&&(hn=!0,k.data=C.children),T=u(k));break;case ht:y(k)?(T=u(k),v(C.el=k.content.firstChild,k,S)):x!==8||E?T=M():T=u(k);break;case Hn:if(E&&(k=u(k),x=k.nodeType),x===1||x===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 E?u(T):T}else M();break;case xe:E?T=l(k,C,S,b,R,L):T=M();break;default:if(_&1)(x!==1||C.type.toLowerCase()!==k.tagName.toLowerCase())&&!y(k)?T=M():T=a(k,C,S,b,R,L);else if(_&6){C.slotScopeIds=R;const O=h(k);if(E?T=m(k):Xi(k)&&k.data==="teleport start"?T=m(k,k.data,"teleport end"):T=u(k),t(C,O,null,S,b,Yi(O),L),Wn(C)){let I;E?(I=oe(xe),I.anchor=T?T.previousSibling:O.lastChild):I=k.nodeType===3?Ke(""):oe("div"),I.el=k,C.component.subTree=I}}else _&64?x!==8?T=M():T=C.type.hydrate(k,C,S,b,R,L,e,c):_&128&&(T=C.type.hydrate(k,C,S,b,Yi(h(k)),R,L,e,i))}return A!=null&&yo(A,null,b,C),T},a=(k,C,S,b,R,L)=>{L=L||!!C.dynamicChildren;const{type:E,props:M,patchFlag:$,shapeFlag:A,dirs:_,transition:w}=C,x=E==="input"||E==="option";if(x||$!==-1){_&&Pt(C,null,S,"created");let T=!1;if(y(k)){T=gf(b,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=k.content.firstChild;T&&w.beforeEnter(I),v(I,k,S),C.el=k=I}if(A&16&&!(M&&(M.innerHTML||M.textContent))){let I=c(k.firstChild,C,k,S,b,R,L);for(;I;){hn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&k.textContent!==C.children&&(hn=!0,k.textContent=C.children);if(M)if(x||!L||$&48)for(const I in M)(x&&(I.endsWith("value")||I==="indeterminate")||yi(I)&&!zr(I)||I[0]===".")&&r(k,I,null,M[I],void 0,void 0,S);else M.onClick&&r(k,"onClick",null,M.onClick,void 0,void 0,S);let O;(O=M&&M.onVnodeBeforeMount)&&yt(O,S,C),_&&Pt(C,null,S,"beforeMount"),((O=M&&M.onVnodeMounted)||_||T)&&Ph(()=>{O&&yt(O,S,C),T&&w.enter(k),_&&Pt(C,null,S,"mounted")},b)}return k.nextSibling},c=(k,C,S,b,R,L,E)=>{E=E||!!C.dynamicChildren;const M=C.children,$=M.length;for(let A=0;A<$;A++){const _=E?M[A]:M[A]=Ct(M[A]);if(k)k=i(k,_,b,R,L,E);else{if(_.type===Gn&&!_.children)continue;hn=!0,n(null,_,S,null,b,R,Yi(S),L)}}return k},l=(k,C,S,b,R,L)=>{const{slotScopeIds:E}=C;E&&(R=R?R.concat(E):E);const M=h(k),$=c(u(k),C,M,S,b,R,L);return $&&Xi($)&&$.data==="]"?u(C.anchor=$):(hn=!0,s(C.anchor=p("]"),M,$),$)},d=(k,C,S,b,R,L)=>{if(hn=!0,C.el=null,L){const $=m(k);for(;;){const A=u(k);if(A&&A!==$)g(A);else break}}const E=u(k),M=h(k);return g(k),n(null,C,M,E,S,b,Yi(M),R),E},m=(k,C="[",S="]")=>{let b=0;for(;k;)if(k=u(k),k&&Xi(k)&&(k.data===C&&b++,k.data===S)){if(b===0)return u(k);b--}return k},v=(k,C,S)=>{const b=C.parentNode;b&&b.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,i]}const ot=Ph;function ff(e){return pf(e)}function df(e){return pf(e,Ty)}function pf(e,t){const n=lh();n.__VUE__=!0;const{insert:r,remove:f,patchProp:u,createElement:h,createText:g,createComment:s,setText:p,setElementText:o,parentNode:i,nextSibling:a,setScopeId:c=bt,insertStaticContent:l}=e,d=(D,B,K,J=null,te=null,ae=null,fe=void 0,ce=null,he=!!B.dynamicChildren)=>{if(D===B)return;D&&!It(D,B)&&(J=U(D),j(D,te,ae,!0),D=null),B.patchFlag===-2&&(he=!1,B.dynamicChildren=null);const{type:se,ref:ge,shapeFlag:Ce}=B;switch(se){case Gn:m(D,B,K,J);break;case ht:v(D,B,K,J);break;case Hn:D==null&&y(B,K,J,fe);break;case xe:A(D,B,K,J,te,ae,fe,ce,he);break;default:Ce&1?S(D,B,K,J,te,ae,fe,ce,he):Ce&6?_(D,B,K,J,te,ae,fe,ce,he):(Ce&64||Ce&128)&&se.process(D,B,K,J,te,ae,fe,ce,he,z)}ge!=null&&te&&yo(ge,D&&D.ref,ae,B||D,!B)},m=(D,B,K,J)=>{if(D==null)r(B.el=g(B.children),K,J);else{const te=B.el=D.el;B.children!==D.children&&p(te,B.children)}},v=(D,B,K,J)=>{D==null?r(B.el=s(B.children||""),K,J):B.el=D.el},y=(D,B,K,J)=>{[D.el,D.anchor]=l(D.children,B,K,J,D.el,D.anchor)},k=({el:D,anchor:B},K,J)=>{let te;for(;D&&D!==B;)te=a(D),r(D,K,J),D=te;r(B,K,J)},C=({el:D,anchor:B})=>{let K;for(;D&&D!==B;)K=a(D),f(D),D=K;f(B)},S=(D,B,K,J,te,ae,fe,ce,he)=>{B.type==="svg"?fe="svg":B.type==="math"&&(fe="mathml"),D==null?b(B,K,J,te,ae,fe,ce,he):E(D,B,te,ae,fe,ce,he)},b=(D,B,K,J,te,ae,fe,ce)=>{let he,se;const{props:ge,shapeFlag:Ce,transition:$e,dirs:q}=D;if(he=D.el=h(D.type,ae,ge&&ge.is,ge),Ce&8?o(he,D.children):Ce&16&&L(D.children,he,null,J,te,As(D,ae),fe,ce),q&&Pt(D,null,J,"created"),R(he,D,D.scopeId,fe,J),ge){for(const de in ge)de!=="value"&&!zr(de)&&u(he,de,null,ge[de],ae,D.children,J,te,Q);"value"in ge&&u(he,"value",null,ge.value,ae),(se=ge.onVnodeBeforeMount)&&yt(se,J,D)}q&&Pt(D,null,J,"beforeMount");const le=gf(te,$e);le&&$e.beforeEnter(he),r(he,B,K),((se=ge&&ge.onVnodeMounted)||le||q)&&ot(()=>{se&&yt(se,J,D),le&&$e.enter(he),q&&Pt(D,null,J,"mounted")},te)},R=(D,B,K,J,te)=>{if(K&&c(D,K),J)for(let ae=0;ae<J.length;ae++)c(D,J[ae]);if(te){let ae=te.subTree;if(B===ae){const fe=te.vnode;R(D,fe,fe.scopeId,fe.slotScopeIds,te.parent)}}},L=(D,B,K,J,te,ae,fe,ce,he=0)=>{for(let se=he;se<D.length;se++){const ge=D[se]=ce?yn(D[se]):Ct(D[se]);d(null,ge,B,K,J,te,ae,fe,ce)}},E=(D,B,K,J,te,ae,fe)=>{const ce=B.el=D.el;let{patchFlag:he,dynamicChildren:se,dirs:ge}=B;he|=D.patchFlag&16;const Ce=D.props||Be,$e=B.props||Be;let q;if(K&&Tn(K,!1),(q=$e.onVnodeBeforeUpdate)&&yt(q,K,B,D),ge&&Pt(B,D,K,"beforeUpdate"),K&&Tn(K,!0),se?M(D.dynamicChildren,se,ce,K,J,As(B,te),ae):fe||I(D,B,ce,null,K,J,As(B,te),ae,!1),he>0){if(he&16)$(ce,B,Ce,$e,K,J,te);else if(he&2&&Ce.class!==$e.class&&u(ce,"class",null,$e.class,te),he&4&&u(ce,"style",Ce.style,$e.style,te),he&8){const le=B.dynamicProps;for(let de=0;de<le.length;de++){const _e=le[de],Ee=Ce[_e],Me=$e[_e];(Me!==Ee||_e==="value")&&u(ce,_e,Ee,Me,te,D.children,K,J,Q)}}he&1&&D.children!==B.children&&o(ce,B.children)}else!fe&&se==null&&$(ce,B,Ce,$e,K,J,te);((q=$e.onVnodeUpdated)||ge)&&ot(()=>{q&&yt(q,K,B,D),ge&&Pt(B,D,K,"updated")},J)},M=(D,B,K,J,te,ae,fe)=>{for(let ce=0;ce<B.length;ce++){const he=D[ce],se=B[ce],ge=he.el&&(he.type===xe||!It(he,se)||he.shapeFlag&70)?i(he.el):K;d(he,se,ge,null,J,te,ae,fe,!0)}},$=(D,B,K,J,te,ae,fe)=>{if(K!==J){if(K!==Be)for(const ce in K)!zr(ce)&&!(ce in J)&&u(D,ce,K[ce],null,fe,B.children,te,ae,Q);for(const ce in J){if(zr(ce))continue;const he=J[ce],se=K[ce];he!==se&&ce!=="value"&&u(D,ce,se,he,fe,B.children,te,ae,Q)}"value"in J&&u(D,"value",K.value,J.value,fe)}},A=(D,B,K,J,te,ae,fe,ce,he)=>{const se=B.el=D?D.el:g(""),ge=B.anchor=D?D.anchor:g("");let{patchFlag:Ce,dynamicChildren:$e,slotScopeIds:q}=B;q&&(ce=ce?ce.concat(q):q),D==null?(r(se,K,J),r(ge,K,J),L(B.children||[],K,ge,te,ae,fe,ce,he)):Ce>0&&Ce&64&&$e&&D.dynamicChildren?(M(D.dynamicChildren,$e,K,te,ae,fe,ce),(B.key!=null||te&&B===te.subTree)&&gl(D,B,!0)):I(D,B,K,ge,te,ae,fe,ce,he)},_=(D,B,K,J,te,ae,fe,ce,he)=>{B.slotScopeIds=ce,D==null?B.shapeFlag&512?te.ctx.activate(B,K,J,fe,he):w(B,K,J,te,ae,fe,he):x(D,B,he)},w=(D,B,K,J,te,ae,fe)=>{const ce=D.component=Sf(D,J,te);if(_i(D)&&(ce.ctx.renderer=z),Af(ce),ce.asyncDep){if(te&&te.registerDep(ce,T),!D.el){const he=ce.subTree=oe(ht);v(null,he,B,K)}}else T(ce,D,B,K,te,ae,fe)},x=(D,B,K)=>{const J=B.component=D.component;if(Fv(D,B,K))if(J.asyncDep&&!J.asyncResolved){O(J,B,K);return}else J.next=B,Rv(J.update),J.effect.dirty=!0,J.update();else B.el=D.el,J.vnode=B},T=(D,B,K,J,te,ae,fe)=>{const ce=()=>{if(D.isMounted){let{next:ge,bu:Ce,u:$e,parent:q,vnode:le}=D;{const Ue=mf(D);if(Ue){ge&&(ge.el=le.el,O(D,ge,fe)),Ue.asyncDep.then(()=>{D.isUnmounted||ce()});return}}let de=ge,_e;Tn(D,!1),ge?(ge.el=le.el,O(D,ge,fe)):ge=le,Ce&&ur(Ce),(_e=ge.props&&ge.props.onVnodeBeforeUpdate)&&yt(_e,q,ge,le),Tn(D,!0);const Ee=to(D),Me=D.subTree;D.subTree=Ee,d(Me,Ee,i(Me.el),U(Me),D,te,ae),ge.el=Ee.el,de===null&&al(D,Ee.el),$e&&ot($e,te),(_e=ge.props&&ge.props.onVnodeUpdated)&&ot(()=>yt(_e,q,ge,le),te)}else{let ge;const{el:Ce,props:$e}=B,{bm:q,m:le,parent:de}=D,_e=Wn(B);if(Tn(D,!1),q&&ur(q),!_e&&(ge=$e&&$e.onVnodeBeforeMount)&&yt(ge,de,B),Tn(D,!0),Ce&&ue){const Ee=()=>{D.subTree=to(D),ue(Ce,D.subTree,D,te,null)};_e?B.type.__asyncLoader().then(()=>!D.isUnmounted&&Ee()):Ee()}else{const Ee=D.subTree=to(D);d(null,Ee,K,J,D,te,ae),B.el=Ee.el}if(le&&ot(le,te),!_e&&(ge=$e&&$e.onVnodeMounted)){const Ee=B;ot(()=>yt(ge,de,Ee),te)}(B.shapeFlag&256||de&&Wn(de.vnode)&&de.vnode.shapeFlag&256)&&D.a&&ot(D.a,te),D.isMounted=!0,B=K=J=null}},he=D.effect=new pr(ce,bt,()=>Uo(se),D.scope),se=D.update=()=>{he.dirty&&he.run()};se.id=D.uid,Tn(D,!0),se()},O=(D,B,K)=>{B.component=D;const J=D.vnode.props;D.vnode=B,D.next=null,Cy(D,B.props,J,K),Ey(D,B.children,K),qn(),vc(D),Jn()},I=(D,B,K,J,te,ae,fe,ce,he=!1)=>{const se=D&&D.children,ge=D?D.shapeFlag:0,Ce=B.children,{patchFlag:$e,shapeFlag:q}=B;if($e>0){if($e&128){P(se,Ce,K,J,te,ae,fe,ce,he);return}else if($e&256){F(se,Ce,K,J,te,ae,fe,ce,he);return}}q&8?(ge&16&&Q(se,te,ae),Ce!==se&&o(K,Ce)):ge&16?q&16?P(se,Ce,K,J,te,ae,fe,ce,he):Q(se,te,ae,!0):(ge&8&&o(K,""),q&16&&L(Ce,K,J,te,ae,fe,ce,he))},F=(D,B,K,J,te,ae,fe,ce,he)=>{D=D||lr,B=B||lr;const se=D.length,ge=B.length,Ce=Math.min(se,ge);let $e;for($e=0;$e<Ce;$e++){const q=B[$e]=he?yn(B[$e]):Ct(B[$e]);d(D[$e],q,K,null,te,ae,fe,ce,he)}se>ge?Q(D,te,ae,!0,!1,Ce):L(B,K,J,te,ae,fe,ce,he,Ce)},P=(D,B,K,J,te,ae,fe,ce,he)=>{let se=0;const ge=B.length;let Ce=D.length-1,$e=ge-1;for(;se<=Ce&&se<=$e;){const q=D[se],le=B[se]=he?yn(B[se]):Ct(B[se]);if(It(q,le))d(q,le,K,null,te,ae,fe,ce,he);else break;se++}for(;se<=Ce&&se<=$e;){const q=D[Ce],le=B[$e]=he?yn(B[$e]):Ct(B[$e]);if(It(q,le))d(q,le,K,null,te,ae,fe,ce,he);else break;Ce--,$e--}if(se>Ce){if(se<=$e){const q=$e+1,le=q<ge?B[q].el:J;for(;se<=$e;)d(null,B[se]=he?yn(B[se]):Ct(B[se]),K,le,te,ae,fe,ce,he),se++}}else if(se>$e)for(;se<=Ce;)j(D[se],te,ae,!0),se++;else{const q=se,le=se,de=new Map;for(se=le;se<=$e;se++){const We=B[se]=he?yn(B[se]):Ct(B[se]);We.key!=null&&de.set(We.key,se)}let _e,Ee=0;const Me=$e-le+1;let Ue=!1,je=0;const De=new Array(Me);for(se=0;se<Me;se++)De[se]=0;for(se=q;se<=Ce;se++){const We=D[se];if(Ee>=Me){j(We,te,ae,!0);continue}let ct;if(We.key!=null)ct=de.get(We.key);else for(_e=le;_e<=$e;_e++)if(De[_e-le]===0&&It(We,B[_e])){ct=_e;break}ct===void 0?j(We,te,ae,!0):(De[ct-le]=se+1,ct>=je?je=ct:Ue=!0,d(We,B[ct],K,null,te,ae,fe,ce,he),Ee++)}const Ne=Ue?Ly(De):lr;for(_e=Ne.length-1,se=Me-1;se>=0;se--){const We=le+se,ct=B[We],Or=We+1<ge?B[We+1].el:J;De[se]===0?d(null,ct,K,Or,te,ae,fe,ce,he):Ue&&(_e<0||se!==Ne[_e]?W(ct,K,Or,2):_e--)}}},W=(D,B,K,J,te=null)=>{const{el:ae,type:fe,transition:ce,children:he,shapeFlag:se}=D;if(se&6){W(D.component.subTree,B,K,J);return}if(se&128){D.suspense.move(B,K,J);return}if(se&64){fe.move(D,B,K,z);return}if(fe===xe){r(ae,B,K);for(let Ce=0;Ce<he.length;Ce++)W(he[Ce],B,K,J);r(D.anchor,B,K);return}if(fe===Hn){k(D,B,K);return}if(J!==2&&se&1&&ce)if(J===0)ce.beforeEnter(ae),r(ae,B,K),ot(()=>ce.enter(ae),te);else{const{leave:Ce,delayLeave:$e,afterLeave:q}=ce,le=()=>r(ae,B,K),de=()=>{Ce(ae,()=>{le(),q&&q()})};$e?$e(ae,le,de):de()}else r(ae,B,K)},j=(D,B,K,J=!1,te=!1)=>{const{type:ae,props:fe,ref:ce,children:he,dynamicChildren:se,shapeFlag:ge,patchFlag:Ce,dirs:$e}=D;if(ce!=null&&yo(ce,null,K,D,!0),ge&256){B.ctx.deactivate(D);return}const q=ge&1&&$e,le=!Wn(D);let de;if(le&&(de=fe&&fe.onVnodeBeforeUnmount)&&yt(de,B,D),ge&6)G(D.component,K,J);else{if(ge&128){D.suspense.unmount(K,J);return}q&&Pt(D,null,B,"beforeUnmount"),ge&64?D.type.remove(D,B,K,te,z,J):se&&(ae!==xe||Ce>0&&Ce&64)?Q(se,B,K,!1,!0):(ae===xe&&Ce&384||!te&&ge&16)&&Q(he,B,K),J&&H(D)}(le&&(de=fe&&fe.onVnodeUnmounted)||q)&&ot(()=>{de&&yt(de,B,D),q&&Pt(D,null,B,"unmounted")},K)},H=D=>{const{type:B,el:K,anchor:J,transition:te}=D;if(B===xe){V(K,J);return}if(B===Hn){C(D);return}const ae=()=>{f(K),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(D.shapeFlag&1&&te&&!te.persisted){const{leave:fe,delayLeave:ce}=te,he=()=>fe(K,ae);ce?ce(D.el,ae,he):he()}else ae()},V=(D,B)=>{let K;for(;D!==B;)K=a(D),f(D),D=K;f(B)},G=(D,B,K)=>{const{bum:J,scope:te,update:ae,subTree:fe,um:ce}=D;J&&ur(J),te.stop(),ae&&(ae.active=!1,j(fe,D,B,K)),ce&&ot(ce,B),ot(()=>{D.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Q=(D,B,K,J=!1,te=!1,ae=0)=>{for(let fe=ae;fe<D.length;fe++)j(D[fe],B,K,J,te)},U=D=>D.shapeFlag&6?U(D.component.subTree):D.shapeFlag&128?D.suspense.next():a(D.anchor||D.el);let Z=!1;const Y=(D,B,K)=>{D==null?B._vnode&&j(B._vnode,null,null,!0):d(B._vnode||null,D,B,null,null,null,K),Z||(Z=!0,vc(),mo(),Z=!1),B._vnode=D},z={p:d,um:j,m:W,r:H,mt:w,mc:L,pc:I,pbc:M,n:U,o:e};let ee,ue;return t&&([ee,ue]=t(z)),{render:Y,hydrate:ee,createApp:$y(Y,ee)}}function As({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gl(e,t,n=!1){const r=e.children,f=t.children;if(ve(r)&&ve(f))for(let u=0;u<r.length;u++){const h=r[u];let g=f[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=f[u]=yn(f[u]),g.el=h.el),n||gl(h,g)),g.type===Gn&&(g.el=h.el)}}function Ly(e){const t=e.slice(),n=[0];let r,f,u,h,g;const s=e.length;for(r=0;r<s;r++){const p=e[r];if(p!==0){if(f=n[n.length-1],e[f]<p){t[r]=f,n.push(r);continue}for(u=0,h=n.length-1;u<h;)g=u+h>>1,e[n[g]]<p?u=g+1:h=g;p<e[n[u]]&&(u>0&&(t[r]=n[u-1]),n[u]=r)}}for(u=n.length,h=n[u-1];u-- >0;)n[u]=h,h=t[h];return n}function mf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mf(t)}const My=e=>e.__isTeleport,Yr=e=>e&&(e.disabled||e.disabled===""),xc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Tc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,la=(e,t)=>{const n=e&&e.to;return Qe(n)?t?t(n):null:n},Oy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,f,u,h,g,s,p){const{mc:o,pc:i,pbc:a,o:{insert:c,querySelector:l,createText:d,createComment:m}}=p,v=Yr(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const S=t.el=d(""),b=t.anchor=d("");c(S,n,r),c(b,n,r);const R=t.target=la(t.props,l),L=t.targetAnchor=d("");R&&(c(L,R),h==="svg"||xc(R)?h="svg":(h==="mathml"||Tc(R))&&(h="mathml"));const E=(M,$)=>{y&16&&o(k,M,$,f,u,h,g,s)};v?E(n,b):R&&E(R,L)}else{t.el=e.el;const S=t.anchor=e.anchor,b=t.target=e.target,R=t.targetAnchor=e.targetAnchor,L=Yr(e.props),E=L?n:b,M=L?S:R;if(h==="svg"||xc(b)?h="svg":(h==="mathml"||Tc(b))&&(h="mathml"),C?(a(e.dynamicChildren,C,E,f,u,h,g),gl(e,t,!0)):s||i(e,t,E,M,f,u,h,g,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zi(t,n,S,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=la(t.props,l);$&&Zi(t,$,null,p,0)}else L&&Zi(t,b,R,p,1)}vf(t)},remove(e,t,n,r,{um:f,o:{remove:u}},h){const{shapeFlag:g,children:s,anchor:p,targetAnchor:o,target:i,props:a}=e;if(i&&u(o),h&&u(p),g&16){const c=h||!Yr(a);for(let l=0;l<s.length;l++){const d=s[l];f(d,t,n,c,!!d.dynamicChildren)}}},move:Zi,hydrate:Iy};function Zi(e,t,n,{o:{insert:r},m:f},u=2){u===0&&r(e.targetAnchor,t,n);const{el:h,anchor:g,shapeFlag:s,children:p,props:o}=e,i=u===2;if(i&&r(h,t,n),(!i||Yr(o))&&s&16)for(let a=0;a<p.length;a++)f(p[a],t,n,2);i&&r(g,t,n)}function Iy(e,t,n,r,f,u,{o:{nextSibling:h,parentNode:g,querySelector:s}},p){const o=t.target=la(t.props,s);if(o){const i=o._lpa||o.firstChild;if(t.shapeFlag&16)if(Yr(t.props))t.anchor=p(h(e),t,g(e),n,r,f,u),t.targetAnchor=i;else{t.anchor=h(e);let a=i;for(;a;)if(a=h(a),a&&a.nodeType===8&&a.data==="teleport anchor"){t.targetAnchor=a,o._lpa=t.targetAnchor&&h(t.targetAnchor);break}p(i,t,o,n,r,f,u)}vf(t)}return t.anchor&&h(t.anchor)}const Fy=Oy;function vf(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 xe=Symbol.for("v-fgt"),Gn=Symbol.for("v-txt"),ht=Symbol.for("v-cmt"),Hn=Symbol.for("v-stc"),Xr=[];let wt=null;function X(e=!1){Xr.push(wt=e?null:[])}function yf(){Xr.pop(),wt=Xr[Xr.length-1]||null}let Kn=1;function ca(e){Kn+=e}function bf(e){return e.dynamicChildren=Kn>0?wt||lr:null,yf(),Kn>0&&wt&&wt.push(e),e}function ie(e,t,n,r,f,u){return bf(N(e,t,n,r,f,u,!0))}function be(e,t,n,r,f){return bf(oe(e,t,n,r,f,!0))}function En(e){return e?e.__v_isVNode===!0:!1}function It(e,t){return e.type===t.type&&e.key===t.key}function Ny(e){}const qo="__vInternal",wf=({key:e})=>e??null,no=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qe(e)||at(e)||Re(e)?{i:et,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,f=null,u=e===xe?0:1,h=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wf(t),ref:t&&no(t),scopeId:zo,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:r,dynamicProps:f,dynamicChildren:null,appContext:null,ctx:et};return g?(ml(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Qe(n)?8:16),Kn>0&&!h&&wt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&wt.push(s),s}const oe=Dy;function Dy(e,t=null,n=null,r=0,f=null,u=!1){if((!e||e===Nh)&&(e=ht),En(e)){const g=Vt(e,t,!0);return n&&ml(g,n),Kn>0&&!u&&wt&&(g.shapeFlag&6?wt[wt.indexOf(e)]=g:wt.push(g)),g.patchFlag|=-2,g}if(zy(e)&&(e=e.__vccOpts),t){t=$f(t);let{class:g,style:s}=t;g&&!Qe(g)&&(t.class=kr(g)),He(s)&&(nl(s)&&!ve(s)&&(s=Ze({},s)),t.style=bi(s))}const h=Qe(e)?1:Dh(e)?128:My(e)?64:He(e)?4:Re(e)?2:0;return N(e,t,n,r,f,h,u,!0)}function $f(e){return e?nl(e)||qo in e?Ze({},e):e:null}function Vt(e,t,n=!1){const{props:r,ref:f,patchFlag:u,children:h}=e,g=t?_f(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&wf(g),ref:t&&t.ref?n&&f?ve(f)?f.concat(no(t)):[f,no(t)]:no(t):f,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:h,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?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&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ke(e=" ",t=0){return oe(Gn,null,e,t)}function Jo(e,t){const n=oe(Hn,null,e);return n.staticCount=t,n}function pe(e="",t=!1){return t?(X(),be(ht,null,e)):oe(ht,null,e)}function Ct(e){return e==null||typeof e=="boolean"?oe(ht):ve(e)?oe(xe,null,e.slice()):typeof e=="object"?yn(e):oe(Gn,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function ml(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(r&65){const f=t.default;f&&(f._c&&(f._d=!1),ml(e,f()),f._c&&(f._d=!0));return}else{n=32;const f=t._;!f&&!(qo in t)?t._ctx=et:f===3&&et&&(et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Re(t)?(t={default:t,_ctx:et},n=32):(t=String(t),r&64?(n=16,t=[Ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function _f(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const f in r)if(f==="class")t.class!==r.class&&(t.class=kr([t.class,r.class]));else if(f==="style")t.style=bi([t.style,r.style]);else if(yi(f)){const u=t[f],h=r[f];h&&u!==h&&!(ve(u)&&u.includes(h))&&(t[f]=u?[].concat(u,h):h)}else f!==""&&(t[f]=r[f])}return t}function yt(e,t,n,r=null){kt(e,t,7,[n,r])}const Py=sf();let By=0;function Sf(e,t,n){const r=e.type,f=(t?t.appContext:e.appContext)||Py,u={uid:By++,vnode:e,type:r,parent:t,appContext:f,root:null,next:null,subTree:null,effect:null,update:null,scope:new Za(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(f.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lf(r,f),emitsOptions:Fh(r,f),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:r.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=Tv.bind(null,u),e.ce&&e.ce(u),u}let tt=null;const Ot=()=>tt||et;let bo,ua;{const e=lh(),t=(n,r)=>{let f;return(f=e[n])||(f=e[n]=[]),f.push(r),u=>{f.length>1?f.forEach(h=>h(u)):f[0](u)}};bo=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),ua=t("__VUE_SSR_SETTERS__",n=>Si=n)}const Yn=e=>{const t=tt;return bo(e),e.scope.on(),()=>{e.scope.off(),bo(t)}},ha=()=>{tt&&tt.scope.off(),bo(null)};function Cf(e){return e.vnode.shapeFlag&4}let Si=!1;function Af(e,t=!1){t&&ua(t);const{props:n,children:r}=e.vnode,f=Cf(e);Sy(e,n,f,t),ky(e,r);const u=f?Wy(e,t):void 0;return t&&ua(!1),u}function Wy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bo(new Proxy(e.ctx,ia));const{setup:r}=n;if(r){const f=e.setupContext=r.length>1?Ef(e):null,u=Yn(e);qn();const h=Jt(r,e,0,[e.props,f]);if(Jn(),u(),Ya(h)){if(h.then(ha,ha),t)return h.then(g=>{fa(e,g,t)}).catch(g=>{er(g,e,0)});e.asyncDep=h}else fa(e,h,t)}else kf(e,t)}function fa(e,t,n){Re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(e.setupState=ol(t)),kf(e,n)}let wo,da;function Hy(e){wo=e,da=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ty))}}const Uy=()=>!wo;function kf(e,t,n){const r=e.type;if(!e.render){if(!t&&wo&&!r.render){const f=r.template||dl(e).template;if(f){const{isCustomElement:u,compilerOptions:h}=e.appContext.config,{delimiters:g,compilerOptions:s}=r,p=Ze(Ze({isCustomElement:u,delimiters:g},h),s);r.render=wo(f,p)}}e.render=r.render||bt,da&&da(e)}{const f=Yn(e);qn();try{gy(e)}finally{Jn(),f()}}}function Vy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $t(e,"get","$attrs"),t[n]}}))}function Ef(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Vy(e)},slots:e.slots,emit:e.emit,expose:t}}function es(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ol(Bo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Gr)return Gr[n](e)},has(t,n){return n in t||n in Gr}}))}function pa(e,t=!0){return Re(e)?e.displayName||e.name:e.name||t&&e.__name}function zy(e){return Re(e)&&"__vccOpts"in e}const ke=(e,t)=>fv(e,t,Si);function jy(e,t,n=Be){const r=Ot(),f=gt(t),u=At(t),h=Wo((s,p)=>{let o;return Vh(()=>{const i=e[t];Nt(o,i)&&(o=i,p())}),{get(){return s(),n.get?n.get(o):o},set(i){const a=r.vnode.props;!(a&&(t in a||f in a||u in a)&&(`onUpdate:${t}`in a||`onUpdate:${f}`in a||`onUpdate:${u}`in a))&&Nt(i,o)&&(o=i,p()),r.emit(`update:${t}`,n.set?n.set(i):i)}}}),g=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return h[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?e[g]||{}:h,done:!1}:{done:!0}}}},h}function xr(e,t,n){const r=arguments.length;return r===2?He(t)&&!ve(t)?En(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&En(n)&&(n=[n]),oe(e,t,n))}function Gy(){}function Ky(e,t,n,r){const f=n[r];if(f&&Rf(f,e))return f;const u=t();return u.memo=e.slice(),n[r]=u}function Rf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Nt(n[r],t[r]))return!1;return Kn>0&&wt&&wt.push(e),!0}const xf="3.4.13",Yy=bt,Xy=Av,Zy=nr,Qy=Ih,qy={createComponentInstance:Sf,setupComponent:Af,renderComponentRoot:to,setCurrentRenderingInstance:ci,isVNode:En,normalizeVNode:Ct},Jy=qy,e0=null,t0=null,n0=null;/**
775
+ * @vue/runtime-dom v3.4.13
776
776
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
777
777
  * @license MIT
778
- **/const r0="http://www.w3.org/2000/svg",i0="http://www.w3.org/1998/Math/MathML",bn=typeof document<"u"?document:null,Lc=bn&&bn.createElement("template"),o0={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const f=t==="svg"?bn.createElementNS(r0,e):t==="mathml"?bn.createElementNS(i0,e):bn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&f.setAttribute("multiple",r.multiple),f},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,r,f,u){const h=n?n.previousSibling:t.lastChild;if(f&&(f===u||f.nextSibling))for(;t.insertBefore(f.cloneNode(!0),n),!(f===u||!(f=f.nextSibling)););else{Lc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const g=Lc.content;if(r==="svg"||r==="mathml"){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[h?h.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fn="transition",Ir="animation",mr=Symbol("_vtc"),ml=(e,{slots:t})=>xr(jh,Lf(e),t);ml.displayName="Transition";const Tf={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},s0=ml.props=Ke({},hl,Tf),Ln=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Mc=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Lf(e){const t={};for(const A in e)A in Tf||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:f,enterFromClass:u=`${n}-enter-from`,enterActiveClass:h=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:p=h,appearToClass:o=g,leaveFromClass:i=`${n}-leave-from`,leaveActiveClass:a=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,l=a0(f),d=l&&l[0],m=l&&l[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:S,onBeforeAppear:b=v,onAppear:R=y,onAppearCancelled:L=k}=t,E=(A,_,w)=>{gn(A,_?o:g),gn(A,_?p:h),w&&w()},M=(A,_)=>{A._isLeaving=!1,gn(A,i),gn(A,c),gn(A,a),_&&_()},$=A=>(_,w)=>{const x=A?R:y,T=()=>E(_,A,w);Ln(x,[_,T]),Oc(()=>{gn(_,A?s:u),Kt(_,A?o:g),Mc(x)||Ic(_,r,d,T)})};return Ke(t,{onBeforeEnter(A){Ln(v,[A]),Kt(A,u),Kt(A,h)},onBeforeAppear(A){Ln(b,[A]),Kt(A,s),Kt(A,p)},onEnter:$(!1),onAppear:$(!0),onLeave(A,_){A._isLeaving=!0;const w=()=>M(A,_);Kt(A,i),Of(),Kt(A,a),Oc(()=>{A._isLeaving&&(gn(A,i),Kt(A,c),Mc(C)||Ic(A,r,m,w))}),Ln(C,[A,w])},onEnterCancelled(A){E(A,!1),Ln(k,[A])},onAppearCancelled(A){E(A,!0),Ln(L,[A])},onLeaveCancelled(A){M(A),Ln(S,[A])}})}function a0(e){if(e==null)return null;if(He(e))return[As(e.enter),As(e.leave)];{const t=As(e);return[t,t]}}function As(e){return ho(e)}function Kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[mr]||(e[mr]=new Set)).add(t)}function gn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[mr];n&&(n.delete(t),n.size||(e[mr]=void 0))}function Oc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let l0=0;function Ic(e,t,n,r){const f=e._endId=++l0,u=()=>{f===e._endId&&r()};if(n)return setTimeout(u,n);const{type:h,timeout:g,propCount:s}=Mf(e,t);if(!h)return r();const p=h+"end";let o=0;const i=()=>{e.removeEventListener(p,a),u()},a=c=>{c.target===e&&++o>=s&&i()};setTimeout(()=>{o<s&&i()},g+1),e.addEventListener(p,a)}function Mf(e,t){const n=window.getComputedStyle(e),r=l=>(n[l]||"").split(", "),f=r(`${fn}Delay`),u=r(`${fn}Duration`),h=Fc(f,u),g=r(`${Ir}Delay`),s=r(`${Ir}Duration`),p=Fc(g,s);let o=null,i=0,a=0;t===fn?h>0&&(o=fn,i=h,a=u.length):t===Ir?p>0&&(o=Ir,i=p,a=s.length):(i=Math.max(h,p),o=i>0?h>p?fn:Ir:null,a=o?o===fn?u.length:s.length:0);const c=o===fn&&/\b(transform|all)(,|$)/.test(r(`${fn}Property`).toString());return{type:o,timeout:i,propCount:a,hasTransform:c}}function Fc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Nc(n)+Nc(e[r])))}function Nc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Of(){return document.body.offsetHeight}function c0(e,t,n){const r=e[mr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vl=Symbol("_vod"),If={beforeMount(e,{value:t},{transition:n}){e[vl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Fr(e,!0),r.enter(e)):r.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[vl]:"none"}function u0(){If.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ff=Symbol("");function h0(e){const t=Ot();if(!t)return;const n=t.ut=(f=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>ga(u,f))},r=()=>{const f=e(t.proxy);pa(t.subTree,f),n(f)};Uh(r),Xe(()=>{const f=new MutationObserver(r);f.observe(t.subTree.el.parentNode,{childList:!0}),Zo(()=>f.disconnect())})}function pa(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{pa(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ga(e.el,t);else if(e.type===xe)e.children.forEach(n=>pa(n,t));else if(e.type===Hn){let{el:n,anchor:r}=e;for(;n&&(ga(n,t),n!==r);)n=n.nextSibling}}function ga(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const f in t)n.setProperty(`--${f}`,t[f]),r+=`--${f}: ${t[f]};`;n[Ff]=r}}function f0(e,t,n){const r=e.style,f=r.display,u=Ye(n);if(n&&!u){if(t&&!Ye(t))for(const h in t)n[h]==null&&ma(r,h,"");for(const h in n)ma(r,h,n[h])}else if(u){if(t!==n){const h=r[Ff];h&&(n+=";"+h),r.cssText=n}}else t&&e.removeAttribute("style");vl in e&&(r.display=f)}const Dc=/\s*!important$/;function ma(e,t,n){if(ve(n))n.forEach(r=>ma(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=d0(e,t);Dc.test(n)?e.setProperty(At(r),n.replace(Dc,""),"important"):e[r]=n}}const Pc=["Webkit","Moz","ms"],ks={};function d0(e,t){const n=ks[t];if(n)return n;let r=gt(t);if(r!=="filter"&&r in e)return ks[t]=r;r=Ar(r);for(let f=0;f<Pc.length;f++){const u=Pc[f]+r;if(u in e)return ks[t]=u}return t}const Bc="http://www.w3.org/1999/xlink";function p0(e,t,n,r,f){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bc,t.slice(6,t.length)):e.setAttributeNS(Bc,t,n);else{const u=Hm(t);n==null||u&&!ch(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function g0(e,t,n,r,f,u,h){if(t==="innerHTML"||t==="textContent"){r&&h(r,f,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const p=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";p!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=ch(n):n==null&&p==="string"?(n="",s=!0):p==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Yt(e,t,n,r){e.addEventListener(t,n,r)}function m0(e,t,n,r){e.removeEventListener(t,n,r)}const Wc=Symbol("_vei");function v0(e,t,n,r,f=null){const u=e[Wc]||(e[Wc]={}),h=u[t];if(r&&h)h.value=r;else{const[g,s]=y0(t);if(r){const p=u[t]=$0(r,f);Yt(e,g,p,s)}else h&&(m0(e,g,h,s),u[t]=void 0)}}const Hc=/(?:Once|Passive|Capture)$/;function y0(e){let t;if(Hc.test(e)){t={};let r;for(;r=e.match(Hc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let Es=0;const b0=Promise.resolve(),w0=()=>Es||(b0.then(()=>Es=0),Es=Date.now());function $0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(_0(r,n.value),t,5,[r])};return n.value=e,n.attached=w0(),n}function _0(e,t){if(ve(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>f=>!f._stopped&&r&&r(f))}else return t}const Uc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,S0=(e,t,n,r,f,u,h,g,s)=>{const p=f==="svg";t==="class"?c0(e,r,p):t==="style"?f0(e,n,r):yi(t)?ja(t)||v0(e,t,n,r,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):C0(e,t,r,p))?g0(e,t,r,u,h,g,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),p0(e,t,r,p))};function C0(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uc(t)&&Re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const f=e.tagName;if(f==="IMG"||f==="VIDEO"||f==="CANVAS"||f==="SOURCE")return!1}return Uc(t)&&Ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Nf(e,t){const n=be(e);class r extends es{constructor(u){super(n,u,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const A0=e=>Nf(e,Kf),k0=typeof HTMLElement<"u"?HTMLElement:class{};class es extends k0{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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),wi(()=>{this._connected||(va(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const f of r)this._setAttr(f.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,f=!1)=>{const{props:u,styles:h}=r;let g;if(u&&!ve(u))for(const s in u){const p=u[s];(p===Number||p&&p.type===Number)&&(s in this._props&&(this._props[s]=ho(this._props[s])),(g||(g=Object.create(null)))[gt(s)]=!0)}this._numberProps=g,f&&this._resolveProps(r),this._applyStyles(h),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ve(n)?n:Object.keys(n||{});for(const f of Object.keys(this))f[0]!=="_"&&r.includes(f)&&this._setProp(f,this[f],!0,!1);for(const f of r.map(gt))Object.defineProperty(this,f,{get(){return this._getProp(f)},set(u){this._setProp(f,u)}})}_setAttr(t){let n=this.getAttribute(t);const r=gt(t);this._numberProps&&this._numberProps[r]&&(n=ho(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,f=!0){n!==this._props[t]&&(this._props[t]=n,f&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){va(this._createVNode(),this.shadowRoot)}_createVNode(){const t=se(this._def,Ke({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(u,h)=>{this.dispatchEvent(new CustomEvent(u,{detail:h}))};n.emit=(u,...h)=>{r(u,h),At(u)!==u&&r(At(u),h)};let f=this;for(;f=f&&(f.parentNode||f.host);)if(f instanceof es){n.parent=f._instance,n.provides=f._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function E0(e="$style"){{const t=Ot();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const r=n[e];return r||Be}}const Df=new WeakMap,Pf=new WeakMap,wo=Symbol("_moveCb"),Vc=Symbol("_enterCb"),Bf={name:"TransitionGroup",props:Ke({},s0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ot(),r=ul();let f,u;return Xo(()=>{if(!f.length)return;const h=e.moveClass||`${e.name||"v"}-move`;if(!O0(f[0].el,n.vnode.el,h))return;f.forEach(T0),f.forEach(L0);const g=f.filter(M0);Of(),g.forEach(s=>{const p=s.el,o=p.style;Kt(p,h),o.transform=o.webkitTransform=o.transitionDuration="";const i=p[wo]=a=>{a&&a.target!==p||(!a||/transform$/.test(a.propertyName))&&(p.removeEventListener("transitionend",i),p[wo]=null,gn(p,h))};p.addEventListener("transitionend",i)})}),()=>{const h=Le(e),g=Lf(h);let s=h.tag||xe;f=u,u=t.default?Ko(t.default()):[];for(let p=0;p<u.length;p++){const o=u[p];o.key!=null&&jn(o,gr(o,g,r,n))}if(f)for(let p=0;p<f.length;p++){const o=f[p];jn(o,gr(o,g,r,n)),Df.set(o,o.el.getBoundingClientRect())}return se(s,null,u)}}},R0=e=>delete e.mode;Bf.props;const x0=Bf;function T0(e){const t=e.el;t[wo]&&t[wo](),t[Vc]&&t[Vc]()}function L0(e){Pf.set(e,e.el.getBoundingClientRect())}function M0(e){const t=Df.get(e),n=Pf.get(e),r=t.left-n.left,f=t.top-n.top;if(r||f){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${r}px,${f}px)`,u.transitionDuration="0s",e}}function O0(e,t,n){const r=e.cloneNode(),f=e[mr];f&&f.forEach(g=>{g.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&r.classList.add(g)),r.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(r);const{hasTransform:h}=Mf(r);return u.removeChild(r),h}const Rn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>ur(t,n):t};function I0(e){e.target.composing=!0}function zc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lt=Symbol("_assign"),Xn={created(e,{modifiers:{lazy:t,trim:n,number:r}},f){e[Lt]=Rn(f);const u=r||f.props&&f.props.type==="number";Yt(e,t?"change":"input",h=>{if(h.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=uo(g)),e[Lt](g)}),n&&Yt(e,"change",()=>{e.value=e.value.trim()}),t||(Yt(e,"compositionstart",I0),Yt(e,"compositionend",zc),Yt(e,"change",zc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:f}},u){if(e[Lt]=Rn(u),e.composing)return;const h=f||e.type==="number"?uo(e.value):e.value,g=t??"";h!==g&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===g)||(e.value=g))}},yl={deep:!0,created(e,t,n){e[Lt]=Rn(n),Yt(e,"change",()=>{const r=e._modelValue,f=vr(e),u=e.checked,h=e[Lt];if(ve(r)){const g=Oo(r,f),s=g!==-1;if(u&&!s)h(r.concat(f));else if(!u&&s){const p=[...r];p.splice(g,1),h(p)}}else if(qn(r)){const g=new Set(r);u?g.add(f):g.delete(f),h(g)}else h(Hf(e,u))})},mounted:jc,beforeUpdate(e,t,n){e[Lt]=Rn(n),jc(e,t,n)}};function jc(e,{value:t,oldValue:n},r){e._modelValue=t,ve(t)?e.checked=Oo(t,r.props.value)>-1:qn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=kn(t,Hf(e,!0)))}const bl={created(e,{value:t},n){e.checked=kn(t,n.props.value),e[Lt]=Rn(n),Yt(e,"change",()=>{e[Lt](vr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Lt]=Rn(r),t!==n&&(e.checked=kn(t,r.props.value))}},Wf={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const f=qn(t);Yt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,h=>h.selected).map(h=>n?uo(vr(h)):vr(h));e[Lt](e.multiple?f?new Set(u):u:u[0])}),e[Lt]=Rn(r)},mounted(e,{value:t}){Gc(e,t)},beforeUpdate(e,t,n){e[Lt]=Rn(n)},updated(e,{value:t}){Gc(e,t)}};function Gc(e,t){const n=e.multiple;if(!(n&&!ve(t)&&!qn(t))){for(let r=0,f=e.options.length;r<f;r++){const u=e.options[r],h=vr(u);if(n)ve(t)?u.selected=Oo(t,h)>-1:u.selected=t.has(h);else if(kn(vr(u),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vr(e){return"_value"in e?e._value:e.value}function Hf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uf={created(e,t,n){Zi(e,t,n,null,"created")},mounted(e,t,n){Zi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Zi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Zi(e,t,n,r,"updated")}};function Vf(e,t){switch(e){case"SELECT":return Wf;case"TEXTAREA":return Xn;default:switch(t){case"checkbox":return yl;case"radio":return bl;default:return Xn}}}function Zi(e,t,n,r,f){const h=Vf(e.tagName,n.props&&n.props.type)[f];h&&h(e,t,n,r)}function F0(){Xn.getSSRProps=({value:e})=>({value:e}),bl.getSSRProps=({value:e},t)=>{if(t.props&&kn(t.props.value,e))return{checked:!0}},yl.getSSRProps=({value:e},t)=>{if(ve(e)){if(t.props&&Oo(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}},Uf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Vf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const N0=["ctrl","shift","alt","meta"],D0={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)=>N0.some(n=>e[`${n}Key`]&&!t.includes(n))},P0=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(f,...u)=>{for(let h=0;h<t.length;h++){const g=D0[t[h]];if(g&&g(f,t))return}return e(f,...u)})},B0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},W0=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=f=>{if(!("key"in f))return;const u=At(f.key);if(t.some(h=>h===u||B0[h]===u))return e(f)})},zf=Ke({patchProp:S0},o0);let Zr,Kc=!1;function jf(){return Zr||(Zr=ff(zf))}function Gf(){return Zr=Kc?Zr:df(zf),Kc=!0,Zr}const va=(...e)=>{jf().render(...e)},Kf=(...e)=>{Gf().hydrate(...e)},Yf=(...e)=>{const t=jf().createApp(...e),{mount:n}=t;return t.mount=r=>{const f=Zf(r);if(!f)return;const u=t._component;!Re(u)&&!u.render&&!u.template&&(u.template=f.innerHTML),f.innerHTML="";const h=n(f,!1,Xf(f));return f instanceof Element&&(f.removeAttribute("v-cloak"),f.setAttribute("data-v-app","")),h},t},H0=(...e)=>{const t=Gf().createApp(...e),{mount:n}=t;return t.mount=r=>{const f=Zf(r);if(f)return n(f,!0,Xf(f))},t};function Xf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zf(e){return Ye(e)?document.querySelector(e):e}let Yc=!1;const U0=()=>{Yc||(Yc=!0,F0(),u0())};/**
779
- * vue v3.4.11
778
+ **/const r0="http://www.w3.org/2000/svg",i0="http://www.w3.org/1998/Math/MathML",bn=typeof document<"u"?document:null,Lc=bn&&bn.createElement("template"),o0={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const f=t==="svg"?bn.createElementNS(r0,e):t==="mathml"?bn.createElementNS(i0,e):bn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&f.setAttribute("multiple",r.multiple),f},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,r,f,u){const h=n?n.previousSibling:t.lastChild;if(f&&(f===u||f.nextSibling))for(;t.insertBefore(f.cloneNode(!0),n),!(f===u||!(f=f.nextSibling)););else{Lc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const g=Lc.content;if(r==="svg"||r==="mathml"){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[h?h.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fn="transition",Ir="animation",mr=Symbol("_vtc"),vl=(e,{slots:t})=>xr(jh,Lf(e),t);vl.displayName="Transition";const Tf={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},s0=vl.props=Ze({},fl,Tf),Ln=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Mc=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Lf(e){const t={};for(const A in e)A in Tf||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:f,enterFromClass:u=`${n}-enter-from`,enterActiveClass:h=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:p=h,appearToClass:o=g,leaveFromClass:i=`${n}-leave-from`,leaveActiveClass:a=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,l=a0(f),d=l&&l[0],m=l&&l[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:S,onBeforeAppear:b=v,onAppear:R=y,onAppearCancelled:L=k}=t,E=(A,_,w)=>{gn(A,_?o:g),gn(A,_?p:h),w&&w()},M=(A,_)=>{A._isLeaving=!1,gn(A,i),gn(A,c),gn(A,a),_&&_()},$=A=>(_,w)=>{const x=A?R:y,T=()=>E(_,A,w);Ln(x,[_,T]),Oc(()=>{gn(_,A?s:u),Kt(_,A?o:g),Mc(x)||Ic(_,r,d,T)})};return Ze(t,{onBeforeEnter(A){Ln(v,[A]),Kt(A,u),Kt(A,h)},onBeforeAppear(A){Ln(b,[A]),Kt(A,s),Kt(A,p)},onEnter:$(!1),onAppear:$(!0),onLeave(A,_){A._isLeaving=!0;const w=()=>M(A,_);Kt(A,i),Of(),Kt(A,a),Oc(()=>{A._isLeaving&&(gn(A,i),Kt(A,c),Mc(C)||Ic(A,r,m,w))}),Ln(C,[A,w])},onEnterCancelled(A){E(A,!1),Ln(k,[A])},onAppearCancelled(A){E(A,!0),Ln(L,[A])},onLeaveCancelled(A){M(A),Ln(S,[A])}})}function a0(e){if(e==null)return null;if(He(e))return[ks(e.enter),ks(e.leave)];{const t=ks(e);return[t,t]}}function ks(e){return fo(e)}function Kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[mr]||(e[mr]=new Set)).add(t)}function gn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[mr];n&&(n.delete(t),n.size||(e[mr]=void 0))}function Oc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let l0=0;function Ic(e,t,n,r){const f=e._endId=++l0,u=()=>{f===e._endId&&r()};if(n)return setTimeout(u,n);const{type:h,timeout:g,propCount:s}=Mf(e,t);if(!h)return r();const p=h+"end";let o=0;const i=()=>{e.removeEventListener(p,a),u()},a=c=>{c.target===e&&++o>=s&&i()};setTimeout(()=>{o<s&&i()},g+1),e.addEventListener(p,a)}function Mf(e,t){const n=window.getComputedStyle(e),r=l=>(n[l]||"").split(", "),f=r(`${fn}Delay`),u=r(`${fn}Duration`),h=Fc(f,u),g=r(`${Ir}Delay`),s=r(`${Ir}Duration`),p=Fc(g,s);let o=null,i=0,a=0;t===fn?h>0&&(o=fn,i=h,a=u.length):t===Ir?p>0&&(o=Ir,i=p,a=s.length):(i=Math.max(h,p),o=i>0?h>p?fn:Ir:null,a=o?o===fn?u.length:s.length:0);const c=o===fn&&/\b(transform|all)(,|$)/.test(r(`${fn}Property`).toString());return{type:o,timeout:i,propCount:a,hasTransform:c}}function Fc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Nc(n)+Nc(e[r])))}function Nc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Of(){return document.body.offsetHeight}function c0(e,t,n){const r=e[mr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yl=Symbol("_vod"),If={beforeMount(e,{value:t},{transition:n}){e[yl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Fr(e,!0),r.enter(e)):r.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[yl]:"none"}function u0(){If.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ff=Symbol("");function h0(e){const t=Ot();if(!t)return;const n=t.ut=(f=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>ma(u,f))},r=()=>{const f=e(t.proxy);ga(t.subTree,f),n(f)};Uh(r),qe(()=>{const f=new MutationObserver(r);f.observe(t.subTree.el.parentNode,{childList:!0}),Qo(()=>f.disconnect())})}function ga(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ga(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ma(e.el,t);else if(e.type===xe)e.children.forEach(n=>ga(n,t));else if(e.type===Hn){let{el:n,anchor:r}=e;for(;n&&(ma(n,t),n!==r);)n=n.nextSibling}}function ma(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const f in t)n.setProperty(`--${f}`,t[f]),r+=`--${f}: ${t[f]};`;n[Ff]=r}}function f0(e,t,n){const r=e.style,f=r.display,u=Qe(n);if(n&&!u){if(t&&!Qe(t))for(const h in t)n[h]==null&&va(r,h,"");for(const h in n)va(r,h,n[h])}else if(u){if(t!==n){const h=r[Ff];h&&(n+=";"+h),r.cssText=n}}else t&&e.removeAttribute("style");yl in e&&(r.display=f)}const Dc=/\s*!important$/;function va(e,t,n){if(ve(n))n.forEach(r=>va(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=d0(e,t);Dc.test(n)?e.setProperty(At(r),n.replace(Dc,""),"important"):e[r]=n}}const Pc=["Webkit","Moz","ms"],Es={};function d0(e,t){const n=Es[t];if(n)return n;let r=gt(t);if(r!=="filter"&&r in e)return Es[t]=r;r=Ar(r);for(let f=0;f<Pc.length;f++){const u=Pc[f]+r;if(u in e)return Es[t]=u}return t}const Bc="http://www.w3.org/1999/xlink";function p0(e,t,n,r,f){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bc,t.slice(6,t.length)):e.setAttributeNS(Bc,t,n);else{const u=Hm(t);n==null||u&&!ch(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function g0(e,t,n,r,f,u,h){if(t==="innerHTML"||t==="textContent"){r&&h(r,f,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const p=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";p!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=ch(n):n==null&&p==="string"?(n="",s=!0):p==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Yt(e,t,n,r){e.addEventListener(t,n,r)}function m0(e,t,n,r){e.removeEventListener(t,n,r)}const Wc=Symbol("_vei");function v0(e,t,n,r,f=null){const u=e[Wc]||(e[Wc]={}),h=u[t];if(r&&h)h.value=r;else{const[g,s]=y0(t);if(r){const p=u[t]=$0(r,f);Yt(e,g,p,s)}else h&&(m0(e,g,h,s),u[t]=void 0)}}const Hc=/(?:Once|Passive|Capture)$/;function y0(e){let t;if(Hc.test(e)){t={};let r;for(;r=e.match(Hc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let Rs=0;const b0=Promise.resolve(),w0=()=>Rs||(b0.then(()=>Rs=0),Rs=Date.now());function $0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(_0(r,n.value),t,5,[r])};return n.value=e,n.attached=w0(),n}function _0(e,t){if(ve(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>f=>!f._stopped&&r&&r(f))}else return t}const Uc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,S0=(e,t,n,r,f,u,h,g,s)=>{const p=f==="svg";t==="class"?c0(e,r,p):t==="style"?f0(e,n,r):yi(t)?Ga(t)||v0(e,t,n,r,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):C0(e,t,r,p))?g0(e,t,r,u,h,g,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),p0(e,t,r,p))};function C0(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uc(t)&&Re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const f=e.tagName;if(f==="IMG"||f==="VIDEO"||f==="CANVAS"||f==="SOURCE")return!1}return Uc(t)&&Qe(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Nf(e,t){const n=we(e);class r extends ts{constructor(u){super(n,u,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const A0=e=>Nf(e,Kf),k0=typeof HTMLElement<"u"?HTMLElement:class{};class ts extends k0{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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),wi(()=>{this._connected||(ya(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const f of r)this._setAttr(f.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,f=!1)=>{const{props:u,styles:h}=r;let g;if(u&&!ve(u))for(const s in u){const p=u[s];(p===Number||p&&p.type===Number)&&(s in this._props&&(this._props[s]=fo(this._props[s])),(g||(g=Object.create(null)))[gt(s)]=!0)}this._numberProps=g,f&&this._resolveProps(r),this._applyStyles(h),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ve(n)?n:Object.keys(n||{});for(const f of Object.keys(this))f[0]!=="_"&&r.includes(f)&&this._setProp(f,this[f],!0,!1);for(const f of r.map(gt))Object.defineProperty(this,f,{get(){return this._getProp(f)},set(u){this._setProp(f,u)}})}_setAttr(t){let n=this.getAttribute(t);const r=gt(t);this._numberProps&&this._numberProps[r]&&(n=fo(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,f=!0){n!==this._props[t]&&(this._props[t]=n,f&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){ya(this._createVNode(),this.shadowRoot)}_createVNode(){const t=oe(this._def,Ze({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(u,h)=>{this.dispatchEvent(new CustomEvent(u,{detail:h}))};n.emit=(u,...h)=>{r(u,h),At(u)!==u&&r(At(u),h)};let f=this;for(;f=f&&(f.parentNode||f.host);)if(f instanceof ts){n.parent=f._instance,n.provides=f._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function E0(e="$style"){{const t=Ot();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const r=n[e];return r||Be}}const Df=new WeakMap,Pf=new WeakMap,$o=Symbol("_moveCb"),Vc=Symbol("_enterCb"),Bf={name:"TransitionGroup",props:Ze({},s0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ot(),r=hl();let f,u;return Zo(()=>{if(!f.length)return;const h=e.moveClass||`${e.name||"v"}-move`;if(!O0(f[0].el,n.vnode.el,h))return;f.forEach(T0),f.forEach(L0);const g=f.filter(M0);Of(),g.forEach(s=>{const p=s.el,o=p.style;Kt(p,h),o.transform=o.webkitTransform=o.transitionDuration="";const i=p[$o]=a=>{a&&a.target!==p||(!a||/transform$/.test(a.propertyName))&&(p.removeEventListener("transitionend",i),p[$o]=null,gn(p,h))};p.addEventListener("transitionend",i)})}),()=>{const h=Le(e),g=Lf(h);let s=h.tag||xe;f=u,u=t.default?Yo(t.default()):[];for(let p=0;p<u.length;p++){const o=u[p];o.key!=null&&jn(o,gr(o,g,r,n))}if(f)for(let p=0;p<f.length;p++){const o=f[p];jn(o,gr(o,g,r,n)),Df.set(o,o.el.getBoundingClientRect())}return oe(s,null,u)}}},R0=e=>delete e.mode;Bf.props;const x0=Bf;function T0(e){const t=e.el;t[$o]&&t[$o](),t[Vc]&&t[Vc]()}function L0(e){Pf.set(e,e.el.getBoundingClientRect())}function M0(e){const t=Df.get(e),n=Pf.get(e),r=t.left-n.left,f=t.top-n.top;if(r||f){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${r}px,${f}px)`,u.transitionDuration="0s",e}}function O0(e,t,n){const r=e.cloneNode(),f=e[mr];f&&f.forEach(g=>{g.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&r.classList.add(g)),r.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(r);const{hasTransform:h}=Mf(r);return u.removeChild(r),h}const Rn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>ur(t,n):t};function I0(e){e.target.composing=!0}function zc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lt=Symbol("_assign"),Xn={created(e,{modifiers:{lazy:t,trim:n,number:r}},f){e[Lt]=Rn(f);const u=r||f.props&&f.props.type==="number";Yt(e,t?"change":"input",h=>{if(h.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=ho(g)),e[Lt](g)}),n&&Yt(e,"change",()=>{e.value=e.value.trim()}),t||(Yt(e,"compositionstart",I0),Yt(e,"compositionend",zc),Yt(e,"change",zc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:f}},u){if(e[Lt]=Rn(u),e.composing)return;const h=f||e.type==="number"?ho(e.value):e.value,g=t??"";h!==g&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===g)||(e.value=g))}},bl={deep:!0,created(e,t,n){e[Lt]=Rn(n),Yt(e,"change",()=>{const r=e._modelValue,f=vr(e),u=e.checked,h=e[Lt];if(ve(r)){const g=Io(r,f),s=g!==-1;if(u&&!s)h(r.concat(f));else if(!u&&s){const p=[...r];p.splice(g,1),h(p)}}else if(Qn(r)){const g=new Set(r);u?g.add(f):g.delete(f),h(g)}else h(Hf(e,u))})},mounted:jc,beforeUpdate(e,t,n){e[Lt]=Rn(n),jc(e,t,n)}};function jc(e,{value:t,oldValue:n},r){e._modelValue=t,ve(t)?e.checked=Io(t,r.props.value)>-1:Qn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=kn(t,Hf(e,!0)))}const wl={created(e,{value:t},n){e.checked=kn(t,n.props.value),e[Lt]=Rn(n),Yt(e,"change",()=>{e[Lt](vr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Lt]=Rn(r),t!==n&&(e.checked=kn(t,r.props.value))}},Wf={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const f=Qn(t);Yt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,h=>h.selected).map(h=>n?ho(vr(h)):vr(h));e[Lt](e.multiple?f?new Set(u):u:u[0])}),e[Lt]=Rn(r)},mounted(e,{value:t}){Gc(e,t)},beforeUpdate(e,t,n){e[Lt]=Rn(n)},updated(e,{value:t}){Gc(e,t)}};function Gc(e,t){const n=e.multiple;if(!(n&&!ve(t)&&!Qn(t))){for(let r=0,f=e.options.length;r<f;r++){const u=e.options[r],h=vr(u);if(n)ve(t)?u.selected=Io(t,h)>-1:u.selected=t.has(h);else if(kn(vr(u),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vr(e){return"_value"in e?e._value:e.value}function Hf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uf={created(e,t,n){Qi(e,t,n,null,"created")},mounted(e,t,n){Qi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Qi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Qi(e,t,n,r,"updated")}};function Vf(e,t){switch(e){case"SELECT":return Wf;case"TEXTAREA":return Xn;default:switch(t){case"checkbox":return bl;case"radio":return wl;default:return Xn}}}function Qi(e,t,n,r,f){const h=Vf(e.tagName,n.props&&n.props.type)[f];h&&h(e,t,n,r)}function F0(){Xn.getSSRProps=({value:e})=>({value:e}),wl.getSSRProps=({value:e},t)=>{if(t.props&&kn(t.props.value,e))return{checked:!0}},bl.getSSRProps=({value:e},t)=>{if(ve(e)){if(t.props&&Io(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}},Uf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Vf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const N0=["ctrl","shift","alt","meta"],D0={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)=>N0.some(n=>e[`${n}Key`]&&!t.includes(n))},P0=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(f,...u)=>{for(let h=0;h<t.length;h++){const g=D0[t[h]];if(g&&g(f,t))return}return e(f,...u)})},B0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},W0=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=f=>{if(!("key"in f))return;const u=At(f.key);if(t.some(h=>h===u||B0[h]===u))return e(f)})},zf=Ze({patchProp:S0},o0);let Zr,Kc=!1;function jf(){return Zr||(Zr=ff(zf))}function Gf(){return Zr=Kc?Zr:df(zf),Kc=!0,Zr}const ya=(...e)=>{jf().render(...e)},Kf=(...e)=>{Gf().hydrate(...e)},Yf=(...e)=>{const t=jf().createApp(...e),{mount:n}=t;return t.mount=r=>{const f=Zf(r);if(!f)return;const u=t._component;!Re(u)&&!u.render&&!u.template&&(u.template=f.innerHTML),f.innerHTML="";const h=n(f,!1,Xf(f));return f instanceof Element&&(f.removeAttribute("v-cloak"),f.setAttribute("data-v-app","")),h},t},H0=(...e)=>{const t=Gf().createApp(...e),{mount:n}=t;return t.mount=r=>{const f=Zf(r);if(f)return n(f,!0,Xf(f))},t};function Xf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zf(e){return Qe(e)?document.querySelector(e):e}let Yc=!1;const U0=()=>{Yc||(Yc=!0,F0(),u0())};/**
779
+ * vue v3.4.13
780
780
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
781
781
  * @license MIT
782
- **/const V0=()=>{},z0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:jh,BaseTransitionPropsValidators:hl,Comment:ht,DeprecationTypes:n0,EffectScope:Xa,ErrorCodes:Cv,ErrorTypeStrings:Xy,Fragment:xe,KeepAlive:Zv,ReactiveEffect:pr,Static:Hn,Suspense:Wv,Teleport:Fy,Text:Gn,TrackOpTypes:$v,Transition:ml,TransitionGroup:x0,TriggerOpTypes:_v,VueElement:es,assertNumber:Sv,callWithAsyncErrorHandling:kt,callWithErrorHandling:Qt,camelize:gt,capitalize:Ar,cloneVNode:Vt,compatUtils:t0,compile:V0,computed:ke,createApp:Yf,createBlock:Ce,createCommentVNode:ge,createElementBlock:re,createElementVNode:N,createHydrationRenderer:df,createPropsRestProxy:dy,createRenderer:ff,createSSRApp:H0,createSlots:Jv,createStaticVNode:Jo,createTextVNode:et,createVNode:se,customRef:Bo,defineAsyncComponent:Yv,defineComponent:be,defineCustomElement:Nf,defineEmits:ry,defineExpose:iy,defineModel:ay,defineOptions:oy,defineProps:ny,defineSSRCustomElement:A0,defineSlots:sy,devtools:Zy,effect:zm,effectScope:hh,getCurrentInstance:Ot,getCurrentScope:Za,getTransitionRawChildren:Ko,guardReactiveProps:$f,h:xr,handleError:er,hasInjectionContext:_y,hydrate:Kf,initCustomFormatter:Gy,initDirectivesForSSR:U0,inject:Tt,isMemoSame:Rf,isProxy:tl,isReactive:Bn,isReadonly:zn,isRef:at,isRuntimeOnly:Uy,isShallow:ii,isVNode:En,markRaw:Po,mergeDefaults:hy,mergeModels:fy,mergeProps:_f,nextTick:wi,normalizeClass:kr,normalizeProps:Bm,normalizeStyle:bi,onActivated:Kh,onBeforeMount:Zh,onBeforeUnmount:Rr,onBeforeUpdate:qh,onDeactivated:Yh,onErrorCaptured:tf,onMounted:Xe,onRenderTracked:ef,onRenderTriggered:Qh,onScopeDispose:dh,onServerPrefetch:Jh,onUnmounted:Zo,onUpdated:Xo,openBlock:Z,popScopeId:jo,provide:Kr,proxyRefs:il,pushScopeId:zo,queuePostFlushCb:po,reactive:Er,readonly:No,ref:Ne,registerRuntimeCompiler:Hy,render:va,renderList:_t,renderSlot:Qv,resolveComponent:ie,resolveDirective:Pv,resolveDynamicComponent:Dv,resolveFilter:e0,resolveTransitionHooks:gr,setBlockTracking:la,setDevtoolsHook:qy,setTransitionHooks:jn,shallowReactive:el,shallowReadonly:hv,shallowRef:Rh,ssrContextKey:Bh,ssrUtils:Qy,stop:jm,toDisplayString:ye,toHandlerKey:jr,toHandlers:ey,toRaw:Le,toRef:Wo,toRefs:yv,toValue:gv,transformVNodeArgs:Ny,triggerRef:pv,unref:Jt,useAttrs:uy,useCssModule:E0,useCssVars:h0,useModel:jy,useSSRContext:Wh,useSlots:cy,useTransitionState:ul,vModelCheckbox:yl,vModelDynamic:Uf,vModelRadio:bl,vModelSelect:Wf,vModelText:Xn,vShow:If,version:xf,warn:Yy,watch:qe,watchEffect:Hh,watchPostEffect:Uh,watchSyncEffect:Vh,withAsyncContext:py,withCtx:Je,withDefaults:ly,withDirectives:Go,withKeys:W0,withMemo:Ky,withModifiers:P0,withScopeId:Lv},Symbol.toStringTag,{value:"Module"}));function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xc(Object(n),!0).forEach(function(r){vt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}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 vt(e,t,n){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j0(e,t){if(e==null)return{};var n={},r=Object.keys(e),f,u;for(u=0;u<r.length;u++)f=r[u],!(t.indexOf(f)>=0)&&(n[f]=e[f]);return n}function G0(e,t){if(e==null)return{};var n=j0(e,t),r,f;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(f=0;f<u.length;f++)r=u[f],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y0(e){var t=K0(e,"string");return typeof t=="symbol"?t:String(t)}var X0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qf={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!p(y)||i(y)||a(y)||c(y)||s(y))return y;var C,S=0,b=0;if(o(y))for(C=[],b=y.length;S<b;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},r=function(v,y){y=y||{};var k=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(k)},f=function(v){return l(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=f(v);return y.substr(0,1).toUpperCase()+y.substr(1)},h=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},i=function(v){return g.call(v)=="[object Date]"},a=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},l=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:f,decamelize:h,pascalize:u,depascalize:h,camelizeKeys:function(v,y){return n(d(f,y),v)},decamelizeKeys:function(v,y){return n(d(h,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})(X0)})(qf);var Z0=qf.exports,q0=["class","style"];function J0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),f=Z0.camelize(n.slice(0,r)),u=n.slice(r+1).trim();return t[f]=u,t},{})}function Q0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Jf(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 r=(e.children||[]).map(function(s){return Jf(s)}),f=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=Q0(o);break;case"style":s.style=J0(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,h=u===void 0?{}:u,g=G0(n,q0);return xr(e.tag,Xt(Xt(Xt({},t),{},{class:f.class,style:Xt(Xt({},f.style),h)},f.attrs),g),r)}var Qf=!1;try{Qf=!0}catch{}function eb(){if(!Qf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Rs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vt({},e,t):{}}function tb(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"},vt(t,"fa-".concat(e.size),e.size!==null),vt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),vt(t,"fa-pull-".concat(e.pull),e.pull!==null),vt(t,"fa-swap-opacity",e.swapOpacity),vt(t,"fa-bounce",e.bounce),vt(t,"fa-shake",e.shake),vt(t,"fa-beat",e.beat),vt(t,"fa-fade",e.fade),vt(t,"fa-beat-fade",e.beatFade),vt(t,"fa-flash",e.flash),vt(t,"fa-spin-pulse",e.spinPulse),vt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Zc(e){if(e&&$o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Zs.icon)return Zs.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 nb=be({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 r=n.attrs,f=ke(function(){return Zc(t.icon)}),u=ke(function(){return Rs("classes",tb(t))}),h=ke(function(){return Rs("transform",typeof t.transform=="string"?Zs.transform(t.transform):t.transform)}),g=ke(function(){return Rs("mask",Zc(t.mask))}),s=ke(function(){return am(f.value,Xt(Xt(Xt(Xt({},u.value),h.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});qe(s,function(o){if(!o)return eb("Could not find one or more icon(s)",f.value,g.value)},{immediate:!0});var p=ke(function(){return s.value?Jf(s.value.abstract[0],{},r):null});return function(){return p.value}}});const rb=be({name:"NavbarItem"}),Ae=(e,t)=>{const n=e.__vccOpts||e;for(const[r,f]of t)n[r]=f;return n},ts=e=>(zo("data-v-907b90b2"),e=e(),jo(),e),ib={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},ob=ts(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")])],-1)),sb={class:"navbar-menu"},ab=ts(()=>N("div",{class:"navbar-start"},null,-1)),lb={class:"navbar-end"},cb=ts(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),ub=ts(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function hb(e,t,n,r,f,u){const h=ie("router-link");return Z(),re("nav",ib,[ob,N("div",sb,[ab,N("div",lb,[se(h,{class:"navbar-item",to:{name:"Alerts"}},{default:Je(()=>[et("Alerts")]),_:1}),se(h,{class:"navbar-item",to:{name:"Artifacts"}},{default:Je(()=>[et("Artifacts")]),_:1}),se(h,{class:"navbar-item",to:{name:"Rules"}},{default:Je(()=>[et("Rules")]),_:1}),se(h,{class:"navbar-item",to:{name:"NewRule"}},{default:Je(()=>[et("New Rule")]),_:1}),se(h,{class:"navbar-item",to:{name:"Config"}},{default:Je(()=>[et("Config")]),_:1}),cb,ub])])])}const fb=Ae(rb,[["render",hb],["__scopeId","data-v-907b90b2"]]),db=be({name:"App",components:{Navbar:fb}}),pb={class:"section is-medium"},gb={class:"container"};function mb(e,t,n,r,f,u){const h=ie("Navbar"),g=ie("router-view");return Z(),re(xe,null,[se(h),N("section",pb,[N("div",gb,[se(g)])])],64)}const vb=Ae(db,[["render",mb]]);/*!
782
+ **/const V0=()=>{},z0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:jh,BaseTransitionPropsValidators:fl,Comment:ht,DeprecationTypes:n0,EffectScope:Za,ErrorCodes:Cv,ErrorTypeStrings:Xy,Fragment:xe,KeepAlive:Zv,ReactiveEffect:pr,Static:Hn,Suspense:Wv,Teleport:Fy,Text:Gn,TrackOpTypes:$v,Transition:vl,TransitionGroup:x0,TriggerOpTypes:_v,VueElement:ts,assertNumber:Sv,callWithAsyncErrorHandling:kt,callWithErrorHandling:Jt,camelize:gt,capitalize:Ar,cloneVNode:Vt,compatUtils:t0,compile:V0,computed:ke,createApp:Yf,createBlock:be,createCommentVNode:pe,createElementBlock:ie,createElementVNode:N,createHydrationRenderer:df,createPropsRestProxy:dy,createRenderer:ff,createSSRApp:H0,createSlots:qv,createStaticVNode:Jo,createTextVNode:Ke,createVNode:oe,customRef:Wo,defineAsyncComponent:Yv,defineComponent:we,defineCustomElement:Nf,defineEmits:ry,defineExpose:iy,defineModel:ay,defineOptions:oy,defineProps:ny,defineSSRCustomElement:A0,defineSlots:sy,devtools:Zy,effect:zm,effectScope:hh,getCurrentInstance:Ot,getCurrentScope:Qa,getTransitionRawChildren:Yo,guardReactiveProps:$f,h:xr,handleError:er,hasInjectionContext:_y,hydrate:Kf,initCustomFormatter:Gy,initDirectivesForSSR:U0,inject:Tt,isMemoSame:Rf,isProxy:nl,isReactive:Bn,isReadonly:zn,isRef:at,isRuntimeOnly:Uy,isShallow:ii,isVNode:En,markRaw:Bo,mergeDefaults:hy,mergeModels:fy,mergeProps:_f,nextTick:wi,normalizeClass:kr,normalizeProps:Bm,normalizeStyle:bi,onActivated:Kh,onBeforeMount:Zh,onBeforeUnmount:Rr,onBeforeUpdate:Qh,onDeactivated:Yh,onErrorCaptured:tf,onMounted:qe,onRenderTracked:ef,onRenderTriggered:Jh,onScopeDispose:dh,onServerPrefetch:qh,onUnmounted:Qo,onUpdated:Zo,openBlock:X,popScopeId:Go,provide:Kr,proxyRefs:ol,pushScopeId:jo,queuePostFlushCb:go,reactive:Er,readonly:Do,ref:Fe,registerRuntimeCompiler:Hy,render:ya,renderList:_t,renderSlot:Jv,resolveComponent:ne,resolveDirective:Pv,resolveDynamicComponent:Dv,resolveFilter:e0,resolveTransitionHooks:gr,setBlockTracking:ca,setDevtoolsHook:Qy,setTransitionHooks:jn,shallowReactive:tl,shallowReadonly:hv,shallowRef:Rh,ssrContextKey:Bh,ssrUtils:Jy,stop:jm,toDisplayString:ye,toHandlerKey:jr,toHandlers:ey,toRaw:Le,toRef:Ho,toRefs:yv,toValue:gv,transformVNodeArgs:Ny,triggerRef:pv,unref:qt,useAttrs:uy,useCssModule:E0,useCssVars:h0,useModel:jy,useSSRContext:Wh,useSlots:cy,useTransitionState:hl,vModelCheckbox:bl,vModelDynamic:Uf,vModelRadio:wl,vModelSelect:Wf,vModelText:Xn,vShow:If,version:xf,warn:Yy,watch:Xe,watchEffect:Hh,watchPostEffect:Uh,watchSyncEffect:Vh,withAsyncContext:py,withCtx:Ve,withDefaults:ly,withDirectives:Ko,withKeys:W0,withMemo:Ky,withModifiers:P0,withScopeId:Lv},Symbol.toStringTag,{value:"Module"}));function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xc(Object(n),!0).forEach(function(r){vt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}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 vt(e,t,n){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j0(e,t){if(e==null)return{};var n={},r=Object.keys(e),f,u;for(u=0;u<r.length;u++)f=r[u],!(t.indexOf(f)>=0)&&(n[f]=e[f]);return n}function G0(e,t){if(e==null)return{};var n=j0(e,t),r,f;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(f=0;f<u.length;f++)r=u[f],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y0(e){var t=K0(e,"string");return typeof t=="symbol"?t:String(t)}var X0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qf={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!p(y)||i(y)||a(y)||c(y)||s(y))return y;var C,S=0,b=0;if(o(y))for(C=[],b=y.length;S<b;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},r=function(v,y){y=y||{};var k=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(k)},f=function(v){return l(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=f(v);return y.substr(0,1).toUpperCase()+y.substr(1)},h=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},i=function(v){return g.call(v)=="[object Date]"},a=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},l=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:f,decamelize:h,pascalize:u,depascalize:h,camelizeKeys:function(v,y){return n(d(f,y),v)},decamelizeKeys:function(v,y){return n(d(h,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})(X0)})(Qf);var Z0=Qf.exports,Q0=["class","style"];function q0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),f=Z0.camelize(n.slice(0,r)),u=n.slice(r+1).trim();return t[f]=u,t},{})}function J0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function qf(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 r=(e.children||[]).map(function(s){return qf(s)}),f=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=J0(o);break;case"style":s.style=q0(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,h=u===void 0?{}:u,g=G0(n,Q0);return xr(e.tag,Xt(Xt(Xt({},t),{},{class:f.class,style:Xt(Xt({},f.style),h)},f.attrs),g),r)}var Jf=!1;try{Jf=!0}catch{}function eb(){if(!Jf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function xs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vt({},e,t):{}}function tb(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"},vt(t,"fa-".concat(e.size),e.size!==null),vt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),vt(t,"fa-pull-".concat(e.pull),e.pull!==null),vt(t,"fa-swap-opacity",e.swapOpacity),vt(t,"fa-bounce",e.bounce),vt(t,"fa-shake",e.shake),vt(t,"fa-beat",e.beat),vt(t,"fa-fade",e.fade),vt(t,"fa-beat-fade",e.beatFade),vt(t,"fa-flash",e.flash),vt(t,"fa-spin-pulse",e.spinPulse),vt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Zc(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Qs.icon)return Qs.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 nb=we({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 r=n.attrs,f=ke(function(){return Zc(t.icon)}),u=ke(function(){return xs("classes",tb(t))}),h=ke(function(){return xs("transform",typeof t.transform=="string"?Qs.transform(t.transform):t.transform)}),g=ke(function(){return xs("mask",Zc(t.mask))}),s=ke(function(){return am(f.value,Xt(Xt(Xt(Xt({},u.value),h.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Xe(s,function(o){if(!o)return eb("Could not find one or more icon(s)",f.value,g.value)},{immediate:!0});var p=ke(function(){return s.value?qf(s.value.abstract[0],{},r):null});return function(){return p.value}}});const rb=we({name:"NavbarItem"}),Ae=(e,t)=>{const n=e.__vccOpts||e;for(const[r,f]of t)n[r]=f;return n},ns=e=>(jo("data-v-907b90b2"),e=e(),Go(),e),ib={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},ob=ns(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")])],-1)),sb={class:"navbar-menu"},ab=ns(()=>N("div",{class:"navbar-start"},null,-1)),lb={class:"navbar-end"},cb=ns(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),ub=ns(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function hb(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("nav",ib,[ob,N("div",sb,[ab,N("div",lb,[oe(h,{class:"navbar-item",to:{name:"Alerts"}},{default:Ve(()=>[Ke("Alerts")]),_:1}),oe(h,{class:"navbar-item",to:{name:"Artifacts"}},{default:Ve(()=>[Ke("Artifacts")]),_:1}),oe(h,{class:"navbar-item",to:{name:"Rules"}},{default:Ve(()=>[Ke("Rules")]),_:1}),oe(h,{class:"navbar-item",to:{name:"NewRule"}},{default:Ve(()=>[Ke("New Rule")]),_:1}),oe(h,{class:"navbar-item",to:{name:"Config"}},{default:Ve(()=>[Ke("Config")]),_:1}),cb,ub])])])}const fb=Ae(rb,[["render",hb],["__scopeId","data-v-907b90b2"]]),db=we({name:"App",components:{Navbar:fb}}),pb={class:"section is-medium"},gb={class:"container"};function mb(e,t,n,r,f,u){const h=ne("Navbar"),g=ne("router-view");return X(),ie(xe,null,[oe(h),N("section",pb,[N("div",gb,[oe(g)])])],64)}const vb=Ae(db,[["render",mb]]);/*!
783
783
  * vue-router v4.2.5
784
784
  * (c) 2023 Eduardo San Martin Morote
785
785
  * @license MIT
786
- */const rr=typeof window<"u";function yb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function xs(e,t){const n={};for(const r in t){const f=t[r];n[r]=Dt(f)?f.map(e):e(f)}return n}const qr=()=>{},Dt=Array.isArray,bb=/\/$/,wb=e=>e.replace(bb,"");function Ts(e,t,n="/"){let r,f={},u="",h="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(r=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),f=e(u)),g>-1&&(r=r||t.slice(0,g),h=t.slice(g,t.length)),r=Cb(r??t,n),{fullPath:r+(u&&"?")+u+h,path:r,query:f,hash:h}}function $b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _b(e,t,n){const r=t.matched.length-1,f=n.matched.length-1;return r>-1&&r===f&&yr(t.matched[r],n.matched[f])&&ed(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ed(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Sb(e[n],t[n]))return!1;return!0}function Sb(e,t){return Dt(e)?Jc(e,t):Dt(t)?Jc(t,e):e===t}function Jc(e,t){return Dt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Cb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),f=r[r.length-1];(f===".."||f===".")&&r.push("");let u=n.length-1,h,g;for(h=0;h<r.length;h++)if(g=r[h],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h-(h===r.length?1:0)).join("/")}var di;(function(e){e.pop="pop",e.push="push"})(di||(di={}));var Jr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jr||(Jr={}));function Ab(e){if(!e)if(rr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wb(e)}const kb=/^[^#]+#/;function Eb(e,t){return e.replace(kb,"#")+t}function Rb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ns=()=>({left:window.pageXOffset,top:window.pageYOffset});function xb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),f=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!f)return;t=Rb(f,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 Qc(e,t){return(history.state?history.state.position-t:-1)+e}const ya=new Map;function Tb(e,t){ya.set(e,t)}function Lb(e){const t=ya.get(e);return ya.delete(e),t}let Mb=()=>location.protocol+"//"+location.host;function td(e,t){const{pathname:n,search:r,hash:f}=t,u=e.indexOf("#");if(u>-1){let g=f.includes(e.slice(u))?e.slice(u).length:1,s=f.slice(g);return s[0]!=="/"&&(s="/"+s),qc(s,"")}return qc(n,e)+r+f}function Ob(e,t,n,r){let f=[],u=[],h=null;const g=({state:a})=>{const c=td(e,location),l=n.value,d=t.value;let m=0;if(a){if(n.value=c,t.value=a,h&&h===l){h=null;return}m=d?a.position-d.position:0}else r(c);f.forEach(v=>{v(n.value,l,{delta:m,type:di.pop,direction:m?m>0?Jr.forward:Jr.back:Jr.unknown})})};function s(){h=n.value}function p(a){f.push(a);const c=()=>{const l=f.indexOf(a);l>-1&&f.splice(l,1)};return u.push(c),c}function o(){const{history:a}=window;a.state&&a.replaceState(Pe({},a.state,{scroll:ns()}),"")}function i(){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:p,destroy:i}}function eu(e,t,n,r=!1,f=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:f?ns():null}}function Ib(e){const{history:t,location:n}=window,r={value:td(e,n)},f={value:t.state};f.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,p,o){const i=e.indexOf("#"),a=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+s:Mb()+e+s;try{t[o?"replaceState":"pushState"](p,"",a),f.value=p}catch(c){console.error(c),n[o?"replace":"assign"](a)}}function h(s,p){const o=Pe({},t.state,eu(f.value.back,s,f.value.forward,!0),p,{position:f.value.position});u(s,o,!0),r.value=s}function g(s,p){const o=Pe({},f.value,t.state,{forward:s,scroll:ns()});u(o.current,o,!0);const i=Pe({},eu(r.value,s,null),{position:o.position+1},p);u(s,i,!1),r.value=s}return{location:r,state:f,push:g,replace:h}}function Fb(e){e=Ab(e);const t=Ib(e),n=Ob(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const f=Pe({location:"",base:e,go:r,createHref:Eb.bind(null,e)},t,n);return Object.defineProperty(f,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(f,"state",{enumerable:!0,get:()=>t.state.value}),f}function Nb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Fb(e)}function Db(e){return typeof e=="string"||e&&typeof e=="object"}function nd(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},rd=Symbol("");var tu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(tu||(tu={}));function br(e,t){return Pe(new Error,{type:e,[rd]:!0},t)}function Gt(e,t){return e instanceof Error&&rd in e&&(t==null||!!(e.type&t))}const nu="[^/]+?",Pb={sensitive:!1,strict:!1,start:!0,end:!0},Bb=/[.+*?^${}()[\]/\\]/g;function Wb(e,t){const n=Pe({},Pb,t),r=[];let f=n.start?"^":"";const u=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(f+="/");for(let i=0;i<p.length;i++){const a=p[i];let c=40+(n.sensitive?.25:0);if(a.type===0)i||(f+="/"),f+=a.value.replace(Bb,"\\$&"),c+=40;else if(a.type===1){const{value:l,repeatable:d,optional:m,regexp:v}=a;u.push({name:l,repeatable:d,optional:m});const y=v||nu;if(y!==nu){c+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${l}" (${y}): `+C.message)}}let k=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;i||(k=m&&p.length<2?`(?:/${k})`:"/"+k),m&&(k+="?"),f+=k,c+=20,m&&(c+=-8),d&&(c+=-20),y===".*"&&(c+=-50)}o.push(c)}r.push(o)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(f+="/?"),n.end?f+="$":n.strict&&(f+="(?:/|$)");const h=new RegExp(f,n.sensitive?"":"i");function g(p){const o=p.match(h),i={};if(!o)return null;for(let a=1;a<o.length;a++){const c=o[a]||"",l=u[a-1];i[l.name]=c&&l.repeatable?c.split("/"):c}return i}function s(p){let o="",i=!1;for(const a of e){(!i||!o.endsWith("/"))&&(o+="/"),i=!1;for(const c of a)if(c.type===0)o+=c.value;else if(c.type===1){const{value:l,repeatable:d,optional:m}=c,v=l in p?p[l]:"";if(Dt(v)&&!d)throw new Error(`Provided param "${l}" is an array but it is not repeatable (* or + modifiers)`);const y=Dt(v)?v.join("/"):v;if(!y)if(m)a.length<2&&(o.endsWith("/")?o=o.slice(0,-1):i=!0);else throw new Error(`Missing required param "${l}"`);o+=y}}return o||"/"}return{re:h,score:r,keys:u,parse:g,stringify:s}}function Hb(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ub(e,t){let n=0;const r=e.score,f=t.score;for(;n<r.length&&n<f.length;){const u=Hb(r[n],f[n]);if(u)return u;n++}if(Math.abs(f.length-r.length)===1){if(ru(r))return 1;if(ru(f))return-1}return f.length-r.length}function ru(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Vb={type:0,value:""},zb=/[a-zA-Z0-9_]/;function jb(e){if(!e)return[[]];if(e==="/")return[[Vb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${p}": ${c}`)}let n=0,r=n;const f=[];let u;function h(){u&&f.push(u),u=[]}let g=0,s,p="",o="";function i(){p&&(n===0?u.push({type:0,value:p}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function a(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:s==="/"?(p&&i(),h()):s===":"?(i(),n=1):a();break;case 4:a(),n=r;break;case 1:s==="("?n=2:zb.test(s)?a():(i(),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:i(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),i(),h(),f}function Gb(e,t,n){const r=Wb(jb(e.path),n),f=Pe(r,{record:e,parent:t,children:[],alias:[]});return t&&!f.record.aliasOf==!t.record.aliasOf&&t.children.push(f),f}function Kb(e,t){const n=[],r=new Map;t=su({strict:!1,end:!0,sensitive:!1},t);function f(o){return r.get(o)}function u(o,i,a){const c=!a,l=Yb(o);l.aliasOf=a&&a.record;const d=su(t,o),m=[l];if("alias"in o){const k=typeof o.alias=="string"?[o.alias]:o.alias;for(const C of k)m.push(Pe({},l,{components:a?a.record.components:l.components,path:C,aliasOf:a?a.record:l}))}let v,y;for(const k of m){const{path:C}=k;if(i&&C[0]!=="/"){const S=i.record.path,b=S[S.length-1]==="/"?"":"/";k.path=i.record.path+(C&&b+C)}if(v=Gb(k,i,d),a?a.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),c&&o.name&&!ou(v)&&h(o.name)),l.children){const S=l.children;for(let b=0;b<S.length;b++)u(S[b],v,a&&a.children[b])}a=a||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&s(v)}return y?()=>{h(y)}:qr}function h(o){if(nd(o)){const i=r.get(o);i&&(r.delete(o),n.splice(n.indexOf(i),1),i.children.forEach(h),i.alias.forEach(h))}else{const i=n.indexOf(o);i>-1&&(n.splice(i,1),o.record.name&&r.delete(o.record.name),o.children.forEach(h),o.alias.forEach(h))}}function g(){return n}function s(o){let i=0;for(;i<n.length&&Ub(o,n[i])>=0&&(o.record.path!==n[i].record.path||!id(o,n[i]));)i++;n.splice(i,0,o),o.record.name&&!ou(o)&&r.set(o.record.name,o)}function p(o,i){let a,c={},l,d;if("name"in o&&o.name){if(a=r.get(o.name),!a)throw br(1,{location:o});d=a.record.name,c=Pe(iu(i.params,a.keys.filter(y=>!y.optional).map(y=>y.name)),o.params&&iu(o.params,a.keys.map(y=>y.name))),l=a.stringify(c)}else if("path"in o)l=o.path,a=n.find(y=>y.re.test(l)),a&&(c=a.parse(l),d=a.record.name);else{if(a=i.name?r.get(i.name):n.find(y=>y.re.test(i.path)),!a)throw br(1,{location:o,currentLocation:i});d=a.record.name,c=Pe({},i.params,o.params),l=a.stringify(c)}const m=[];let v=a;for(;v;)m.unshift(v.record),v=v.parent;return{name:d,path:l,params:c,matched:m,meta:Zb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:p,removeRoute:h,getRoutes:g,getRecordMatcher:f}}function iu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Yb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Xb(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 Xb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ou(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function su(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function id(e,t){return t.children.some(n=>n===e||id(e,n))}const od=/#/g,qb=/&/g,Jb=/\//g,Qb=/=/g,e1=/\?/g,sd=/\+/g,t1=/%5B/g,n1=/%5D/g,ad=/%5E/g,r1=/%60/g,ld=/%7B/g,i1=/%7C/g,cd=/%7D/g,o1=/%20/g;function wl(e){return encodeURI(""+e).replace(i1,"|").replace(t1,"[").replace(n1,"]")}function s1(e){return wl(e).replace(ld,"{").replace(cd,"}").replace(ad,"^")}function ba(e){return wl(e).replace(sd,"%2B").replace(o1,"+").replace(od,"%23").replace(qb,"%26").replace(r1,"`").replace(ld,"{").replace(cd,"}").replace(ad,"^")}function a1(e){return ba(e).replace(Qb,"%3D")}function l1(e){return wl(e).replace(od,"%23").replace(e1,"%3F")}function c1(e){return e==null?"":l1(e).replace(Jb,"%2F")}function _o(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function u1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let f=0;f<r.length;++f){const u=r[f].replace(sd," "),h=u.indexOf("="),g=_o(h<0?u:u.slice(0,h)),s=h<0?null:_o(u.slice(h+1));if(g in t){let p=t[g];Dt(p)||(p=t[g]=[p]),p.push(s)}else t[g]=s}return t}function au(e){let t="";for(let n in e){const r=e[n];if(n=a1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Dt(r)?r.map(u=>u&&ba(u)):[r&&ba(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function h1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Dt(r)?r.map(f=>f==null?null:""+f):r==null?r:""+r)}return t}const f1=Symbol(""),lu=Symbol(""),rs=Symbol(""),$l=Symbol(""),wa=Symbol("");function Nr(){let e=[];function t(r){return e.push(r),()=>{const f=e.indexOf(r);f>-1&&e.splice(f,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wn(e,t,n,r,f){const u=r&&(r.enterCallbacks[f]=r.enterCallbacks[f]||[]);return()=>new Promise((h,g)=>{const s=i=>{i===!1?g(br(4,{from:n,to:t})):i instanceof Error?g(i):Db(i)?g(br(2,{from:t,to:i})):(u&&r.enterCallbacks[f]===u&&typeof i=="function"&&u.push(i),h())},p=e.call(r&&r.instances[f],t,n,s);let o=Promise.resolve(p);e.length<3&&(o=o.then(s)),o.catch(i=>g(i))})}function Ls(e,t,n,r){const f=[];for(const u of e)for(const h in u.components){let g=u.components[h];if(!(t!=="beforeRouteEnter"&&!u.instances[h]))if(d1(g)){const p=(g.__vccOpts||g)[t];p&&f.push(wn(p,n,r,u,h))}else{let s=g();f.push(()=>s.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${u.path}"`));const o=yb(p)?p.default:p;u.components[h]=o;const a=(o.__vccOpts||o)[t];return a&&wn(a,n,r,u,h)()}))}}return f}function d1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cu(e){const t=Tt(rs),n=Tt($l),r=ke(()=>t.resolve(Jt(e.to))),f=ke(()=>{const{matched:s}=r.value,{length:p}=s,o=s[p-1],i=n.matched;if(!o||!i.length)return-1;const a=i.findIndex(yr.bind(null,o));if(a>-1)return a;const c=uu(s[p-2]);return p>1&&uu(o)===c&&i[i.length-1].path!==c?i.findIndex(yr.bind(null,s[p-2])):a}),u=ke(()=>f.value>-1&&v1(n.params,r.value.params)),h=ke(()=>f.value>-1&&f.value===n.matched.length-1&&ed(n.params,r.value.params));function g(s={}){return m1(s)?t[Jt(e.replace)?"replace":"push"](Jt(e.to)).catch(qr):Promise.resolve()}return{route:r,href:ke(()=>r.value.href),isActive:u,isExactActive:h,navigate:g}}const p1=be({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:cu,setup(e,{slots:t}){const n=Er(cu(e)),{options:r}=Tt(rs),f=ke(()=>({[hu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[hu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:xr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:f.value},u)}}}),g1=p1;function m1(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 v1(e,t){for(const n in t){const r=t[n],f=e[n];if(typeof r=="string"){if(r!==f)return!1}else if(!Dt(f)||f.length!==r.length||r.some((u,h)=>u!==f[h]))return!1}return!0}function uu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hu=(e,t,n)=>e??t??n,y1=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Tt(wa),f=ke(()=>e.route||r.value),u=Tt(lu,0),h=ke(()=>{let p=Jt(u);const{matched:o}=f.value;let i;for(;(i=o[p])&&!i.components;)p++;return p}),g=ke(()=>f.value.matched[h.value]);Kr(lu,ke(()=>h.value+1)),Kr(f1,g),Kr(wa,f);const s=Ne();return qe(()=>[s.value,g.value,e.name],([p,o,i],[a,c,l])=>{o&&(o.instances[i]=p,c&&c!==o&&p&&p===a&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),p&&o&&(!c||!yr(o,c)||!a)&&(o.enterCallbacks[i]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=f.value,o=e.name,i=g.value,a=i&&i.components[o];if(!a)return fu(n.default,{Component:a,route:p});const c=i.props[o],l=c?c===!0?p.params:typeof c=="function"?c(p):c:null,m=xr(a,Pe({},l,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(i.instances[o]=null)},ref:s}));return fu(n.default,{Component:m,route:p})||m}}});function fu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const b1=y1;function w1(e){const t=Kb(e.routes,e),n=e.parseQuery||u1,r=e.stringifyQuery||au,f=e.history,u=Nr(),h=Nr(),g=Nr(),s=Rh(dn);let p=dn;rr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=xs.bind(null,U=>""+U),i=xs.bind(null,c1),a=xs.bind(null,_o);function c(U,X){let Y,z;return nd(U)?(Y=t.getRecordMatcher(U),z=X):z=U,t.addRoute(z,Y)}function l(U){const X=t.getRecordMatcher(U);X&&t.removeRoute(X)}function d(){return t.getRoutes().map(U=>U.record)}function m(U){return!!t.getRecordMatcher(U)}function v(U,X){if(X=Pe({},X||s.value),typeof U=="string"){const B=Ts(n,U,X.path),K=t.resolve({path:B.path},X),Q=f.createHref(B.fullPath);return Pe(B,K,{params:a(K.params),hash:_o(B.hash),redirectedFrom:void 0,href:Q})}let Y;if("path"in U)Y=Pe({},U,{path:Ts(n,U.path,X.path).path});else{const B=Pe({},U.params);for(const K in B)B[K]==null&&delete B[K];Y=Pe({},U,{params:i(B)}),X.params=i(X.params)}const z=t.resolve(Y,X),ee=U.hash||"";z.params=o(a(z.params));const ue=$b(r,Pe({},U,{hash:s1(ee),path:z.path})),D=f.createHref(ue);return Pe({fullPath:ue,hash:ee,query:r===au?h1(U.query):U.query||{}},z,{redirectedFrom:void 0,href:D})}function y(U){return typeof U=="string"?Ts(n,U,s.value.path):Pe({},U)}function k(U,X){if(p!==U)return br(8,{from:X,to:U})}function C(U){return R(U)}function S(U){return C(Pe(y(U),{replace:!0}))}function b(U){const X=U.matched[U.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let z=typeof Y=="function"?Y(U):Y;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=y(z):{path:z},z.params={}),Pe({query:U.query,hash:U.hash,params:"path"in z?{}:U.params},z)}}function R(U,X){const Y=p=v(U),z=s.value,ee=U.state,ue=U.force,D=U.replace===!0,B=b(Y);if(B)return R(Pe(y(B),{state:typeof B=="object"?Pe({},ee,B.state):ee,force:ue,replace:D}),X||Y);const K=Y;K.redirectedFrom=X;let Q;return!ue&&_b(r,z,Y)&&(Q=br(16,{to:K,from:z}),W(z,z,!0,!1)),(Q?Promise.resolve(Q):M(K,z)).catch(te=>Gt(te)?Gt(te,2)?te:P(te):I(te,K,z)).then(te=>{if(te){if(Gt(te,2))return R(Pe({replace:D},y(te.to),{state:typeof te.to=="object"?Pe({},ee,te.to.state):ee,force:ue}),X||K)}else te=A(K,z,!0,D,ee);return $(K,z,te),te})}function L(U,X){const Y=k(U,X);return Y?Promise.reject(Y):Promise.resolve()}function E(U){const X=V.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(U):U()}function M(U,X){let Y;const[z,ee,ue]=$1(U,X);Y=Ls(z.reverse(),"beforeRouteLeave",U,X);for(const B of z)B.leaveGuards.forEach(K=>{Y.push(wn(K,U,X))});const D=L.bind(null,U,X);return Y.push(D),q(Y).then(()=>{Y=[];for(const B of u.list())Y.push(wn(B,U,X));return Y.push(D),q(Y)}).then(()=>{Y=Ls(ee,"beforeRouteUpdate",U,X);for(const B of ee)B.updateGuards.forEach(K=>{Y.push(wn(K,U,X))});return Y.push(D),q(Y)}).then(()=>{Y=[];for(const B of ue)if(B.beforeEnter)if(Dt(B.beforeEnter))for(const K of B.beforeEnter)Y.push(wn(K,U,X));else Y.push(wn(B.beforeEnter,U,X));return Y.push(D),q(Y)}).then(()=>(U.matched.forEach(B=>B.enterCallbacks={}),Y=Ls(ue,"beforeRouteEnter",U,X),Y.push(D),q(Y))).then(()=>{Y=[];for(const B of h.list())Y.push(wn(B,U,X));return Y.push(D),q(Y)}).catch(B=>Gt(B,8)?B:Promise.reject(B))}function $(U,X,Y){g.list().forEach(z=>E(()=>z(U,X,Y)))}function A(U,X,Y,z,ee){const ue=k(U,X);if(ue)return ue;const D=X===dn,B=rr?history.state:{};Y&&(z||D?f.replace(U.fullPath,Pe({scroll:D&&B&&B.scroll},ee)):f.push(U.fullPath,ee)),s.value=U,W(U,X,Y,D),P()}let _;function w(){_||(_=f.listen((U,X,Y)=>{if(!G.listening)return;const z=v(U),ee=b(z);if(ee){R(Pe(ee,{replace:!0}),z).catch(qr);return}p=z;const ue=s.value;rr&&Tb(Qc(ue.fullPath,Y.delta),ns()),M(z,ue).catch(D=>Gt(D,12)?D:Gt(D,2)?(R(D.to,z).then(B=>{Gt(B,20)&&!Y.delta&&Y.type===di.pop&&f.go(-1,!1)}).catch(qr),Promise.reject()):(Y.delta&&f.go(-Y.delta,!1),I(D,z,ue))).then(D=>{D=D||A(z,ue,!1),D&&(Y.delta&&!Gt(D,8)?f.go(-Y.delta,!1):Y.type===di.pop&&Gt(D,20)&&f.go(-1,!1)),$(z,ue,D)}).catch(qr)}))}let x=Nr(),T=Nr(),O;function I(U,X,Y){P(U);const z=T.list();return z.length?z.forEach(ee=>ee(U,X,Y)):console.error(U),Promise.reject(U)}function F(){return O&&s.value!==dn?Promise.resolve():new Promise((U,X)=>{x.add([U,X])})}function P(U){return O||(O=!U,w(),x.list().forEach(([X,Y])=>U?Y(U):X()),x.reset()),U}function W(U,X,Y,z){const{scrollBehavior:ee}=e;if(!rr||!ee)return Promise.resolve();const ue=!Y&&Lb(Qc(U.fullPath,0))||(z||!Y)&&history.state&&history.state.scroll||null;return wi().then(()=>ee(U,X,ue)).then(D=>D&&xb(D)).catch(D=>I(D,U,X))}const j=U=>f.go(U);let H;const V=new Set,G={currentRoute:s,listening:!0,addRoute:c,removeRoute:l,hasRoute:m,getRoutes:d,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:h.add,afterEach:g.add,onError:T.add,isReady:F,install(U){const X=this;U.component("RouterLink",g1),U.component("RouterView",b1),U.config.globalProperties.$router=X,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(s)}),rr&&!H&&s.value===dn&&(H=!0,C(f.location).catch(ee=>{}));const Y={};for(const ee in dn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});U.provide(rs,X),U.provide($l,el(Y)),U.provide(wa,s);const z=U.unmount;V.add(U),U.unmount=function(){V.delete(U),V.size<1&&(p=dn,_&&_(),_=null,s.value=dn,H=!1,O=!1),z()}}};function q(U){return U.reduce((X,Y)=>X.then(()=>E(Y)),Promise.resolve())}return G}function $1(e,t){const n=[],r=[],f=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const g=t.matched[h];g&&(e.matched.find(p=>yr(p,g))?r.push(g):n.push(g));const s=e.matched[h];s&&(t.matched.find(p=>yr(p,s))||f.push(s))}return[n,r,f]}function Tr(){return Tt(rs)}function _1(){return Tt($l)}function ud(e){return Za()?(dh(e),!0):!1}function So(e){return typeof e=="function"?e():Jt(e)}const hd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const S1=()=>{};function C1(e){return e||Ot()}function A1(...e){if(e.length!==1)return Wo(...e);const t=e[0];return typeof t=="function"?No(Bo(()=>({get:t,set:S1}))):Ne(t)}function k1(e,t){C1(t)&&Rr(e,t)}function E1(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const R1=hd?window:void 0,x1=hd?window.document:void 0;function T1(){const e=Ne(!1);return Ot()&&Xe(()=>{e.value=!0}),e}function L1(e){const t=T1();return ke(()=>(t.value,!!e()))}function M1(e,t,n={}){const{window:r=R1,...f}=n;let u;const h=L1(()=>r&&"MutationObserver"in r),g=()=>{u&&(u.disconnect(),u=void 0)},s=qe(()=>E1(e),i=>{g(),h.value&&r&&i&&(u=new MutationObserver(t),u.observe(i,f))},{immediate:!0}),p=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return ud(o),{isSupported:h,stop:o,takeRecords:p}}function an(e=null,t={}){var n,r,f;const{document:u=x1,restoreOnUnmount:h=i=>i}=t,g=(n=u==null?void 0:u.title)!=null?n:"",s=A1((r=e??(u==null?void 0:u.title))!=null?r:null),p=e&&typeof e=="function";function o(i){if(!("titleTemplate"in t))return i;const a=t.titleTemplate||"%s";return typeof a=="function"?a(i):So(a).replace(/%s/g,i)}return qe(s,(i,a)=>{i!==a&&u&&(u.title=o(typeof i=="string"?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&u&&!p&&M1((f=u.head)==null?void 0:f.querySelector("title"),()=>{u&&u.title!==s.value&&(s.value=o(u.title))},{childList:!0}),k1(()=>{if(h){const i=h(g,s.value||"");i!=null&&u&&(u.title=i)}}),s}/*! CAF: shared.mjs
786
+ */const rr=typeof window<"u";function yb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function Ts(e,t){const n={};for(const r in t){const f=t[r];n[r]=Dt(f)?f.map(e):e(f)}return n}const Qr=()=>{},Dt=Array.isArray,bb=/\/$/,wb=e=>e.replace(bb,"");function Ls(e,t,n="/"){let r,f={},u="",h="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(r=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),f=e(u)),g>-1&&(r=r||t.slice(0,g),h=t.slice(g,t.length)),r=Cb(r??t,n),{fullPath:r+(u&&"?")+u+h,path:r,query:f,hash:h}}function $b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _b(e,t,n){const r=t.matched.length-1,f=n.matched.length-1;return r>-1&&r===f&&yr(t.matched[r],n.matched[f])&&ed(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ed(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Sb(e[n],t[n]))return!1;return!0}function Sb(e,t){return Dt(e)?qc(e,t):Dt(t)?qc(t,e):e===t}function qc(e,t){return Dt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Cb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),f=r[r.length-1];(f===".."||f===".")&&r.push("");let u=n.length-1,h,g;for(h=0;h<r.length;h++)if(g=r[h],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h-(h===r.length?1:0)).join("/")}var di;(function(e){e.pop="pop",e.push="push"})(di||(di={}));var qr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qr||(qr={}));function Ab(e){if(!e)if(rr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wb(e)}const kb=/^[^#]+#/;function Eb(e,t){return e.replace(kb,"#")+t}function Rb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const rs=()=>({left:window.pageXOffset,top:window.pageYOffset});function xb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),f=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!f)return;t=Rb(f,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 Jc(e,t){return(history.state?history.state.position-t:-1)+e}const ba=new Map;function Tb(e,t){ba.set(e,t)}function Lb(e){const t=ba.get(e);return ba.delete(e),t}let Mb=()=>location.protocol+"//"+location.host;function td(e,t){const{pathname:n,search:r,hash:f}=t,u=e.indexOf("#");if(u>-1){let g=f.includes(e.slice(u))?e.slice(u).length:1,s=f.slice(g);return s[0]!=="/"&&(s="/"+s),Qc(s,"")}return Qc(n,e)+r+f}function Ob(e,t,n,r){let f=[],u=[],h=null;const g=({state:a})=>{const c=td(e,location),l=n.value,d=t.value;let m=0;if(a){if(n.value=c,t.value=a,h&&h===l){h=null;return}m=d?a.position-d.position:0}else r(c);f.forEach(v=>{v(n.value,l,{delta:m,type:di.pop,direction:m?m>0?qr.forward:qr.back:qr.unknown})})};function s(){h=n.value}function p(a){f.push(a);const c=()=>{const l=f.indexOf(a);l>-1&&f.splice(l,1)};return u.push(c),c}function o(){const{history:a}=window;a.state&&a.replaceState(Pe({},a.state,{scroll:rs()}),"")}function i(){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:p,destroy:i}}function eu(e,t,n,r=!1,f=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:f?rs():null}}function Ib(e){const{history:t,location:n}=window,r={value:td(e,n)},f={value:t.state};f.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,p,o){const i=e.indexOf("#"),a=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+s:Mb()+e+s;try{t[o?"replaceState":"pushState"](p,"",a),f.value=p}catch(c){console.error(c),n[o?"replace":"assign"](a)}}function h(s,p){const o=Pe({},t.state,eu(f.value.back,s,f.value.forward,!0),p,{position:f.value.position});u(s,o,!0),r.value=s}function g(s,p){const o=Pe({},f.value,t.state,{forward:s,scroll:rs()});u(o.current,o,!0);const i=Pe({},eu(r.value,s,null),{position:o.position+1},p);u(s,i,!1),r.value=s}return{location:r,state:f,push:g,replace:h}}function Fb(e){e=Ab(e);const t=Ib(e),n=Ob(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const f=Pe({location:"",base:e,go:r,createHref:Eb.bind(null,e)},t,n);return Object.defineProperty(f,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(f,"state",{enumerable:!0,get:()=>t.state.value}),f}function Nb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Fb(e)}function Db(e){return typeof e=="string"||e&&typeof e=="object"}function nd(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},rd=Symbol("");var tu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(tu||(tu={}));function br(e,t){return Pe(new Error,{type:e,[rd]:!0},t)}function Gt(e,t){return e instanceof Error&&rd in e&&(t==null||!!(e.type&t))}const nu="[^/]+?",Pb={sensitive:!1,strict:!1,start:!0,end:!0},Bb=/[.+*?^${}()[\]/\\]/g;function Wb(e,t){const n=Pe({},Pb,t),r=[];let f=n.start?"^":"";const u=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(f+="/");for(let i=0;i<p.length;i++){const a=p[i];let c=40+(n.sensitive?.25:0);if(a.type===0)i||(f+="/"),f+=a.value.replace(Bb,"\\$&"),c+=40;else if(a.type===1){const{value:l,repeatable:d,optional:m,regexp:v}=a;u.push({name:l,repeatable:d,optional:m});const y=v||nu;if(y!==nu){c+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${l}" (${y}): `+C.message)}}let k=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;i||(k=m&&p.length<2?`(?:/${k})`:"/"+k),m&&(k+="?"),f+=k,c+=20,m&&(c+=-8),d&&(c+=-20),y===".*"&&(c+=-50)}o.push(c)}r.push(o)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(f+="/?"),n.end?f+="$":n.strict&&(f+="(?:/|$)");const h=new RegExp(f,n.sensitive?"":"i");function g(p){const o=p.match(h),i={};if(!o)return null;for(let a=1;a<o.length;a++){const c=o[a]||"",l=u[a-1];i[l.name]=c&&l.repeatable?c.split("/"):c}return i}function s(p){let o="",i=!1;for(const a of e){(!i||!o.endsWith("/"))&&(o+="/"),i=!1;for(const c of a)if(c.type===0)o+=c.value;else if(c.type===1){const{value:l,repeatable:d,optional:m}=c,v=l in p?p[l]:"";if(Dt(v)&&!d)throw new Error(`Provided param "${l}" is an array but it is not repeatable (* or + modifiers)`);const y=Dt(v)?v.join("/"):v;if(!y)if(m)a.length<2&&(o.endsWith("/")?o=o.slice(0,-1):i=!0);else throw new Error(`Missing required param "${l}"`);o+=y}}return o||"/"}return{re:h,score:r,keys:u,parse:g,stringify:s}}function Hb(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ub(e,t){let n=0;const r=e.score,f=t.score;for(;n<r.length&&n<f.length;){const u=Hb(r[n],f[n]);if(u)return u;n++}if(Math.abs(f.length-r.length)===1){if(ru(r))return 1;if(ru(f))return-1}return f.length-r.length}function ru(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Vb={type:0,value:""},zb=/[a-zA-Z0-9_]/;function jb(e){if(!e)return[[]];if(e==="/")return[[Vb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${p}": ${c}`)}let n=0,r=n;const f=[];let u;function h(){u&&f.push(u),u=[]}let g=0,s,p="",o="";function i(){p&&(n===0?u.push({type:0,value:p}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function a(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:s==="/"?(p&&i(),h()):s===":"?(i(),n=1):a();break;case 4:a(),n=r;break;case 1:s==="("?n=2:zb.test(s)?a():(i(),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:i(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),i(),h(),f}function Gb(e,t,n){const r=Wb(jb(e.path),n),f=Pe(r,{record:e,parent:t,children:[],alias:[]});return t&&!f.record.aliasOf==!t.record.aliasOf&&t.children.push(f),f}function Kb(e,t){const n=[],r=new Map;t=su({strict:!1,end:!0,sensitive:!1},t);function f(o){return r.get(o)}function u(o,i,a){const c=!a,l=Yb(o);l.aliasOf=a&&a.record;const d=su(t,o),m=[l];if("alias"in o){const k=typeof o.alias=="string"?[o.alias]:o.alias;for(const C of k)m.push(Pe({},l,{components:a?a.record.components:l.components,path:C,aliasOf:a?a.record:l}))}let v,y;for(const k of m){const{path:C}=k;if(i&&C[0]!=="/"){const S=i.record.path,b=S[S.length-1]==="/"?"":"/";k.path=i.record.path+(C&&b+C)}if(v=Gb(k,i,d),a?a.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),c&&o.name&&!ou(v)&&h(o.name)),l.children){const S=l.children;for(let b=0;b<S.length;b++)u(S[b],v,a&&a.children[b])}a=a||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&s(v)}return y?()=>{h(y)}:Qr}function h(o){if(nd(o)){const i=r.get(o);i&&(r.delete(o),n.splice(n.indexOf(i),1),i.children.forEach(h),i.alias.forEach(h))}else{const i=n.indexOf(o);i>-1&&(n.splice(i,1),o.record.name&&r.delete(o.record.name),o.children.forEach(h),o.alias.forEach(h))}}function g(){return n}function s(o){let i=0;for(;i<n.length&&Ub(o,n[i])>=0&&(o.record.path!==n[i].record.path||!id(o,n[i]));)i++;n.splice(i,0,o),o.record.name&&!ou(o)&&r.set(o.record.name,o)}function p(o,i){let a,c={},l,d;if("name"in o&&o.name){if(a=r.get(o.name),!a)throw br(1,{location:o});d=a.record.name,c=Pe(iu(i.params,a.keys.filter(y=>!y.optional).map(y=>y.name)),o.params&&iu(o.params,a.keys.map(y=>y.name))),l=a.stringify(c)}else if("path"in o)l=o.path,a=n.find(y=>y.re.test(l)),a&&(c=a.parse(l),d=a.record.name);else{if(a=i.name?r.get(i.name):n.find(y=>y.re.test(i.path)),!a)throw br(1,{location:o,currentLocation:i});d=a.record.name,c=Pe({},i.params,o.params),l=a.stringify(c)}const m=[];let v=a;for(;v;)m.unshift(v.record),v=v.parent;return{name:d,path:l,params:c,matched:m,meta:Zb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:p,removeRoute:h,getRoutes:g,getRecordMatcher:f}}function iu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Yb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Xb(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 Xb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ou(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function su(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function id(e,t){return t.children.some(n=>n===e||id(e,n))}const od=/#/g,Qb=/&/g,qb=/\//g,Jb=/=/g,e1=/\?/g,sd=/\+/g,t1=/%5B/g,n1=/%5D/g,ad=/%5E/g,r1=/%60/g,ld=/%7B/g,i1=/%7C/g,cd=/%7D/g,o1=/%20/g;function $l(e){return encodeURI(""+e).replace(i1,"|").replace(t1,"[").replace(n1,"]")}function s1(e){return $l(e).replace(ld,"{").replace(cd,"}").replace(ad,"^")}function wa(e){return $l(e).replace(sd,"%2B").replace(o1,"+").replace(od,"%23").replace(Qb,"%26").replace(r1,"`").replace(ld,"{").replace(cd,"}").replace(ad,"^")}function a1(e){return wa(e).replace(Jb,"%3D")}function l1(e){return $l(e).replace(od,"%23").replace(e1,"%3F")}function c1(e){return e==null?"":l1(e).replace(qb,"%2F")}function So(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function u1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let f=0;f<r.length;++f){const u=r[f].replace(sd," "),h=u.indexOf("="),g=So(h<0?u:u.slice(0,h)),s=h<0?null:So(u.slice(h+1));if(g in t){let p=t[g];Dt(p)||(p=t[g]=[p]),p.push(s)}else t[g]=s}return t}function au(e){let t="";for(let n in e){const r=e[n];if(n=a1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Dt(r)?r.map(u=>u&&wa(u)):[r&&wa(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function h1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Dt(r)?r.map(f=>f==null?null:""+f):r==null?r:""+r)}return t}const f1=Symbol(""),lu=Symbol(""),is=Symbol(""),_l=Symbol(""),$a=Symbol("");function Nr(){let e=[];function t(r){return e.push(r),()=>{const f=e.indexOf(r);f>-1&&e.splice(f,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wn(e,t,n,r,f){const u=r&&(r.enterCallbacks[f]=r.enterCallbacks[f]||[]);return()=>new Promise((h,g)=>{const s=i=>{i===!1?g(br(4,{from:n,to:t})):i instanceof Error?g(i):Db(i)?g(br(2,{from:t,to:i})):(u&&r.enterCallbacks[f]===u&&typeof i=="function"&&u.push(i),h())},p=e.call(r&&r.instances[f],t,n,s);let o=Promise.resolve(p);e.length<3&&(o=o.then(s)),o.catch(i=>g(i))})}function Ms(e,t,n,r){const f=[];for(const u of e)for(const h in u.components){let g=u.components[h];if(!(t!=="beforeRouteEnter"&&!u.instances[h]))if(d1(g)){const p=(g.__vccOpts||g)[t];p&&f.push(wn(p,n,r,u,h))}else{let s=g();f.push(()=>s.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${u.path}"`));const o=yb(p)?p.default:p;u.components[h]=o;const a=(o.__vccOpts||o)[t];return a&&wn(a,n,r,u,h)()}))}}return f}function d1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cu(e){const t=Tt(is),n=Tt(_l),r=ke(()=>t.resolve(qt(e.to))),f=ke(()=>{const{matched:s}=r.value,{length:p}=s,o=s[p-1],i=n.matched;if(!o||!i.length)return-1;const a=i.findIndex(yr.bind(null,o));if(a>-1)return a;const c=uu(s[p-2]);return p>1&&uu(o)===c&&i[i.length-1].path!==c?i.findIndex(yr.bind(null,s[p-2])):a}),u=ke(()=>f.value>-1&&v1(n.params,r.value.params)),h=ke(()=>f.value>-1&&f.value===n.matched.length-1&&ed(n.params,r.value.params));function g(s={}){return m1(s)?t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(Qr):Promise.resolve()}return{route:r,href:ke(()=>r.value.href),isActive:u,isExactActive:h,navigate:g}}const p1=we({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:cu,setup(e,{slots:t}){const n=Er(cu(e)),{options:r}=Tt(is),f=ke(()=>({[hu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[hu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:xr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:f.value},u)}}}),g1=p1;function m1(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 v1(e,t){for(const n in t){const r=t[n],f=e[n];if(typeof r=="string"){if(r!==f)return!1}else if(!Dt(f)||f.length!==r.length||r.some((u,h)=>u!==f[h]))return!1}return!0}function uu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hu=(e,t,n)=>e??t??n,y1=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Tt($a),f=ke(()=>e.route||r.value),u=Tt(lu,0),h=ke(()=>{let p=qt(u);const{matched:o}=f.value;let i;for(;(i=o[p])&&!i.components;)p++;return p}),g=ke(()=>f.value.matched[h.value]);Kr(lu,ke(()=>h.value+1)),Kr(f1,g),Kr($a,f);const s=Fe();return Xe(()=>[s.value,g.value,e.name],([p,o,i],[a,c,l])=>{o&&(o.instances[i]=p,c&&c!==o&&p&&p===a&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),p&&o&&(!c||!yr(o,c)||!a)&&(o.enterCallbacks[i]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=f.value,o=e.name,i=g.value,a=i&&i.components[o];if(!a)return fu(n.default,{Component:a,route:p});const c=i.props[o],l=c?c===!0?p.params:typeof c=="function"?c(p):c:null,m=xr(a,Pe({},l,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(i.instances[o]=null)},ref:s}));return fu(n.default,{Component:m,route:p})||m}}});function fu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const b1=y1;function w1(e){const t=Kb(e.routes,e),n=e.parseQuery||u1,r=e.stringifyQuery||au,f=e.history,u=Nr(),h=Nr(),g=Nr(),s=Rh(dn);let p=dn;rr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=Ts.bind(null,U=>""+U),i=Ts.bind(null,c1),a=Ts.bind(null,So);function c(U,Z){let Y,z;return nd(U)?(Y=t.getRecordMatcher(U),z=Z):z=U,t.addRoute(z,Y)}function l(U){const Z=t.getRecordMatcher(U);Z&&t.removeRoute(Z)}function d(){return t.getRoutes().map(U=>U.record)}function m(U){return!!t.getRecordMatcher(U)}function v(U,Z){if(Z=Pe({},Z||s.value),typeof U=="string"){const B=Ls(n,U,Z.path),K=t.resolve({path:B.path},Z),J=f.createHref(B.fullPath);return Pe(B,K,{params:a(K.params),hash:So(B.hash),redirectedFrom:void 0,href:J})}let Y;if("path"in U)Y=Pe({},U,{path:Ls(n,U.path,Z.path).path});else{const B=Pe({},U.params);for(const K in B)B[K]==null&&delete B[K];Y=Pe({},U,{params:i(B)}),Z.params=i(Z.params)}const z=t.resolve(Y,Z),ee=U.hash||"";z.params=o(a(z.params));const ue=$b(r,Pe({},U,{hash:s1(ee),path:z.path})),D=f.createHref(ue);return Pe({fullPath:ue,hash:ee,query:r===au?h1(U.query):U.query||{}},z,{redirectedFrom:void 0,href:D})}function y(U){return typeof U=="string"?Ls(n,U,s.value.path):Pe({},U)}function k(U,Z){if(p!==U)return br(8,{from:Z,to:U})}function C(U){return R(U)}function S(U){return C(Pe(y(U),{replace:!0}))}function b(U){const Z=U.matched[U.matched.length-1];if(Z&&Z.redirect){const{redirect:Y}=Z;let z=typeof Y=="function"?Y(U):Y;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=y(z):{path:z},z.params={}),Pe({query:U.query,hash:U.hash,params:"path"in z?{}:U.params},z)}}function R(U,Z){const Y=p=v(U),z=s.value,ee=U.state,ue=U.force,D=U.replace===!0,B=b(Y);if(B)return R(Pe(y(B),{state:typeof B=="object"?Pe({},ee,B.state):ee,force:ue,replace:D}),Z||Y);const K=Y;K.redirectedFrom=Z;let J;return!ue&&_b(r,z,Y)&&(J=br(16,{to:K,from:z}),W(z,z,!0,!1)),(J?Promise.resolve(J):M(K,z)).catch(te=>Gt(te)?Gt(te,2)?te:P(te):I(te,K,z)).then(te=>{if(te){if(Gt(te,2))return R(Pe({replace:D},y(te.to),{state:typeof te.to=="object"?Pe({},ee,te.to.state):ee,force:ue}),Z||K)}else te=A(K,z,!0,D,ee);return $(K,z,te),te})}function L(U,Z){const Y=k(U,Z);return Y?Promise.reject(Y):Promise.resolve()}function E(U){const Z=V.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(U):U()}function M(U,Z){let Y;const[z,ee,ue]=$1(U,Z);Y=Ms(z.reverse(),"beforeRouteLeave",U,Z);for(const B of z)B.leaveGuards.forEach(K=>{Y.push(wn(K,U,Z))});const D=L.bind(null,U,Z);return Y.push(D),Q(Y).then(()=>{Y=[];for(const B of u.list())Y.push(wn(B,U,Z));return Y.push(D),Q(Y)}).then(()=>{Y=Ms(ee,"beforeRouteUpdate",U,Z);for(const B of ee)B.updateGuards.forEach(K=>{Y.push(wn(K,U,Z))});return Y.push(D),Q(Y)}).then(()=>{Y=[];for(const B of ue)if(B.beforeEnter)if(Dt(B.beforeEnter))for(const K of B.beforeEnter)Y.push(wn(K,U,Z));else Y.push(wn(B.beforeEnter,U,Z));return Y.push(D),Q(Y)}).then(()=>(U.matched.forEach(B=>B.enterCallbacks={}),Y=Ms(ue,"beforeRouteEnter",U,Z),Y.push(D),Q(Y))).then(()=>{Y=[];for(const B of h.list())Y.push(wn(B,U,Z));return Y.push(D),Q(Y)}).catch(B=>Gt(B,8)?B:Promise.reject(B))}function $(U,Z,Y){g.list().forEach(z=>E(()=>z(U,Z,Y)))}function A(U,Z,Y,z,ee){const ue=k(U,Z);if(ue)return ue;const D=Z===dn,B=rr?history.state:{};Y&&(z||D?f.replace(U.fullPath,Pe({scroll:D&&B&&B.scroll},ee)):f.push(U.fullPath,ee)),s.value=U,W(U,Z,Y,D),P()}let _;function w(){_||(_=f.listen((U,Z,Y)=>{if(!G.listening)return;const z=v(U),ee=b(z);if(ee){R(Pe(ee,{replace:!0}),z).catch(Qr);return}p=z;const ue=s.value;rr&&Tb(Jc(ue.fullPath,Y.delta),rs()),M(z,ue).catch(D=>Gt(D,12)?D:Gt(D,2)?(R(D.to,z).then(B=>{Gt(B,20)&&!Y.delta&&Y.type===di.pop&&f.go(-1,!1)}).catch(Qr),Promise.reject()):(Y.delta&&f.go(-Y.delta,!1),I(D,z,ue))).then(D=>{D=D||A(z,ue,!1),D&&(Y.delta&&!Gt(D,8)?f.go(-Y.delta,!1):Y.type===di.pop&&Gt(D,20)&&f.go(-1,!1)),$(z,ue,D)}).catch(Qr)}))}let x=Nr(),T=Nr(),O;function I(U,Z,Y){P(U);const z=T.list();return z.length?z.forEach(ee=>ee(U,Z,Y)):console.error(U),Promise.reject(U)}function F(){return O&&s.value!==dn?Promise.resolve():new Promise((U,Z)=>{x.add([U,Z])})}function P(U){return O||(O=!U,w(),x.list().forEach(([Z,Y])=>U?Y(U):Z()),x.reset()),U}function W(U,Z,Y,z){const{scrollBehavior:ee}=e;if(!rr||!ee)return Promise.resolve();const ue=!Y&&Lb(Jc(U.fullPath,0))||(z||!Y)&&history.state&&history.state.scroll||null;return wi().then(()=>ee(U,Z,ue)).then(D=>D&&xb(D)).catch(D=>I(D,U,Z))}const j=U=>f.go(U);let H;const V=new Set,G={currentRoute:s,listening:!0,addRoute:c,removeRoute:l,hasRoute:m,getRoutes:d,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:h.add,afterEach:g.add,onError:T.add,isReady:F,install(U){const Z=this;U.component("RouterLink",g1),U.component("RouterView",b1),U.config.globalProperties.$router=Z,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(s)}),rr&&!H&&s.value===dn&&(H=!0,C(f.location).catch(ee=>{}));const Y={};for(const ee in dn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});U.provide(is,Z),U.provide(_l,tl(Y)),U.provide($a,s);const z=U.unmount;V.add(U),U.unmount=function(){V.delete(U),V.size<1&&(p=dn,_&&_(),_=null,s.value=dn,H=!1,O=!1),z()}}};function Q(U){return U.reduce((Z,Y)=>Z.then(()=>E(Y)),Promise.resolve())}return G}function $1(e,t){const n=[],r=[],f=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const g=t.matched[h];g&&(e.matched.find(p=>yr(p,g))?r.push(g):n.push(g));const s=e.matched[h];s&&(t.matched.find(p=>yr(p,s))||f.push(s))}return[n,r,f]}function Tr(){return Tt(is)}function _1(){return Tt(_l)}function ud(e){return Qa()?(dh(e),!0):!1}function Co(e){return typeof e=="function"?e():qt(e)}const hd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const S1=()=>{};function C1(e){return e||Ot()}function A1(...e){if(e.length!==1)return Ho(...e);const t=e[0];return typeof t=="function"?Do(Wo(()=>({get:t,set:S1}))):Fe(t)}function k1(e,t){C1(t)&&Rr(e,t)}function E1(e){var t;const n=Co(e);return(t=n==null?void 0:n.$el)!=null?t:n}const R1=hd?window:void 0,x1=hd?window.document:void 0;function T1(){const e=Fe(!1);return Ot()&&qe(()=>{e.value=!0}),e}function L1(e){const t=T1();return ke(()=>(t.value,!!e()))}function M1(e,t,n={}){const{window:r=R1,...f}=n;let u;const h=L1(()=>r&&"MutationObserver"in r),g=()=>{u&&(u.disconnect(),u=void 0)},s=Xe(()=>E1(e),i=>{g(),h.value&&r&&i&&(u=new MutationObserver(t),u.observe(i,f))},{immediate:!0}),p=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return ud(o),{isSupported:h,stop:o,takeRecords:p}}function an(e=null,t={}){var n,r,f;const{document:u=x1,restoreOnUnmount:h=i=>i}=t,g=(n=u==null?void 0:u.title)!=null?n:"",s=A1((r=e??(u==null?void 0:u.title))!=null?r:null),p=e&&typeof e=="function";function o(i){if(!("titleTemplate"in t))return i;const a=t.titleTemplate||"%s";return typeof a=="function"?a(i):Co(a).replace(/%s/g,i)}return Xe(s,(i,a)=>{i!==a&&u&&(u.title=o(typeof i=="string"?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&u&&!p&&M1((f=u.head)==null?void 0:f.querySelector("title"),()=>{u&&u.title!==s.value&&(s.value=o(u.title))},{childList:!0}),k1(()=>{if(h){const i=h(g,s.value||"");i!=null&&u&&(u.title=i)}}),s}/*! CAF: shared.mjs
787
787
  v15.0.1 (c) 2022 Kyle Simpson
788
788
  MIT License: http://getify.mit-license.org
789
- */const Zt=Symbol("Cleanup Function"),_l=Symbol("Timeout Token"),sr=Symbol("Signal Reason"),st=Symbol("Unset"),[no,O1]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Cl(t.signal.reason)]}();class Zn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[sr]=st;var r=(f,u)=>{var h=()=>{if(u&&this.signal){let g=Ci(this.signal);this._trackSignalReason(g),u(g!==st?g:void 0)}u=null};this.signal.addEventListener("abort",h,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",h,!1),this.signal.pr&&(this.signal.pr[Zt]=null)),h=null}};this.signal.pr=new Promise(r),this.signal.pr[Zt]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:st;this._trackSignalReason(n),this.controller&&(no&&n!==st?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[Zt]&&this.signal.pr[Zt](),this.signal.pr=null),delete this.signal[sr],no||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==st&&(no||"reason"in this.signal||(this.signal.reason=t),this.signal[sr]===st&&(this.signal[sr]=t))}}function Ci(e){return e&&e.aborted?no&&O1?Cl(e.reason)?st:e.reason:sr in e?e[sr]:st:st}function fd(e){if(e.pr)return e.pr;var t,n=new Promise(function(f,u){t=()=>{if(u&&e){let h=Ci(e);u(h!==st?h:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[Zt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[Zt]=t=null)},n.catch(n[Zt]),n}function Sl(e){e instanceof AbortController&&(e=new Zn(e));var t=e&&e instanceof Zn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:fd(t)}}function $a(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Mn(e){return typeof e=="function"}function I1(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Cl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function is(e,t){Cl(t)||t===st?e.abort():e.abort(t)}/*! CAF: caf.mjs
789
+ */const Zt=Symbol("Cleanup Function"),Sl=Symbol("Timeout Token"),sr=Symbol("Signal Reason"),st=Symbol("Unset"),[ro,O1]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Al(t.signal.reason)]}();class Zn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[sr]=st;var r=(f,u)=>{var h=()=>{if(u&&this.signal){let g=Ci(this.signal);this._trackSignalReason(g),u(g!==st?g:void 0)}u=null};this.signal.addEventListener("abort",h,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",h,!1),this.signal.pr&&(this.signal.pr[Zt]=null)),h=null}};this.signal.pr=new Promise(r),this.signal.pr[Zt]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:st;this._trackSignalReason(n),this.controller&&(ro&&n!==st?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[Zt]&&this.signal.pr[Zt](),this.signal.pr=null),delete this.signal[sr],ro||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==st&&(ro||"reason"in this.signal||(this.signal.reason=t),this.signal[sr]===st&&(this.signal[sr]=t))}}function Ci(e){return e&&e.aborted?ro&&O1?Al(e.reason)?st:e.reason:sr in e?e[sr]:st:st}function fd(e){if(e.pr)return e.pr;var t,n=new Promise(function(f,u){t=()=>{if(u&&e){let h=Ci(e);u(h!==st?h:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[Zt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[Zt]=t=null)},n.catch(n[Zt]),n}function Cl(e){e instanceof AbortController&&(e=new Zn(e));var t=e&&e instanceof Zn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:fd(t)}}function _a(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Mn(e){return typeof e=="function"}function I1(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Al(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function os(e,t){Al(t)||t===st?e.abort():e.abort(t)}/*! CAF: caf.mjs
790
790
  v15.0.1 (c) 2022 Kyle Simpson
791
791
  MIT License: http://getify.mit-license.org
792
- */const _a=Object.assign(F1,{cancelToken:Zn,delay:dd,timeout:N1,signalRace:D1,signalAll:P1,tokenCycle:B1});function F1(e){return function(n,...r){var f,u;if({tokenOrSignal:n,signal:f,signalPr:u}=Sl(n),f.aborted)return u;var h=u.catch(function(i){var a=Ci(f);a=a!==st?a:i;try{var c=g.return();throw c.value!==void 0?c.value:a!==st?a:void 0}finally{g=s=h=p=null}}),{it:g,result:s}=W1.call(this,e,f,...r),p=Promise.race([s,h]);if(n!==f&&n[_l]){let o=function(a){is(n,a),Mn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return r=null,p}}function dd(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Sl(e)),n&&n.aborted?r:new Promise(function(u,h){n&&(r.catch(function(){if(h&&n&&g){let p=Ci(n);clearTimeout(g),h(p!==st?p:`delay (${t}) interrupted`),u=h=g=n=null}}),r=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=h=g=n=null},t)})}function N1(e,t="Timeout"){e=Number(e)||0;var n=new Zn;return dd(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,_l,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...f){is(n,f.length>0?f[0]:st),n.discard(),n=null}}function pd(e){return e.reduce(function(n,r){var f=fd(r);return n[0].push(f),r.pr||n[1].push(f),n},[[],[]])}function gd(e,t,n){e.then(function(f){is(t,f),t.discard(),t=null}).then(function(){for(let f of n)f[Zt]&&f[Zt]();n=null})}function md(e){return e.catch(t=>t)}function D1(e){var t=new Zn,[n,r]=pd(e);return gd(md(Promise.race(n)),t,r),t.signal}function P1(e){var t=new Zn,[n,r]=pd(e);return gd(Promise.all(n.map(md)),t,r),t.signal}function B1(){var e;return function(...n){return e&&(is(e,n.length>0?n[0]:st),e.discard()),e=new Zn}}function W1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(f){try{var u=n.next(f);f=null}catch(h){return Promise.reject(h)}return function h(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(r,function(o){return Promise.resolve(n.throw(o)).then(h)})).catch(function(){n=null}),g=null,s}(u)}()}}/*! CAF: cag.mjs
792
+ */const Sa=Object.assign(F1,{cancelToken:Zn,delay:dd,timeout:N1,signalRace:D1,signalAll:P1,tokenCycle:B1});function F1(e){return function(n,...r){var f,u;if({tokenOrSignal:n,signal:f,signalPr:u}=Cl(n),f.aborted)return u;var h=u.catch(function(i){var a=Ci(f);a=a!==st?a:i;try{var c=g.return();throw c.value!==void 0?c.value:a!==st?a:void 0}finally{g=s=h=p=null}}),{it:g,result:s}=W1.call(this,e,f,...r),p=Promise.race([s,h]);if(n!==f&&n[Sl]){let o=function(a){os(n,a),Mn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return r=null,p}}function dd(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Cl(e)),n&&n.aborted?r:new Promise(function(u,h){n&&(r.catch(function(){if(h&&n&&g){let p=Ci(n);clearTimeout(g),h(p!==st?p:`delay (${t}) interrupted`),u=h=g=n=null}}),r=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=h=g=n=null},t)})}function N1(e,t="Timeout"){e=Number(e)||0;var n=new Zn;return dd(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Sl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...f){os(n,f.length>0?f[0]:st),n.discard(),n=null}}function pd(e){return e.reduce(function(n,r){var f=fd(r);return n[0].push(f),r.pr||n[1].push(f),n},[[],[]])}function gd(e,t,n){e.then(function(f){os(t,f),t.discard(),t=null}).then(function(){for(let f of n)f[Zt]&&f[Zt]();n=null})}function md(e){return e.catch(t=>t)}function D1(e){var t=new Zn,[n,r]=pd(e);return gd(md(Promise.race(n)),t,r),t.signal}function P1(e){var t=new Zn,[n,r]=pd(e);return gd(Promise.all(n.map(md)),t,r),t.signal}function B1(){var e;return function(...n){return e&&(os(e,n.length>0?n[0]:st),e.discard()),e=new Zn}}function W1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(f){try{var u=n.next(f);f=null}catch(h){return Promise.reject(h)}return function h(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(r,function(o){return Promise.resolve(n.throw(o)).then(h)})).catch(function(){n=null}),g=null,s}(u)}()}}/*! CAF: cag.mjs
793
793
  v15.0.1 (c) 2022 Kyle Simpson
794
794
  MIT License: http://getify.mit-license.org
795
- */Ca=_a(Ca);Object.assign(yd,{onEvent:bd,onceEvent:Ca});var Sa=new WeakSet;const Ms=Symbol("unset"),vd=Symbol("returned"),du=Symbol("canceled");function yd(e){return function(n,...r){var f,u;if({tokenOrSignal:n,signal:f,signalPr:u}=Sl(n),f.aborted){let i=Ci(f);throw i=i!==st?i:"Aborted",i}var h=$a(),{it:g,ait:s}=U1(e,h.pr,o,f,...r),p=s.return;return s.return=function(a){try{return h.pr.resolved=!0,h.resolve(vd),Promise.resolve(g.return(a))}finally{p.call(s),o()}},s;function o(){n&&n!==f&&n[_l]&&n.abort(),s&&(s.return=p,n=h=g=s=p=null)}}}function bd(e,t,n,r=!1){var f,u,h=!1,g=yd(function*({pwait:i}){h||s();try{for(;;){if(f.length==0){let{pr:a,resolve:c}=$a();f.push(a),u.push(c)}yield yield i(f.shift())}}finally{Mn(t.removeEventListener)?t.removeEventListener(n,p,r):Mn(t.removeListener)?t.removeListener(n,p):Mn(t.off)&&t.off(n,p),f.length=u.length=0}})(e,t,n,r);return g.start=s,g;function s(){h||(h=!0,f=[],u=[],Mn(t.addEventListener)?t.addEventListener(n,p,r):Mn(t.addListener)?t.addListener(n,p):Mn(t.on)&&t.on(n,p))}function p(o){if(u.length>0)u.shift()(o);else{let{pr:i,resolve:a}=$a();f.push(i),a(o)}}}function*Ca(e,t,n,r=!1){try{var f=bd(e,t,n,r);return(yield f.next()).value}finally{f.return()}}function H1(e){var t=Promise.resolve(e);return Sa.add(t),t}function U1(e,t,n,r,...f){var u=e.call(this,{signal:r,pwait:H1},...f);e=f=null;var h=r.pr.catch(g=>{throw{[du]:!0,reason:g}});return h.catch(()=>{}),{it:u,ait:async function*(){var s,p=Ms;try{for(;!t.resolved;)if(p!==Ms?(s=p,p=Ms,s=u.throw(s)):s=u.next(s),I1(s.value))if(Sa.has(s.value)){Sa.delete(s.value);try{if((s=await Promise.race([t,h,s.value]))===vd)return}catch(o){if(o[du]){let i=u.return();throw i.value!==void 0?i.value:o.reason}p=o}}else s=yield s.value;else{if(s.done)return s.value;s=yield s.value}}finally{u=t=null,n()}}()}}const V1=e=>e._runningInstances.length>=e._maxConcurrency,z1=e=>{const t=e._activeInstances[0];t&&t.cancel()},j1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Dr(e,t){return t?G1(()=>e()._instances,t):ke(()=>[])}function G1(e,t,n){return ke(()=>e().filter(r=>{const f=r[t];return n?f===n:f}))}function K1(e){return ke(()=>e().length)}function pu(e){return ke(()=>{const t=e();return t[t.length-1]})}function Y1(e){return ke(()=>e()[0])}const wd=e=>e;function $d(e){return Er(e)}function X1(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function ft(e){return J1(function*(t,...n){return e(t,...n)})}function Z1(e,t,n){const r=wd({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ke(()=>f.isCanceling&&f.isFinished),isActive:ke(()=>f.isRunning&&!f.isCanceling),isSuccessful:!1,isNotDropped:ke(()=>!f.isDropped),isError:ke(()=>!!f.error),status:ke(()=>{const h=f,g=[[h.isRunning,"running"],[h.isEnqueued,"enqueued"],[h.isCanceled,"canceled"],[h.isCanceling,"canceling"],[h.isDropped,"dropped"],[h.isError,"error"],[h.isSuccessful,"success"]].find(([s])=>s);return g&&g[1]}),error:null,value:null,cancel({force:h}={force:!1}){if(h||(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(h){return h.pr.catch(()=>{f.cancel()}),f},_run(){q1(f,e,t,n)},_handled:!0,_deferredObject:X1(),_shouldThrow:!1,_canAbort:!0,then(h,g){return f._shouldThrow=!0,f._deferredObject.promise.then(h,g)},catch(h,g=!0){return f._shouldThrow=g,f._deferredObject.promise.catch(h)},finally(h){return f._shouldThrow=!0,f._deferredObject.promise.finally(h)}}),f=$d(r),{modifiers:u}=n;return u.drop?f.isDropped=!0:u.enqueue?f.isEnqueued=!0:f._run(),f}function q1(e,t,n,r){const f=new _a.cancelToken,u=_a(t,f);e.token=f,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function h(){e.isRunning=!1,e.isFinished=!0}u.call(e,f,...n).then(g=>{e.value=g,e.isSuccessful=!0,h(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),h(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function J1(e,t={cancelOnUnmount:!0}){const n=Ot(),r=hh(),f=wd({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest),isIdle:ke(()=>!u.isRunning),isRunning:ke(()=>!!u._instances.find(h=>h.isRunning)),isError:ke(()=>!!(u.last&&u.last.isError)),_instances:[],_successfulInstances:Dr(()=>u,"isSuccessful"),_runningInstances:Dr(()=>u,"isRunning"),_enqueuedInstances:Dr(()=>u,"isEnqueued"),_notDroppedInstances:Dr(()=>u,"isNotDropped"),_activeInstances:Dr(()=>u,"isActive"),performCount:K1(()=>u._instances),last:pu(()=>u._notDroppedInstances),lastSuccessful:pu(()=>u._successfulInstances),firstEnqueued:Y1(()=>u._enqueuedInstances),cancelAll({force:h}={force:!1}){u._instances.forEach(g=>{try{(h||!g.isDropped&&!g.isFinished)&&g.cancel({force:h})}catch(s){if(s!=="cancel")throw s}})},perform(...h){const g={enqueue:!1,drop:!1};u._hasConcurrency&&V1(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&z1(u),u._isKeepingLatest&&j1(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));const s=()=>Q1(u),p=()=>Z1(e,h,{modifiers:g,onFinish:s,scope:r,id:u._instances.length+1}),o=r.active?r.run(p):p();return r.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[...u._instances,o],o},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency(h){return u._maxConcurrency=h,u}}),u=$d(f);return n&&t.cancelOnUnmount&&Rr(()=>{u._instances&&u.destroy()}),u}function Q1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function _d(e,t){return function(){return e.apply(t,arguments)}}const{toString:ew}=Object.prototype,{getPrototypeOf:Al}=Object,os=(e=>t=>{const n=ew.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>os(t)===e),ss=e=>t=>typeof t===e,{isArray:Lr}=Array,pi=ss("undefined");function tw(e){return e!==null&&!pi(e)&&e.constructor!==null&&!pi(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sd=jt("ArrayBuffer");function nw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sd(e.buffer),t}const rw=ss("string"),Mt=ss("function"),Cd=ss("number"),as=e=>e!==null&&typeof e=="object",iw=e=>e===!0||e===!1,ro=e=>{if(os(e)!=="object")return!1;const t=Al(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ow=jt("Date"),sw=jt("File"),aw=jt("Blob"),lw=jt("FileList"),cw=e=>as(e)&&Mt(e.pipe),uw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((t=os(e))==="formdata"||t==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},hw=jt("URLSearchParams"),fw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,f;if(typeof e!="object"&&(e=[e]),Lr(e))for(r=0,f=e.length;r<f;r++)t.call(null,e[r],r,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),h=u.length;let g;for(r=0;r<h;r++)g=u[r],t.call(null,e[g],g,e)}}function Ad(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,f;for(;r-- >0;)if(f=n[r],t===f.toLowerCase())return f;return null}const kd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ed=e=>!pi(e)&&e!==kd;function Aa(){const{caseless:e}=Ed(this)&&this||{},t={},n=(r,f)=>{const u=e&&Ad(t,f)||f;ro(t[u])&&ro(r)?t[u]=Aa(t[u],r):ro(r)?t[u]=Aa({},r):Lr(r)?t[u]=r.slice():t[u]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Ai(arguments[r],n);return t}const dw=(e,t,n,{allOwnKeys:r}={})=>(Ai(t,(f,u)=>{n&&Mt(f)?e[u]=_d(f,n):e[u]=f},{allOwnKeys:r}),e),pw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mw=(e,t,n,r)=>{let f,u,h;const g={};if(t=t||{},e==null)return t;do{for(f=Object.getOwnPropertyNames(e),u=f.length;u-- >0;)h=f[u],(!r||r(h,e,t))&&!g[h]&&(t[h]=e[h],g[h]=!0);e=n!==!1&&Al(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 r=e.indexOf(t,n);return r!==-1&&r===n},yw=e=>{if(!e)return null;if(Lr(e))return e;let t=e.length;if(!Cd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Al(Uint8Array)),ww=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let f;for(;(f=r.next())&&!f.done;){const u=f.value;t.call(e,u[0],u[1])}},$w=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_w=jt("HTMLFormElement"),Sw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,f){return r.toUpperCase()+f}),gu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cw=jt("RegExp"),Rd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ai(n,(f,u)=>{let h;(h=t(f,u,e))!==!1&&(r[u]=h||f)}),Object.defineProperties(e,r)},Aw=e=>{Rd(e,(t,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kw=(e,t)=>{const n={},r=f=>{f.forEach(u=>{n[u]=!0})};return Lr(e)?r(e):r(String(e).split(t)),n},Ew=()=>{},Rw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Os="abcdefghijklmnopqrstuvwxyz",mu="0123456789",xd={DIGIT:mu,ALPHA:Os,ALPHA_DIGIT:Os+Os.toUpperCase()+mu},xw=(e=16,t=xd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Tw(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lw=e=>{const t=new Array(10),n=(r,f)=>{if(as(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const u=Lr(r)?[]:{};return Ai(r,(h,g)=>{const s=n(h,f+1);!pi(s)&&(u[g]=s)}),t[f]=void 0,u}}return r};return n(e,0)},Mw=jt("AsyncFunction"),Ow=e=>e&&(as(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),ne={isArray:Lr,isArrayBuffer:Sd,isBuffer:tw,isFormData:uw,isArrayBufferView:nw,isString:rw,isNumber:Cd,isBoolean:iw,isObject:as,isPlainObject:ro,isUndefined:pi,isDate:ow,isFile:sw,isBlob:aw,isRegExp:Cw,isFunction:Mt,isStream:cw,isURLSearchParams:hw,isTypedArray:bw,isFileList:lw,forEach:Ai,merge:Aa,extend:dw,trim:fw,stripBOM:pw,inherits:gw,toFlatObject:mw,kindOf:os,kindOfTest:jt,endsWith:vw,toArray:yw,forEachEntry:ww,matchAll:$w,isHTMLForm:_w,hasOwnProperty:gu,hasOwnProp:gu,reduceDescriptors:Rd,freezeMethods:Aw,toObjectSet:kw,toCamelCase:Sw,noop:Ew,toFiniteNumber:Rw,findKey:Ad,global:kd,isContextDefined:Ed,ALPHABET:xd,generateString:xw,isSpecCompliantForm:Tw,toJSONObject:Lw,isAsyncFn:Mw,isThenable:Ow};function Oe(e,t,n,r,f){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),r&&(this.request=r),f&&(this.response=f)}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 Td=Oe.prototype,Ld={};["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=>{Ld[e]={value:e}});Object.defineProperties(Oe,Ld);Object.defineProperty(Td,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,f,u)=>{const h=Object.create(Td);return ne.toFlatObject(e,h,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(h,e.message,t,n,r,f),h.cause=e,h.name=e.name,u&&Object.assign(h,u),h};const Iw=null;function ka(e){return ne.isPlainObject(e)||ne.isArray(e)}function Md(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function vu(e,t,n){return e?e.concat(t).map(function(f,u){return f=Md(f),!n&&u?"["+f+"]":f}).join(n?".":""):t}function Fw(e){return ne.isArray(e)&&!e.some(ka)}const Nw=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function ls(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 r=n.metaTokens,f=n.visitor||o,u=n.dots,h=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(f))throw new TypeError("visitor must be a function");function p(l){if(l===null)return"";if(ne.isDate(l))return l.toISOString();if(!s&&ne.isBlob(l))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(l)||ne.isTypedArray(l)?s&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function o(l,d,m){let v=l;if(l&&!m&&typeof l=="object"){if(ne.endsWith(d,"{}"))d=r?d:d.slice(0,-2),l=JSON.stringify(l);else if(ne.isArray(l)&&Fw(l)||(ne.isFileList(l)||ne.endsWith(d,"[]"))&&(v=ne.toArray(l)))return d=Md(d),v.forEach(function(k,C){!(ne.isUndefined(k)||k===null)&&t.append(h===!0?vu([d],C,u):h===null?d:d+"[]",p(k))}),!1}return ka(l)?!0:(t.append(vu(m,d,u),p(l)),!1)}const i=[],a=Object.assign(Nw,{defaultVisitor:o,convertValue:p,isVisitable:ka});function c(l,d){if(!ne.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+d.join("."));i.push(l),ne.forEach(l,function(v,y){(!(ne.isUndefined(v)||v===null)&&f.call(t,v,ne.isString(y)?y.trim():y,d,a))===!0&&c(v,d?d.concat(y):[y])}),i.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function yu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function kl(e,t){this._pairs=[],e&&ls(e,this,t)}const Od=kl.prototype;Od.append=function(t,n){this._pairs.push([t,n])};Od.toString=function(t){const n=t?function(r){return t.call(this,r,yu)}:yu;return this._pairs.map(function(f){return n(f[0])+"="+n(f[1])},"").join("&")};function Dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Id(e,t,n){if(!t)return e;const r=n&&n.encode||Dw,f=n&&n.serialize;let u;if(f?u=f(t,n):u=ne.isURLSearchParams(t)?t.toString():new kl(t,n).toString(r),u){const h=e.indexOf("#");h!==-1&&(e=e.slice(0,h)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class bu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}}const Fd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pw=typeof URLSearchParams<"u"?URLSearchParams:kl,Bw=typeof FormData<"u"?FormData:null,Ww=typeof Blob<"u"?Blob:null,Hw={isBrowser:!0,classes:{URLSearchParams:Pw,FormData:Bw,Blob:Ww},protocols:["http","https","file","blob","url","data"]},Nd=typeof window<"u"&&typeof document<"u",Uw=(e=>Nd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nd,hasStandardBrowserEnv:Uw,hasStandardBrowserWebWorkerEnv:Vw},Symbol.toStringTag,{value:"Module"})),Ht={...zw,...Hw};function jw(e,t){return ls(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(n,r,f,u){return Ht.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function Gw(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kw(e){const t={},n=Object.keys(e);let r;const f=n.length;let u;for(r=0;r<f;r++)u=n[r],t[u]=e[u];return t}function Dd(e){function t(n,r,f,u){let h=n[u++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),s=u>=n.length;return h=!h&&ne.isArray(f)?f.length:h,s?(ne.hasOwnProp(f,h)?f[h]=[f[h],r]:f[h]=r,!g):((!f[h]||!ne.isObject(f[h]))&&(f[h]=[]),t(n,r,f[h],u)&&ne.isArray(f[h])&&(f[h]=Kw(f[h])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,f)=>{t(Gw(r),f,n,0)}),n}return null}function Yw(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const El={transitional:Fd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",f=r.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return f&&f?JSON.stringify(Dd(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(r.indexOf("application/x-www-form-urlencoded")>-1)return jw(t,this.formSerializer).toString();if((g=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ls(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||f?(n.setContentType("application/json",!1),Yw(t)):t}],transformResponse:[function(t){const n=this.transitional||El.transitional,r=n&&n.forcedJSONParsing,f=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||f)){const h=!(n&&n.silentJSONParsing)&&f;try{return JSON.parse(t)}catch(g){if(h)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:Ht.classes.FormData,Blob:Ht.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=>{El.headers[e]={}});const Rl=El,Xw=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"]),Zw=e=>{const t={};let n,r,f;return e&&e.split(`
796
- `).forEach(function(h){f=h.indexOf(":"),n=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim(),!(!n||t[n]&&Xw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wu=Symbol("internals");function Pr(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:ne.isArray(e)?e.map(io):String(e)}function qw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Jw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Is(e,t,n,r,f){if(ne.isFunction(r))return r.call(this,t,n);if(f&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function Qw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function e$(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(f,u,h){return this[r].call(this,t,f,u,h)},configurable:!0})})}let cs=class{constructor(t){t&&this.set(t)}set(t,n,r){const f=this;function u(g,s,p){const o=Pr(s);if(!o)throw new Error("header name must be a non-empty string");const i=ne.findKey(f,o);(!i||f[i]===void 0||p===!0||p===void 0&&f[i]!==!1)&&(f[i||s]=io(g))}const h=(g,s)=>ne.forEach(g,(p,o)=>u(p,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?h(t,n):ne.isString(t)&&(t=t.trim())&&!Jw(t)?h(Zw(t),n):t!=null&&u(n,t,r),this}get(t,n){if(t=Pr(t),t){const r=ne.findKey(this,t);if(r){const f=this[r];if(!n)return f;if(n===!0)return qw(f);if(ne.isFunction(n))return n.call(this,f,r);if(ne.isRegExp(n))return n.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pr(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Is(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let f=!1;function u(h){if(h=Pr(h),h){const g=ne.findKey(r,h);g&&(!n||Is(r,r[g],g,n))&&(delete r[g],f=!0)}}return ne.isArray(t)?t.forEach(u):u(t),f}clear(t){const n=Object.keys(this);let r=n.length,f=!1;for(;r--;){const u=n[r];(!t||Is(this,this[u],u,t,!0))&&(delete this[u],f=!0)}return f}normalize(t){const n=this,r={};return ne.forEach(this,(f,u)=>{const h=ne.findKey(r,u);if(h){n[h]=io(f),delete n[u];return}const g=t?Qw(u):String(u).trim();g!==u&&delete n[u],n[g]=io(f),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,f)=>{r!=null&&r!==!1&&(n[f]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
797
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(f=>r.set(f)),r}static accessor(t){const r=(this[wu]=this[wu]={accessors:{}}).accessors,f=this.prototype;function u(h){const g=Pr(h);r[g]||(e$(f,h),r[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}};cs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(cs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(cs);const en=cs;function Fs(e,t){const n=this||Rl,r=t||n,f=en.from(r.headers);let u=r.data;return ne.forEach(e,function(g){u=g.call(n,u,f.normalize(),t?t.status:void 0)}),f.normalize(),u}function Pd(e){return!!(e&&e.__CANCEL__)}function ki(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(ki,Oe,{__CANCEL__:!0});function t$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(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 n$=Ht.hasStandardBrowserEnv?{write(e,t,n,r,f,u){const h=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&h.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&h.push("path="+r),ne.isString(f)&&h.push("domain="+f),u===!0&&h.push("secure"),document.cookie=h.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 r$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bd(e,t){return e&&!r$(t)?i$(e,t):t}const o$=Ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function f(u){let h=u;return t&&(n.setAttribute("href",h),h=n.href),n.setAttribute("href",h),{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 r=f(window.location.href),function(h){const g=ne.isString(h)?f(h):h;return g.protocol===r.protocol&&g.host===r.host}}():function(){return function(){return!0}}();function s$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let f=0,u=0,h;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=r[u];h||(h=p),n[f]=s,r[f]=p;let i=u,a=0;for(;i!==f;)a+=n[i++],i=i%e;if(f=(f+1)%e,f===u&&(u=(u+1)%e),p-h<t)return;const c=o&&p-o;return c?Math.round(a*1e3/c):void 0}}function $u(e,t){let n=0;const r=a$(50,250);return f=>{const u=f.loaded,h=f.lengthComputable?f.total:void 0,g=u-n,s=r(g),p=u<=h;n=u;const o={loaded:u,total:h,progress:h?u/h:void 0,bytes:g,rate:s||void 0,estimated:s&&h&&p?(h-u)/s:void 0,event:f};o[t?"download":"upload"]=!0,e(o)}}const l$=typeof XMLHttpRequest<"u",c$=l$&&function(e){return new Promise(function(n,r){let f=e.data;const u=en.from(e.headers).normalize();let{responseType:h,withXSRFToken:g}=e,s;function p(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(ne.isFormData(f)){if(Ht.hasStandardBrowserEnv||Ht.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 i=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=Bd(e.baseURL,e.url);i.open(e.method.toUpperCase(),Id(a,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function c(){if(!i)return;const d=en.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),v={data:!h||h==="text"||h==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:d,config:e,request:i};t$(function(k){n(k),p()},function(k){r(k),p()},v),i=null}if("onloadend"in i?i.onloadend=c:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(c)},i.onabort=function(){i&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Fd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,i)),i=null},Ht.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&o$(a))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&n$.read(e.xsrfCookieName);d&&u.set(e.xsrfHeaderName,d)}f===void 0&&u.setContentType(null),"setRequestHeader"in i&&ne.forEach(u.toJSON(),function(m,v){i.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),h&&h!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",$u(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",$u(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{i&&(r(!d||d.type?new ki(null,e,i):d),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const l=s$(a);if(l&&Ht.protocols.indexOf(l)===-1){r(new Oe("Unsupported protocol "+l+":",Oe.ERR_BAD_REQUEST,e));return}i.send(f||null)})},Ea={http:Iw,xhr:c$};ne.forEach(Ea,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _u=e=>`- ${e}`,u$=e=>ne.isFunction(e)||e===null||e===!1,Wd={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const f={};for(let u=0;u<t;u++){n=e[u];let h;if(r=n,!u$(n)&&(r=Ea[(h=String(n)).toLowerCase()],r===void 0))throw new Oe(`Unknown adapter '${h}'`);if(r)break;f[h||"#"+u]=r}if(!r){const u=Object.entries(f).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let h=t?u.length>1?`since :
795
+ */Aa=Sa(Aa);Object.assign(yd,{onEvent:bd,onceEvent:Aa});var Ca=new WeakSet;const Os=Symbol("unset"),vd=Symbol("returned"),du=Symbol("canceled");function yd(e){return function(n,...r){var f,u;if({tokenOrSignal:n,signal:f,signalPr:u}=Cl(n),f.aborted){let i=Ci(f);throw i=i!==st?i:"Aborted",i}var h=_a(),{it:g,ait:s}=U1(e,h.pr,o,f,...r),p=s.return;return s.return=function(a){try{return h.pr.resolved=!0,h.resolve(vd),Promise.resolve(g.return(a))}finally{p.call(s),o()}},s;function o(){n&&n!==f&&n[Sl]&&n.abort(),s&&(s.return=p,n=h=g=s=p=null)}}}function bd(e,t,n,r=!1){var f,u,h=!1,g=yd(function*({pwait:i}){h||s();try{for(;;){if(f.length==0){let{pr:a,resolve:c}=_a();f.push(a),u.push(c)}yield yield i(f.shift())}}finally{Mn(t.removeEventListener)?t.removeEventListener(n,p,r):Mn(t.removeListener)?t.removeListener(n,p):Mn(t.off)&&t.off(n,p),f.length=u.length=0}})(e,t,n,r);return g.start=s,g;function s(){h||(h=!0,f=[],u=[],Mn(t.addEventListener)?t.addEventListener(n,p,r):Mn(t.addListener)?t.addListener(n,p):Mn(t.on)&&t.on(n,p))}function p(o){if(u.length>0)u.shift()(o);else{let{pr:i,resolve:a}=_a();f.push(i),a(o)}}}function*Aa(e,t,n,r=!1){try{var f=bd(e,t,n,r);return(yield f.next()).value}finally{f.return()}}function H1(e){var t=Promise.resolve(e);return Ca.add(t),t}function U1(e,t,n,r,...f){var u=e.call(this,{signal:r,pwait:H1},...f);e=f=null;var h=r.pr.catch(g=>{throw{[du]:!0,reason:g}});return h.catch(()=>{}),{it:u,ait:async function*(){var s,p=Os;try{for(;!t.resolved;)if(p!==Os?(s=p,p=Os,s=u.throw(s)):s=u.next(s),I1(s.value))if(Ca.has(s.value)){Ca.delete(s.value);try{if((s=await Promise.race([t,h,s.value]))===vd)return}catch(o){if(o[du]){let i=u.return();throw i.value!==void 0?i.value:o.reason}p=o}}else s=yield s.value;else{if(s.done)return s.value;s=yield s.value}}finally{u=t=null,n()}}()}}const V1=e=>e._runningInstances.length>=e._maxConcurrency,z1=e=>{const t=e._activeInstances[0];t&&t.cancel()},j1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Dr(e,t){return t?G1(()=>e()._instances,t):ke(()=>[])}function G1(e,t,n){return ke(()=>e().filter(r=>{const f=r[t];return n?f===n:f}))}function K1(e){return ke(()=>e().length)}function pu(e){return ke(()=>{const t=e();return t[t.length-1]})}function Y1(e){return ke(()=>e()[0])}const wd=e=>e;function $d(e){return Er(e)}function X1(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function ft(e){return q1(function*(t,...n){return e(t,...n)})}function Z1(e,t,n){const r=wd({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ke(()=>f.isCanceling&&f.isFinished),isActive:ke(()=>f.isRunning&&!f.isCanceling),isSuccessful:!1,isNotDropped:ke(()=>!f.isDropped),isError:ke(()=>!!f.error),status:ke(()=>{const h=f,g=[[h.isRunning,"running"],[h.isEnqueued,"enqueued"],[h.isCanceled,"canceled"],[h.isCanceling,"canceling"],[h.isDropped,"dropped"],[h.isError,"error"],[h.isSuccessful,"success"]].find(([s])=>s);return g&&g[1]}),error:null,value:null,cancel({force:h}={force:!1}){if(h||(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(h){return h.pr.catch(()=>{f.cancel()}),f},_run(){Q1(f,e,t,n)},_handled:!0,_deferredObject:X1(),_shouldThrow:!1,_canAbort:!0,then(h,g){return f._shouldThrow=!0,f._deferredObject.promise.then(h,g)},catch(h,g=!0){return f._shouldThrow=g,f._deferredObject.promise.catch(h)},finally(h){return f._shouldThrow=!0,f._deferredObject.promise.finally(h)}}),f=$d(r),{modifiers:u}=n;return u.drop?f.isDropped=!0:u.enqueue?f.isEnqueued=!0:f._run(),f}function Q1(e,t,n,r){const f=new Sa.cancelToken,u=Sa(t,f);e.token=f,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function h(){e.isRunning=!1,e.isFinished=!0}u.call(e,f,...n).then(g=>{e.value=g,e.isSuccessful=!0,h(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),h(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function q1(e,t={cancelOnUnmount:!0}){const n=Ot(),r=hh(),f=wd({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest),isIdle:ke(()=>!u.isRunning),isRunning:ke(()=>!!u._instances.find(h=>h.isRunning)),isError:ke(()=>!!(u.last&&u.last.isError)),_instances:[],_successfulInstances:Dr(()=>u,"isSuccessful"),_runningInstances:Dr(()=>u,"isRunning"),_enqueuedInstances:Dr(()=>u,"isEnqueued"),_notDroppedInstances:Dr(()=>u,"isNotDropped"),_activeInstances:Dr(()=>u,"isActive"),performCount:K1(()=>u._instances),last:pu(()=>u._notDroppedInstances),lastSuccessful:pu(()=>u._successfulInstances),firstEnqueued:Y1(()=>u._enqueuedInstances),cancelAll({force:h}={force:!1}){u._instances.forEach(g=>{try{(h||!g.isDropped&&!g.isFinished)&&g.cancel({force:h})}catch(s){if(s!=="cancel")throw s}})},perform(...h){const g={enqueue:!1,drop:!1};u._hasConcurrency&&V1(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&z1(u),u._isKeepingLatest&&j1(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));const s=()=>J1(u),p=()=>Z1(e,h,{modifiers:g,onFinish:s,scope:r,id:u._instances.length+1}),o=r.active?r.run(p):p();return r.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[...u._instances,o],o},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency(h){return u._maxConcurrency=h,u}}),u=$d(f);return n&&t.cancelOnUnmount&&Rr(()=>{u._instances&&u.destroy()}),u}function J1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function _d(e,t){return function(){return e.apply(t,arguments)}}const{toString:ew}=Object.prototype,{getPrototypeOf:kl}=Object,ss=(e=>t=>{const n=ew.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>ss(t)===e),as=e=>t=>typeof t===e,{isArray:Lr}=Array,pi=as("undefined");function tw(e){return e!==null&&!pi(e)&&e.constructor!==null&&!pi(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sd=jt("ArrayBuffer");function nw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sd(e.buffer),t}const rw=as("string"),Mt=as("function"),Cd=as("number"),ls=e=>e!==null&&typeof e=="object",iw=e=>e===!0||e===!1,io=e=>{if(ss(e)!=="object")return!1;const t=kl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ow=jt("Date"),sw=jt("File"),aw=jt("Blob"),lw=jt("FileList"),cw=e=>ls(e)&&Mt(e.pipe),uw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((t=ss(e))==="formdata"||t==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},hw=jt("URLSearchParams"),fw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,f;if(typeof e!="object"&&(e=[e]),Lr(e))for(r=0,f=e.length;r<f;r++)t.call(null,e[r],r,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),h=u.length;let g;for(r=0;r<h;r++)g=u[r],t.call(null,e[g],g,e)}}function Ad(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,f;for(;r-- >0;)if(f=n[r],t===f.toLowerCase())return f;return null}const kd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ed=e=>!pi(e)&&e!==kd;function ka(){const{caseless:e}=Ed(this)&&this||{},t={},n=(r,f)=>{const u=e&&Ad(t,f)||f;io(t[u])&&io(r)?t[u]=ka(t[u],r):io(r)?t[u]=ka({},r):Lr(r)?t[u]=r.slice():t[u]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Ai(arguments[r],n);return t}const dw=(e,t,n,{allOwnKeys:r}={})=>(Ai(t,(f,u)=>{n&&Mt(f)?e[u]=_d(f,n):e[u]=f},{allOwnKeys:r}),e),pw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mw=(e,t,n,r)=>{let f,u,h;const g={};if(t=t||{},e==null)return t;do{for(f=Object.getOwnPropertyNames(e),u=f.length;u-- >0;)h=f[u],(!r||r(h,e,t))&&!g[h]&&(t[h]=e[h],g[h]=!0);e=n!==!1&&kl(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 r=e.indexOf(t,n);return r!==-1&&r===n},yw=e=>{if(!e)return null;if(Lr(e))return e;let t=e.length;if(!Cd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kl(Uint8Array)),ww=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let f;for(;(f=r.next())&&!f.done;){const u=f.value;t.call(e,u[0],u[1])}},$w=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_w=jt("HTMLFormElement"),Sw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,f){return r.toUpperCase()+f}),gu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cw=jt("RegExp"),Rd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ai(n,(f,u)=>{let h;(h=t(f,u,e))!==!1&&(r[u]=h||f)}),Object.defineProperties(e,r)},Aw=e=>{Rd(e,(t,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kw=(e,t)=>{const n={},r=f=>{f.forEach(u=>{n[u]=!0})};return Lr(e)?r(e):r(String(e).split(t)),n},Ew=()=>{},Rw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Is="abcdefghijklmnopqrstuvwxyz",mu="0123456789",xd={DIGIT:mu,ALPHA:Is,ALPHA_DIGIT:Is+Is.toUpperCase()+mu},xw=(e=16,t=xd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Tw(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lw=e=>{const t=new Array(10),n=(r,f)=>{if(ls(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const u=Lr(r)?[]:{};return Ai(r,(h,g)=>{const s=n(h,f+1);!pi(s)&&(u[g]=s)}),t[f]=void 0,u}}return r};return n(e,0)},Mw=jt("AsyncFunction"),Ow=e=>e&&(ls(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),re={isArray:Lr,isArrayBuffer:Sd,isBuffer:tw,isFormData:uw,isArrayBufferView:nw,isString:rw,isNumber:Cd,isBoolean:iw,isObject:ls,isPlainObject:io,isUndefined:pi,isDate:ow,isFile:sw,isBlob:aw,isRegExp:Cw,isFunction:Mt,isStream:cw,isURLSearchParams:hw,isTypedArray:bw,isFileList:lw,forEach:Ai,merge:ka,extend:dw,trim:fw,stripBOM:pw,inherits:gw,toFlatObject:mw,kindOf:ss,kindOfTest:jt,endsWith:vw,toArray:yw,forEachEntry:ww,matchAll:$w,isHTMLForm:_w,hasOwnProperty:gu,hasOwnProp:gu,reduceDescriptors:Rd,freezeMethods:Aw,toObjectSet:kw,toCamelCase:Sw,noop:Ew,toFiniteNumber:Rw,findKey:Ad,global:kd,isContextDefined:Ed,ALPHABET:xd,generateString:xw,isSpecCompliantForm:Tw,toJSONObject:Lw,isAsyncFn:Mw,isThenable:Ow};function Oe(e,t,n,r,f){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),r&&(this.request=r),f&&(this.response=f)}re.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:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Td=Oe.prototype,Ld={};["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=>{Ld[e]={value:e}});Object.defineProperties(Oe,Ld);Object.defineProperty(Td,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,f,u)=>{const h=Object.create(Td);return re.toFlatObject(e,h,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(h,e.message,t,n,r,f),h.cause=e,h.name=e.name,u&&Object.assign(h,u),h};const Iw=null;function Ea(e){return re.isPlainObject(e)||re.isArray(e)}function Md(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function vu(e,t,n){return e?e.concat(t).map(function(f,u){return f=Md(f),!n&&u?"["+f+"]":f}).join(n?".":""):t}function Fw(e){return re.isArray(e)&&!e.some(Ea)}const Nw=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function cs(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!re.isUndefined(m[d])});const r=n.metaTokens,f=n.visitor||o,u=n.dots,h=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(f))throw new TypeError("visitor must be a function");function p(l){if(l===null)return"";if(re.isDate(l))return l.toISOString();if(!s&&re.isBlob(l))throw new Oe("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(l)||re.isTypedArray(l)?s&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function o(l,d,m){let v=l;if(l&&!m&&typeof l=="object"){if(re.endsWith(d,"{}"))d=r?d:d.slice(0,-2),l=JSON.stringify(l);else if(re.isArray(l)&&Fw(l)||(re.isFileList(l)||re.endsWith(d,"[]"))&&(v=re.toArray(l)))return d=Md(d),v.forEach(function(k,C){!(re.isUndefined(k)||k===null)&&t.append(h===!0?vu([d],C,u):h===null?d:d+"[]",p(k))}),!1}return Ea(l)?!0:(t.append(vu(m,d,u),p(l)),!1)}const i=[],a=Object.assign(Nw,{defaultVisitor:o,convertValue:p,isVisitable:Ea});function c(l,d){if(!re.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+d.join("."));i.push(l),re.forEach(l,function(v,y){(!(re.isUndefined(v)||v===null)&&f.call(t,v,re.isString(y)?y.trim():y,d,a))===!0&&c(v,d?d.concat(y):[y])}),i.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return c(e),t}function yu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function El(e,t){this._pairs=[],e&&cs(e,this,t)}const Od=El.prototype;Od.append=function(t,n){this._pairs.push([t,n])};Od.toString=function(t){const n=t?function(r){return t.call(this,r,yu)}:yu;return this._pairs.map(function(f){return n(f[0])+"="+n(f[1])},"").join("&")};function Dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Id(e,t,n){if(!t)return e;const r=n&&n.encode||Dw,f=n&&n.serialize;let u;if(f?u=f(t,n):u=re.isURLSearchParams(t)?t.toString():new El(t,n).toString(r),u){const h=e.indexOf("#");h!==-1&&(e=e.slice(0,h)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class bu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pw=typeof URLSearchParams<"u"?URLSearchParams:El,Bw=typeof FormData<"u"?FormData:null,Ww=typeof Blob<"u"?Blob:null,Hw={isBrowser:!0,classes:{URLSearchParams:Pw,FormData:Bw,Blob:Ww},protocols:["http","https","file","blob","url","data"]},Nd=typeof window<"u"&&typeof document<"u",Uw=(e=>Nd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nd,hasStandardBrowserEnv:Uw,hasStandardBrowserWebWorkerEnv:Vw},Symbol.toStringTag,{value:"Module"})),Ht={...zw,...Hw};function jw(e,t){return cs(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(n,r,f,u){return Ht.isNode&&re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function Gw(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kw(e){const t={},n=Object.keys(e);let r;const f=n.length;let u;for(r=0;r<f;r++)u=n[r],t[u]=e[u];return t}function Dd(e){function t(n,r,f,u){let h=n[u++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),s=u>=n.length;return h=!h&&re.isArray(f)?f.length:h,s?(re.hasOwnProp(f,h)?f[h]=[f[h],r]:f[h]=r,!g):((!f[h]||!re.isObject(f[h]))&&(f[h]=[]),t(n,r,f[h],u)&&re.isArray(f[h])&&(f[h]=Kw(f[h])),!g)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(r,f)=>{t(Gw(r),f,n,0)}),n}return null}function Yw(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rl={transitional:Fd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",f=r.indexOf("application/json")>-1,u=re.isObject(t);if(u&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return f&&f?JSON.stringify(Dd(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jw(t,this.formSerializer).toString();if((g=re.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return cs(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||f?(n.setContentType("application/json",!1),Yw(t)):t}],transformResponse:[function(t){const n=this.transitional||Rl.transitional,r=n&&n.forcedJSONParsing,f=this.responseType==="json";if(t&&re.isString(t)&&(r&&!this.responseType||f)){const h=!(n&&n.silentJSONParsing)&&f;try{return JSON.parse(t)}catch(g){if(h)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:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{Rl.headers[e]={}});const xl=Rl,Xw=re.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"]),Zw=e=>{const t={};let n,r,f;return e&&e.split(`
796
+ `).forEach(function(h){f=h.indexOf(":"),n=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim(),!(!n||t[n]&&Xw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wu=Symbol("internals");function Pr(e){return e&&String(e).trim().toLowerCase()}function oo(e){return e===!1||e==null?e:re.isArray(e)?e.map(oo):String(e)}function Qw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fs(e,t,n,r,f){if(re.isFunction(r))return r.call(this,t,n);if(f&&(t=n),!!re.isString(t)){if(re.isString(r))return t.indexOf(r)!==-1;if(re.isRegExp(r))return r.test(t)}}function Jw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function e$(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(f,u,h){return this[r].call(this,t,f,u,h)},configurable:!0})})}let us=class{constructor(t){t&&this.set(t)}set(t,n,r){const f=this;function u(g,s,p){const o=Pr(s);if(!o)throw new Error("header name must be a non-empty string");const i=re.findKey(f,o);(!i||f[i]===void 0||p===!0||p===void 0&&f[i]!==!1)&&(f[i||s]=oo(g))}const h=(g,s)=>re.forEach(g,(p,o)=>u(p,o,s));return re.isPlainObject(t)||t instanceof this.constructor?h(t,n):re.isString(t)&&(t=t.trim())&&!qw(t)?h(Zw(t),n):t!=null&&u(n,t,r),this}get(t,n){if(t=Pr(t),t){const r=re.findKey(this,t);if(r){const f=this[r];if(!n)return f;if(n===!0)return Qw(f);if(re.isFunction(n))return n.call(this,f,r);if(re.isRegExp(n))return n.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pr(t),t){const r=re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let f=!1;function u(h){if(h=Pr(h),h){const g=re.findKey(r,h);g&&(!n||Fs(r,r[g],g,n))&&(delete r[g],f=!0)}}return re.isArray(t)?t.forEach(u):u(t),f}clear(t){const n=Object.keys(this);let r=n.length,f=!1;for(;r--;){const u=n[r];(!t||Fs(this,this[u],u,t,!0))&&(delete this[u],f=!0)}return f}normalize(t){const n=this,r={};return re.forEach(this,(f,u)=>{const h=re.findKey(r,u);if(h){n[h]=oo(f),delete n[u];return}const g=t?Jw(u):String(u).trim();g!==u&&delete n[u],n[g]=oo(f),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(r,f)=>{r!=null&&r!==!1&&(n[f]=t&&re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
797
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(f=>r.set(f)),r}static accessor(t){const r=(this[wu]=this[wu]={accessors:{}}).accessors,f=this.prototype;function u(h){const g=Pr(h);r[g]||(e$(f,h),r[g]=!0)}return re.isArray(t)?t.forEach(u):u(t),this}};us.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(us.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});re.freezeMethods(us);const en=us;function Ns(e,t){const n=this||xl,r=t||n,f=en.from(r.headers);let u=r.data;return re.forEach(e,function(g){u=g.call(n,u,f.normalize(),t?t.status:void 0)}),f.normalize(),u}function Pd(e){return!!(e&&e.__CANCEL__)}function ki(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(ki,Oe,{__CANCEL__:!0});function t$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(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 n$=Ht.hasStandardBrowserEnv?{write(e,t,n,r,f,u){const h=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&h.push("expires="+new Date(n).toGMTString()),re.isString(r)&&h.push("path="+r),re.isString(f)&&h.push("domain="+f),u===!0&&h.push("secure"),document.cookie=h.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 r$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bd(e,t){return e&&!r$(t)?i$(e,t):t}const o$=Ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function f(u){let h=u;return t&&(n.setAttribute("href",h),h=n.href),n.setAttribute("href",h),{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 r=f(window.location.href),function(h){const g=re.isString(h)?f(h):h;return g.protocol===r.protocol&&g.host===r.host}}():function(){return function(){return!0}}();function s$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let f=0,u=0,h;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=r[u];h||(h=p),n[f]=s,r[f]=p;let i=u,a=0;for(;i!==f;)a+=n[i++],i=i%e;if(f=(f+1)%e,f===u&&(u=(u+1)%e),p-h<t)return;const c=o&&p-o;return c?Math.round(a*1e3/c):void 0}}function $u(e,t){let n=0;const r=a$(50,250);return f=>{const u=f.loaded,h=f.lengthComputable?f.total:void 0,g=u-n,s=r(g),p=u<=h;n=u;const o={loaded:u,total:h,progress:h?u/h:void 0,bytes:g,rate:s||void 0,estimated:s&&h&&p?(h-u)/s:void 0,event:f};o[t?"download":"upload"]=!0,e(o)}}const l$=typeof XMLHttpRequest<"u",c$=l$&&function(e){return new Promise(function(n,r){let f=e.data;const u=en.from(e.headers).normalize();let{responseType:h,withXSRFToken:g}=e,s;function p(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(re.isFormData(f)){if(Ht.hasStandardBrowserEnv||Ht.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 i=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=Bd(e.baseURL,e.url);i.open(e.method.toUpperCase(),Id(a,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function c(){if(!i)return;const d=en.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),v={data:!h||h==="text"||h==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:d,config:e,request:i};t$(function(k){n(k),p()},function(k){r(k),p()},v),i=null}if("onloadend"in i?i.onloadend=c:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(c)},i.onabort=function(){i&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Fd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,i)),i=null},Ht.hasStandardBrowserEnv&&(g&&re.isFunction(g)&&(g=g(e)),g||g!==!1&&o$(a))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&n$.read(e.xsrfCookieName);d&&u.set(e.xsrfHeaderName,d)}f===void 0&&u.setContentType(null),"setRequestHeader"in i&&re.forEach(u.toJSON(),function(m,v){i.setRequestHeader(v,m)}),re.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),h&&h!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",$u(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",$u(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{i&&(r(!d||d.type?new ki(null,e,i):d),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const l=s$(a);if(l&&Ht.protocols.indexOf(l)===-1){r(new Oe("Unsupported protocol "+l+":",Oe.ERR_BAD_REQUEST,e));return}i.send(f||null)})},Ra={http:Iw,xhr:c$};re.forEach(Ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _u=e=>`- ${e}`,u$=e=>re.isFunction(e)||e===null||e===!1,Wd={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,r;const f={};for(let u=0;u<t;u++){n=e[u];let h;if(r=n,!u$(n)&&(r=Ra[(h=String(n)).toLowerCase()],r===void 0))throw new Oe(`Unknown adapter '${h}'`);if(r)break;f[h||"#"+u]=r}if(!r){const u=Object.entries(f).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let h=t?u.length>1?`since :
798
798
  `+u.map(_u).join(`
799
- `):" "+_u(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return r},adapters:Ea};function Ns(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ki(null,e)}function Su(e){return Ns(e),e.headers=en.from(e.headers),e.data=Fs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wd.getAdapter(e.adapter||Rl.adapter)(e).then(function(r){return Ns(e),r.data=Fs.call(e,e.transformResponse,r),r.headers=en.from(r.headers),r},function(r){return Pd(r)||(Ns(e),r&&r.response&&(r.response.data=Fs.call(e,e.transformResponse,r.response),r.response.headers=en.from(r.response.headers))),Promise.reject(r)})}const Cu=e=>e instanceof en?e.toJSON():e;function wr(e,t){t=t||{};const n={};function r(p,o,i){return ne.isPlainObject(p)&&ne.isPlainObject(o)?ne.merge.call({caseless:i},p,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function f(p,o,i){if(ne.isUndefined(o)){if(!ne.isUndefined(p))return r(void 0,p,i)}else return r(p,o,i)}function u(p,o){if(!ne.isUndefined(o))return r(void 0,o)}function h(p,o){if(ne.isUndefined(o)){if(!ne.isUndefined(p))return r(void 0,p)}else return r(void 0,o)}function g(p,o,i){if(i in t)return r(p,o);if(i in e)return r(void 0,p)}const s={url:u,method:u,data:u,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(p,o)=>f(Cu(p),Cu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const i=s[o]||f,a=i(e[o],t[o],o);ne.isUndefined(a)&&i!==g||(n[o]=a)}),n}const Hd="1.6.5",xl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Au={};xl.transitional=function(t,n,r){function f(u,h){return"[Axios v"+Hd+"] Transitional option '"+u+"'"+h+(r?". "+r:"")}return(u,h,g)=>{if(t===!1)throw new Oe(f(h," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!Au[h]&&(Au[h]=!0,console.warn(f(h," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,h,g):!0}};function h$(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let f=r.length;for(;f-- >0;){const u=r[f],h=t[u];if(h){const g=e[u],s=g===void 0||h(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 Ra={assertOptions:h$,validators:xl},pn=Ra.validators;let Co=class{constructor(t){this.defaults=t,this.interceptors={request:new bu,response:new bu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:r,paramsSerializer:f,headers:u}=n;r!==void 0&&Ra.assertOptions(r,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),f!=null&&(ne.isFunction(f)?n.paramsSerializer={serialize:f}:Ra.assertOptions(f,{encode:pn.function,serialize:pn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let h=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],l=>{delete u[l]}),n.headers=en.concat(h,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 p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let o,i=0,a;if(!s){const l=[Su.bind(this),void 0];for(l.unshift.apply(l,g),l.push.apply(l,p),a=l.length,o=Promise.resolve(n);i<a;)o=o.then(l[i++],l[i++]);return o}a=g.length;let c=n;for(i=0;i<a;){const l=g[i++],d=g[i++];try{c=l(c)}catch(m){d.call(this,m);break}}try{o=Su.call(this,c)}catch(l){return Promise.reject(l)}for(i=0,a=p.length;i<a;)o=o.then(p[i++],p[i++]);return o}getUri(t){t=wr(this.defaults,t);const n=Bd(t.baseURL,t.url);return Id(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Co.prototype[t]=function(n,r){return this.request(wr(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(u,h,g){return this.request(wr(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:h}))}}Co.prototype[t]=n(),Co.prototype[t+"Form"]=n(!0)});const oo=Co;let f$=class Ud{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 r=this;this.promise.then(f=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](f);r._listeners=null}),this.promise.then=f=>{let u;const h=new Promise(g=>{r.subscribe(g),u=g}).then(f);return h.cancel=function(){r.unsubscribe(u)},h},t(function(u,h,g){r.reason||(r.reason=new ki(u,h,g),n(r.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 Ud(function(f){t=f}),cancel:t}}};const d$=f$;function p$(e){return function(n){return e.apply(null,n)}}function g$(e){return ne.isObject(e)&&e.isAxiosError===!0}const xa={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(xa).forEach(([e,t])=>{xa[t]=e});const m$=xa;function Vd(e){const t=new oo(e),n=_d(oo.prototype.request,t);return ne.extend(n,oo.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(f){return Vd(wr(e,f))},n}const Ve=Vd(Rl);Ve.Axios=oo;Ve.CanceledError=ki;Ve.CancelToken=d$;Ve.isCancel=Pd;Ve.VERSION=Hd;Ve.toFormData=ls;Ve.AxiosError=Oe;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=p$;Ve.isAxiosError=g$;Ve.mergeConfig=wr;Ve.AxiosHeaders=en;Ve.formToJSON=e=>Dd(ne.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=Wd.getAdapter;Ve.HttpStatusCode=m$;Ve.default=Ve;const{Axios:dT,AxiosError:v$,CanceledError:pT,isCancel:gT,CancelToken:mT,VERSION:vT,all:yT,Cancel:bT,isAxiosError:wT,spread:$T,toFormData:_T,AxiosHeaders:ST,HttpStatusCode:CT,formToJSON:AT,getAdapter:kT,mergeConfig:ET}=Ve,rt=Ve.create(),dt={async getConfigs(){return(await rt.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await rt.get("/api/alerts",{params:e})).data},async getAlert(e){return(await rt.get(`/api/alerts/${e}`)).data},async getTags(){return(await rt.get("/api/tags")).data},async deleteAlert(e){return(await rt.delete(`/api/alerts/${e}`)).data},async getArtifact(e){return(await rt.get(`/api/artifacts/${e}`)).data},async getArtifacts(e){return e.page=e.page||1,(await rt.get("/api/artifacts",{params:e})).data},async enrichArtifact(e){return(await rt.post(`/api/artifacts/${e}/enrich`)).data},async deleteArtifact(e){return(await rt.delete(`/api/artifacts/${e}`)).data},async getRules(e){return e.page=e.page||1,(await rt.get("/api/rules",{params:e})).data},async getRule(e){return(await rt.get(`/api/rules/${e}`)).data},async searchRule(e){return(await rt.post(`/api/rules/${e}/search`)).data},async createRule(e){return(await rt.post("/api/rules/",e)).data},async updateRule(e){return(await rt.put("/api/rules/",e)).data},async deleteRule(e){return(await rt.delete(`/api/rules/${e}`)).data},async deleteTag(e){return(await rt.delete(`/api/tags/${e}`)).data},async getIPInfo(e){return(await rt.get(`/api/ip_addresses/${e}`)).data}};function Ei(){return ft(async(e,t)=>await dt.getAlerts(t))}function y$(){return ft(async(e,t)=>await dt.deleteAlert(t))}function b$(){return ft(async(e,t)=>await dt.deleteTag(t))}function w$(){return ft(async(e,t)=>await dt.getArtifact(t))}function zd(){return ft(async(e,t)=>await dt.deleteArtifact(t))}function $$(){return ft(async(e,t)=>await dt.enrichArtifact(t))}function _$(){return ft(async()=>await dt.getConfigs())}function S$(){return ft(async(e,t)=>await dt.getIPInfo(t))}function jd(){return ft(async(e,t)=>await dt.getRules(t))}function Gd(){return ft(async(e,t)=>await dt.getRule(t))}function C$(){return ft(async(e,t)=>await dt.deleteRule(t))}function A$(){return ft(async(e,t)=>await dt.searchRule(t))}function k$(){return ft(async(e,t)=>await dt.createRule(t))}function E$(){return ft(async(e,t)=>await dt.updateRule(t))}function Tl(){return ft(async(e,t)=>await dt.getArtifacts(t))}function R$(){return ft(async(e,t)=>await dt.getAlert(t))}const x$=be({name:"AlertActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,t){const n=ke(()=>`/api/alerts/${e.alert.id}`),r=y$();return{href:n,deleteAlert:async()=>{if(window.confirm(`Are you sure you want to delete ${e.alert.id}?`))try{await r.perform(e.alert.id),t.emit("delete")}catch(h){Ve.isAxiosError(h)&&t.emit("set-error",h)}}}}}),T$={class:"buttons is-pulled-right"},L$=["href"],M$=N("span",null,"JSON",-1),O$={class:"icon is-small"},I$=N("span",null,"Delete",-1),F$={class:"icon is-small"};function N$(e,t,n,r,f,u){const h=ie("font-awesome-icon");return Z(),re("span",T$,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[M$,N("span",O$,[se(h,{icon:"barcode"})])],8,L$),N("button",{class:"button is-light is-small",onClick:t[0]||(t[0]=(...g)=>e.deleteAlert&&e.deleteAlert(...g))},[I$,N("span",F$,[se(h,{icon:"times"})])])])}const Kd=Ae(x$,[["render",N$]]);var Ri=D$;function D$(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const P$=be({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Ne(!1),n=Ne(!1),r=zd();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await r.perform(e.artifact.id),t.value=!0)},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,isDeleted:t,showDeleteButton:()=>{n.value=!0},truncate:Ri}}}),B$={key:0,class:"control"};function W$(e,t,n,r,f,u){const h=ie("router-link");return e.isDeleted?ge("",!0):(Z(),re("div",B$,[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))},[se(h,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et(ye(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(Z(),re("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):ge("",!0)],32)]))}const H$=Ae(P$,[["render",W$]]),U$=be({name:"ArtifactTags",components:{ArtifactTag:H$},props:{artifacts:{type:Array,required:!0}}}),V$={class:"field is-grouped is-grouped-multiline"};function z$(e,t,n,r,f,u){const h=ie("ArtifactTag");return Z(),re("div",V$,[(Z(!0),re(xe,null,_t(e.artifacts,g=>(Z(),Ce(h,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const Yd=Ae(U$,[["render",z$]]);var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var f=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,f.get?f:{enumerable:!0,get:function(){return e[r]}})}),n}var Zd={exports:{}};const j$=Xd(z0);(function(e,t){(function(n,r){e.exports=r(j$)})(xn,function(n){return function(){var r={789:function(g){g.exports=n}},f={};function u(g){var s=f[g];if(s!==void 0)return s.exports;var p=f[g]={exports:{}};return r[g](p,p.exports,u),p.exports}u.d=function(g,s){for(var p in s)u.o(s,p)&&!u.o(g,p)&&Object.defineProperty(g,p,{enumerable:!0,get:s[p]})},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 h={};return function(){function g($,A){(A==null||A>$.length)&&(A=$.length);for(var _=0,w=new Array(A);_<A;_++)w[_]=$[_];return w}function s($,A){if($){if(typeof $=="string")return g($,A);var _=Object.prototype.toString.call($).slice(8,-1);return _==="Object"&&$.constructor&&(_=$.constructor.name),_==="Map"||_==="Set"?Array.from($):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?g($,A):void 0}}function p($){return function(A){if(Array.isArray(A))return g(A)}($)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}($)||s($)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
800
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o($,A,_){return A in $?Object.defineProperty($,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):$[A]=_,$}u.r(h),u.d(h,{default:function(){return M}});var i=u(789),a=(0,i.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var $=this.data,A=this.onClick;return(0,i.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[$])}}),c=(0,i.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function($,A){var _=A.emit;return{uiType:(0,i.computed)(function(){return $.isMultiple?"checkbox":"radio"}),model:(0,i.computed)({get:function(){return $.checked},set:function(w){return _("update:modelValue",w)}})}},render:function(){var $=this.uiType,A=this.model,_=this.$emit;return(0,i.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,i.createVNode)("span",{class:"vjs-check-controller-inner is-".concat($)},null),(0,i.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat($),type:$,onChange:function(){return _("change",A)}},null)])}}),l=(0,i.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var $=this.nodeType,A=this.onClick,_=$==="objectStart"||$==="arrayStart";return _||$==="objectCollapsed"||$==="arrayCollapsed"?(0,i.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(_?"open":"close"),onClick:A},[(0,i.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,i.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($){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($)}function m($){return Object.prototype.toString.call($).slice(8,-1).toLowerCase()}function v($){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,x=w||{},T=x.key,O=x.index,I=x.type,F=I===void 0?"content":I,P=x.showComma,W=P!==void 0&&P,j=x.length,H=j===void 0?1:j,V=m($);if(V==="array"){var G=y($.map(function(X,Y,z){return v(X,"".concat(A,"[").concat(Y,"]"),_+1,{index:Y,showComma:Y!==z.length-1,length:H,type:F})}));return[v("[",A,_,{showComma:!1,key:T,length:$.length,type:"arrayStart"})[0]].concat(G,v("]",A,_,{showComma:W,length:$.length,type:"arrayEnd"})[0])}if(V==="object"){var q=Object.keys($),U=y(q.map(function(X,Y,z){return v($[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),_+1,{key:X,showComma:Y!==z.length-1,length:H,type:F})}));return[v("{",A,_,{showComma:!1,key:T,index:O,length:q.length,type:"objectStart"})[0]].concat(U,v("}",A,_,{showComma:W,length:q.length,type:"objectEnd"})[0])}return[{content:$,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function y($){if(typeof Array.prototype.flat=="function")return $.flat();for(var A=p($),_=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,p(w)):_.push(w)}return _}function k($){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if($==null)return $;if($ instanceof Date)return new Date($);if($ instanceof RegExp)return new RegExp($);if(d($)!=="object")return $;if(A.get($))return A.get($);if(Array.isArray($)){var _=$.map(function(T){return k(T,A)});return A.set($,_),_}var w={};for(var x in $)w[x]=k($[x],A);return A.set($,w),w}function C($,A){var _=Object.keys($);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols($);A&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor($,x).enumerable})),_.push.apply(_,w)}return _}function S($){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?C(Object(_),!0).forEach(function(w){o($,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(_)):C(Object(_)).forEach(function(w){Object.defineProperty($,w,Object.getOwnPropertyDescriptor(_,w))})}return $}var b={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,i.defineComponent)({name:"TreeNode",props:S(S({},b),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function($,A){var _=A.emit,w=(0,i.computed)(function(){return m($.node.content)}),x=(0,i.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,i.computed)(function(){return $.showDoubleQuotes?'"'.concat($.node.key,'"'):$.node.key}),O=(0,i.computed)(function(){return $.selectableType==="multiple"}),I=(0,i.computed)(function(){return $.selectableType==="single"}),F=(0,i.computed)(function(){return $.nodeSelectable($.node)&&(O.value||I.value)}),P=(0,i.reactive)({editing:!1}),W=function(Y){var z,ee,ue=(ee=(z=Y.target)===null||z===void 0?void 0:z.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",ue,$.node.path)},j=(0,i.computed)(function(){var Y,z=(Y=$.node)===null||Y===void 0?void 0:Y.content;return z===null?z="null":z===void 0&&(z="undefined"),w.value==="string"?'"'.concat(z,'"'):z+""}),H=function(){var Y=$.renderNodeValue;return Y?Y({node:$.node,defaultValue:j.value}):j.value},V=function(){_("bracketsClick",!$.collapsed,$.node.path)},G=function(){_("iconClick",!$.collapsed,$.node.path)},q=function(){_("selectedChange",$.node)},U=function(){_("nodeClick",$.node),F.value&&$.selectOnClickNode&&_("selectedChange",$.node)},X=function(Y){if($.editable&&!P.editing){P.editing=!0;var z=function ee(ue){var D;ue.target!==Y.target&&((D=ue.target)===null||D===void 0?void 0:D.parentElement)!==Y.target&&(P.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",z),document.addEventListener("click",z)}};return function(){var Y,z=$.node;return(0,i.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":$.showSelectController,"has-carets":$.showIcon,"is-highlight":$.highlightSelectedNode&&$.checked},onClick:U,style:$.style},[$.showLineNumber&&(0,i.createVNode)("span",{class:"vjs-node-index"},[z.id+1]),$.showSelectController&&F.value&&z.type!=="objectEnd"&&z.type!=="arrayEnd"&&(0,i.createVNode)(c,{isMultiple:O.value,checked:$.checked,onChange:q},null),(0,i.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(z.level)).map(function(ee,ue){return(0,i.createVNode)("div",{key:ue,class:{"vjs-indent-unit":!0,"has-line":$.showLine}},null)}),$.showIcon&&(0,i.createVNode)(l,{nodeType:z.type,onClick:G},null)]),z.key&&(0,i.createVNode)("span",{class:"vjs-key"},[(Y=$.renderNodeKey,Y?Y({node:$.node,defaultKey:T.value||""}):T.value),(0,i.createVNode)("span",{class:"vjs-colon"},[":".concat($.showKeyValueSpace?" ":"")])]),(0,i.createVNode)("span",null,[z.type!=="content"&&z.content?(0,i.createVNode)(a,{data:z.content.toString(),onClick:V},null):(0,i.createVNode)("span",{class:x.value,onClick:!$.editable||$.editableTrigger&&$.editableTrigger!=="click"?void 0:X,onDblclick:$.editable&&$.editableTrigger==="dblclick"?X:void 0},[$.editable&&P.editing?(0,i.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()]),z.showComma&&(0,i.createVNode)("span",null,[","]),$.showLength&&$.collapsed&&(0,i.createVNode)("span",{class:"vjs-comment"},[(0,i.createTextVNode)(" // "),z.length,(0,i.createTextVNode)(" items ")])])])}}});function L($,A){var _=Object.keys($);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols($);A&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor($,x).enumerable})),_.push.apply(_,w)}return _}function E($){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?L(Object(_),!0).forEach(function(w){o($,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(_)):L(Object(_)).forEach(function(w){Object.defineProperty($,w,Object.getOwnPropertyDescriptor(_,w))})}return $}var M=(0,i.defineComponent)({name:"Tree",props:E(E({},b),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function($,A){var _=A.emit,w=A.slots,x=(0,i.ref)(),T=(0,i.computed)(function(){return v($.data,$.rootPath)}),O=function(z,ee){return T.value.reduce(function(ue,D){var B,K=D.level>=z||D.length>=ee,Q=(B=$.pathCollapsible)===null||B===void 0?void 0:B.call($,D);return D.type!=="objectStart"&&D.type!=="arrayStart"||!K&&!Q?ue:E(E({},ue),{},o({},D.path,1))},{})},I=(0,i.reactive)({translateY:0,visibleData:null,hiddenPaths:O($.deep,$.collapsedNodeLength)}),F=(0,i.computed)(function(){for(var z=null,ee=[],ue=T.value.length,D=0;D<ue;D++){var B=E(E({},T.value[D]),{},{id:D}),K=I.hiddenPaths[B.path];if(z&&z.path===B.path){var Q=z.type==="objectStart",te=E(E(E({},B),z),{},{showComma:B.showComma,content:Q?"{...}":"[...]",type:Q?"objectCollapsed":"arrayCollapsed"});z=null,ee.push(te)}else{if(K&&!z){z=B;continue}if(z)continue;ee.push(B)}}return ee}),P=(0,i.computed)(function(){var z=$.selectedValue;return z&&$.selectableType==="multiple"&&Array.isArray(z)?z:[z]}),W=(0,i.computed)(function(){return!$.selectableType||$.selectOnClickNode||$.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 z=F.value;if($.virtual){var ee,ue=$.height/$.itemHeight,D=((ee=x.value)===null||ee===void 0?void 0:ee.scrollTop)||0,B=Math.floor(D/$.itemHeight),K=B<0?0:B+ue>z.length?z.length-ue:B;K<0&&(K=0);var Q=K+ue;I.translateY=K*$.itemHeight,I.visibleData=z.filter(function(te,ae){return ae>=K&&ae<Q})}else I.visibleData=z},H=function(){j()},V=function(z){var ee,ue,D=z.path,B=$.selectableType;if(B==="multiple"){var K=P.value.findIndex(function(fe){return fe===D}),Q=p(P.value);K!==-1?Q.splice(K,1):Q.push(D),_("update:selectedValue",Q),_("selectedChange",Q,p(P.value))}else if(B==="single"&&P.value[0]!==D){var te=(ee=P.value,ue=1,function(fe){if(Array.isArray(fe))return fe}(ee)||function(fe,ce){var he=fe==null?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(he!=null){var oe,pe,Se=[],we=!0,J=!1;try{for(he=he.call(fe);!(we=(oe=he.next()).done)&&(Se.push(oe.value),!ce||Se.length!==ce);we=!0);}catch(le){J=!0,pe=le}finally{try{we||he.return==null||he.return()}finally{if(J)throw pe}}return Se}}(ee,ue)||s(ee,ue)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
801
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],ae=D;_("update:selectedValue",ae),_("selectedChange",ae,te)}},G=function(z){_("nodeClick",z)},q=function(z,ee){if(z)I.hiddenPaths=E(E({},I.hiddenPaths),{},o({},ee,1));else{var ue=E({},I.hiddenPaths);delete ue[ee],I.hiddenPaths=ue}},U=function(z,ee){$.collapsedOnClickBrackets&&q(z,ee),_("bracketsClick",z)},X=function(z,ee){q(z,ee),_("iconClick",z)},Y=function(z,ee){var ue=k($.data),D=$.rootPath;new Function("data","val","data".concat(ee.slice(D.length),"=val"))(ue,z),_("update:data",ue)};return(0,i.watchEffect)(function(){W.value&&function(z){throw new Error("[VueJSONPretty] ".concat(z))}(W.value)}),(0,i.watchEffect)(function(){F.value&&j()}),(0,i.watch)(function(){return $.deep},function(z){z&&(I.hiddenPaths=O(z,$.collapsedNodeLength))}),(0,i.watch)(function(){return $.collapsedNodeLength},function(z){z&&(I.hiddenPaths=O($.deep,z))}),function(){var z,ee,ue=(z=$.renderNodeKey)!==null&&z!==void 0?z:w.renderNodeKey,D=(ee=$.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,B=I.visibleData&&I.visibleData.map(function(K){return(0,i.createVNode)(R,{key:K.id,node:K,collapsed:!!I.hiddenPaths[K.path],showDoubleQuotes:$.showDoubleQuotes,showLength:$.showLength,checked:P.value.includes(K.path),selectableType:$.selectableType,showLine:$.showLine,showLineNumber:$.showLineNumber,showSelectController:$.showSelectController,selectOnClickNode:$.selectOnClickNode,nodeSelectable:$.nodeSelectable,highlightSelectedNode:$.highlightSelectedNode,editable:$.editable,editableTrigger:$.editableTrigger,showIcon:$.showIcon,showKeyValueSpace:$.showKeyValueSpace,renderNodeKey:ue,renderNodeValue:D,onNodeClick:G,onBracketsClick:U,onIconClick:X,onSelectedChange:V,onValueChange:Y,style:$.itemHeight&&$.itemHeight!==20?{lineHeight:"".concat($.itemHeight,"px")}:{}},null)});return(0,i.createVNode)("div",{ref:x,class:{"vjs-tree":!0,"is-virtual":$.virtual},onScroll:$.virtual?H:void 0,style:$.showLineNumber?E({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},$.style):$.style},[$.virtual?(0,i.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat($.height,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*$.itemHeight,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[B])])]):B])}}})}(),h}()})})(Zd);var G$=Zd.exports;const qd=tr(G$),K$=be({name:"ErrorItem",props:{error:{type:v$,required:!0},disposable:{type:Boolean,default:!1}},components:{VueJsonPretty:qd},emits:["dispose"],setup(e,t){const n=ke(()=>{var f;if(e.error.response)return(f=e.error.response)==null?void 0:f.data});return{dispose:()=>{t.emit("dispose")},data:n}}}),Y$={class:"notification is-danger is-light"},X$={key:1},Z$={key:2},q$={key:0,class:"message"},J$={class:"message-body"};function Q$(e,t,n,r,f,u){var g;const h=ie("VueJsonPretty");return Z(),re(xe,null,[N("div",Y$,[e.disposable?(Z(),re("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...s)=>e.dispose&&e.dispose(...s))})):ge("",!0),e.data?(Z(),re("p",X$,ye(e.data.message),1)):(Z(),re("p",Z$,ye(e.error),1))]),(g=e.data)!=null&&g.detail?(Z(),re("article",q$,[N("div",J$,[se(h,{data:e.data.detail},null,8,["data"])])])):ge("",!0)],64)}const lt=Ae(K$,[["render",Q$]]),e_=be({name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1}},setup(e){const t=Ne(!1),n=Ne(!1),r=b$();return{isDeleted:t,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await r.perform(e.tag.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n}}}),t_={key:0,class:"control"},n_={class:"tag is-info is-light"};function r_(e,t,n,r,f,u){return e.isDeleted?ge("",!0):(Z(),re("div",t_,[N("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...h)=>e.showDeleteButton&&e.showDeleteButton(...h)),onMouseleave:t[2]||(t[2]=(...h)=>e.hideDeleteButton&&e.hideDeleteButton(...h))},[N("span",n_,ye(e.tag.name),1),e.isDeleteButtonEnabled&&e.deletable?(Z(),re("a",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...h)=>e.deleteTag&&e.deleteTag(...h))})):ge("",!0)],32)]))}const i_=Ae(e_,[["render",r_]]),o_=be({name:"TagsItem",components:{TagComponent:i_},props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1}},setup(){}}),s_={class:"field is-grouped is-grouped-multiline"};function a_(e,t,n,r,f,u){const h=ie("TagComponent");return Z(),re("div",s_,[(Z(!0),re(xe,null,_t(e.tags,g=>(Z(),Ce(h,{tag:g,key:g.name,deletable:e.deletable},null,8,["tag","deletable"]))),128))])}const Ll=Ae(o_,[["render",a_]]);var Jd={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=1e3,r=6e4,f=36e5,u="millisecond",h="second",g="minute",s="hour",p="day",o="week",i="month",a="quarter",c="year",l="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 x=["th","st","nd","rd"],T=w%100;return"["+w+(x[(T-20)%10]||x[T]||x[0])+"]"}},k=function(w,x,T){var O=String(w);return!O||O.length>=x?w:""+Array(x+1-O.length).join(T)+w},C={s:k,z:function(w){var x=-w.utcOffset(),T=Math.abs(x),O=Math.floor(T/60),I=T%60;return(x<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(x,T){if(x.date()<T.date())return-w(T,x);var O=12*(T.year()-x.year())+(T.month()-x.month()),I=x.clone().add(O,i),F=T-I<0,P=x.clone().add(O+(F?-1:1),i);return+(-(O+(T-I)/(F?I-P:P-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:i,y:c,w:o,d:p,D:l,h:s,m:g,s:h,ms:u,Q:a}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var R="$isDayjsObject",L=function(w){return w instanceof A||!(!w||!w[R])},E=function w(x,T,O){var I;if(!x)return S;if(typeof x=="string"){var F=x.toLowerCase();b[F]&&(I=F),T&&(b[F]=T,I=F);var P=x.split("-");if(!I&&P.length>1)return w(P[0])}else{var W=x.name;b[W]=x,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,x){if(L(w))return w.clone();var T=typeof x=="object"?x:{};return T.date=w,T.args=arguments,new A(T)},$=C;$.l=E,$.i=L,$.w=function(w,x){return M(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var A=function(){function w(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var x=w.prototype;return x.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if($.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(m);if(P){var W=P[2]-1||0,j=(P[7]||"0").substring(0,3);return F?new Date(Date.UTC(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)):new Date(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)}}return new Date(I)}(T),this.init()},x.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()},x.$utils=function(){return $},x.isValid=function(){return this.$d.toString()!==d},x.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},x.isAfter=function(T,O){return M(T)<this.startOf(O)},x.isBefore=function(T,O){return this.endOf(O)<M(T)},x.$g=function(T,O,I){return $.u(T)?this[O]:this.set(I,T)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(T,O){var I=this,F=!!$.u(O)||O,P=$.p(T),W=function(Y,z){var ee=$.w(I.$u?Date.UTC(I.$y,z,Y):new Date(I.$y,z,Y),I);return F?ee:ee.endOf(p)},j=function(Y,z){return $.w(I.toDate()[Y].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(z)),I)},H=this.$W,V=this.$M,G=this.$D,q="set"+(this.$u?"UTC":"");switch(P){case c:return F?W(1,0):W(31,11);case i:return F?W(1,V):W(0,V+1);case o:var U=this.$locale().weekStart||0,X=(H<U?H+7:H)-U;return W(F?G-X:G+(6-X),V);case p:case l:return j(q+"Hours",0);case s:return j(q+"Minutes",1);case g:return j(q+"Seconds",2);case h:return j(q+"Milliseconds",3);default:return this.clone()}},x.endOf=function(T){return this.startOf(T,!1)},x.$set=function(T,O){var I,F=$.p(T),P="set"+(this.$u?"UTC":""),W=(I={},I[p]=P+"Date",I[l]=P+"Date",I[i]=P+"Month",I[c]=P+"FullYear",I[s]=P+"Hours",I[g]=P+"Minutes",I[h]=P+"Seconds",I[u]=P+"Milliseconds",I)[F],j=F===p?this.$D+(O-this.$W):O;if(F===i||F===c){var H=this.clone().set(l,1);H.$d[W](j),H.init(),this.$d=H.set(l,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},x.set=function(T,O){return this.clone().$set(T,O)},x.get=function(T){return this[$.p(T)]()},x.add=function(T,O){var I,F=this;T=Number(T);var P=$.p(O),W=function(V){var G=M(F);return $.w(G.date(G.date()+Math.round(V*T)),F)};if(P===i)return this.set(i,this.$M+T);if(P===c)return this.set(c,this.$y+T);if(P===p)return W(1);if(P===o)return W(7);var j=(I={},I[g]=r,I[s]=f,I[h]=n,I)[P]||1,H=this.$d.getTime()+T*j;return $.w(H,this)},x.subtract=function(T,O){return this.add(-1*T,O)},x.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var F=T||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),W=this.$H,j=this.$m,H=this.$M,V=I.weekdays,G=I.months,q=I.meridiem,U=function(z,ee,ue,D){return z&&(z[ee]||z(O,F))||ue[ee].slice(0,D)},X=function(z){return $.s(W%12||12,z,"0")},Y=q||function(z,ee,ue){var D=z<12?"AM":"PM";return ue?D.toLowerCase():D};return F.replace(v,function(z,ee){return ee||function(ue){switch(ue){case"YY":return String(O.$y).slice(-2);case"YYYY":return $.s(O.$y,4,"0");case"M":return H+1;case"MM":return $.s(H+1,2,"0");case"MMM":return U(I.monthsShort,H,G,3);case"MMMM":return U(G,H);case"D":return O.$D;case"DD":return $.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return U(I.weekdaysMin,O.$W,V,2);case"ddd":return U(I.weekdaysShort,O.$W,V,3);case"dddd":return V[O.$W];case"H":return String(W);case"HH":return $.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 $.s(j,2,"0");case"s":return String(O.$s);case"ss":return $.s(O.$s,2,"0");case"SSS":return $.s(O.$ms,3,"0");case"Z":return P}return null}(z)||P.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(T,O,I){var F,P=this,W=$.p(O),j=M(T),H=(j.utcOffset()-this.utcOffset())*r,V=this-j,G=function(){return $.m(P,j)};switch(W){case c:F=G()/12;break;case i:F=G();break;case a:F=G()/3;break;case o:F=(V-H)/6048e5;break;case p:F=(V-H)/864e5;break;case s:F=V/f;break;case g:F=V/r;break;case h:F=V/n;break;default:F=V}return I?F:$.a(F)},x.daysInMonth=function(){return this.endOf(i).$D},x.$locale=function(){return b[this.$L]},x.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=E(T,O,!0);return F&&(I.$L=F),I},x.clone=function(){return $.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w}(),_=A.prototype;return M.prototype=_,[["$ms",u],["$s",h],["$m",g],["$H",s],["$W",p],["$M",i],["$y",c],["$D",l]].forEach(function(w){_[w[1]]=function(x){return this.$g(x,w[0],w[1])}}),M.extend=function(w,x){return w.$i||(w(x,A,M),w.$i=!0),M},M.locale=E,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[S],M.Ls=b,M.p={},M})})(Jd);var l_=Jd.exports;const Mr=tr(l_);var Qd={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return function(n,r,f){n=n||{};var u=r.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,i,a){return u.fromToBase(p,o,i,a)}f.en.relativeTime=h,u.fromToBase=function(p,o,i,a,c){for(var l,d,m,v=i.$locale().relativeTime||h,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&&(l=a?f(p).diff(i,S.d,!0):i.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(l));if(m=l>0,b<=S.r||!S.r){b<=1&&C>0&&(S=y[C-1]);var R=v[S.l];c&&(b=c(""+b)),d=typeof R=="string"?R.replace("%d",b):R(b,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(p,o){return g(p,o,this,!0)},u.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?f.utc():f()};u.toNow=function(p){return this.to(s(this),p)},u.fromNow=function(p){return this.from(s(this),p)}}})})(Qd);var c_=Qd.exports;const u_=tr(c_);var ep={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(f,u,h){var g,s=function(a,c,l){l===void 0&&(l={});var d=new Date(a),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",C=v+"|"+k,S=r[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}),r[C]=S),S}(c,l);return m.formatToParts(d)},p=function(a,c){for(var l=s(a,c),d=[],m=0;m<l.length;m+=1){var v=l[m],y=v.type,k=v.value,C=n[y];C>=0&&(d[C]=parseInt(k,10))}var S=d[3],b=S===24?0:S,R=d[0]+"-"+d[1]+"-"+d[2]+" "+b+":"+d[4]+":"+d[5]+":000",L=+a;return(h.utc(R).valueOf()-(L-=L%1e3))/6e4},o=u.prototype;o.tz=function(a,c){a===void 0&&(a=g);var l=this.utcOffset(),d=this.toDate(),m=d.toLocaleString("en-US",{timeZone:a}),v=Math.round((d-new Date(m))/1e3/60),y=h(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(d.getTimezoneOffset()/15)-v,!0);if(c){var k=y.utcOffset();y=y.add(l-k,"minute")}return y.$x.$timezone=a,y},o.offsetName=function(a){var c=this.$x.$timezone||h.tz.guess(),l=s(this.valueOf(),c,{timeZoneName:a}).find(function(d){return d.type.toLowerCase()==="timezonename"});return l&&l.value};var i=o.startOf;o.startOf=function(a,c){if(!this.$x||!this.$x.$timezone)return i.call(this,a,c);var l=h(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return i.call(l,a,c).tz(this.$x.$timezone,!0)},h.tz=function(a,c,l){var d=l&&c,m=l||c||g,v=p(+h(),m);if(typeof a!="string")return h(a).tz(m);var y=function(b,R,L){var E=b-60*R*1e3,M=p(E,L);if(R===M)return[E,R];var $=p(E-=60*(M-R)*1e3,L);return M===$?[E,M]:[b-60*Math.min(M,$)*1e3,Math.max(M,$)]}(h.utc(a,d).valueOf(),v,m),k=y[0],C=y[1],S=h(k).utcOffset(C);return S.$x.$timezone=m,S},h.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},h.tz.setDefault=function(a){g=a}}})})(ep);var h_=ep.exports;const f_=tr(h_);var tp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,f=/([+-]|\d\d)/g;return function(u,h,g){var s=h.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new h(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 p=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.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 i=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?i.call(this):this.$offset;if(typeof d=="string"&&(d=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var R=(""+b[0]).match(f)||["-",0,0],L=R[0],E=60*+R[1]+ +R[2];return E===0?0:L==="+"?E:-E}(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 c=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return l.call(this,d,m,v);var y=this.local(),k=g(d).local();return l.call(y,k,m,v)}}})})(tp);var d_=tp.exports;const p_=tr(d_),g_=[{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 m_(e){return g_.find(n=>n.code===e)}Mr.extend(u_);Mr.extend(f_);Mr.extend(p_);function np(e){return Mr(e).local().format("YYYY-MM-DD HH:mm:ss")}function rp(e){return Mr(e).local().fromNow()}function ip(e){const t=m_(e);if(t)return{lat:t.lat,long:t.long}}function v_(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return{lat:parseFloat(n),long:parseFloat(r)}}}return ip(e.countryCode)}const y_=be({name:"AlertItem",components:{Artifacts:Yd,Tags:Ll,ActionButtons:Kd,ErrorMessage:lt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Ne();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:np,getHumanizedRelativeTime:rp,onSetError:h=>{n.value=h},onDisposeError:()=>{n.value=void 0},error:n}}}),b_={class:"box"},w_={class:"table is-fullwidth is-completely-borderless"},$_=N("th",null,"Rule",-1),__=N("th",null,"Artifacts",-1),S_={key:0},C_=N("th",null,"Tags",-1),A_={class:"help"};function k_(e,t,n,r,f,u){const h=ie("ErrorMessage"),g=ie("ActionButtons"),s=ie("router-link"),p=ie("Artifacts"),o=ie("Tags");return Z(),re("div",b_,[e.error?(Z(),Ce(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),N("p",null,[se(g,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),se(s,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Je(()=>[et(ye(e.alert.id),1)]),_:1},8,["to"]),N("table",w_,[N("tr",null,[$_,N("td",null,[se(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et(ye(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[__,N("td",null,[se(p,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(Z(),re("tr",S_,[C_,N("td",null,[se(o,{tags:e.alert.tags},null,8,["tags"])])])):ge("",!0)]),N("p",A_,"Created at: "+ye(e.alert.createdAt),1)])}const E_=Ae(y_,[["render",k_]]),R_=be({name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=o=>o===e.currentPage+1||o===e.currentPage-1,r=ke(()=>Math.ceil(e.total/e.pageSize)),f=ke(()=>r.value===1),u=ke(()=>e.currentPage>1),h=ke(()=>e.currentPage-1===1),g=ke(()=>e.currentPage<r.value),s=ke(()=>e.currentPage+1===r.value);return{updatePage:o=>{t.emit("update-page",o)},isNextPage:n,hasNextPage:g,hasOnlyOnePage:f,hasPreviousPage:u,isNextPageLast:s,isPreviousPageFirst:h,totalPageCount:r}}}),x_={key:0,class:"message is-warning"},T_=N("div",{class:"message-body"},"There is no result to show.",-1),L_=[T_],M_={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},O_={key:0,class:"pagination-list"},I_={key:1,class:"pagination-list"},F_={key:0},N_={key:1},D_=N("span",{class:"pagination-ellipsis"},"…",-1),P_=[D_],B_={key:2},W_={key:3},H_={key:4},U_=N("span",{class:"pagination-ellipsis"},"…",-1),V_=[U_],z_={key:5};function j_(e,t,n,r,f,u){return e.total===0?(Z(),re("article",x_,L_)):(Z(),re("nav",M_,[e.hasOnlyOnePage?(Z(),re("ul",O_,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=h=>e.updatePage(1))},"1")])])):(Z(),re("ul",I_,[e.hasPreviousPage&&!e.isPreviousPageFirst?(Z(),re("li",F_,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=h=>e.updatePage(1))}," 1")])):ge("",!0),e.hasPreviousPage&&!e.isPreviousPageFirst&&!e.isNextPage(2)?(Z(),re("li",N_,P_)):ge("",!0),e.hasPreviousPage?(Z(),re("li",B_,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=h=>e.updatePage(e.currentPage-1))},ye(e.currentPage-1),1)])):ge("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=h=>e.updatePage(e.currentPage))},ye(e.currentPage),1)]),e.hasNextPage?(Z(),re("li",W_,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=h=>e.updatePage(e.currentPage+1))},ye(e.currentPage+1),1)])):ge("",!0),e.hasNextPage&&!e.isNextPageLast&&!e.isNextPage(e.totalPageCount-1)?(Z(),re("li",H_,V_)):ge("",!0),e.hasNextPage&&!e.isNextPageLast?(Z(),re("li",z_,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=h=>e.updatePage(e.totalPageCount))},ye(e.totalPageCount),1)])):ge("",!0)]))]))}const Ml=Ae(R_,[["render",j_]]),G_=be({name:"AlertsItem",components:{Alert:E_,Pagination:Ml},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh"],setup(e,t){const n=u=>{t.emit("update-page",u)},r=()=>{t.emit("refresh")},f=ke(()=>e.alerts.results.length>0);return{onUpdatePage:n,onDelete:r,hasAlerts:f}}}),K_={key:0},Y_={class:"help"},X_={key:1},Z_=N("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),q_=[Z_];function J_(e,t,n,r,f,u){const h=ie("Alert"),g=ie("Pagination");return e.hasAlerts?(Z(),re("div",K_,[(Z(!0),re(xe,null,_t(e.alerts.results,s=>(Z(),Ce(h,{alert:s,key:s.id,onDelete:e.onDelete},null,8,["alert","onDelete"]))),128)),se(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",Y_,"("+ye(e.alerts.total)+" results in total, "+ye(e.alerts.results.length)+" shown)",1)])):(Z(),re("div",X_,q_))}const op=Ae(G_,[["render",J_]]),Q_=be({name:"LoadingItem"}),eS={class:"has-text-centered"},tS={class:"fa-3x"};function nS(e,t,n,r,f,u){const h=ie("font-awesome-icon");return Z(),re("div",eS,[N("div",tS,[se(h,{icon:"spinner",spin:""})])])}const ln=Ae(Q_,[["render",nS]]),rS=be({name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},components:{Alerts:op,Loading:ln,ErrorMessage:lt},setup(e){const t=Ne(1),n=ke(()=>e.excludeAlertId?`rule.id:"${e.ruleId}" AND NOT id:${e.excludeAlertId}`:`rule.id:"${e.ruleId}"`),r=Ei(),f=async()=>{const h={q:n.value,page:t.value};return await r.perform(h)},u=h=>{t.value=h};return Xe(async()=>{await f()}),qe([e,t],async()=>{await f()}),{page:t,getAlertsTask:r,onUpdatePage:u}}});function iS(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("Alerts");return Z(),re(xe,null,[e.getAlertsTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getAlertsTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getAlertsTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getAlertsTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onUpdatePage:e.onUpdatePage},null,8,["page","alerts","onUpdatePage"])):ge("",!0)],64)}const sp=Ae(rS,[["render",iS]]),oS=be({name:"AlertDetail",components:{Artifacts:Yd,Tags:Ll,Alerts:sp,ActionButtons:Kd,ErrorMessage:lt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Ne();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:np,getHumanizedRelativeTime:rp,onSetError:h=>{n.value=h},onDisposeError:()=>{n.value=void 0},error:n}}}),sS={class:"block"},aS={class:"is-size-2"},lS={class:"is-clearfix"},cS={class:"table is-fullwidth is-completely-borderless"},uS=N("th",null,"Rule",-1),hS=N("th",null,"Artifacts",-1),fS={key:0},dS=N("th",null,"Tags",-1),pS={class:"help"},gS=N("hr",null,null,-1),mS={class:"block"},vS=N("h2",{class:"is-size-2 block"},"Related Alerts",-1);function yS(e,t,n,r,f,u){const h=ie("ErrorMessage"),g=ie("ActionButtons"),s=ie("router-link"),p=ie("Artifacts"),o=ie("Tags"),i=ie("Alerts");return Z(),re(xe,null,[e.error?(Z(),Ce(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),N("div",sS,[N("h2",aS,ye(e.alert.id),1),N("p",lS,[se(g,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),N("table",cS,[N("tr",null,[uS,N("td",null,[se(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et(ye(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[hS,N("td",null,[se(p,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(Z(),re("tr",fS,[dS,N("td",null,[se(o,{tags:e.alert.tags},null,8,["tags"])])])):ge("",!0)]),N("p",pS,"Created at: "+ye(e.alert.createdAt),1)]),gS,N("div",mS,[vS,se(i,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}const bS=Ae(oS,[["render",yS]]),wS=be({name:"AlertDetailWrapper",components:{AlertComponent:bS,Loading:ln,ErrorMessage:lt},props:{id:{type:Number,required:!0}},setup(e){const t=Tr(),n=R$(),r=()=>{t.push("/")};return Xe(async()=>{await n.perform(e.id)}),{getAlertTask:n,onDelete:r}}});function $S(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("AlertComponent");return Z(),re(xe,null,[e.getAlertTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getAlertTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getAlertTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getAlertTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,alert:e.getAlertTask.last.value,onDelete:e.onDelete},null,8,["alert","onDelete"])):ge("",!0)],64)}const _S=Ae(wS,[["render",$S]]),SS=be({name:"AlertView",components:{Alert:_S},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Alert:${e.id} - Mihari`)};Xe(()=>{t()}),qe(()=>e.id,()=>{t()})}});function CS(e,t,n,r,f,u){const h=ie("Alert",!0);return Z(),Ce(h,{id:parseInt(e.id)},null,8,["id"])}const AS=Ae(SS,[["render",CS]]),Ds=new WeakMap;function $r(e,t,n={}){const{mode:r="replace",route:f=_1(),router:u=Tr(),transform:h=i=>i}=n;Ds.has(u)||Ds.set(u,new Map);const g=Ds.get(u);let s=f.query[e];ud(()=>{s=void 0});let p;const o=Bo((i,a)=>(p=a,{get(){return i(),h(s!==void 0?s:So(t))},set(c){s!==c&&(s=c,g.set(e,c),a(),wi(()=>{if(g.size===0)return;const l=Object.fromEntries(g.entries());g.clear();const{params:d,query:m,hash:v}=f;u[So(r)]({params:d,query:{...m,...l},hash:v})}))}}));return qe(()=>f.query[e],i=>{s=i,p()},{flush:"sync"}),o}const kS=be({name:"AlertsWrapper",components:{Alerts:op,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Ne(!1),r=Ei(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return Xe(async()=>{await f()}),qe(e,async()=>{await f()}),{getAlertsTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),ES={class:"block"},RS={class:"field has-addons"},xS={class:"control is-expanded"},TS={class:"control"},LS={class:"icon is-small"},MS=N("span",null,"Search",-1),OS={class:"control"},IS={class:"icon is-small"},FS=N("span",null,"Help",-1),NS={key:0,class:"content"},DS=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),PS={key:0,class:"block"};function BS(e,t,n,r,f,u){var i,a;const h=ie("font-awesome-icon"),g=ie("router-link"),s=ie("Loading"),p=ie("ErrorMessage"),o=ie("Alerts");return Z(),re(xe,null,[N("div",ES,[N("div",RS,[N("p",xS,[Go(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[Xn,e.q]])]),N("p",TS,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[N("span",LS,[se(h,{icon:"search"})]),MS])]),N("p",OS,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[N("span",IS,[se(h,{icon:"question"})]),FS])])]),e.showHelp?(Z(),re("div",NS,[DS,N("ul",null,[N("li",null,[se(g,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Je(()=>[et("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),N("li",null,[se(g,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),e.getAlertsTask.performCount>0?(Z(),re("div",PS,[e.getAlertsTask.isRunning?(Z(),Ce(s,{key:0})):ge("",!0),e.getAlertsTask.isError?(Z(),Ce(p,{key:1,error:(i=e.getAlertsTask.last)==null?void 0:i.error},null,8,["error"])):ge("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(Z(),Ce(o,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["alerts","page","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const WS=Ae(kS,[["render",BS]]),HS=be({name:"OverviewCards",setup(){const e=Ei(),t=jd(),n=Tl();return Xe(()=>{e.perform({q:"",page:1,limit:0}),t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0})}),{getAlertsTask:e,getArtifactsTask:n,getRulesTask:t}}}),US={class:"columns"},VS={class:"column is-one-third"},zS={class:"card tile is-child"},jS={class:"card-content"},GS={class:"level is-mobile"},KS={class:"level-item"},YS={class:"is-widget-label"},XS=N("h3",{class:"subtitle is-spaced"},"Rules",-1),ZS={class:"title"},qS={class:"level-item has-widget-icon"},JS={class:"is-widget-icon"},QS={class:"icon has-text-info is-large"},eC={class:"column is-one-third"},tC={class:"card tile is-child"},nC={class:"card-content"},rC={class:"level is-mobile"},iC={class:"level-item"},oC={class:"is-widget-label"},sC=N("h3",{class:"subtitle is-spaced"},"Alerts",-1),aC={class:"title"},lC={class:"level-item has-widget-icon"},cC={class:"is-widget-icon"},uC={class:"icon has-text-info is-large"},hC={class:"column is-one-third"},fC={class:"card tile is-child"},dC={class:"card-content"},pC={class:"level is-mobile"},gC={class:"level-item"},mC={class:"is-widget-label"},vC=N("h3",{class:"subtitle is-spaced"},"Artifacts",-1),yC={class:"title"},bC={class:"level-item has-widget-icon"},wC={class:"is-widget-icon"},$C={class:"icon has-text-info is-large"};function _C(e,t,n,r,f,u){var g,s,p,o,i,a;const h=ie("font-awesome-icon");return Z(),re("div",US,[N("div",VS,[N("div",zS,[N("div",jS,[N("div",GS,[N("div",KS,[N("div",YS,[XS,N("h1",ZS,ye(((s=(g=e.getRulesTask.last)==null?void 0:g.value)==null?void 0:s.total)??"N/A"),1)])]),N("div",qS,[N("div",JS,[N("span",QS,[se(h,{icon:"file",size:"2x"})])])])])])])]),N("div",eC,[N("div",tC,[N("div",nC,[N("div",rC,[N("div",iC,[N("div",oC,[sC,N("h1",aC,ye(((o=(p=e.getAlertsTask.last)==null?void 0:p.value)==null?void 0:o.total)??"N/A"),1)])]),N("div",lC,[N("div",cC,[N("span",uC,[se(h,{icon:"bell",size:"2x"})])])])])])])]),N("div",hC,[N("div",fC,[N("div",dC,[N("div",pC,[N("div",gC,[N("div",mC,[vC,N("h1",yC,ye(((a=(i=e.getArtifactsTask.last)==null?void 0:i.value)==null?void 0:a.total)??"N/A"),1)])]),N("div",bC,[N("div",wC,[N("span",$C,[se(h,{icon:"ticket",size:"2x"})])])])])])])])])}const SC=Ae(HS,[["render",_C]]),CC=be({name:"AlertsView",components:{Alerts:WS,OverviewCards:SC},setup(){an("Alerts - Mihari")}}),AC=N("hr",null,null,-1);function kC(e,t,n,r,f,u){const h=ie("OverviewCards"),g=ie("Alerts",!0);return Z(),re(xe,null,[se(h),AC,se(g)],64)}const EC=Ae(CC,[["render",kC]]),RC=be({name:"ArtifactActionButtons",props:{artifact:{type:Object,required:!0}},components:{VueJsonPretty:qd},emits:["delete","set-error","set-message"],setup(e,t){const n=ke(()=>`/api/artifacts/${e.artifact.id}`),r=Ne(!1),f=zd(),u=$$();return{deleteArtifact:async()=>{if(window.confirm(`Are you sure you want to delete ${e.artifact.data}?`))try{await f.perform(e.artifact.id),t.emit("delete")}catch(o){Ve.isAxiosError(o)&&t.emit("set-error",o)}},enrichArtifact:async()=>{try{const p=await u.perform(e.artifact.id);t.emit("set-message",p)}catch(p){Ve.isAxiosError(p)&&t.emit("set-error",p)}},enrichArtifactTask:u,toggleShowMetadata:()=>{r.value=!r.value},href:n,showMetadata:r,truncate:Ri}}}),xi=e=>(zo("data-v-13186183"),e=e(),jo(),e),xC={class:"buttons is-pulled-right"},TC=["href"],LC=xi(()=>N("span",null,"JSON",-1)),MC={class:"icon is-small"},OC=xi(()=>N("span",null,"Metadata",-1)),IC={class:"icon is-small"},FC=xi(()=>N("span",null,"Enrich",-1)),NC={class:"icon is-small"},DC=xi(()=>N("span",null,"Delete",-1)),PC={class:"icon is-small"},BC={key:0},WC={class:"modal is-active"},HC={class:"modal-card"},UC={class:"modal-card-head"},VC=xi(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),zC={class:"modal-card-body"};function jC(e,t,n,r,f,u){const h=ie("font-awesome-icon"),g=ie("VueJsonPretty");return Z(),re(xe,null,[N("span",xC,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[LC,N("span",MC,[se(h,{icon:"barcode"})])],8,TC),e.artifact.metadata?(Z(),re("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))},[OC,N("span",IC,[se(h,{icon:"info-circle"})])])):ge("",!0),N("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...s)=>e.enrichArtifact&&e.enrichArtifact(...s))},[FC,N("span",NC,[e.enrichArtifactTask.isRunning?(Z(),Ce(h,{key:0,icon:"spinner",spin:""})):(Z(),Ce(h,{key:1,icon:"lightbulb"}))])]),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...s)=>e.deleteArtifact&&e.deleteArtifact(...s))},[DC,N("span",PC,[se(h,{icon:"times"})])])]),e.artifact.metadata&&e.showMetadata?(Z(),re("div",BC,[N("div",WC,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))}),N("div",HC,[N("header",UC,[VC,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))})]),N("section",zC,[se(g,{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}const ap=Ae(RC,[["render",jC],["__scopeId","data-v-13186183"]]),GC=be({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),KC={class:"tags are-medium"},YC={class:"tag"};function XC(e,t,n,r,f,u){return Z(),re("div",KC,[N("span",YC,ye(e.autonomousSystem.asn),1)])}const ZC=Ae(GC,[["render",XC]]),qC=be({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),JC={class:"tags are-medium"};function QC(e,t,n,r,f,u){return Z(),re("div",JC,[(Z(!0),re(xe,null,_t(e.cpes,h=>(Z(),re("span",{class:"tag",key:h.cpe},ye(h.cpe),1))),128))])}const eA=Ae(qC,[["render",QC]]),tA=be({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Ri}}}),nA={class:"field is-grouped is-grouped-multiline"},rA={class:"tags has-addons are-medium"},iA={class:"tag is-dark"},oA={class:"tag"};function sA(e,t,n,r,f,u){return Z(),re("div",nA,[(Z(!0),re(xe,null,_t(e.dnsRecords,(h,g)=>(Z(),re("div",{class:"control",key:g},[N("div",rA,[N("span",iA,ye(h.resource),1),N("span",oA,ye(e.truncate(h.value,50)),1)])]))),128))])}const aA=Ae(tA,[["render",sA]]),lA=be({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),cA={class:"tags are-medium"};function uA(e,t,n,r,f,u){return Z(),re("div",cA,[(Z(!0),re(xe,null,_t(e.ports,h=>(Z(),re("span",{class:"tag",key:h.port},ye(h.port),1))),128))])}const hA=Ae(lA,[["render",uA]]),fA=be({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),dA={class:"tags are-medium"};function pA(e,t,n,r,f,u){return Z(),re("div",dA,[(Z(!0),re(xe,null,_t(e.reverseDnsNames,h=>(Z(),re("span",{class:"tag",key:h.name},ye(h.name),1))),128))])}const gA=Ae(fA,[["render",pA]]),mA=be({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),vA={class:"tags are-medium"};function yA(e,t,n,r,f,u){const h=ie("router-link");return Z(),re("div",vA,[(Z(!0),re(xe,null,_t(e.tags,g=>(Z(),Ce(h,{class:"tag is-info is-light",key:g.id,to:{name:"Alerts",query:{tag:g.name}}},{default:Je(()=>[et(ye(g.name),1)]),_:2},1032,["to"]))),128))])}const bA=Ae(mA,[["render",yA]]),wA=be({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),$A={class:"field is-grouped is-grouped-multiline"},_A={class:"control"},SA={class:"tags has-addons are-medium"},CA=N("span",{class:"tag is-dark"},"Registrar",-1),AA={class:"tag is-light"},kA={class:"control"},EA={class:"tags has-addons are-medium"},RA=N("span",{class:"tag is-dark"},"Created on",-1),xA={class:"tag is-light"},TA={class:"control"},LA={class:"tags has-addons are-medium"},MA=N("span",{class:"tag is-dark"},"Updated on",-1),OA={class:"tag is-light"},IA={class:"control"},FA={class:"tags has-addons are-medium"},NA=N("span",{class:"tag is-dark"},"Expires on",-1),DA={class:"tag is-light"};function PA(e,t,n,r,f,u){var h;return Z(),re("div",$A,[N("div",_A,[N("div",SA,[CA,N("span",AA,ye(((h=e.whoisRecord.registrar)==null?void 0:h.name)||"N/A"),1)])]),N("div",kA,[N("div",EA,[RA,N("span",xA,ye(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",TA,[N("div",LA,[MA,N("span",OA,ye(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",IA,[N("div",FA,[NA,N("span",DA,ye(e.whoisRecord.expiresOn||"N/A"),1)])])])}const BA=Ae(wA,[["render",PA]]),WA=be({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),HA=["href"],UA=["src"];function VA(e,t,n,r,f,u){return Z(),re("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,UA),N("span",null,ye(e.link.name),1)],8,HA)}const zA=Ae(WA,[["render",VA],["__scopeId","data-v-66270500"]]);class Rt{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 jA extends Rt{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 GA extends Rt{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 KA extends Rt{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 YA extends Rt{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 XA extends Rt{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 ZA extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class qA extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class JA extends Rt{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 lp extends Rt{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 QA extends lp{constructor(){super();Te(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class cp extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class e2 extends cp{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class t2 extends cp{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class n2 extends Rt{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 Ol extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class r2 extends Ol{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class i2 extends Ol{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class o2 extends Ol{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var up={exports:{}};const s2={},a2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),ku=Xd(a2);/**
799
+ `):" "+_u(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return r},adapters:Ra};function Ds(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ki(null,e)}function Su(e){return Ds(e),e.headers=en.from(e.headers),e.data=Ns.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wd.getAdapter(e.adapter||xl.adapter)(e).then(function(r){return Ds(e),r.data=Ns.call(e,e.transformResponse,r),r.headers=en.from(r.headers),r},function(r){return Pd(r)||(Ds(e),r&&r.response&&(r.response.data=Ns.call(e,e.transformResponse,r.response),r.response.headers=en.from(r.response.headers))),Promise.reject(r)})}const Cu=e=>e instanceof en?e.toJSON():e;function wr(e,t){t=t||{};const n={};function r(p,o,i){return re.isPlainObject(p)&&re.isPlainObject(o)?re.merge.call({caseless:i},p,o):re.isPlainObject(o)?re.merge({},o):re.isArray(o)?o.slice():o}function f(p,o,i){if(re.isUndefined(o)){if(!re.isUndefined(p))return r(void 0,p,i)}else return r(p,o,i)}function u(p,o){if(!re.isUndefined(o))return r(void 0,o)}function h(p,o){if(re.isUndefined(o)){if(!re.isUndefined(p))return r(void 0,p)}else return r(void 0,o)}function g(p,o,i){if(i in t)return r(p,o);if(i in e)return r(void 0,p)}const s={url:u,method:u,data:u,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(p,o)=>f(Cu(p),Cu(o),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(o){const i=s[o]||f,a=i(e[o],t[o],o);re.isUndefined(a)&&i!==g||(n[o]=a)}),n}const Hd="1.6.5",Tl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Au={};Tl.transitional=function(t,n,r){function f(u,h){return"[Axios v"+Hd+"] Transitional option '"+u+"'"+h+(r?". "+r:"")}return(u,h,g)=>{if(t===!1)throw new Oe(f(h," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!Au[h]&&(Au[h]=!0,console.warn(f(h," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,h,g):!0}};function h$(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let f=r.length;for(;f-- >0;){const u=r[f],h=t[u];if(h){const g=e[u],s=g===void 0||h(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 xa={assertOptions:h$,validators:Tl},pn=xa.validators;let Ao=class{constructor(t){this.defaults=t,this.interceptors={request:new bu,response:new bu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:r,paramsSerializer:f,headers:u}=n;r!==void 0&&xa.assertOptions(r,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),f!=null&&(re.isFunction(f)?n.paramsSerializer={serialize:f}:xa.assertOptions(f,{encode:pn.function,serialize:pn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let h=u&&re.merge(u.common,u[n.method]);u&&re.forEach(["delete","get","head","post","put","patch","common"],l=>{delete u[l]}),n.headers=en.concat(h,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 p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let o,i=0,a;if(!s){const l=[Su.bind(this),void 0];for(l.unshift.apply(l,g),l.push.apply(l,p),a=l.length,o=Promise.resolve(n);i<a;)o=o.then(l[i++],l[i++]);return o}a=g.length;let c=n;for(i=0;i<a;){const l=g[i++],d=g[i++];try{c=l(c)}catch(m){d.call(this,m);break}}try{o=Su.call(this,c)}catch(l){return Promise.reject(l)}for(i=0,a=p.length;i<a;)o=o.then(p[i++],p[i++]);return o}getUri(t){t=wr(this.defaults,t);const n=Bd(t.baseURL,t.url);return Id(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){Ao.prototype[t]=function(n,r){return this.request(wr(r||{},{method:t,url:n,data:(r||{}).data}))}});re.forEach(["post","put","patch"],function(t){function n(r){return function(u,h,g){return this.request(wr(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:h}))}}Ao.prototype[t]=n(),Ao.prototype[t+"Form"]=n(!0)});const so=Ao;let f$=class Ud{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 r=this;this.promise.then(f=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](f);r._listeners=null}),this.promise.then=f=>{let u;const h=new Promise(g=>{r.subscribe(g),u=g}).then(f);return h.cancel=function(){r.unsubscribe(u)},h},t(function(u,h,g){r.reason||(r.reason=new ki(u,h,g),n(r.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 Ud(function(f){t=f}),cancel:t}}};const d$=f$;function p$(e){return function(n){return e.apply(null,n)}}function g$(e){return re.isObject(e)&&e.isAxiosError===!0}const Ta={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(Ta).forEach(([e,t])=>{Ta[t]=e});const m$=Ta;function Vd(e){const t=new so(e),n=_d(so.prototype.request,t);return re.extend(n,so.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(f){return Vd(wr(e,f))},n}const ze=Vd(xl);ze.Axios=so;ze.CanceledError=ki;ze.CancelToken=d$;ze.isCancel=Pd;ze.VERSION=Hd;ze.toFormData=cs;ze.AxiosError=Oe;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=p$;ze.isAxiosError=g$;ze.mergeConfig=wr;ze.AxiosHeaders=en;ze.formToJSON=e=>Dd(re.isHTMLForm(e)?new FormData(e):e);ze.getAdapter=Wd.getAdapter;ze.HttpStatusCode=m$;ze.default=ze;const{Axios:fT,AxiosError:v$,CanceledError:dT,isCancel:pT,CancelToken:gT,VERSION:mT,all:vT,Cancel:yT,isAxiosError:bT,spread:wT,toFormData:$T,AxiosHeaders:_T,HttpStatusCode:ST,formToJSON:CT,getAdapter:AT,mergeConfig:kT}=ze,rt=ze.create(),dt={async getConfigs(){return(await rt.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await rt.get("/api/alerts",{params:e})).data},async getAlert(e){return(await rt.get(`/api/alerts/${e}`)).data},async getTags(){return(await rt.get("/api/tags")).data},async deleteAlert(e){return(await rt.delete(`/api/alerts/${e}`)).data},async getArtifact(e){return(await rt.get(`/api/artifacts/${e}`)).data},async getArtifacts(e){return e.page=e.page||1,(await rt.get("/api/artifacts",{params:e})).data},async enrichArtifact(e){return(await rt.post(`/api/artifacts/${e}/enrich`)).data},async deleteArtifact(e){return(await rt.delete(`/api/artifacts/${e}`)).data},async getRules(e){return e.page=e.page||1,(await rt.get("/api/rules",{params:e})).data},async getRule(e){return(await rt.get(`/api/rules/${e}`)).data},async searchRule(e){return(await rt.post(`/api/rules/${e}/search`)).data},async createRule(e){return(await rt.post("/api/rules/",e)).data},async updateRule(e){return(await rt.put("/api/rules/",e)).data},async deleteRule(e){return(await rt.delete(`/api/rules/${e}`)).data},async deleteTag(e){return(await rt.delete(`/api/tags/${e}`)).data},async getIPInfo(e){return(await rt.get(`/api/ip_addresses/${e}`)).data}};function Ei(){return ft(async(e,t)=>await dt.getAlerts(t))}function y$(){return ft(async(e,t)=>await dt.deleteAlert(t))}function b$(){return ft(async(e,t)=>await dt.deleteTag(t))}function w$(){return ft(async(e,t)=>await dt.getArtifact(t))}function zd(){return ft(async(e,t)=>await dt.deleteArtifact(t))}function $$(){return ft(async(e,t)=>await dt.enrichArtifact(t))}function _$(){return ft(async()=>await dt.getConfigs())}function S$(){return ft(async(e,t)=>await dt.getIPInfo(t))}function jd(){return ft(async(e,t)=>await dt.getRules(t))}function Gd(){return ft(async(e,t)=>await dt.getRule(t))}function C$(){return ft(async(e,t)=>await dt.deleteRule(t))}function A$(){return ft(async(e,t)=>await dt.searchRule(t))}function k$(){return ft(async(e,t)=>await dt.createRule(t))}function E$(){return ft(async(e,t)=>await dt.updateRule(t))}function Ll(){return ft(async(e,t)=>await dt.getArtifacts(t))}function R$(){return ft(async(e,t)=>await dt.getAlert(t))}const x$=we({name:"AlertActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,t){const n=ke(()=>`/api/alerts/${e.alert.id}`),r=y$();return{href:n,deleteAlert:async()=>{if(window.confirm(`Are you sure you want to delete ${e.alert.id}?`))try{await r.perform(e.alert.id),t.emit("delete")}catch(h){ze.isAxiosError(h)&&t.emit("set-error",h)}}}}}),T$={class:"buttons is-pulled-right"},L$=["href"],M$=N("span",null,"JSON",-1),O$={class:"icon is-small"},I$=N("span",null,"Delete",-1),F$={class:"icon is-small"};function N$(e,t,n,r,f,u){const h=ne("font-awesome-icon");return X(),ie("span",T$,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[M$,N("span",O$,[oe(h,{icon:"barcode"})])],8,L$),N("button",{class:"button is-light is-small",onClick:t[0]||(t[0]=(...g)=>e.deleteAlert&&e.deleteAlert(...g))},[I$,N("span",F$,[oe(h,{icon:"times"})])])])}const Kd=Ae(x$,[["render",N$]]);var Ri=D$;function D$(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const P$=we({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Fe(!1),r=Fe(!1),f=zd();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await f.perform(e.artifact.id),n.value=!0,t.emit("delete"))},hideDeleteButton:()=>{r.value=!1},isDeleteButtonEnabled:r,isDeleted:n,showDeleteButton:()=>{r.value=!0},truncate:Ri}}}),B$={key:0,class:"control"};function W$(e,t,n,r,f,u){const h=ne("router-link");return e.isDeleted?pe("",!0):(X(),ie("div",B$,[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))},[oe(h,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ve(()=>[Ke(ye(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(X(),ie("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):pe("",!0)],32)]))}const H$=Ae(P$,[["render",W$]]),U$=we({name:"ArtifactTags",components:{ArtifactTag:H$},props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,t){const n=Fe(0),r=()=>{n.value+=1};return Xe(n,()=>{n.value>=e.artifacts.length&&t.emit("delete")}),{onDelete:r}}}),V$={class:"field is-grouped is-grouped-multiline"};function z$(e,t,n,r,f,u){const h=ne("ArtifactTag");return X(),ie("div",V$,[(X(!0),ie(xe,null,_t(e.artifacts,g=>(X(),be(h,{key:g.id,artifact:g,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128))])}const Yd=Ae(U$,[["render",z$]]);var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var f=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,f.get?f:{enumerable:!0,get:function(){return e[r]}})}),n}var Zd={exports:{}};const j$=Xd(z0);(function(e,t){(function(n,r){e.exports=r(j$)})(xn,function(n){return function(){var r={789:function(g){g.exports=n}},f={};function u(g){var s=f[g];if(s!==void 0)return s.exports;var p=f[g]={exports:{}};return r[g](p,p.exports,u),p.exports}u.d=function(g,s){for(var p in s)u.o(s,p)&&!u.o(g,p)&&Object.defineProperty(g,p,{enumerable:!0,get:s[p]})},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 h={};return function(){function g($,A){(A==null||A>$.length)&&(A=$.length);for(var _=0,w=new Array(A);_<A;_++)w[_]=$[_];return w}function s($,A){if($){if(typeof $=="string")return g($,A);var _=Object.prototype.toString.call($).slice(8,-1);return _==="Object"&&$.constructor&&(_=$.constructor.name),_==="Map"||_==="Set"?Array.from($):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?g($,A):void 0}}function p($){return function(A){if(Array.isArray(A))return g(A)}($)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}($)||s($)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
800
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o($,A,_){return A in $?Object.defineProperty($,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):$[A]=_,$}u.r(h),u.d(h,{default:function(){return M}});var i=u(789),a=(0,i.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var $=this.data,A=this.onClick;return(0,i.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[$])}}),c=(0,i.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function($,A){var _=A.emit;return{uiType:(0,i.computed)(function(){return $.isMultiple?"checkbox":"radio"}),model:(0,i.computed)({get:function(){return $.checked},set:function(w){return _("update:modelValue",w)}})}},render:function(){var $=this.uiType,A=this.model,_=this.$emit;return(0,i.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,i.createVNode)("span",{class:"vjs-check-controller-inner is-".concat($)},null),(0,i.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat($),type:$,onChange:function(){return _("change",A)}},null)])}}),l=(0,i.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var $=this.nodeType,A=this.onClick,_=$==="objectStart"||$==="arrayStart";return _||$==="objectCollapsed"||$==="arrayCollapsed"?(0,i.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(_?"open":"close"),onClick:A},[(0,i.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,i.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($){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($)}function m($){return Object.prototype.toString.call($).slice(8,-1).toLowerCase()}function v($){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,x=w||{},T=x.key,O=x.index,I=x.type,F=I===void 0?"content":I,P=x.showComma,W=P!==void 0&&P,j=x.length,H=j===void 0?1:j,V=m($);if(V==="array"){var G=y($.map(function(Z,Y,z){return v(Z,"".concat(A,"[").concat(Y,"]"),_+1,{index:Y,showComma:Y!==z.length-1,length:H,type:F})}));return[v("[",A,_,{showComma:!1,key:T,length:$.length,type:"arrayStart"})[0]].concat(G,v("]",A,_,{showComma:W,length:$.length,type:"arrayEnd"})[0])}if(V==="object"){var Q=Object.keys($),U=y(Q.map(function(Z,Y,z){return v($[Z],/^[a-zA-Z_]\w*$/.test(Z)?"".concat(A,".").concat(Z):"".concat(A,'["').concat(Z,'"]'),_+1,{key:Z,showComma:Y!==z.length-1,length:H,type:F})}));return[v("{",A,_,{showComma:!1,key:T,index:O,length:Q.length,type:"objectStart"})[0]].concat(U,v("}",A,_,{showComma:W,length:Q.length,type:"objectEnd"})[0])}return[{content:$,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function y($){if(typeof Array.prototype.flat=="function")return $.flat();for(var A=p($),_=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,p(w)):_.push(w)}return _}function k($){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if($==null)return $;if($ instanceof Date)return new Date($);if($ instanceof RegExp)return new RegExp($);if(d($)!=="object")return $;if(A.get($))return A.get($);if(Array.isArray($)){var _=$.map(function(T){return k(T,A)});return A.set($,_),_}var w={};for(var x in $)w[x]=k($[x],A);return A.set($,w),w}function C($,A){var _=Object.keys($);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols($);A&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor($,x).enumerable})),_.push.apply(_,w)}return _}function S($){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?C(Object(_),!0).forEach(function(w){o($,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(_)):C(Object(_)).forEach(function(w){Object.defineProperty($,w,Object.getOwnPropertyDescriptor(_,w))})}return $}var b={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,i.defineComponent)({name:"TreeNode",props:S(S({},b),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function($,A){var _=A.emit,w=(0,i.computed)(function(){return m($.node.content)}),x=(0,i.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,i.computed)(function(){return $.showDoubleQuotes?'"'.concat($.node.key,'"'):$.node.key}),O=(0,i.computed)(function(){return $.selectableType==="multiple"}),I=(0,i.computed)(function(){return $.selectableType==="single"}),F=(0,i.computed)(function(){return $.nodeSelectable($.node)&&(O.value||I.value)}),P=(0,i.reactive)({editing:!1}),W=function(Y){var z,ee,ue=(ee=(z=Y.target)===null||z===void 0?void 0:z.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",ue,$.node.path)},j=(0,i.computed)(function(){var Y,z=(Y=$.node)===null||Y===void 0?void 0:Y.content;return z===null?z="null":z===void 0&&(z="undefined"),w.value==="string"?'"'.concat(z,'"'):z+""}),H=function(){var Y=$.renderNodeValue;return Y?Y({node:$.node,defaultValue:j.value}):j.value},V=function(){_("bracketsClick",!$.collapsed,$.node.path)},G=function(){_("iconClick",!$.collapsed,$.node.path)},Q=function(){_("selectedChange",$.node)},U=function(){_("nodeClick",$.node),F.value&&$.selectOnClickNode&&_("selectedChange",$.node)},Z=function(Y){if($.editable&&!P.editing){P.editing=!0;var z=function ee(ue){var D;ue.target!==Y.target&&((D=ue.target)===null||D===void 0?void 0:D.parentElement)!==Y.target&&(P.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",z),document.addEventListener("click",z)}};return function(){var Y,z=$.node;return(0,i.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":$.showSelectController,"has-carets":$.showIcon,"is-highlight":$.highlightSelectedNode&&$.checked},onClick:U,style:$.style},[$.showLineNumber&&(0,i.createVNode)("span",{class:"vjs-node-index"},[z.id+1]),$.showSelectController&&F.value&&z.type!=="objectEnd"&&z.type!=="arrayEnd"&&(0,i.createVNode)(c,{isMultiple:O.value,checked:$.checked,onChange:Q},null),(0,i.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(z.level)).map(function(ee,ue){return(0,i.createVNode)("div",{key:ue,class:{"vjs-indent-unit":!0,"has-line":$.showLine}},null)}),$.showIcon&&(0,i.createVNode)(l,{nodeType:z.type,onClick:G},null)]),z.key&&(0,i.createVNode)("span",{class:"vjs-key"},[(Y=$.renderNodeKey,Y?Y({node:$.node,defaultKey:T.value||""}):T.value),(0,i.createVNode)("span",{class:"vjs-colon"},[":".concat($.showKeyValueSpace?" ":"")])]),(0,i.createVNode)("span",null,[z.type!=="content"&&z.content?(0,i.createVNode)(a,{data:z.content.toString(),onClick:V},null):(0,i.createVNode)("span",{class:x.value,onClick:!$.editable||$.editableTrigger&&$.editableTrigger!=="click"?void 0:Z,onDblclick:$.editable&&$.editableTrigger==="dblclick"?Z:void 0},[$.editable&&P.editing?(0,i.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()]),z.showComma&&(0,i.createVNode)("span",null,[","]),$.showLength&&$.collapsed&&(0,i.createVNode)("span",{class:"vjs-comment"},[(0,i.createTextVNode)(" // "),z.length,(0,i.createTextVNode)(" items ")])])])}}});function L($,A){var _=Object.keys($);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols($);A&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor($,x).enumerable})),_.push.apply(_,w)}return _}function E($){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?L(Object(_),!0).forEach(function(w){o($,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(_)):L(Object(_)).forEach(function(w){Object.defineProperty($,w,Object.getOwnPropertyDescriptor(_,w))})}return $}var M=(0,i.defineComponent)({name:"Tree",props:E(E({},b),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function($,A){var _=A.emit,w=A.slots,x=(0,i.ref)(),T=(0,i.computed)(function(){return v($.data,$.rootPath)}),O=function(z,ee){return T.value.reduce(function(ue,D){var B,K=D.level>=z||D.length>=ee,J=(B=$.pathCollapsible)===null||B===void 0?void 0:B.call($,D);return D.type!=="objectStart"&&D.type!=="arrayStart"||!K&&!J?ue:E(E({},ue),{},o({},D.path,1))},{})},I=(0,i.reactive)({translateY:0,visibleData:null,hiddenPaths:O($.deep,$.collapsedNodeLength)}),F=(0,i.computed)(function(){for(var z=null,ee=[],ue=T.value.length,D=0;D<ue;D++){var B=E(E({},T.value[D]),{},{id:D}),K=I.hiddenPaths[B.path];if(z&&z.path===B.path){var J=z.type==="objectStart",te=E(E(E({},B),z),{},{showComma:B.showComma,content:J?"{...}":"[...]",type:J?"objectCollapsed":"arrayCollapsed"});z=null,ee.push(te)}else{if(K&&!z){z=B;continue}if(z)continue;ee.push(B)}}return ee}),P=(0,i.computed)(function(){var z=$.selectedValue;return z&&$.selectableType==="multiple"&&Array.isArray(z)?z:[z]}),W=(0,i.computed)(function(){return!$.selectableType||$.selectOnClickNode||$.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 z=F.value;if($.virtual){var ee,ue=$.height/$.itemHeight,D=((ee=x.value)===null||ee===void 0?void 0:ee.scrollTop)||0,B=Math.floor(D/$.itemHeight),K=B<0?0:B+ue>z.length?z.length-ue:B;K<0&&(K=0);var J=K+ue;I.translateY=K*$.itemHeight,I.visibleData=z.filter(function(te,ae){return ae>=K&&ae<J})}else I.visibleData=z},H=function(){j()},V=function(z){var ee,ue,D=z.path,B=$.selectableType;if(B==="multiple"){var K=P.value.findIndex(function(fe){return fe===D}),J=p(P.value);K!==-1?J.splice(K,1):J.push(D),_("update:selectedValue",J),_("selectedChange",J,p(P.value))}else if(B==="single"&&P.value[0]!==D){var te=(ee=P.value,ue=1,function(fe){if(Array.isArray(fe))return fe}(ee)||function(fe,ce){var he=fe==null?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(he!=null){var se,ge,Ce=[],$e=!0,q=!1;try{for(he=he.call(fe);!($e=(se=he.next()).done)&&(Ce.push(se.value),!ce||Ce.length!==ce);$e=!0);}catch(le){q=!0,ge=le}finally{try{$e||he.return==null||he.return()}finally{if(q)throw ge}}return Ce}}(ee,ue)||s(ee,ue)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
801
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],ae=D;_("update:selectedValue",ae),_("selectedChange",ae,te)}},G=function(z){_("nodeClick",z)},Q=function(z,ee){if(z)I.hiddenPaths=E(E({},I.hiddenPaths),{},o({},ee,1));else{var ue=E({},I.hiddenPaths);delete ue[ee],I.hiddenPaths=ue}},U=function(z,ee){$.collapsedOnClickBrackets&&Q(z,ee),_("bracketsClick",z)},Z=function(z,ee){Q(z,ee),_("iconClick",z)},Y=function(z,ee){var ue=k($.data),D=$.rootPath;new Function("data","val","data".concat(ee.slice(D.length),"=val"))(ue,z),_("update:data",ue)};return(0,i.watchEffect)(function(){W.value&&function(z){throw new Error("[VueJSONPretty] ".concat(z))}(W.value)}),(0,i.watchEffect)(function(){F.value&&j()}),(0,i.watch)(function(){return $.deep},function(z){z&&(I.hiddenPaths=O(z,$.collapsedNodeLength))}),(0,i.watch)(function(){return $.collapsedNodeLength},function(z){z&&(I.hiddenPaths=O($.deep,z))}),function(){var z,ee,ue=(z=$.renderNodeKey)!==null&&z!==void 0?z:w.renderNodeKey,D=(ee=$.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,B=I.visibleData&&I.visibleData.map(function(K){return(0,i.createVNode)(R,{key:K.id,node:K,collapsed:!!I.hiddenPaths[K.path],showDoubleQuotes:$.showDoubleQuotes,showLength:$.showLength,checked:P.value.includes(K.path),selectableType:$.selectableType,showLine:$.showLine,showLineNumber:$.showLineNumber,showSelectController:$.showSelectController,selectOnClickNode:$.selectOnClickNode,nodeSelectable:$.nodeSelectable,highlightSelectedNode:$.highlightSelectedNode,editable:$.editable,editableTrigger:$.editableTrigger,showIcon:$.showIcon,showKeyValueSpace:$.showKeyValueSpace,renderNodeKey:ue,renderNodeValue:D,onNodeClick:G,onBracketsClick:U,onIconClick:Z,onSelectedChange:V,onValueChange:Y,style:$.itemHeight&&$.itemHeight!==20?{lineHeight:"".concat($.itemHeight,"px")}:{}},null)});return(0,i.createVNode)("div",{ref:x,class:{"vjs-tree":!0,"is-virtual":$.virtual},onScroll:$.virtual?H:void 0,style:$.showLineNumber?E({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},$.style):$.style},[$.virtual?(0,i.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat($.height,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*$.itemHeight,"px")}},[(0,i.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[B])])]):B])}}})}(),h}()})})(Zd);var G$=Zd.exports;const Qd=tr(G$),K$=we({name:"ErrorItem",props:{error:{type:v$,required:!0},disposable:{type:Boolean,default:!1}},components:{VueJsonPretty:Qd},emits:["dispose"],setup(e,t){const n=ke(()=>{var f;if(e.error.response)return(f=e.error.response)==null?void 0:f.data});return{dispose:()=>{t.emit("dispose")},data:n}}}),Y$={class:"notification is-danger is-light"},X$={key:1},Z$={key:2},Q$={key:0,class:"message"},q$={class:"message-body"};function J$(e,t,n,r,f,u){var g;const h=ne("VueJsonPretty");return X(),ie(xe,null,[N("div",Y$,[e.disposable?(X(),ie("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...s)=>e.dispose&&e.dispose(...s))})):pe("",!0),e.data?(X(),ie("p",X$,ye(e.data.message),1)):(X(),ie("p",Z$,ye(e.error),1))]),(g=e.data)!=null&&g.detail?(X(),ie("article",Q$,[N("div",q$,[oe(h,{data:e.data.detail},null,8,["data"])])])):pe("",!0)],64)}const lt=Ae(K$,[["render",J$]]),e_=we({name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=Fe(!1),n=Fe(!1),r=b$();return{isDeleted:t,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await r.perform(e.tag.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,getQuery:s=>`tag:"${s}"`}}}),t_={key:0,class:"control"};function n_(e,t,n,r,f,u){const h=ne("router-link");return e.isDeleted?pe("",!0):(X(),ie("div",t_,[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))},[oe(h,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:e.getQuery(e.tag.name)}}},{default:Ve(()=>[Ke(ye(e.tag.name),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled&&e.deletable?(X(),ie("a",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteTag&&e.deleteTag(...g))})):pe("",!0)],32)]))}const r_=Ae(e_,[["render",n_]]),i_=we({name:"TagsItem",components:{TagComponent:r_},props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(){}}),o_={class:"field is-grouped is-grouped-multiline"};function s_(e,t,n,r,f,u){const h=ne("TagComponent");return X(),ie("div",o_,[(X(!0),ie(xe,null,_t(e.tags,g=>(X(),be(h,{tag:g,key:g.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))])}const xi=Ae(i_,[["render",s_]]);var qd={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=1e3,r=6e4,f=36e5,u="millisecond",h="second",g="minute",s="hour",p="day",o="week",i="month",a="quarter",c="year",l="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 x=["th","st","nd","rd"],T=w%100;return"["+w+(x[(T-20)%10]||x[T]||x[0])+"]"}},k=function(w,x,T){var O=String(w);return!O||O.length>=x?w:""+Array(x+1-O.length).join(T)+w},C={s:k,z:function(w){var x=-w.utcOffset(),T=Math.abs(x),O=Math.floor(T/60),I=T%60;return(x<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(x,T){if(x.date()<T.date())return-w(T,x);var O=12*(T.year()-x.year())+(T.month()-x.month()),I=x.clone().add(O,i),F=T-I<0,P=x.clone().add(O+(F?-1:1),i);return+(-(O+(T-I)/(F?I-P:P-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:i,y:c,w:o,d:p,D:l,h:s,m:g,s:h,ms:u,Q:a}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var R="$isDayjsObject",L=function(w){return w instanceof A||!(!w||!w[R])},E=function w(x,T,O){var I;if(!x)return S;if(typeof x=="string"){var F=x.toLowerCase();b[F]&&(I=F),T&&(b[F]=T,I=F);var P=x.split("-");if(!I&&P.length>1)return w(P[0])}else{var W=x.name;b[W]=x,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,x){if(L(w))return w.clone();var T=typeof x=="object"?x:{};return T.date=w,T.args=arguments,new A(T)},$=C;$.l=E,$.i=L,$.w=function(w,x){return M(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var A=function(){function w(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var x=w.prototype;return x.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if($.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(m);if(P){var W=P[2]-1||0,j=(P[7]||"0").substring(0,3);return F?new Date(Date.UTC(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)):new Date(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)}}return new Date(I)}(T),this.init()},x.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()},x.$utils=function(){return $},x.isValid=function(){return this.$d.toString()!==d},x.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},x.isAfter=function(T,O){return M(T)<this.startOf(O)},x.isBefore=function(T,O){return this.endOf(O)<M(T)},x.$g=function(T,O,I){return $.u(T)?this[O]:this.set(I,T)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(T,O){var I=this,F=!!$.u(O)||O,P=$.p(T),W=function(Y,z){var ee=$.w(I.$u?Date.UTC(I.$y,z,Y):new Date(I.$y,z,Y),I);return F?ee:ee.endOf(p)},j=function(Y,z){return $.w(I.toDate()[Y].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(z)),I)},H=this.$W,V=this.$M,G=this.$D,Q="set"+(this.$u?"UTC":"");switch(P){case c:return F?W(1,0):W(31,11);case i:return F?W(1,V):W(0,V+1);case o:var U=this.$locale().weekStart||0,Z=(H<U?H+7:H)-U;return W(F?G-Z:G+(6-Z),V);case p:case l:return j(Q+"Hours",0);case s:return j(Q+"Minutes",1);case g:return j(Q+"Seconds",2);case h:return j(Q+"Milliseconds",3);default:return this.clone()}},x.endOf=function(T){return this.startOf(T,!1)},x.$set=function(T,O){var I,F=$.p(T),P="set"+(this.$u?"UTC":""),W=(I={},I[p]=P+"Date",I[l]=P+"Date",I[i]=P+"Month",I[c]=P+"FullYear",I[s]=P+"Hours",I[g]=P+"Minutes",I[h]=P+"Seconds",I[u]=P+"Milliseconds",I)[F],j=F===p?this.$D+(O-this.$W):O;if(F===i||F===c){var H=this.clone().set(l,1);H.$d[W](j),H.init(),this.$d=H.set(l,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},x.set=function(T,O){return this.clone().$set(T,O)},x.get=function(T){return this[$.p(T)]()},x.add=function(T,O){var I,F=this;T=Number(T);var P=$.p(O),W=function(V){var G=M(F);return $.w(G.date(G.date()+Math.round(V*T)),F)};if(P===i)return this.set(i,this.$M+T);if(P===c)return this.set(c,this.$y+T);if(P===p)return W(1);if(P===o)return W(7);var j=(I={},I[g]=r,I[s]=f,I[h]=n,I)[P]||1,H=this.$d.getTime()+T*j;return $.w(H,this)},x.subtract=function(T,O){return this.add(-1*T,O)},x.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var F=T||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),W=this.$H,j=this.$m,H=this.$M,V=I.weekdays,G=I.months,Q=I.meridiem,U=function(z,ee,ue,D){return z&&(z[ee]||z(O,F))||ue[ee].slice(0,D)},Z=function(z){return $.s(W%12||12,z,"0")},Y=Q||function(z,ee,ue){var D=z<12?"AM":"PM";return ue?D.toLowerCase():D};return F.replace(v,function(z,ee){return ee||function(ue){switch(ue){case"YY":return String(O.$y).slice(-2);case"YYYY":return $.s(O.$y,4,"0");case"M":return H+1;case"MM":return $.s(H+1,2,"0");case"MMM":return U(I.monthsShort,H,G,3);case"MMMM":return U(G,H);case"D":return O.$D;case"DD":return $.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return U(I.weekdaysMin,O.$W,V,2);case"ddd":return U(I.weekdaysShort,O.$W,V,3);case"dddd":return V[O.$W];case"H":return String(W);case"HH":return $.s(W,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Y(W,j,!0);case"A":return Y(W,j,!1);case"m":return String(j);case"mm":return $.s(j,2,"0");case"s":return String(O.$s);case"ss":return $.s(O.$s,2,"0");case"SSS":return $.s(O.$ms,3,"0");case"Z":return P}return null}(z)||P.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(T,O,I){var F,P=this,W=$.p(O),j=M(T),H=(j.utcOffset()-this.utcOffset())*r,V=this-j,G=function(){return $.m(P,j)};switch(W){case c:F=G()/12;break;case i:F=G();break;case a:F=G()/3;break;case o:F=(V-H)/6048e5;break;case p:F=(V-H)/864e5;break;case s:F=V/f;break;case g:F=V/r;break;case h:F=V/n;break;default:F=V}return I?F:$.a(F)},x.daysInMonth=function(){return this.endOf(i).$D},x.$locale=function(){return b[this.$L]},x.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=E(T,O,!0);return F&&(I.$L=F),I},x.clone=function(){return $.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w}(),_=A.prototype;return M.prototype=_,[["$ms",u],["$s",h],["$m",g],["$H",s],["$W",p],["$M",i],["$y",c],["$D",l]].forEach(function(w){_[w[1]]=function(x){return this.$g(x,w[0],w[1])}}),M.extend=function(w,x){return w.$i||(w(x,A,M),w.$i=!0),M},M.locale=E,M.isDayjs=L,M.unix=function(w){return M(1e3*w)},M.en=b[S],M.Ls=b,M.p={},M})})(qd);var a_=qd.exports;const Mr=tr(a_);var Jd={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return function(n,r,f){n=n||{};var u=r.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,i,a){return u.fromToBase(p,o,i,a)}f.en.relativeTime=h,u.fromToBase=function(p,o,i,a,c){for(var l,d,m,v=i.$locale().relativeTime||h,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&&(l=a?f(p).diff(i,S.d,!0):i.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(l));if(m=l>0,b<=S.r||!S.r){b<=1&&C>0&&(S=y[C-1]);var R=v[S.l];c&&(b=c(""+b)),d=typeof R=="string"?R.replace("%d",b):R(b,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(p,o){return g(p,o,this,!0)},u.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?f.utc():f()};u.toNow=function(p){return this.to(s(this),p)},u.fromNow=function(p){return this.from(s(this),p)}}})})(Jd);var l_=Jd.exports;const c_=tr(l_);var ep={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(f,u,h){var g,s=function(a,c,l){l===void 0&&(l={});var d=new Date(a),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",C=v+"|"+k,S=r[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}),r[C]=S),S}(c,l);return m.formatToParts(d)},p=function(a,c){for(var l=s(a,c),d=[],m=0;m<l.length;m+=1){var v=l[m],y=v.type,k=v.value,C=n[y];C>=0&&(d[C]=parseInt(k,10))}var S=d[3],b=S===24?0:S,R=d[0]+"-"+d[1]+"-"+d[2]+" "+b+":"+d[4]+":"+d[5]+":000",L=+a;return(h.utc(R).valueOf()-(L-=L%1e3))/6e4},o=u.prototype;o.tz=function(a,c){a===void 0&&(a=g);var l=this.utcOffset(),d=this.toDate(),m=d.toLocaleString("en-US",{timeZone:a}),v=Math.round((d-new Date(m))/1e3/60),y=h(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(d.getTimezoneOffset()/15)-v,!0);if(c){var k=y.utcOffset();y=y.add(l-k,"minute")}return y.$x.$timezone=a,y},o.offsetName=function(a){var c=this.$x.$timezone||h.tz.guess(),l=s(this.valueOf(),c,{timeZoneName:a}).find(function(d){return d.type.toLowerCase()==="timezonename"});return l&&l.value};var i=o.startOf;o.startOf=function(a,c){if(!this.$x||!this.$x.$timezone)return i.call(this,a,c);var l=h(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return i.call(l,a,c).tz(this.$x.$timezone,!0)},h.tz=function(a,c,l){var d=l&&c,m=l||c||g,v=p(+h(),m);if(typeof a!="string")return h(a).tz(m);var y=function(b,R,L){var E=b-60*R*1e3,M=p(E,L);if(R===M)return[E,R];var $=p(E-=60*(M-R)*1e3,L);return M===$?[E,M]:[b-60*Math.min(M,$)*1e3,Math.max(M,$)]}(h.utc(a,d).valueOf(),v,m),k=y[0],C=y[1],S=h(k).utcOffset(C);return S.$x.$timezone=m,S},h.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},h.tz.setDefault=function(a){g=a}}})})(ep);var u_=ep.exports;const h_=tr(u_);var tp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,f=/([+-]|\d\d)/g;return function(u,h,g){var s=h.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new h(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 p=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.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 i=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?i.call(this):this.$offset;if(typeof d=="string"&&(d=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var R=(""+b[0]).match(f)||["-",0,0],L=R[0],E=60*+R[1]+ +R[2];return E===0?0:L==="+"?E:-E}(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 c=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return l.call(this,d,m,v);var y=this.local(),k=g(d).local();return l.call(y,k,m,v)}}})})(tp);var f_=tp.exports;const d_=tr(f_),p_=[{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 g_(e){return p_.find(n=>n.code===e)}Mr.extend(c_);Mr.extend(h_);Mr.extend(d_);function np(e){return Mr(e).local().format("YYYY-MM-DD HH:mm:ss")}function rp(e){return Mr(e).local().fromNow()}function ip(e){const t=g_(e);if(t)return{lat:t.lat,long:t.long}}function m_(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return{lat:parseFloat(n),long:parseFloat(r)}}}return ip(e.countryCode)}const v_=we({name:"AlertItem",components:{Artifacts:Yd,Tags:xi,ActionButtons:Kd,ErrorMessage:lt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Fe(!1),r=Fe();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:np,getHumanizedRelativeTime:rp,onSetError:s=>{r.value=s},onDisposeError:()=>{r.value=void 0},error:r,isDeleted:n,onArtifactsDeleted:()=>{n.value=!0}}}}),y_={key:0,class:"box"},b_={class:"table is-fullwidth is-completely-borderless"},w_=N("th",null,"Rule",-1),$_=N("th",null,"Artifacts",-1),__={key:0},S_=N("th",null,"Tags",-1),C_={class:"help"};function A_(e,t,n,r,f,u){const h=ne("ErrorMessage"),g=ne("ActionButtons"),s=ne("router-link"),p=ne("Artifacts"),o=ne("Tags");return e.isDeleted?pe("",!0):(X(),ie("div",y_,[e.error?(X(),be(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),N("p",null,[oe(g,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),oe(s,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Ve(()=>[Ke(ye(e.alert.id),1)]),_:1},8,["to"]),N("table",b_,[N("tr",null,[w_,N("td",null,[oe(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ve(()=>[Ke(ye(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[$_,N("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(X(),ie("tr",__,[S_,N("td",null,[oe(o,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):pe("",!0)]),N("p",C_,"Created at: "+ye(e.alert.createdAt),1)]))}const k_=Ae(v_,[["render",A_]]),E_=we({name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=o=>o===e.currentPage+1||o===e.currentPage-1,r=ke(()=>Math.ceil(e.total/e.pageSize)),f=ke(()=>r.value===1),u=ke(()=>e.currentPage>1),h=ke(()=>e.currentPage-1===1),g=ke(()=>e.currentPage<r.value),s=ke(()=>e.currentPage+1===r.value);return{updatePage:o=>{t.emit("update-page",o)},isNextPage:n,hasNextPage:g,hasOnlyOnePage:f,hasPreviousPage:u,isNextPageLast:s,isPreviousPageFirst:h,totalPageCount:r}}}),R_={key:0,class:"message is-warning"},x_=N("div",{class:"message-body"},"There is no result to show.",-1),T_=[x_],L_={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},M_={key:0,class:"pagination-list"},O_={key:1,class:"pagination-list"},I_={key:0},F_={key:1},N_=N("span",{class:"pagination-ellipsis"},"…",-1),D_=[N_],P_={key:2},B_={key:3},W_={key:4},H_=N("span",{class:"pagination-ellipsis"},"…",-1),U_=[H_],V_={key:5};function z_(e,t,n,r,f,u){return e.total===0?(X(),ie("article",R_,T_)):(X(),ie("nav",L_,[e.hasOnlyOnePage?(X(),ie("ul",M_,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=h=>e.updatePage(1))},"1")])])):(X(),ie("ul",O_,[e.hasPreviousPage&&!e.isPreviousPageFirst?(X(),ie("li",I_,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=h=>e.updatePage(1))}," 1")])):pe("",!0),e.hasPreviousPage&&!e.isPreviousPageFirst&&!e.isNextPage(2)?(X(),ie("li",F_,D_)):pe("",!0),e.hasPreviousPage?(X(),ie("li",P_,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=h=>e.updatePage(e.currentPage-1))},ye(e.currentPage-1),1)])):pe("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=h=>e.updatePage(e.currentPage))},ye(e.currentPage),1)]),e.hasNextPage?(X(),ie("li",B_,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=h=>e.updatePage(e.currentPage+1))},ye(e.currentPage+1),1)])):pe("",!0),e.hasNextPage&&!e.isNextPageLast&&!e.isNextPage(e.totalPageCount-1)?(X(),ie("li",W_,U_)):pe("",!0),e.hasNextPage&&!e.isNextPageLast?(X(),ie("li",V_,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=h=>e.updatePage(e.totalPageCount))},ye(e.totalPageCount),1)])):pe("",!0)]))]))}const Ml=Ae(E_,[["render",z_]]),j_=we({name:"AlertsItem",components:{Alert:k_,Pagination:Ml},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh"],setup(e,t){const n=u=>{t.emit("update-page",u)},r=()=>{t.emit("refresh")},f=ke(()=>e.alerts.results.length>0);return{onUpdatePage:n,onDelete:r,hasAlerts:f}}}),G_={key:0},K_={class:"help"},Y_={key:1},X_=N("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),Z_=[X_];function Q_(e,t,n,r,f,u){const h=ne("Alert"),g=ne("Pagination");return e.hasAlerts?(X(),ie("div",G_,[(X(!0),ie(xe,null,_t(e.alerts.results,s=>(X(),be(h,{alert:s,key:s.id,onDelete:e.onDelete},null,8,["alert","onDelete"]))),128)),oe(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",K_,"("+ye(e.alerts.total)+" results in total, "+ye(e.alerts.results.length)+" shown)",1)])):(X(),ie("div",Y_,Z_))}const op=Ae(j_,[["render",Q_]]),q_=we({name:"LoadingItem"}),J_={class:"has-text-centered"},eS={class:"fa-3x"};function tS(e,t,n,r,f,u){const h=ne("font-awesome-icon");return X(),ie("div",J_,[N("div",eS,[oe(h,{icon:"spinner",spin:""})])])}const ln=Ae(q_,[["render",tS]]),nS=we({name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},components:{Alerts:op,Loading:ln,ErrorMessage:lt},setup(e){const t=Fe(1),n=ke(()=>e.excludeAlertId?`rule.id:"${e.ruleId}" AND NOT id:${e.excludeAlertId}`:`rule.id:"${e.ruleId}"`),r=Ei(),f=async()=>{const h={q:n.value,page:t.value};return await r.perform(h)},u=h=>{t.value=h};return qe(async()=>{await f()}),Xe([e,t],async()=>{await f()}),{page:t,getAlertsTask:r,onUpdatePage:u}}});function rS(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("Alerts");return X(),ie(xe,null,[e.getAlertsTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getAlertsTask.isError?(X(),be(g,{key:1,error:(p=e.getAlertsTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getAlertsTask.last)!=null&&o.value?(X(),be(s,{key:2,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onUpdatePage:e.onUpdatePage},null,8,["page","alerts","onUpdatePage"])):pe("",!0)],64)}const sp=Ae(nS,[["render",rS]]),iS=we({name:"AlertDetail",components:{Artifacts:Yd,Tags:xi,Alerts:sp,ActionButtons:Kd,ErrorMessage:lt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=Fe(),r=g=>{n.value=g},f=()=>{n.value=void 0},u=()=>{t.emit("delete")};return{onDelete:u,getLocalDatetime:np,getHumanizedRelativeTime:rp,onSetError:r,onDisposeError:f,error:n,onArtifactsDeleted:u}}}),oS={class:"block"},sS={class:"is-size-2"},aS={class:"is-clearfix"},lS={class:"table is-fullwidth is-completely-borderless"},cS=N("th",null,"Rule",-1),uS=N("th",null,"Artifacts",-1),hS={key:0},fS=N("th",null,"Tags",-1),dS={class:"help"},pS=N("hr",null,null,-1),gS={class:"block"},mS=N("h2",{class:"is-size-2 block"},"Related Alerts",-1);function vS(e,t,n,r,f,u){const h=ne("ErrorMessage"),g=ne("ActionButtons"),s=ne("router-link"),p=ne("Artifacts"),o=ne("Tags"),i=ne("Alerts");return X(),ie(xe,null,[e.error?(X(),be(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),N("div",oS,[N("h2",sS,ye(e.alert.id),1),N("p",aS,[oe(g,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),N("table",lS,[N("tr",null,[cS,N("td",null,[oe(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ve(()=>[Ke(ye(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[uS,N("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(X(),ie("tr",hS,[fS,N("td",null,[oe(o,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):pe("",!0)]),N("p",dS,"Created at: "+ye(e.alert.createdAt),1)]),pS,N("div",gS,[mS,oe(i,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}const yS=Ae(iS,[["render",vS]]),bS=we({name:"AlertDetailWrapper",components:{AlertComponent:yS,Loading:ln,ErrorMessage:lt},props:{id:{type:Number,required:!0}},setup(e){const t=Tr(),n=R$(),r=()=>{t.push("/")};return qe(async()=>{await n.perform(e.id)}),{getAlertTask:n,onDelete:r}}});function wS(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("AlertComponent");return X(),ie(xe,null,[e.getAlertTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getAlertTask.isError?(X(),be(g,{key:1,error:(p=e.getAlertTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getAlertTask.last)!=null&&o.value?(X(),be(s,{key:2,alert:e.getAlertTask.last.value,onDelete:e.onDelete},null,8,["alert","onDelete"])):pe("",!0)],64)}const $S=Ae(bS,[["render",wS]]),_S=we({name:"AlertView",components:{Alert:$S},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Alert:${e.id} - Mihari`)};qe(()=>{t()}),Xe(()=>e.id,()=>{t()})}});function SS(e,t,n,r,f,u){const h=ne("Alert",!0);return X(),be(h,{id:parseInt(e.id)},null,8,["id"])}const CS=Ae(_S,[["render",SS]]),Ps=new WeakMap;function $r(e,t,n={}){const{mode:r="replace",route:f=_1(),router:u=Tr(),transform:h=i=>i}=n;Ps.has(u)||Ps.set(u,new Map);const g=Ps.get(u);let s=f.query[e];ud(()=>{s=void 0});let p;const o=Wo((i,a)=>(p=a,{get(){return i(),h(s!==void 0?s:Co(t))},set(c){s!==c&&(s=c,g.set(e,c),a(),wi(()=>{if(g.size===0)return;const l=Object.fromEntries(g.entries());g.clear();const{params:d,query:m,hash:v}=f;u[Co(r)]({params:d,query:{...m,...l},hash:v})}))}}));return Xe(()=>f.query[e],i=>{s=i,p()},{flush:"sync"}),o}const AS=we({name:"AlertsWrapper",components:{Alerts:op,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Fe(!1),r=Ei(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return qe(async()=>{await f()}),Xe(e,async()=>{await f()}),Xe(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getAlertsTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),kS={class:"block"},ES={class:"field has-addons"},RS={class:"control is-expanded"},xS={class:"control"},TS={class:"icon is-small"},LS=N("span",null,"Search",-1),MS={class:"control"},OS={class:"icon is-small"},IS=N("span",null,"Help",-1),FS={key:0,class:"content"},NS=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),DS={key:0,class:"block"};function PS(e,t,n,r,f,u){var i,a;const h=ne("font-awesome-icon"),g=ne("router-link"),s=ne("Loading"),p=ne("ErrorMessage"),o=ne("Alerts");return X(),ie(xe,null,[N("div",kS,[N("div",ES,[N("p",RS,[Ko(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[Xn,e.q]])]),N("p",xS,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[N("span",TS,[oe(h,{icon:"search"})]),LS])]),N("p",MS,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[N("span",OS,[oe(h,{icon:"question"})]),IS])])]),e.showHelp?(X(),ie("div",FS,[NS,N("ul",null,[N("li",null,[oe(g,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Ve(()=>[Ke("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),N("li",null,[oe(g,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Ve(()=>[Ke("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):pe("",!0)]),e.getAlertsTask.performCount>0?(X(),ie("div",DS,[e.getAlertsTask.isRunning?(X(),be(s,{key:0})):pe("",!0),e.getAlertsTask.isError?(X(),be(p,{key:1,error:(i=e.getAlertsTask.last)==null?void 0:i.error},null,8,["error"])):pe("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(X(),be(o,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["alerts","page","onUpdatePage","onRefresh"])):pe("",!0)])):pe("",!0)],64)}const BS=Ae(AS,[["render",PS]]),WS=we({name:"OverviewCards",setup(){const e=Ei(),t=jd(),n=Ll();return qe(()=>{e.perform({q:"",page:1,limit:0}),t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0})}),{getAlertsTask:e,getArtifactsTask:n,getRulesTask:t}}}),HS={class:"columns"},US={class:"column is-one-third"},VS={class:"card tile is-child"},zS={class:"card-content"},jS={class:"level is-mobile"},GS={class:"level-item"},KS={class:"is-widget-label"},YS=N("h3",{class:"subtitle is-spaced"},"Rules",-1),XS={class:"title"},ZS={class:"level-item has-widget-icon"},QS={class:"is-widget-icon"},qS={class:"icon has-text-info is-large"},JS={class:"column is-one-third"},eC={class:"card tile is-child"},tC={class:"card-content"},nC={class:"level is-mobile"},rC={class:"level-item"},iC={class:"is-widget-label"},oC=N("h3",{class:"subtitle is-spaced"},"Alerts",-1),sC={class:"title"},aC={class:"level-item has-widget-icon"},lC={class:"is-widget-icon"},cC={class:"icon has-text-info is-large"},uC={class:"column is-one-third"},hC={class:"card tile is-child"},fC={class:"card-content"},dC={class:"level is-mobile"},pC={class:"level-item"},gC={class:"is-widget-label"},mC=N("h3",{class:"subtitle is-spaced"},"Artifacts",-1),vC={class:"title"},yC={class:"level-item has-widget-icon"},bC={class:"is-widget-icon"},wC={class:"icon has-text-info is-large"};function $C(e,t,n,r,f,u){var g,s,p,o,i,a;const h=ne("font-awesome-icon");return X(),ie("div",HS,[N("div",US,[N("div",VS,[N("div",zS,[N("div",jS,[N("div",GS,[N("div",KS,[YS,N("h1",XS,ye(((s=(g=e.getRulesTask.last)==null?void 0:g.value)==null?void 0:s.total)??"N/A"),1)])]),N("div",ZS,[N("div",QS,[N("span",qS,[oe(h,{icon:"file",size:"2x"})])])])])])])]),N("div",JS,[N("div",eC,[N("div",tC,[N("div",nC,[N("div",rC,[N("div",iC,[oC,N("h1",sC,ye(((o=(p=e.getAlertsTask.last)==null?void 0:p.value)==null?void 0:o.total)??"N/A"),1)])]),N("div",aC,[N("div",lC,[N("span",cC,[oe(h,{icon:"bell",size:"2x"})])])])])])])]),N("div",uC,[N("div",hC,[N("div",fC,[N("div",dC,[N("div",pC,[N("div",gC,[mC,N("h1",vC,ye(((a=(i=e.getArtifactsTask.last)==null?void 0:i.value)==null?void 0:a.total)??"N/A"),1)])]),N("div",yC,[N("div",bC,[N("span",wC,[oe(h,{icon:"ticket",size:"2x"})])])])])])])])])}const _C=Ae(WS,[["render",$C]]),SC=we({name:"AlertsView",components:{Alerts:BS,OverviewCards:_C},setup(){an("Alerts - Mihari")}}),CC=N("hr",null,null,-1);function AC(e,t,n,r,f,u){const h=ne("OverviewCards"),g=ne("Alerts",!0);return X(),ie(xe,null,[oe(h),CC,oe(g)],64)}const kC=Ae(SC,[["render",AC]]),EC=we({name:"ArtifactActionButtons",props:{artifact:{type:Object,required:!0}},components:{VueJsonPretty:Qd},emits:["delete","set-error","set-message"],setup(e,t){const n=ke(()=>`/api/artifacts/${e.artifact.id}`),r=Fe(!1),f=zd(),u=$$();return{deleteArtifact:async()=>{if(window.confirm(`Are you sure you want to delete ${e.artifact.data}?`))try{await f.perform(e.artifact.id),t.emit("delete")}catch(o){ze.isAxiosError(o)&&t.emit("set-error",o)}},enrichArtifact:async()=>{try{const p=await u.perform(e.artifact.id);t.emit("set-message",p)}catch(p){ze.isAxiosError(p)&&t.emit("set-error",p)}},enrichArtifactTask:u,toggleShowMetadata:()=>{r.value=!r.value},href:n,showMetadata:r,truncate:Ri}}}),Ti=e=>(jo("data-v-13186183"),e=e(),Go(),e),RC={class:"buttons is-pulled-right"},xC=["href"],TC=Ti(()=>N("span",null,"JSON",-1)),LC={class:"icon is-small"},MC=Ti(()=>N("span",null,"Metadata",-1)),OC={class:"icon is-small"},IC=Ti(()=>N("span",null,"Enrich",-1)),FC={class:"icon is-small"},NC=Ti(()=>N("span",null,"Delete",-1)),DC={class:"icon is-small"},PC={key:0},BC={class:"modal is-active"},WC={class:"modal-card"},HC={class:"modal-card-head"},UC=Ti(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),VC={class:"modal-card-body"};function zC(e,t,n,r,f,u){const h=ne("font-awesome-icon"),g=ne("VueJsonPretty");return X(),ie(xe,null,[N("span",RC,[N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[TC,N("span",LC,[oe(h,{icon:"barcode"})])],8,xC),e.artifact.metadata?(X(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))},[MC,N("span",OC,[oe(h,{icon:"info-circle"})])])):pe("",!0),N("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...s)=>e.enrichArtifact&&e.enrichArtifact(...s))},[IC,N("span",FC,[e.enrichArtifactTask.isRunning?(X(),be(h,{key:0,icon:"spinner",spin:""})):(X(),be(h,{key:1,icon:"lightbulb"}))])]),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...s)=>e.deleteArtifact&&e.deleteArtifact(...s))},[NC,N("span",DC,[oe(h,{icon:"times"})])])]),e.artifact.metadata&&e.showMetadata?(X(),ie("div",PC,[N("div",BC,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))}),N("div",WC,[N("header",HC,[UC,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...s)=>e.toggleShowMetadata&&e.toggleShowMetadata(...s))})]),N("section",VC,[oe(g,{data:e.artifact.metadata},null,8,["data"])])])])])):pe("",!0)],64)}const ap=Ae(EC,[["render",zC],["__scopeId","data-v-13186183"]]),jC=we({name:"AS",props:{autonomousSystem:{type:Object,required:!0}},setup(){return{getQuery:t=>`asn:${t}`}}}),GC={class:"tags are-medium"};function KC(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",GC,[oe(h,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery(e.autonomousSystem.number)}}},{default:Ve(()=>[Ke(ye(e.autonomousSystem.number),1)]),_:1},8,["to"])])}const YC=Ae(jC,[["render",KC]]),XC=we({name:"CPEsItem",props:{cpes:{type:Array,required:!0}},setup(){return{getQuery:t=>`cpe:"${t}"`}}}),ZC={class:"tags are-medium"};function QC(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",ZC,[(X(!0),ie(xe,null,_t(e.cpes,g=>(X(),be(h,{class:"tag",key:g.name,to:{name:"Artifacts",query:{q:e.getQuery(g.name)}}},{default:Ve(()=>[Ke(ye(g.name),1)]),_:2},1032,["to"]))),128))])}const qC=Ae(XC,[["render",QC]]),JC=we({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Ri,getQuery:({resource:t,value:n})=>`dns_record.value:"${n}" AND dns_record.resource:"${t}"`}}}),eA={class:"field is-grouped is-grouped-multiline"},tA={class:"tags has-addons are-medium"},nA={class:"tag is-dark"};function rA(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",eA,[(X(!0),ie(xe,null,_t(e.dnsRecords,(g,s)=>(X(),ie("div",{class:"control",key:s},[N("div",tA,[N("span",nA,ye(g.resource),1),oe(h,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery({resource:g.resource,value:g.value})}}},{default:Ve(()=>[Ke(ye(e.truncate(g.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const iA=Ae(JC,[["render",rA]]),oA=we({name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(){return{getQuery:t=>`port:${t}`}}}),sA={class:"tags are-medium"};function aA(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",sA,[(X(!0),ie(xe,null,_t(e.ports,g=>(X(),be(h,{class:"tag",key:g.number,to:{name:"Artifacts",query:{q:e.getQuery(g.number)}}},{default:Ve(()=>[Ke(ye(g.number),1)]),_:2},1032,["to"]))),128))])}const lA=Ae(oA,[["render",aA]]),cA=we({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(){return{getQuery:t=>`reverse_dns_name:"${t}"`}}}),uA={class:"tags are-medium"};function hA(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",uA,[(X(!0),ie(xe,null,_t(e.reverseDnsNames,g=>(X(),be(h,{class:"tag",key:g.name,to:{name:"Artifacts",query:{q:e.getQuery(g.name)}}},{default:Ve(()=>[Ke(ye(g.name),1)]),_:2},1032,["to"]))),128))])}const fA=Ae(cA,[["render",hA]]),dA=we({name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(){return{getQuery:t=>`vuln:"${t}"`}}}),pA={class:"tags are-medium"};function gA(e,t,n,r,f,u){const h=ne("router-link");return X(),ie("div",pA,[(X(!0),ie(xe,null,_t(e.vulnerabilities,g=>(X(),be(h,{class:"tag",key:g.name,to:{name:"Artifacts",query:{q:e.getQuery(g.name)}}},{default:Ve(()=>[Ke(ye(g.name),1)]),_:2},1032,["to"]))),128))])}const mA=Ae(dA,[["render",gA]]),vA=we({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),yA={class:"field is-grouped is-grouped-multiline"},bA={class:"control"},wA={class:"tags has-addons are-medium"},$A=N("span",{class:"tag is-dark"},"Registrar",-1),_A={class:"tag is-light"},SA={class:"control"},CA={class:"tags has-addons are-medium"},AA=N("span",{class:"tag is-dark"},"Created on",-1),kA={class:"tag is-light"},EA={class:"control"},RA={class:"tags has-addons are-medium"},xA=N("span",{class:"tag is-dark"},"Updated on",-1),TA={class:"tag is-light"},LA={class:"control"},MA={class:"tags has-addons are-medium"},OA=N("span",{class:"tag is-dark"},"Expires on",-1),IA={class:"tag is-light"};function FA(e,t,n,r,f,u){var h;return X(),ie("div",yA,[N("div",bA,[N("div",wA,[$A,N("span",_A,ye(((h=e.whoisRecord.registrar)==null?void 0:h.name)||"N/A"),1)])]),N("div",SA,[N("div",CA,[AA,N("span",kA,ye(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",EA,[N("div",RA,[xA,N("span",TA,ye(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",LA,[N("div",MA,[OA,N("span",IA,ye(e.whoisRecord.expiresOn||"N/A"),1)])])])}const NA=Ae(vA,[["render",FA]]),DA=we({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),PA=["href"],BA=["src"];function WA(e,t,n,r,f,u){return X(),ie("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,BA),N("span",null,ye(e.link.name),1)],8,PA)}const HA=Ae(DA,[["render",WA],["__scopeId","data-v-66270500"]]);class Rt{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 UA extends Rt{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 VA extends Rt{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 zA extends Rt{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 jA extends Rt{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 GA extends Rt{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 KA extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class YA extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class XA extends Rt{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 lp extends Rt{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 ZA extends lp{constructor(){super();Te(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class cp extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class QA extends cp{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class qA extends cp{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class JA extends Rt{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 Ol extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class e2 extends Ol{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class t2 extends Ol{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class n2 extends Ol{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var up={exports:{}};const r2={},i2=Object.freeze(Object.defineProperty({__proto__:null,default:r2},Symbol.toStringTag,{value:"Module"})),ku=Xd(i2);/**
802
802
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
803
803
  *
804
804
  * @version 0.10.1
805
805
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
806
806
  * @copyright Chen, Yi-Cyuan 2014-2023
807
807
  * @license MIT
808
- */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var f=!n&&typeof self=="object",u=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?r=xn:f&&(r=self);var h=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],i=[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"],c=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var l=function(b,R){return function(L){return new k(R,!0).update(L)[b]()}},d=function(b){var R=l("hex",b);u&&(R=m(R,b)),R.create=function(){return new k(b)},R.update=function(M){return R.create().update(M)};for(var L=0;L<a.length;++L){var E=a[L];R[E]=l(E,b)}return R},m=function(b,R){var L=ku,E=ku.Buffer,M=R?"sha224":"sha256",$;E.from&&!r.JS_SHA256_NO_BUFFER_FROM?$=E.from:$=function(_){return new E(_)};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===E?L.createHash(M).update($(_)).digest("hex"):b(_)};return A},v=function(b,R){return function(L,E){return new C(L,R,!0).update(E)[b]()}},y=function(b){var R=v("hex",b);R.create=function(M){return new C(M,b)},R.update=function(M,$){return R.create(M).update($)};for(var L=0;L<a.length;++L){var E=a[L];R[E]=v(E,b)}return R};function k(b,R){R?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}k.prototype.update=function(b){if(!this.finalized){var R,L=typeof b;if(L!=="string"){if(L==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);R=!0}for(var E,M=0,$,A=b.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($=this.start;M<A&&$<64;++M)_[$>>2]|=b[M]<<o[$++&3];else for($=this.start;M<A&&$<64;++M)E=b.charCodeAt(M),E<128?_[$>>2]|=E<<o[$++&3]:E<2048?(_[$>>2]|=(192|E>>6)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]):E<55296||E>=57344?(_[$>>2]|=(224|E>>12)<<o[$++&3],_[$>>2]|=(128|E>>6&63)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]):(E=65536+((E&1023)<<10|b.charCodeAt(++M)&1023),_[$>>2]|=(240|E>>18)<<o[$++&3],_[$>>2]|=(128|E>>12&63)<<o[$++&3],_[$>>2]|=(128|E>>6&63)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]);this.lastByteIndex=$,this.bytes+=$-this.start,$>=64?(this.block=_[16],this.start=$-64,this.hash(),this.hashed=!0):this.start=$}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 b=this.blocks,R=this.lastByteIndex;b[16]=this.block,b[R>>2]|=p[R&3],this.block=b[16],R>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=this.blocks,x,T,O,I,F,P,W,j,H,V,G;for(x=16;x<64;++x)F=w[x-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[x-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[x]=w[x-16]+T+w[x-7]+O<<0;for(G=R&L,x=0;x<64;x+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,_=F-150054599<<0,E=F+24177077<<0):(j=704751109,F=w[0]-210244248,_=F-1521486534<<0,E=F+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=b&R,I=j^b&L^G,W=M&$^~M&A,F=_+O+W+i[x]+w[x],P=T+I,_=E+F<<0,E=F+P<<0),T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=E&b,I=H^E&R^j,W=_&M^~_&$,F=A+O+W+i[x+1]+w[x+1],P=T+I,A=L+F<<0,L=F+P<<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),V=L&E,I=V^L&b^H,W=A&_^~A&M,F=$+O+W+i[x+2]+w[x+2],P=T+I,$=R+F<<0,R=F+P<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),G=R&L,I=G^R&E^V,W=$&A^~$&_,F=M+O+W+i[x+3]+w[x+3],P=T+I,M=b+F<<0,b=F+P<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+R<<0,this.h2=this.h2+L<<0,this.h3=this.h3+E<<0,this.h4=this.h4+M<<0,this.h5=this.h5+$<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},k.prototype.hex=function(){this.finalize();var b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=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[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[E>>28&15]+s[E>>24&15]+s[E>>20&15]+s[E>>16&15]+s[E>>12&15]+s[E>>8&15]+s[E>>4&15]+s[E&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[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&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 b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=[b>>24&255,b>>16&255,b>>8&255,b&255,R>>24&255,R>>16&255,R>>8&255,R&255,L>>24&255,L>>16&255,L>>8&255,L&255,E>>24&255,E>>16&255,E>>8&255,E&255,M>>24&255,M>>16&255,M>>8&255,M&255,$>>24&255,$>>16&255,$>>8&255,$&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 b=new ArrayBuffer(this.is224?28:32),R=new DataView(b);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),b};function C(b,R,L){var E,M=typeof b;if(M==="string"){var $=[],A=b.length,_=0,w;for(E=0;E<A;++E)w=b.charCodeAt(E),w<128?$[_++]=w:w<2048?($[_++]=192|w>>6,$[_++]=128|w&63):w<55296||w>=57344?($[_++]=224|w>>12,$[_++]=128|w>>6&63,$[_++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++E)&1023),$[_++]=240|w>>18,$[_++]=128|w>>12&63,$[_++]=128|w>>6&63,$[_++]=128|w&63);b=$}else if(M==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new k(R,!0).update(b).array());var x=[],T=[];for(E=0;E<64;++E){var O=b[E]||0;x[E]=92^O,T[E]=54^O}k.call(this,R,L),this.update(T),this.oKeyPad=x,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 b=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),k.prototype.finalize.call(this)}};var S=d();S.sha256=S,S.sha224=d(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),h?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()})(up);var l2=up.exports,c2=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},Il={},u2=Object.prototype.hasOwnProperty,h2;function Eu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Ru(e){try{return encodeURIComponent(e)}catch{return null}}function f2(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var f=Eu(r[1]),u=Eu(r[2]);f===null||u===null||f in n||(n[f]=u)}return n}function d2(e,t){t=t||"";var n=[],r,f;typeof t!="string"&&(t="?");for(f in e)if(u2.call(e,f)){if(r=e[f],!r&&(r===null||r===h2||isNaN(r))&&(r=""),f=Ru(f),r=Ru(r),f===null||r===null)continue;n.push(f+"="+r)}return n.length?t+n.join("&"):""}Il.stringify=d2;Il.parse=f2;var hp=c2,us=Il,p2=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,fp=/[\n\r\t]/g,g2=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,dp=/:\d+$/,m2=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,v2=/^[a-zA-Z]:/;function Fl(e){return(e||"").toString().replace(p2,"")}var Ta=[["#","hash"],["?","query"],function(t,n){return Ut(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]],xu={hash:1,query:1};function pp(e){var t;typeof window<"u"?t=window:typeof xn<"u"?t=xn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},f=typeof e,u;if(e.protocol==="blob:")r=new zt(unescape(e.pathname),{});else if(f==="string"){r=new zt(e,{});for(u in xu)delete r[u]}else if(f==="object"){for(u in e)u in xu||(r[u]=e[u]);r.slashes===void 0&&(r.slashes=g2.test(e.href))}return r}function Ut(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function gp(e,t){e=Fl(e),e=e.replace(fp,""),t=t||{};var n=m2.exec(e),r=n[1]?n[1].toLowerCase():"",f=!!n[2],u=!!n[3],h=0,g;return f?u?(g=n[2]+n[3]+n[4],h=n[2].length+n[3].length):(g=n[2]+n[4],h=n[2].length):u?(g=n[3]+n[4],h=n[3].length):g=n[4],r==="file:"?h>=2&&(g=g.slice(2)):Ut(r)?g=n[4]:r?f&&(g=g.slice(2)):h>=2&&Ut(t.protocol)&&(g=n[4]),{protocol:r,slashes:f||Ut(r),slashesCount:h,rest:g}}function y2(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,f=n[r-1],u=!1,h=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),h++):h&&(r===0&&(u=!0),n.splice(r,1),h--);return u&&n.unshift(""),(f==="."||f==="..")&&n.push(""),n.join("/")}function zt(e,t,n){if(e=Fl(e),e=e.replace(fp,""),!(this instanceof zt))return new zt(e,t,n);var r,f,u,h,g,s,p=Ta.slice(),o=typeof t,i=this,a=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=us.parse),t=pp(t),f=gp(e||"",t),r=!f.protocol&&!f.slashes,i.slashes=f.slashes||r&&t.slashes,i.protocol=f.protocol||t.protocol||"",e=f.rest,(f.protocol==="file:"&&(f.slashesCount!==2||v2.test(e))||!f.slashes&&(f.protocol||f.slashesCount<2||!Ut(i.protocol)))&&(p[3]=[/(.*)/,"pathname"]);a<p.length;a++){if(h=p[a],typeof h=="function"){e=h(e,i);continue}u=h[0],s=h[1],u!==u?i[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof h[2]=="number"?(i[s]=e.slice(0,g),e=e.slice(g+h[2])):(i[s]=e.slice(g),e=e.slice(0,g)))):(g=u.exec(e))&&(i[s]=g[1],e=e.slice(0,g.index)),i[s]=i[s]||r&&h[3]&&t[s]||"",h[4]&&(i[s]=i[s].toLowerCase())}n&&(i.query=n(i.query)),r&&t.slashes&&i.pathname.charAt(0)!=="/"&&(i.pathname!==""||t.pathname!=="")&&(i.pathname=y2(i.pathname,t.pathname)),i.pathname.charAt(0)!=="/"&&Ut(i.protocol)&&(i.pathname="/"+i.pathname),hp(i.port,i.protocol)||(i.host=i.hostname,i.port=""),i.username=i.password="",i.auth&&(g=i.auth.indexOf(":"),~g?(i.username=i.auth.slice(0,g),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=i.auth.slice(g+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(i.auth)),i.auth=i.password?i.username+":"+i.password:i.username),i.origin=i.protocol!=="file:"&&Ut(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString()}function b2(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||us.parse)(t)),r[e]=t;break;case"port":r[e]=t,hp(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,dp.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var f=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==f?f+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(r.username=t.slice(0,u),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(u+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var h=0;h<Ta.length;h++){var g=Ta[h];g[4]&&(r[g[1]]=r[g[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&Ut(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function w2(e){(!e||typeof e!="function")&&(e=us.stringify);var t,n=this,r=n.host,f=n.protocol;f&&f.charAt(f.length-1)!==":"&&(f+=":");var u=f+(n.protocol&&n.slashes||Ut(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&Ut(n.protocol)&&!r&&n.pathname!=="/"&&(u+="@"),(r[r.length-1]===":"||dp.test(n.hostname)&&!n.port)&&(r+=":"),u+=r+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}zt.prototype={set:b2,toString:w2};zt.extractProtocol=gp;zt.location=pp;zt.trimLeft=Fl;zt.qs=us;var $2=zt;const _2=tr($2);class hs extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class S2 extends hs{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class C2 extends hs{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class A2 extends hs{constructor(){super(),this.type="url"}href(t){const n=l2.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new _2(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class k2 extends hs{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const E2=[new jA,new GA,new KA,new XA,new YA,new ZA,new qA,new JA,new QA,new lp,new e2,new t2,new n2,new r2,new i2,new o2,new S2,new k2,new C2,new A2],R2=be({name:"LinksItem",components:{LinkComponent:zA},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){return{selectedLinks:ke(()=>E2.filter(n=>n.type===e.type))}}}),x2={class:"tags are-medium"};function T2(e,t,n,r,f,u){const h=ie("LinkComponent");return Z(),re("div",x2,[(Z(!0),re(xe,null,_t(e.selectedLinks,g=>(Z(),Ce(h,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const L2=Ae(R2,[["render",T2]]),M2=be({name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,t){return{dispose:()=>{t.emit("dispose")}}}}),O2={class:"notification is-info is-light"};function I2(e,t,n,r,f,u){return Z(),re("div",O2,[e.disposable?(Z(),re("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...h)=>e.dispose&&e.dispose(...h))})):ge("",!0),N("p",null,ye(e.message.message),1)])}const fs=Ae(M2,[["render",I2]]),F2=be({name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},components:{AS:ZC,DnsRecords:aA,Links:L2,ReverseDnsNames:gA,Tags:bA,ActionButtons:ap,WhoisRecord:BA,CPEs:eA,Ports:hA,ErrorMessage:lt,Message:fs},emits:["refresh","delete"],setup(e,t){const n=Ne(),r=Ne(),f=Ne(),u=Ne(),h=d=>{f.value=d},g=()=>{f.value=void 0},s=()=>{t.emit("delete")},p=d=>{d.queued?u.value=d:t.emit("refresh")},o=()=>{u.value=void 0},i=ke(()=>{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}`}),a=d=>{if(d)return`https://maps.google.co.jp/maps?output=embed&q=${d.lat},${d.long}&z=3`},c=S$(),l=Ei();return Xe(async()=>{if(e.artifact.dataType==="ip"){let d;if(e.artifact.geolocation)d=ip(e.artifact.geolocation.countryCode);else{const m=await c.perform(e.artifact.data);d=v_(m),r.value=m.countryCode}n.value=a(d)}}),{countryCode:r,getAlertsTask:l,googleMapSrc:n,truncate:Ri,urlscanLiveshotSrc:i,onDelete:s,onSetError:h,error:f,onDisposeError:g,message:u,onDisposeMessage:o,onSetMessage:p}}}),mt=e=>(zo("data-v-2e8dd078"),e=e(),jo(),e),N2={class:"block"},D2={class:"is-size-2"},P2={class:"is-clearfix"},B2={class:"columns"},W2={key:0,class:"column is-half"},H2={key:0},U2={class:"is-size-4"},V2={class:"has-text-grey"},z2=["src"],j2={key:1},G2=mt(()=>N("h4",{class:"is-size-4"},"Live screenshot",-1)),K2=mt(()=>N("p",{class:"help"},"Hover to expand",-1)),Y2=["src"],X2={class:"column"},Z2=mt(()=>N("h4",{class:"is-size-4"},"Information",-1)),q2={class:"table is-fullwidth is-completely-borderless"},J2=mt(()=>N("th",null,"Data",-1)),Q2=mt(()=>N("th",null,"Data type",-1)),ek=mt(()=>N("th",null,"Source",-1)),tk=mt(()=>N("th",null,"Query",-1)),nk={key:0},rk=mt(()=>N("th",null,"Tags",-1)),ik={class:"help"},ok={class:"block"},sk={key:0,class:"block"},ak=mt(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),lk={key:1,class:"block"},ck=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),uk={key:2,class:"block"},hk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),fk={key:3,class:"block"},dk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),pk={key:4,class:"block"},gk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),mk={key:5,class:"block"},vk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),yk={class:"block"},bk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Links",-1));function wk(e,t,n,r,f,u){var v;const h=ie("ErrorMessage"),g=ie("Message"),s=ie("ActionButtons"),p=ie("Tags"),o=ie("AS"),i=ie("ReverseDnsNames"),a=ie("DnsRecords"),c=ie("CPEs"),l=ie("Ports"),d=ie("WhoisRecord"),m=ie("Links");return Z(),re(xe,null,[e.error?(Z(),Ce(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(Z(),Ce(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),N("div",N2,[N("h2",D2,ye(e.artifact.id),1),N("p",P2,[se(s,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])])]),N("div",B2,[e.googleMapSrc||e.urlscanLiveshotSrc?(Z(),re("div",W2,[e.googleMapSrc?(Z(),re("div",H2,[N("h4",U2,[et(" Geolocation "),N("span",V2,ye(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,z2)])):ge("",!0),e.urlscanLiveshotSrc?(Z(),re("div",j2,[G2,K2,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,Y2)])):ge("",!0)])):ge("",!0),N("div",X2,[Z2,N("table",q2,[N("tr",null,[J2,N("td",null,ye(e.truncate(e.artifact.data,64)),1)]),N("tr",null,[Q2,N("td",null,ye(e.artifact.dataType),1)]),N("tr",null,[ek,N("td",null,ye(e.artifact.source),1)]),N("tr",null,[tk,N("td",null,ye(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Z(),re("tr",nk,[rk,N("td",null,[se(p,{tags:e.artifact.tags},null,8,["tags"])])])):ge("",!0)]),N("p",ik,"Created at: "+ye(e.artifact.createdAt),1)])]),N("div",ok,[e.artifact.autonomousSystem?(Z(),re("div",sk,[ak,se(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(Z(),re("div",lk,[ck,se(i,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(Z(),re("div",uk,[hk,se(a,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(Z(),re("div",fk,[dk,se(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.ports?(Z(),re("div",pk,[gk,se(l,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(Z(),re("div",mk,[vk,se(d,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0),N("div",yk,[bk,se(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])])],64)}const $k=Ae(F2,[["render",wk],["__scopeId","data-v-2e8dd078"]]),_k=be({name:"ArtifactDetailWrapper",components:{Artifact:$k,Loading:ln,ErrorMessage:lt},props:{id:{type:Number,required:!0}},setup(e){const t=w$(),n=Tr(),r=async()=>{await t.perform(e.id)},f=async()=>{await r()},u=async()=>{n.push("/")};return Xe(async()=>{await r()}),qe(e,async()=>{await r()}),{getArtifactTask:t,onRefresh:f,onDelete:u}}});function Sk(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("Artifact");return Z(),re(xe,null,[e.getArtifactTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getArtifactTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getArtifactTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["artifact","onRefresh","onDelete"])):ge("",!0)],64)}const Ck=Ae(_k,[["render",Sk]]),Ak=be({name:"ArtifactView",components:{Artifact:Ck},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Artifact:${e.id} - Mihari`)};Xe(()=>{t()}),qe(()=>e.id,()=>{t()})}});function kk(e,t,n,r,f,u){const h=ie("Artifact",!0);return Z(),Ce(h,{id:parseInt(e.id)},null,8,["id"])}const Ek=Ae(Ak,[["render",kk]]),Rk=be({name:"ArtifactsItem",props:{artifact:{type:Object,required:!0}},components:{ErrorMessage:lt,ActionButtons:ap,Message:fs},emits:["delete"],setup(e,t){const n=Ne(),r=Ne();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},error:n,truncate:Ri,message:r,onSetMessage:p=>{p.queued&&(r.value=p)},onDisposeMessage:()=>{r.value=void 0}}}}),xk={class:"box"},Tk={class:"block"},Lk={class:"table is-fullwidth is-completely-borderless"},Mk=N("th",null,"Data",-1),Ok=N("th",null,"Data Type",-1),Ik=N("th",null,"Source",-1),Fk=N("th",null,"Query",-1),Nk=N("p",{class:"block is-clearfix"},null,-1),Dk={class:"help"};function Pk(e,t,n,r,f,u){const h=ie("ErrorMessage"),g=ie("Message"),s=ie("ActionButtons"),p=ie("router-link");return Z(),re("div",xk,[e.error?(Z(),Ce(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(Z(),Ce(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),N("div",Tk,[N("p",null,[se(s,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])]),se(p,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et(ye(e.artifact.id),1)]),_:1},8,["to"])]),N("table",Lk,[N("tr",null,[Mk,N("td",null,ye(e.artifact.data),1)]),N("tr",null,[Ok,N("td",null,ye(e.artifact.dataType),1)]),N("tr",null,[Ik,N("td",null,ye(e.artifact.source),1)]),N("tr",null,[Fk,N("td",null,ye(e.truncate(e.artifact.query||"N/A",64)),1)])]),Nk,N("p",Dk,"Created at: "+ye(e.artifact.createdAt),1)])}const Bk=Ae(Rk,[["render",Pk]]),Wk=be({name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},components:{Artifact:Bk,Pagination:Ml},emits:["update-page","refresh"],setup(e,t){const n=ke(()=>e.artifacts.results.length>0);return{onUpdatePage:u=>{t.emit("update-page",u)},onDelete:()=>{t.emit("refresh")},hasArtifacts:n}}}),Hk={key:0},Uk={class:"help"},Vk={key:1},zk=N("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),jk=[zk];function Gk(e,t,n,r,f,u){const h=ie("Artifact"),g=ie("Pagination");return e.hasArtifacts?(Z(),re("div",Hk,[(Z(!0),re(xe,null,_t(e.artifacts.results,s=>(Z(),Ce(h,{artifact:s,key:s.id,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128)),se(g,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",Uk," ("+ye(e.artifacts.total)+" results in total, "+ye(e.artifacts.results.length)+" shown) ",1)])):(Z(),re("div",Vk,jk))}const Kk=Ae(Wk,[["render",Gk]]),Yk=be({name:"ArtifactsWrapper",components:{Artifacts:Kk,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Ne(!1),r=Tl(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{console.log(p),e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return Xe(async()=>{await f()}),qe(e,async()=>{await f()}),{getArtifactsTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),Xk={class:"block"},Zk={class:"field has-addons"},qk={class:"control is-expanded"},Jk={class:"control"},Qk={class:"icon is-small"},eE=N("span",null,"Search",-1),tE={class:"control"},nE={class:"icon is-small"},rE=N("span",null,"Help",-1),iE={key:0,class:"content mt-3"},oE=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code> and <code>port</code>. </li></ul>',2),sE=[oE],aE={key:0,class:"block"};function lE(e,t,n,r,f,u){var o,i;const h=ie("font-awesome-icon"),g=ie("Loading"),s=ie("ErrorMessage"),p=ie("Artifacts");return Z(),re(xe,null,[N("div",Xk,[N("div",Zk,[N("p",qk,[Go(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>e.q=a)},null,512),[[Xn,e.q]])]),N("p",Jk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...a)=>e.search&&e.search(...a))},[N("span",Qk,[se(h,{icon:"search"})]),eE])]),N("p",tE,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...a)=>e.toggleShowHelp&&e.toggleShowHelp(...a))},[N("span",nE,[se(h,{icon:"question"})]),rE])])]),e.showHelp?(Z(),re("div",iE,sE)):ge("",!0)]),e.getArtifactsTask.performCount>0?(Z(),re("div",aE,[e.getArtifactsTask.isRunning?(Z(),Ce(g,{key:0})):ge("",!0),e.getArtifactsTask.isError?(Z(),Ce(s,{key:1,error:(o=e.getArtifactsTask.last)==null?void 0:o.error},null,8,["error"])):ge("",!0),(i=e.getArtifactsTask.last)!=null&&i.value?(Z(),Ce(p,{key:2,artifacts:e.getArtifactsTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["artifacts","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const cE=Ae(Yk,[["render",lE]]),uE=be({name:"ArtifactsView",components:{Artifacts:cE},setup(){const e=()=>{an("Artifacts - Mihari")};Xe(()=>{e()})}});function hE(e,t,n,r,f,u){const h=ie("Artifacts",!0);return Z(),Ce(h)}const fE=Ae(uE,[["render",hE]]),dE=be({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),pE={class:"box"},gE={class:"table-container"},mE={class:"table is-fullwidth"},vE=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured?"),N("th",null,"Items")])],-1),yE={key:0,class:"button is-success is-small ml-1"},bE={class:"icon is-small"},wE=N("span",null,"Yes",-1),$E={key:1,class:"button is-warning is-small ml-1"},_E={class:"icon is-small"},SE=N("span",null,"No",-1),CE={class:"field is-grouped is-grouped-multiline"},AE={class:"tags has-addons"},kE={class:"tag is-dark"};function EE(e,t,n,r,f,u){const h=ie("font-awesome-icon");return Z(),re("div",pE,[N("div",gE,[N("table",mE,[vE,N("tbody",null,[(Z(!0),re(xe,null,_t(e.configs,g=>(Z(),re("tr",{key:g.name},[N("td",null,ye(g.name),1),N("td",null,ye(g.type),1),N("td",null,[g.configured?(Z(),re("button",yE,[N("span",bE,[se(h,{icon:"check"})]),wE])):(Z(),re("button",$E,[N("span",_E,[se(h,{icon:"exclamation"})]),SE]))]),N("td",null,[N("div",CE,[(Z(!0),re(xe,null,_t(g.items,(s,p)=>(Z(),re("div",{class:"control",key:p},[N("div",AE,[N("span",kE,ye(s.key),1),N("span",{class:kr(["tag",{"is-success":s.value,"is-warning":!s.value}])},ye(s.value||"N/A"),3)])]))),128))])])]))),128))])])])])}const RE=Ae(dE,[["render",EE]]),xE=be({name:"ConfigsWrapper",components:{Configs:RE,Loading:ln,ErrorMessage:lt},setup(){const e=_$();return Xe(async()=>{await e.perform()}),{getConfigsTask:e}}});function TE(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("Configs");return Z(),re(xe,null,[e.getConfigsTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getConfigsTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getConfigsTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):ge("",!0)],64)}const LE=Ae(xE,[["render",TE]]),ME=be({name:"ConfigView",components:{Configs:LE},setup(){an("Configuration - Mihari")}});function OE(e,t,n,r,f,u){const h=ie("Configs");return Z(),Ce(h)}const IE=Ae(ME,[["render",OE]]);var mp={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(o,i,a){if(typeof o!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=i),f.modules[o]||(f.payloads[o]=a,f.modules[o]=null)};f.modules={},f.payloads={};var u=function(o,i,a){if(typeof i=="string"){var c=s(o,i);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var l=[],d=0,m=i.length;d<m;++d){var v=s(o,i[d]);if(v==null&&h.original)return;l.push(v)}return a&&a.apply(null,l)||!0}},h=function(o,i){var a=u("",o,i);return a==null&&h.original?h.original.apply(this,arguments):a},g=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return g(o,a[0])+"!"+g(o,a[1])}if(i.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(i=c+"/"+i;i.indexOf(".")!==-1&&l!=i;){var l=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},s=function(o,i){i=g(o,i);var a=f.modules[i];if(!a){if(a=f.payloads[i],typeof a=="function"){var c={},l={id:i,uri:"",exports:c,packaged:!0},d=function(v,y){return u(i,v,y)},m=a(d,c,l);c=m||l.exports,f.modules[i]=c,delete f.payloads[i]}a=f.modules[i]=c||a}return a};function p(o){var i=r;o&&(r[o]||(r[o]={}),i=r[o]),(!i.define||!i.define.packaged)&&(f.original=i.define,i.define=f,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(h.original=i.require,i.require=h,i.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,f){function u(h,g,s){Object.defineProperty(h,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(h,g){return g=g||0,this.lastIndexOf(h,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(h,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=h.length;var p=s.indexOf(h,g);return p!==-1&&p===g}),String.prototype.repeat||u(String.prototype,"repeat",function(h){for(var g="",s=this;h>0;)h&1&&(g+=s),(h>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Object.assign||(Object.assign=function(h){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(h),s=1;s<arguments.length;s++){var p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(h){return Object.keys(h).map(function(g){return h[g]})}),Array.prototype.find||u(Array.prototype,"find",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return p}}),Array.prototype.includes||u(Array.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(h){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,i=o<0?Math.max(s+o,0):Math.min(o,s),a=arguments[2],c=a===void 0?s:a>>0,l=c<0?Math.max(s+c,0):Math.min(c,s);i<l;)g[i]=h,i++;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,r,f){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,f){r.deepCopy=function u(h){if(typeof h!="object"||!h)return h;var g;if(Array.isArray(h)){g=[];for(var s=0;s<h.length;s++)g[s]=u(h[s]);return g}if(Object.prototype.toString.call(h)!=="[object Object]")return h;g={};for(var s in h)g[s]=u(h[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,f){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,s){for(var p="";s>0;)s&1&&(p+=g),(s>>=1)&&(g+=g);return p};var u=/^\s\s*/,h=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(u,"")},r.stringTrimRight=function(g){return g.replace(h,"")},r.copyObject=function(g){var s={};for(var p in g)s[p]=g[p];return s},r.copyArray=function(g){for(var s=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?s[p]=this.copyObject(g[p]):s[p]=g[p];return s},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var s={},p=0;p<g.length;p++)s[g[p]]=1;return s},r.createMap=function(g){var s=Object.create(null);for(var p in g)s[p]=g[p];return s},r.arrayRemove=function(g,s){for(var p=0;p<=g.length;p++)s===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(g,s){var p=[];return g.replace(s,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},r.deferredCall=function(g){var s=null,p=function(){s=null,g()},o=function(i){return o.cancel(),s=setTimeout(p,i||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},r.delayedCall=function(g,s){var p=null,o=function(){p=null,g()},i=function(a){p==null&&(p=setTimeout(o,a||s))};return i.delay=function(a){p&&clearTimeout(p),p=setTimeout(o,a||s)},i.schedule=i,i.call=function(){this.cancel(),g()},i.cancel=function(){p&&clearTimeout(p),p=null},i.isPending=function(){return p},i},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,s,p){return p&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var u=typeof navigator=="object"?navigator:{},h=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";r.isWin=h=="win",r.isMac=h=="mac",r.isLinux=h=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=g.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(g.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,r.isAIR=g.indexOf("AdobeAIR")>=0,r.isAndroid=g.indexOf("Android")>=0,r.isChromeOS=g.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,f){var u=n("./useragent"),h="http://www.w3.org/1999/xhtml";r.buildDom=function a(c,l,d){if(typeof c=="string"&&c){var m=document.createTextNode(c);return l&&l.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],y=0;y<c.length;y++){var k=a(c[y],l,d);k&&v.push(k)}return v}var C=document.createElement(c[0]),S=c[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<c.length;y++)a(c[y],C,d);return b==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)}),l&&l.appendChild(C),C},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||h,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,c){var l=c?c.ownerDocument:document;return l.createTextNode(a)},r.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(a,c){var l=(a.className+"").split(/\s+/g);return l.indexOf(c)!==-1},r.addCssClass=function(a,c){r.hasCssClass(a,c)||(a.className+=" "+c)},r.removeCssClass=function(a,c){for(var l=a.className.split(/\s+/g);;){var d=l.indexOf(c);if(d==-1)break;l.splice(d,1)}a.className=l.join(" ")},r.toggleCssClass=function(a,c){for(var l=a.className.split(/\s+/g),d=!0;;){var m=l.indexOf(c);if(m==-1)break;d=!1,l.splice(m,1)}return d&&l.push(c),a.className=l.join(" "),d},r.setCssClass=function(a,c,l){l?r.addCssClass(a,c):r.removeCssClass(a,c)},r.hasCssString=function(a,c){var l=0,d;if(c=c||document,d=c.querySelectorAll("style")){for(;l<d.length;)if(d[l++].id===a)return!0}},r.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var g,s=[];r.useStrictCSP=function(a){g=a,a==!1?p():s||(s=[])};function p(){var a=s;s=null,a&&a.forEach(function(c){o(c[0],c[1])})}function o(a,c,l){if(!(typeof document>"u")){if(s){if(l)p();else if(l===!1)return s.push([a,c])}if(!g){var d=l;!l||!l.getRootNode?d=document:(d=l.getRootNode(),(!d||d==l)&&(d=document));var m=d.ownerDocument||d;if(c&&r.hasCssString(c,d))return null;c&&(a+=`
808
+ */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var f=!n&&typeof self=="object",u=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?r=xn:f&&(r=self);var h=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],i=[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"],c=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var l=function(b,R){return function(L){return new k(R,!0).update(L)[b]()}},d=function(b){var R=l("hex",b);u&&(R=m(R,b)),R.create=function(){return new k(b)},R.update=function(M){return R.create().update(M)};for(var L=0;L<a.length;++L){var E=a[L];R[E]=l(E,b)}return R},m=function(b,R){var L=ku,E=ku.Buffer,M=R?"sha224":"sha256",$;E.from&&!r.JS_SHA256_NO_BUFFER_FROM?$=E.from:$=function(_){return new E(_)};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===E?L.createHash(M).update($(_)).digest("hex"):b(_)};return A},v=function(b,R){return function(L,E){return new C(L,R,!0).update(E)[b]()}},y=function(b){var R=v("hex",b);R.create=function(M){return new C(M,b)},R.update=function(M,$){return R.create(M).update($)};for(var L=0;L<a.length;++L){var E=a[L];R[E]=v(E,b)}return R};function k(b,R){R?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}k.prototype.update=function(b){if(!this.finalized){var R,L=typeof b;if(L!=="string"){if(L==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);R=!0}for(var E,M=0,$,A=b.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($=this.start;M<A&&$<64;++M)_[$>>2]|=b[M]<<o[$++&3];else for($=this.start;M<A&&$<64;++M)E=b.charCodeAt(M),E<128?_[$>>2]|=E<<o[$++&3]:E<2048?(_[$>>2]|=(192|E>>6)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]):E<55296||E>=57344?(_[$>>2]|=(224|E>>12)<<o[$++&3],_[$>>2]|=(128|E>>6&63)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]):(E=65536+((E&1023)<<10|b.charCodeAt(++M)&1023),_[$>>2]|=(240|E>>18)<<o[$++&3],_[$>>2]|=(128|E>>12&63)<<o[$++&3],_[$>>2]|=(128|E>>6&63)<<o[$++&3],_[$>>2]|=(128|E&63)<<o[$++&3]);this.lastByteIndex=$,this.bytes+=$-this.start,$>=64?(this.block=_[16],this.start=$-64,this.hash(),this.hashed=!0):this.start=$}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 b=this.blocks,R=this.lastByteIndex;b[16]=this.block,b[R>>2]|=p[R&3],this.block=b[16],R>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=this.blocks,x,T,O,I,F,P,W,j,H,V,G;for(x=16;x<64;++x)F=w[x-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[x-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[x]=w[x-16]+T+w[x-7]+O<<0;for(G=R&L,x=0;x<64;x+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,_=F-150054599<<0,E=F+24177077<<0):(j=704751109,F=w[0]-210244248,_=F-1521486534<<0,E=F+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=b&R,I=j^b&L^G,W=M&$^~M&A,F=_+O+W+i[x]+w[x],P=T+I,_=E+F<<0,E=F+P<<0),T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=E&b,I=H^E&R^j,W=_&M^~_&$,F=A+O+W+i[x+1]+w[x+1],P=T+I,A=L+F<<0,L=F+P<<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),V=L&E,I=V^L&b^H,W=A&_^~A&M,F=$+O+W+i[x+2]+w[x+2],P=T+I,$=R+F<<0,R=F+P<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),G=R&L,I=G^R&E^V,W=$&A^~$&_,F=M+O+W+i[x+3]+w[x+3],P=T+I,M=b+F<<0,b=F+P<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+R<<0,this.h2=this.h2+L<<0,this.h3=this.h3+E<<0,this.h4=this.h4+M<<0,this.h5=this.h5+$<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},k.prototype.hex=function(){this.finalize();var b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=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[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[E>>28&15]+s[E>>24&15]+s[E>>20&15]+s[E>>16&15]+s[E>>12&15]+s[E>>8&15]+s[E>>4&15]+s[E&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[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&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 b=this.h0,R=this.h1,L=this.h2,E=this.h3,M=this.h4,$=this.h5,A=this.h6,_=this.h7,w=[b>>24&255,b>>16&255,b>>8&255,b&255,R>>24&255,R>>16&255,R>>8&255,R&255,L>>24&255,L>>16&255,L>>8&255,L&255,E>>24&255,E>>16&255,E>>8&255,E&255,M>>24&255,M>>16&255,M>>8&255,M&255,$>>24&255,$>>16&255,$>>8&255,$&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 b=new ArrayBuffer(this.is224?28:32),R=new DataView(b);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),b};function C(b,R,L){var E,M=typeof b;if(M==="string"){var $=[],A=b.length,_=0,w;for(E=0;E<A;++E)w=b.charCodeAt(E),w<128?$[_++]=w:w<2048?($[_++]=192|w>>6,$[_++]=128|w&63):w<55296||w>=57344?($[_++]=224|w>>12,$[_++]=128|w>>6&63,$[_++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++E)&1023),$[_++]=240|w>>18,$[_++]=128|w>>12&63,$[_++]=128|w>>6&63,$[_++]=128|w&63);b=$}else if(M==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new k(R,!0).update(b).array());var x=[],T=[];for(E=0;E<64;++E){var O=b[E]||0;x[E]=92^O,T[E]=54^O}k.call(this,R,L),this.update(T),this.oKeyPad=x,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 b=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),k.prototype.finalize.call(this)}};var S=d();S.sha256=S,S.sha224=d(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),h?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()})(up);var o2=up.exports,s2=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},Il={},a2=Object.prototype.hasOwnProperty,l2;function Eu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Ru(e){try{return encodeURIComponent(e)}catch{return null}}function c2(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var f=Eu(r[1]),u=Eu(r[2]);f===null||u===null||f in n||(n[f]=u)}return n}function u2(e,t){t=t||"";var n=[],r,f;typeof t!="string"&&(t="?");for(f in e)if(a2.call(e,f)){if(r=e[f],!r&&(r===null||r===l2||isNaN(r))&&(r=""),f=Ru(f),r=Ru(r),f===null||r===null)continue;n.push(f+"="+r)}return n.length?t+n.join("&"):""}Il.stringify=u2;Il.parse=c2;var hp=s2,hs=Il,h2=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,fp=/[\n\r\t]/g,f2=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,dp=/:\d+$/,d2=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p2=/^[a-zA-Z]:/;function Fl(e){return(e||"").toString().replace(h2,"")}var La=[["#","hash"],["?","query"],function(t,n){return Ut(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]],xu={hash:1,query:1};function pp(e){var t;typeof window<"u"?t=window:typeof xn<"u"?t=xn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},f=typeof e,u;if(e.protocol==="blob:")r=new zt(unescape(e.pathname),{});else if(f==="string"){r=new zt(e,{});for(u in xu)delete r[u]}else if(f==="object"){for(u in e)u in xu||(r[u]=e[u]);r.slashes===void 0&&(r.slashes=f2.test(e.href))}return r}function Ut(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function gp(e,t){e=Fl(e),e=e.replace(fp,""),t=t||{};var n=d2.exec(e),r=n[1]?n[1].toLowerCase():"",f=!!n[2],u=!!n[3],h=0,g;return f?u?(g=n[2]+n[3]+n[4],h=n[2].length+n[3].length):(g=n[2]+n[4],h=n[2].length):u?(g=n[3]+n[4],h=n[3].length):g=n[4],r==="file:"?h>=2&&(g=g.slice(2)):Ut(r)?g=n[4]:r?f&&(g=g.slice(2)):h>=2&&Ut(t.protocol)&&(g=n[4]),{protocol:r,slashes:f||Ut(r),slashesCount:h,rest:g}}function g2(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,f=n[r-1],u=!1,h=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),h++):h&&(r===0&&(u=!0),n.splice(r,1),h--);return u&&n.unshift(""),(f==="."||f==="..")&&n.push(""),n.join("/")}function zt(e,t,n){if(e=Fl(e),e=e.replace(fp,""),!(this instanceof zt))return new zt(e,t,n);var r,f,u,h,g,s,p=La.slice(),o=typeof t,i=this,a=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=hs.parse),t=pp(t),f=gp(e||"",t),r=!f.protocol&&!f.slashes,i.slashes=f.slashes||r&&t.slashes,i.protocol=f.protocol||t.protocol||"",e=f.rest,(f.protocol==="file:"&&(f.slashesCount!==2||p2.test(e))||!f.slashes&&(f.protocol||f.slashesCount<2||!Ut(i.protocol)))&&(p[3]=[/(.*)/,"pathname"]);a<p.length;a++){if(h=p[a],typeof h=="function"){e=h(e,i);continue}u=h[0],s=h[1],u!==u?i[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof h[2]=="number"?(i[s]=e.slice(0,g),e=e.slice(g+h[2])):(i[s]=e.slice(g),e=e.slice(0,g)))):(g=u.exec(e))&&(i[s]=g[1],e=e.slice(0,g.index)),i[s]=i[s]||r&&h[3]&&t[s]||"",h[4]&&(i[s]=i[s].toLowerCase())}n&&(i.query=n(i.query)),r&&t.slashes&&i.pathname.charAt(0)!=="/"&&(i.pathname!==""||t.pathname!=="")&&(i.pathname=g2(i.pathname,t.pathname)),i.pathname.charAt(0)!=="/"&&Ut(i.protocol)&&(i.pathname="/"+i.pathname),hp(i.port,i.protocol)||(i.host=i.hostname,i.port=""),i.username=i.password="",i.auth&&(g=i.auth.indexOf(":"),~g?(i.username=i.auth.slice(0,g),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=i.auth.slice(g+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(i.auth)),i.auth=i.password?i.username+":"+i.password:i.username),i.origin=i.protocol!=="file:"&&Ut(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString()}function m2(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||hs.parse)(t)),r[e]=t;break;case"port":r[e]=t,hp(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,dp.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var f=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==f?f+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(r.username=t.slice(0,u),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(u+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var h=0;h<La.length;h++){var g=La[h];g[4]&&(r[g[1]]=r[g[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&Ut(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function v2(e){(!e||typeof e!="function")&&(e=hs.stringify);var t,n=this,r=n.host,f=n.protocol;f&&f.charAt(f.length-1)!==":"&&(f+=":");var u=f+(n.protocol&&n.slashes||Ut(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&Ut(n.protocol)&&!r&&n.pathname!=="/"&&(u+="@"),(r[r.length-1]===":"||dp.test(n.hostname)&&!n.port)&&(r+=":"),u+=r+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}zt.prototype={set:m2,toString:v2};zt.extractProtocol=gp;zt.location=pp;zt.trimLeft=Fl;zt.qs=hs;var y2=zt;const b2=tr(y2);class fs extends Rt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class w2 extends fs{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class $2 extends fs{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class _2 extends fs{constructor(){super(),this.type="url"}href(t){const n=o2.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new b2(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class S2 extends fs{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const C2=[new UA,new VA,new zA,new GA,new jA,new KA,new YA,new XA,new ZA,new lp,new QA,new qA,new JA,new e2,new t2,new n2,new w2,new S2,new $2,new _2],A2=we({name:"LinksItem",components:{LinkComponent:HA},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){return{selectedLinks:ke(()=>C2.filter(n=>n.type===e.type))}}}),k2={class:"tags are-medium"};function E2(e,t,n,r,f,u){const h=ne("LinkComponent");return X(),ie("div",k2,[(X(!0),ie(xe,null,_t(e.selectedLinks,g=>(X(),be(h,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const R2=Ae(A2,[["render",E2]]),x2=we({name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,t){return{dispose:()=>{t.emit("dispose")}}}}),T2={class:"notification is-info is-light"};function L2(e,t,n,r,f,u){return X(),ie("div",T2,[e.disposable?(X(),ie("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...h)=>e.dispose&&e.dispose(...h))})):pe("",!0),N("p",null,ye(e.message.message),1)])}const ds=Ae(x2,[["render",L2]]),M2=we({name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},components:{AS:YC,DnsRecords:iA,Links:R2,ReverseDnsNames:fA,Tags:xi,ActionButtons:ap,WhoisRecord:NA,CPEs:qC,Ports:lA,ErrorMessage:lt,Message:ds,Vulnerabilities:mA},emits:["refresh","delete"],setup(e,t){const n=Fe(),r=Fe(),f=Fe(),u=Fe(),h=d=>{f.value=d},g=()=>{f.value=void 0},s=()=>{t.emit("delete")},p=d=>{d.queued?u.value=d:t.emit("refresh")},o=()=>{u.value=void 0},i=ke(()=>{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}`}),a=d=>{if(d)return`https://maps.google.co.jp/maps?output=embed&q=${d.lat},${d.long}&z=3`},c=S$(),l=Ei();return qe(async()=>{if(e.artifact.dataType==="ip"){let d;if(e.artifact.geolocation)d=ip(e.artifact.geolocation.countryCode);else{const m=await c.perform(e.artifact.data);d=m_(m),r.value=m.countryCode}n.value=a(d)}}),{countryCode:r,getAlertsTask:l,googleMapSrc:n,truncate:Ri,urlscanLiveshotSrc:i,onDelete:s,onSetError:h,error:f,onDisposeError:g,message:u,onDisposeMessage:o,onSetMessage:p}}}),mt=e=>(jo("data-v-eea760f4"),e=e(),Go(),e),O2={class:"block"},I2={class:"is-size-2"},F2={class:"is-clearfix"},N2={class:"columns"},D2={key:0,class:"column is-half"},P2={key:0},B2={class:"is-size-4"},W2={class:"has-text-grey"},H2=["src"],U2={key:1},V2=mt(()=>N("h4",{class:"is-size-4"},"Live screenshot",-1)),z2=mt(()=>N("p",{class:"help"},"Hover to expand",-1)),j2=["src"],G2={class:"column"},K2=mt(()=>N("h4",{class:"is-size-4"},"Information",-1)),Y2={class:"table is-fullwidth is-completely-borderless"},X2=mt(()=>N("th",null,"Data",-1)),Z2=mt(()=>N("th",null,"Data type",-1)),Q2=mt(()=>N("th",null,"Source",-1)),q2=mt(()=>N("th",null,"Query",-1)),J2={key:0},ek=mt(()=>N("th",null,"Tags",-1)),tk={class:"help"},nk={class:"block"},rk={class:"block"},ik={key:0,class:"block"},ok=mt(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),sk={key:1,class:"block"},ak=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),lk={key:2,class:"block"},ck=mt(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),uk={key:3,class:"block"},hk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),fk={key:4,class:"block"},dk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),pk={key:5,class:"block"},gk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),mk={key:6,class:"block"},vk=mt(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1));function yk(e,t,n,r,f,u){var y;const h=ne("ErrorMessage"),g=ne("Message"),s=ne("ActionButtons"),p=ne("Tags"),o=ne("Links"),i=ne("AS"),a=ne("ReverseDnsNames"),c=ne("DnsRecords"),l=ne("CPEs"),d=ne("Vulnerabilities"),m=ne("Ports"),v=ne("WhoisRecord");return X(),ie(xe,null,[e.error?(X(),be(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),e.message?(X(),be(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):pe("",!0),N("div",O2,[N("h2",I2,ye(e.artifact.id),1),N("p",F2,[oe(s,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])])]),N("div",N2,[e.googleMapSrc||e.urlscanLiveshotSrc?(X(),ie("div",D2,[e.googleMapSrc?(X(),ie("div",P2,[N("h4",B2,[Ke(" Geolocation "),N("span",W2,ye(e.countryCode||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),N("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,H2)])):pe("",!0),e.urlscanLiveshotSrc?(X(),ie("div",U2,[V2,z2,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,j2)])):pe("",!0)])):pe("",!0),N("div",G2,[K2,N("table",Y2,[N("tr",null,[X2,N("td",null,ye(e.truncate(e.artifact.data,64)),1)]),N("tr",null,[Z2,N("td",null,ye(e.artifact.dataType),1)]),N("tr",null,[Q2,N("td",null,ye(e.artifact.source),1)]),N("tr",null,[q2,N("td",null,ye(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(X(),ie("tr",J2,[ek,N("td",null,[oe(p,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):pe("",!0)]),N("p",tk,"Created at: "+ye(e.artifact.createdAt),1)])]),N("div",nk,[oe(o,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),N("div",rk,[e.artifact.autonomousSystem?(X(),ie("div",ik,[ok,oe(i,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):pe("",!0),e.artifact.reverseDnsNames?(X(),ie("div",sk,[ak,oe(a,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):pe("",!0),e.artifact.dnsRecords?(X(),ie("div",lk,[ck,oe(c,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):pe("",!0),e.artifact.cpes?(X(),ie("div",uk,[hk,oe(l,{cpes:e.artifact.cpes},null,8,["cpes"])])):pe("",!0),e.artifact.vulnerabilities?(X(),ie("div",fk,[dk,oe(d,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):pe("",!0),e.artifact.ports?(X(),ie("div",pk,[gk,oe(m,{ports:e.artifact.ports},null,8,["ports"])])):pe("",!0),e.artifact.whoisRecord?(X(),ie("div",mk,[vk,oe(v,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):pe("",!0)])],64)}const bk=Ae(M2,[["render",yk],["__scopeId","data-v-eea760f4"]]),wk=we({name:"ArtifactDetailWrapper",components:{Artifact:bk,Loading:ln,ErrorMessage:lt},props:{id:{type:Number,required:!0}},setup(e){const t=w$(),n=Tr(),r=async()=>{await t.perform(e.id)},f=async()=>{await r()},u=async()=>{n.push("/")};return qe(async()=>{await r()}),Xe(e,async()=>{await r()}),{getArtifactTask:t,onRefresh:f,onDelete:u}}});function $k(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("Artifact");return X(),ie(xe,null,[e.getArtifactTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getArtifactTask.isError?(X(),be(g,{key:1,error:(p=e.getArtifactTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(X(),be(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["artifact","onRefresh","onDelete"])):pe("",!0)],64)}const _k=Ae(wk,[["render",$k]]),Sk=we({name:"ArtifactView",components:{Artifact:_k},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Artifact:${e.id} - Mihari`)};qe(()=>{t()}),Xe(()=>e.id,()=>{t()})}});function Ck(e,t,n,r,f,u){const h=ne("Artifact",!0);return X(),be(h,{id:parseInt(e.id)},null,8,["id"])}const Ak=Ae(Sk,[["render",Ck]]),kk=we({name:"ArtifactsItem",props:{artifact:{type:Object,required:!0}},components:{ErrorMessage:lt,ActionButtons:ap,Message:ds,Tags:xi},emits:["delete"],setup(e,t){const n=Fe(),r=Fe();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},error:n,truncate:Ri,message:r,onSetMessage:p=>{p.queued&&(r.value=p)},onDisposeMessage:()=>{r.value=void 0}}}}),Ek={class:"box"},Rk={class:"block"},xk={class:"table is-fullwidth is-completely-borderless"},Tk=N("th",null,"Data",-1),Lk=N("th",null,"Data Type",-1),Mk=N("th",null,"Source",-1),Ok=N("th",null,"Query",-1),Ik={key:0},Fk=N("th",null,"Tags",-1),Nk=N("p",{class:"block is-clearfix"},null,-1),Dk={class:"help"};function Pk(e,t,n,r,f,u){const h=ne("ErrorMessage"),g=ne("Message"),s=ne("ActionButtons"),p=ne("router-link"),o=ne("Tags");return X(),ie("div",Ek,[e.error?(X(),be(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),e.message?(X(),be(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):pe("",!0),N("div",Rk,[N("p",null,[oe(s,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ve(()=>[Ke(ye(e.artifact.id),1)]),_:1},8,["to"])]),N("table",xk,[N("tr",null,[Tk,N("td",null,ye(e.artifact.data),1)]),N("tr",null,[Lk,N("td",null,ye(e.artifact.dataType),1)]),N("tr",null,[Mk,N("td",null,ye(e.artifact.source),1)]),N("tr",null,[Ok,N("td",null,ye(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(X(),ie("tr",Ik,[Fk,N("td",null,[oe(o,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):pe("",!0)]),Nk,N("p",Dk,"Created at: "+ye(e.artifact.createdAt),1)])}const Bk=Ae(kk,[["render",Pk]]),Wk=we({name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},components:{Artifact:Bk,Pagination:Ml},emits:["update-page","refresh"],setup(e,t){const n=ke(()=>e.artifacts.results.length>0);return{onUpdatePage:u=>{t.emit("update-page",u)},onDelete:()=>{t.emit("refresh")},hasArtifacts:n}}}),Hk={key:0},Uk={class:"help"},Vk={key:1},zk=N("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),jk=[zk];function Gk(e,t,n,r,f,u){const h=ne("Artifact"),g=ne("Pagination");return e.hasArtifacts?(X(),ie("div",Hk,[(X(!0),ie(xe,null,_t(e.artifacts.results,s=>(X(),be(h,{artifact:s,key:s.id,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128)),oe(g,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",Uk," ("+ye(e.artifacts.total)+" results in total, "+ye(e.artifacts.results.length)+" shown) ",1)])):(X(),ie("div",Vk,jk))}const Kk=Ae(Wk,[["render",Gk]]),Yk=we({name:"ArtifactsWrapper",components:{Artifacts:Kk,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Fe(!1),r=Ll(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{console.log(p),e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return qe(async()=>{await f()}),Xe(e,async()=>{await f()}),Xe(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getArtifactsTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),Xk={class:"block"},Zk={class:"field has-addons"},Qk={class:"control is-expanded"},qk={class:"control"},Jk={class:"icon is-small"},eE=N("span",null,"Search",-1),tE={class:"control"},nE={class:"icon is-small"},rE=N("span",null,"Help",-1),iE={key:0,class:"content mt-3"},oE=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2),sE=[oE],aE={key:0,class:"block"};function lE(e,t,n,r,f,u){var o,i;const h=ne("font-awesome-icon"),g=ne("Loading"),s=ne("ErrorMessage"),p=ne("Artifacts");return X(),ie(xe,null,[N("div",Xk,[N("div",Zk,[N("p",Qk,[Ko(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>e.q=a)},null,512),[[Xn,e.q]])]),N("p",qk,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...a)=>e.search&&e.search(...a))},[N("span",Jk,[oe(h,{icon:"search"})]),eE])]),N("p",tE,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...a)=>e.toggleShowHelp&&e.toggleShowHelp(...a))},[N("span",nE,[oe(h,{icon:"question"})]),rE])])]),e.showHelp?(X(),ie("div",iE,sE)):pe("",!0)]),e.getArtifactsTask.performCount>0?(X(),ie("div",aE,[e.getArtifactsTask.isRunning?(X(),be(g,{key:0})):pe("",!0),e.getArtifactsTask.isError?(X(),be(s,{key:1,error:(o=e.getArtifactsTask.last)==null?void 0:o.error},null,8,["error"])):pe("",!0),(i=e.getArtifactsTask.last)!=null&&i.value?(X(),be(p,{key:2,artifacts:e.getArtifactsTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["artifacts","onUpdatePage","onRefresh"])):pe("",!0)])):pe("",!0)],64)}const cE=Ae(Yk,[["render",lE]]),uE=we({name:"ArtifactsView",components:{Artifacts:cE},setup(){const e=()=>{an("Artifacts - Mihari")};qe(()=>{e()})}});function hE(e,t,n,r,f,u){const h=ne("Artifacts",!0);return X(),be(h)}const fE=Ae(uE,[["render",hE]]),dE=we({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),pE={class:"box"},gE={class:"table-container"},mE={class:"table is-fullwidth"},vE=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured?"),N("th",null,"Items")])],-1),yE={key:0,class:"button is-success is-small ml-1"},bE={class:"icon is-small"},wE=N("span",null,"Yes",-1),$E={key:1,class:"button is-warning is-small ml-1"},_E={class:"icon is-small"},SE=N("span",null,"No",-1),CE={class:"field is-grouped is-grouped-multiline"},AE={class:"tags has-addons"},kE={class:"tag is-dark"};function EE(e,t,n,r,f,u){const h=ne("font-awesome-icon");return X(),ie("div",pE,[N("div",gE,[N("table",mE,[vE,N("tbody",null,[(X(!0),ie(xe,null,_t(e.configs,g=>(X(),ie("tr",{key:g.name},[N("td",null,ye(g.name),1),N("td",null,ye(g.type),1),N("td",null,[g.configured?(X(),ie("button",yE,[N("span",bE,[oe(h,{icon:"check"})]),wE])):(X(),ie("button",$E,[N("span",_E,[oe(h,{icon:"exclamation"})]),SE]))]),N("td",null,[N("div",CE,[(X(!0),ie(xe,null,_t(g.items,(s,p)=>(X(),ie("div",{class:"control",key:p},[N("div",AE,[N("span",kE,ye(s.key),1),N("span",{class:kr(["tag",{"is-success":s.value,"is-warning":!s.value}])},ye(s.value||"N/A"),3)])]))),128))])])]))),128))])])])])}const RE=Ae(dE,[["render",EE]]),xE=we({name:"ConfigsWrapper",components:{Configs:RE,Loading:ln,ErrorMessage:lt},setup(){const e=_$();return qe(async()=>{await e.perform()}),{getConfigsTask:e}}});function TE(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("Configs");return X(),ie(xe,null,[e.getConfigsTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getConfigsTask.isError?(X(),be(g,{key:1,error:(p=e.getConfigsTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(X(),be(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):pe("",!0)],64)}const LE=Ae(xE,[["render",TE]]),ME=we({name:"ConfigView",components:{Configs:LE},setup(){an("Configuration - Mihari")}});function OE(e,t,n,r,f,u){const h=ne("Configs");return X(),be(h)}const IE=Ae(ME,[["render",OE]]);var mp={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(o,i,a){if(typeof o!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=i),f.modules[o]||(f.payloads[o]=a,f.modules[o]=null)};f.modules={},f.payloads={};var u=function(o,i,a){if(typeof i=="string"){var c=s(o,i);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var l=[],d=0,m=i.length;d<m;++d){var v=s(o,i[d]);if(v==null&&h.original)return;l.push(v)}return a&&a.apply(null,l)||!0}},h=function(o,i){var a=u("",o,i);return a==null&&h.original?h.original.apply(this,arguments):a},g=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return g(o,a[0])+"!"+g(o,a[1])}if(i.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(i=c+"/"+i;i.indexOf(".")!==-1&&l!=i;){var l=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},s=function(o,i){i=g(o,i);var a=f.modules[i];if(!a){if(a=f.payloads[i],typeof a=="function"){var c={},l={id:i,uri:"",exports:c,packaged:!0},d=function(v,y){return u(i,v,y)},m=a(d,c,l);c=m||l.exports,f.modules[i]=c,delete f.payloads[i]}a=f.modules[i]=c||a}return a};function p(o){var i=r;o&&(r[o]||(r[o]={}),i=r[o]),(!i.define||!i.define.packaged)&&(f.original=i.define,i.define=f,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(h.original=i.require,i.require=h,i.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,f){function u(h,g,s){Object.defineProperty(h,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(h,g){return g=g||0,this.lastIndexOf(h,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(h,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=h.length;var p=s.indexOf(h,g);return p!==-1&&p===g}),String.prototype.repeat||u(String.prototype,"repeat",function(h){for(var g="",s=this;h>0;)h&1&&(g+=s),(h>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Object.assign||(Object.assign=function(h){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(h),s=1;s<arguments.length;s++){var p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(h){return Object.keys(h).map(function(g){return h[g]})}),Array.prototype.find||u(Array.prototype,"find",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(h){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(h.call(s,o,p,this))return p}}),Array.prototype.includes||u(Array.prototype,"includes",function(h,g){return this.indexOf(h,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(h){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,i=o<0?Math.max(s+o,0):Math.min(o,s),a=arguments[2],c=a===void 0?s:a>>0,l=c<0?Math.max(s+c,0):Math.min(c,s);i<l;)g[i]=h,i++;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,r,f){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,f){r.deepCopy=function u(h){if(typeof h!="object"||!h)return h;var g;if(Array.isArray(h)){g=[];for(var s=0;s<h.length;s++)g[s]=u(h[s]);return g}if(Object.prototype.toString.call(h)!=="[object Object]")return h;g={};for(var s in h)g[s]=u(h[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,f){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,s){for(var p="";s>0;)s&1&&(p+=g),(s>>=1)&&(g+=g);return p};var u=/^\s\s*/,h=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(u,"")},r.stringTrimRight=function(g){return g.replace(h,"")},r.copyObject=function(g){var s={};for(var p in g)s[p]=g[p];return s},r.copyArray=function(g){for(var s=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?s[p]=this.copyObject(g[p]):s[p]=g[p];return s},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var s={},p=0;p<g.length;p++)s[g[p]]=1;return s},r.createMap=function(g){var s=Object.create(null);for(var p in g)s[p]=g[p];return s},r.arrayRemove=function(g,s){for(var p=0;p<=g.length;p++)s===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(g,s){var p=[];return g.replace(s,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},r.deferredCall=function(g){var s=null,p=function(){s=null,g()},o=function(i){return o.cancel(),s=setTimeout(p,i||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},r.delayedCall=function(g,s){var p=null,o=function(){p=null,g()},i=function(a){p==null&&(p=setTimeout(o,a||s))};return i.delay=function(a){p&&clearTimeout(p),p=setTimeout(o,a||s)},i.schedule=i,i.call=function(){this.cancel(),g()},i.cancel=function(){p&&clearTimeout(p),p=null},i.isPending=function(){return p},i},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,s,p){return p&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var u=typeof navigator=="object"?navigator:{},h=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";r.isWin=h=="win",r.isMac=h=="mac",r.isLinux=h=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=g.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(g.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,r.isAIR=g.indexOf("AdobeAIR")>=0,r.isAndroid=g.indexOf("Android")>=0,r.isChromeOS=g.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,f){var u=n("./useragent"),h="http://www.w3.org/1999/xhtml";r.buildDom=function a(c,l,d){if(typeof c=="string"&&c){var m=document.createTextNode(c);return l&&l.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],y=0;y<c.length;y++){var k=a(c[y],l,d);k&&v.push(k)}return v}var C=document.createElement(c[0]),S=c[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<c.length;y++)a(c[y],C,d);return b==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)}),l&&l.appendChild(C),C},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||h,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,c){var l=c?c.ownerDocument:document;return l.createTextNode(a)},r.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(a,c){var l=(a.className+"").split(/\s+/g);return l.indexOf(c)!==-1},r.addCssClass=function(a,c){r.hasCssClass(a,c)||(a.className+=" "+c)},r.removeCssClass=function(a,c){for(var l=a.className.split(/\s+/g);;){var d=l.indexOf(c);if(d==-1)break;l.splice(d,1)}a.className=l.join(" ")},r.toggleCssClass=function(a,c){for(var l=a.className.split(/\s+/g),d=!0;;){var m=l.indexOf(c);if(m==-1)break;d=!1,l.splice(m,1)}return d&&l.push(c),a.className=l.join(" "),d},r.setCssClass=function(a,c,l){l?r.addCssClass(a,c):r.removeCssClass(a,c)},r.hasCssString=function(a,c){var l=0,d;if(c=c||document,d=c.querySelectorAll("style")){for(;l<d.length;)if(d[l++].id===a)return!0}},r.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var g,s=[];r.useStrictCSP=function(a){g=a,a==!1?p():s||(s=[])};function p(){var a=s;s=null,a&&a.forEach(function(c){o(c[0],c[1])})}function o(a,c,l){if(!(typeof document>"u")){if(s){if(l)p();else if(l===!1)return s.push([a,c])}if(!g){var d=l;!l||!l.getRootNode?d=document:(d=l.getRootNode(),(!d||d==l)&&(d=document));var m=d.ownerDocument||d;if(c&&r.hasCssString(c,d))return null;c&&(a+=`
809
809
  /*# sourceURL=ace/css/`+c+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(a)),c&&(v.id=c),d==m&&(d=r.getDocumentHead(m)),d.insertBefore(v,d.firstChild)}}}if(r.importCssString=o,r.importCssStylsheet=function(a,c){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(c))},r.scrollbarWidth=function(a){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var l=r.createElement("ace_outer"),d=l.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",l.appendChild(c);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(l);var v=c.offsetWidth;d.overflow="scroll";var y=c.offsetWidth;return v===y&&(y=l.clientWidth),m.removeChild(l),v-y},r.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,c,l){a[c]!==l&&(a[c]=l)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");r.HI_DPI&&i.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!u.isEdge&&typeof i.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),i=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,c,l){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(l)+"px)"}:r.translate=function(a,c,l){a.style.top=Math.round(l)+"px",a.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,f){/*
810
810
  * based on code from:
811
811
  *
@@ -999,26 +999,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
999
999
 
1000
1000
 
1001
1001
  ==========================================================================
1002
- @license */var u=n("./oop"),h=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,p;for(p in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[p].toLowerCase(),g[s]=parseInt(p,10);for(p in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[p].toLowerCase(),g[s]=parseInt(p,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"],i=Math.pow(2,o.length);i--;)g.KEY_MODS[i]=o.filter(function(a){return i&g.KEY_MODS[a]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(r,h),r.default=r,r.keyCodeToString=function(g){var s=h[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,r,f){var u=n("./keys"),h=n("./useragent"),g=null,s=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function i(){return p==null&&o(),p}function a(k,C,S){this.elem=k,this.type=C,this.callback=S}a.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(k,C,S,b){k.addEventListener(C,S,i()),b&&b.$toDestroy.push(new a(k,C,S))},l=r.removeListener=function(k,C,S){k.removeEventListener(C,S,i())};r.stopEvent=function(k){return r.stopPropagation(k),r.preventDefault(k),!1},r.stopPropagation=function(k){k.stopPropagation&&k.stopPropagation()},r.preventDefault=function(k){k.preventDefault&&k.preventDefault()},r.getButton=function(k){return k.type=="dblclick"?0:k.type=="contextmenu"||h.isMac&&k.ctrlKey&&!k.altKey&&!k.shiftKey?2:k.button},r.capture=function(k,C,S){var b=k&&k.ownerDocument||document;function R(L){C&&C(L),S&&S(L),l(b,"mousemove",C),l(b,"mouseup",R),l(b,"dragstart",R)}return c(b,"mousemove",C),c(b,"mouseup",R),c(b,"dragstart",R),R},r.addMouseWheelListener=function(k,C,S){c(k,"wheel",function(b){var R=.15,L=b.deltaX||0,E=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*R,b.wheelY=E*R;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=E*M;break;case b.DOM_DELTA_PAGE:var $=150;b.wheelX=L*$,b.wheelY=E*$;break}C(b)},S)},r.addMultiMouseDownListener=function(k,C,S,b,R){var L=0,E,M,$,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(w){if(r.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,h.isIE){var x=Math.abs(w.clientX-E)>5||Math.abs(w.clientY-M)>5;(!$||x)&&(L=1),$&&clearTimeout($),$=setTimeout(function(){$=null},C[L-1]||600),L==1&&(E=w.clientX,M=w.clientY)}if(w._clicks=L,S[b]("mousedown",w),L>4)L=0;else if(L>1)return S[b](A[L],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){c(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)};r.getModifierString=function(k){return u.KEY_MODS[d(k)]};function m(k,C,S){var b=d(C);if(!h.isMac&&g){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=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&&b===3&&R===2){var L=C.timeStamp-s;L<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!b&&S===13){var R="location"in C?C.location:C.keyLocation;if(R===3&&(k(C,b,-S),C.defaultPrevented))return}if(h.isChromeOS&&b&8){if(k(C,b,S),C.defaultPrevented)return;b&=-9}return!b&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:k(C,b,S)}r.addCommandKeyListener=function(k,C,S){var b=null;c(k,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var L=m(C,R,R.keyCode);return b=R.defaultPrevented,L},S),c(k,"keypress",function(R){b&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(r.stopEvent(R),b=null)},S),c(k,"keyup",function(R){g[R.keyCode]=null},S),g||(v(),c(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!h.isOldIE){var y=1;r.nextTick=function(k,C){C=C||window;var S="zero-timeout-message-"+y++,b=function(R){R.data==S&&(r.stopPropagation(R),l(C,"message",b),k())};c(C,"message",b),C.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(k,C){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):k()},C)},r.$idleBlockId=null,r.blockIdle=function(k){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},k||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,f){var u;f.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,r,f){var u=n("../lib/event"),h=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),i=g.isChrome<18,a=g.isIE,c=g.isChrome>63,l=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,k=g.isMobile,C;C=function(S,b){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","false"),R.style.opacity="0",S.insertBefore(R,S.firstChild);var L=!1,E=!1,M=!1,$=!1,A="";k||(R.style.fontSize="1px");var _=!1,w=!1,x="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===R}catch{}this.setNumberOfExtraLines=function(J){if(F=Number.MAX_SAFE_INTEGER,P=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",h("editor")),b.session)){var le=b.session.selection.cursor.row;R.setAttribute("aria-label",h("Cursor at row $0",[le+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(J){w||(b.onBlur(J),j=!1)},b),u.addListener(R,"focus",function(J){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(J),g.isEdge?setTimeout(V):V()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),A||c||this.$focusScroll=="browser")return R.focus({preventScroll:!0});var J=R.style.top;R.style.position="fixed",R.style.top="0px";try{var le=R.getBoundingClientRect().top!=0}catch{return}var de=[];if(le)for(var $e=R.parentElement;$e&&$e.nodeType==1;)de.push($e),$e.setAttribute("ace_nocontext","true"),!$e.parentElement&&$e.getRootNode?$e=$e.getRootNode().host:$e=$e.parentElement;R.focus({preventScroll:!0}),le&&de.forEach(function(Ee){Ee.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},b.on("beforeEndOperation",function(){var J=b.curOp,le=J&&J.command&&J.command.name;if(le!="insertstring"){var de=le&&(J.docChanged||J.selectionChanged);M&&de&&(x=R.value="",ae()),V()}});var H=function(J,le){for(var de=le,$e=1;$e<=J-F&&$e<2*W+1;$e++)de+=b.session.getLine(J-$e).length+1;return de},V=v?function(J){if(!(!j||L&&!J||$)){J||(J="");var le=`
1003
- ab`+J+`cde fg
1004
- `;le!=R.value&&(R.value=x=le);var de=4,$e=4+(J.length||(b.selection.isEmpty()?0:1));(T!=de||O!=$e)&&R.setSelectionRange(de,$e),T=de,O=$e}}:function(){if(!(M||$)&&!(!j&&!X)){M=!0;var J=0,le=0,de="";if(b.session){var $e=b.selection,Ee=$e.getRange(),Me=$e.cursor.row;Me===P+1?(F=P+1,P=F+2*W):Me===F-1?(P=F-1,F=P-2*W):(Me<F-1||Me>P+1)&&(F=Me>W?Me-W:0,P=Me>W?Me+W:2*W);for(var Ue=[],ze=F;ze<=P;ze++)Ue.push(b.session.getLine(ze));if(de=Ue.join(`
1005
- `),J=H(Ee.start.row,Ee.start.column),le=H(Ee.end.row,Ee.end.column),Ee.start.row<F){var De=b.session.getLine(F-1);J=Ee.start.row<F-1?0:J,le+=De.length+1,de=De+`
1006
- `+de}else if(Ee.end.row>P){var Fe=b.session.getLine(P+1);le=Ee.end.row>P+1?Fe.length:Ee.end.column,le+=de.length+1,de=de+`
1007
- `+Fe}else k&&Me>0&&(de=`
1008
- `+de,le+=1,J+=1);de.length>l&&(J<l&&le<l?de=de.slice(0,l):(de=`
1009
- `,J==le?J=le=0:(J=0,le=1)));var We=de+`
1010
-
1011
- `;We!=x&&(R.value=x=We,T=O=We.length)}if(X&&(T=R.selectionStart,O=R.selectionEnd),O!=le||T!=J||R.selectionEnd!=O)try{R.setSelectionRange(J,le),T=J,O=le}catch{}M=!1}};this.resetSelection=V,j&&b.onFocus();var G=function(J){return J.selectionStart===0&&J.selectionEnd>=x.length&&J.value===x&&x&&J.selectionEnd!==O},q=function(J){M||(L?L=!1:G(R)?(b.selectAll(),V()):k&&R.selectionStart!=T&&V())},U=null;this.setInputHandler=function(J){U=J},this.getInputHandler=function(){return U};var X=!1,Y=function(J,le){if(X&&(X=!1),E)return V(),J&&b.onPaste(J),E=!1,"";for(var de=R.selectionStart,$e=R.selectionEnd,Ee=T,Me=x.length-O,Ue=J,ze=J.length-de,De=J.length-$e,Fe=0;Ee>0&&x[Fe]==J[Fe];)Fe++,Ee--;for(Ue=Ue.slice(Fe),Fe=1;Me>0&&x.length-Fe>T-1&&x[x.length-Fe]==J[J.length-Fe];)Fe++,Me--;ze-=Fe-1,De-=Fe-1;var We=Ue.length-Fe+1;if(We<0&&(Ee=-We,We=0),Ue=Ue.slice(0,We),!le&&!Ue&&!ze&&!Ee&&!Me&&!De)return"";$=!0;var ct=!1;return g.isAndroid&&Ue==". "&&(Ue=" ",ct=!0),Ue&&!Ee&&!Me&&!ze&&!De||_?b.onTextInput(Ue):b.onTextInput(Ue,{extendLeft:Ee,extendRight:Me,restoreStart:ze,restoreEnd:De}),$=!1,x=J,T=de,O=$e,I=De,ct?`
1012
- `:Ue},z=function(J){if(M)return te();if(J&&J.inputType){if(J.inputType=="historyUndo")return b.execCommand("undo");if(J.inputType=="historyRedo")return b.execCommand("redo")}var le=R.value,de=Y(le,!0);(le.length>l+100||y.test(de)||k&&T<1&&T==O)&&V()},ee=function(J,le,de){var $e=J.clipboardData||window.clipboardData;if(!(!$e||i)){var Ee=a||de?"Text":"text/plain";try{return le?$e.setData(Ee,le)!==!1:$e.getData(Ee)}catch(Me){if(!de)return ee(Me,le,!0)}}},ue=function(J,le){var de=b.getCopyText();if(!de)return u.preventDefault(J);ee(J,de)?(v&&(V(de),L=de,setTimeout(function(){L=!1},10)),le?b.onCut():b.onCopy(),u.preventDefault(J)):(L=!0,R.value=de,R.select(),setTimeout(function(){L=!1,V(),le?b.onCut():b.onCopy()}))},D=function(J){ue(J,!0)},B=function(J){ue(J,!1)},K=function(J){var le=ee(J);o.pasteCancelled()||(typeof le=="string"?(le&&b.onPaste(le,J),g.isIE&&setTimeout(V),u.preventDefault(J)):(R.value="",E=!0))};u.addCommandKeyListener(R,b.onCommandKey.bind(b),b),u.addListener(R,"select",q,b),u.addListener(R,"input",z,b),u.addListener(R,"cut",D,b),u.addListener(R,"copy",B,b),u.addListener(R,"paste",K,b),(!("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:B(J);break;case 86:K(J);break;case 88:D(J);break}},b);var Q=function(J){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!_)){J.data&&(M.useTextareaForIME=!1),setTimeout(te,0),b._signal("compositionStart"),b.on("mousedown",fe);var le=b.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,M.markerRange=le,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(x=R.value="",T=0,O=0):(R.msGetInputContext&&(M.context=R.msGetInputContext()),R.getInputContext&&(M.context=R.getInputContext()))}},te=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(_)return fe();if(M.useTextareaForIME)b.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)}}},ae=function(J){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",fe),J&&z())};function fe(){w=!0,R.blur(),R.focus(),w=!1}var ce=p.delayedCall(te,50).schedule.bind(null,null);function he(J){J.keyCode==27&&R.value.length<R.selectionStart&&(M||(x=R.value),T=O=-1,V()),ce()}u.addListener(R,"compositionstart",Q,b),u.addListener(R,"compositionupdate",te,b),u.addListener(R,"keyup",he,b),u.addListener(R,"keydown",ce,b),u.addListener(R,"compositionend",ae,b),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,V(),b._emit("nativecontextmenu",{target:b,domEvent:J}),this.moveToMouse(J,!0)},this.moveToMouse=function(J,le){A||(A=R.style.cssText),R.style.cssText=(le?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var de=b.container.getBoundingClientRect(),$e=s.computedStyle(b.container),Ee=de.top+(parseInt($e.borderTopWidth)||0),Me=de.left+(parseInt(de.borderLeftWidth)||0),Ue=de.bottom-Ee-R.clientHeight-2,ze=function(De){s.translate(R,De.clientX-Me-2,Math.min(De.clientY-Ee-2,Ue))};ze(J),J.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(oe),g.isWin&&u.capture(b.container,ze,pe))},this.onContextMenuClose=pe;var oe;function pe(){clearTimeout(oe),oe=setTimeout(function(){A&&(R.style.cssText=A,A=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Se=function(J){b.textInput.onContextMenu(J),pe()};u.addListener(R,"mouseup",Se,b),u.addListener(R,"mousedown",function(J){J.preventDefault(),pe()},b),u.addListener(b.renderer.scroller,"contextmenu",Se,b),u.addListener(R,"contextmenu",Se,b),v&&we(S,b,R);function we(J,le,de){var $e=null,Ee=!1;de.addEventListener("keydown",function(Ue){$e&&clearTimeout($e),Ee=!0},!0),de.addEventListener("keyup",function(Ue){$e=setTimeout(function(){Ee=!1},100)},!0);var Me=function(Ue){if(document.activeElement===de&&!(Ee||M||le.$mouseHandler.isMousePressed)&&!L){var ze=de.selectionStart,De=de.selectionEnd,Fe=null,We=0;if(ze==0?Fe=d.up:ze==1?Fe=d.home:De>O&&x[De]==`
1013
- `?Fe=d.end:ze<T&&x[ze-1]==" "?(Fe=d.left,We=m.option):ze<T||ze==T&&O!=T&&ze==De?Fe=d.left:De>O&&x.slice(0,De).split(`
1014
- `).length>2?Fe=d.down:De>O&&x[De-1]==" "?(Fe=d.right,We=m.option):(De>O||De==O&&O!=T&&ze==De)&&(Fe=d.right),ze!==De&&(We|=m.shift),Fe){var ct=le.onCommandKey({},We,Fe);if(!ct&&le.commands){Fe=d.keyCodeToString(Fe);var Or=le.commands.findKeyCommand(We,Fe);Or&&le.execCommand(Or)}T=ze,O=De,V("")}}};document.addEventListener("selectionchange",Me),le.on("destroy",function(){document.removeEventListener("selectionchange",Me)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=C,r.$setUserAgentForTests=function(S,b){k=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,f){var u=n("../lib/useragent"),h=0,g=550,s=function(){function i(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var l=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];l.forEach(function(d){a[d]=this[d]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return i.prototype.onMouseDown=function(a){var c=a.inSelection(),l=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(l),m==2&&(d.textInput.onContextMenu(a.domEvent),u.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(l,a.domEvent._clicks>1),a.preventDefault()},i.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var l=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?l.selection.selectToPosition(a):c||l.selection.moveToPosition(a),c||this.select(),l.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var a,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(l);if(d==-1)a=this.$clickSelection.end;else if(d==1)a=this.$clickSelection.start;else{var m=o(this.$clickSelection,l);l=m.cursor,a=m.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(a){var c,l=this.editor,d=l.renderer.screenToTextCoordinates(this.x,this.y),m=l.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)c=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&v>=0)c=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,c=m.start;else{var k=o(this.$clickSelection,d);d=k.cursor,c=k.anchor}l.selection.setSelectionAnchor(c.row,c.column)}l.selection.selectToPosition(d),l.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var a=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>h||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),l=this.editor,d=l.session,m=d.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=l.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},i.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),l=this.editor;this.setState("selectByLines");var d=l.getSelectionRange();d.isMultiLine()&&d.contains(c.row,c.column)?(this.$clickSelection=l.selection.getLineRange(d.start.row),this.$clickSelection.end=l.selection.getLineRange(d.end.row).end):this.$clickSelection=l.selection.getLineRange(c.row),this.select()},i.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var l=this.$lastScroll,d=a.domEvent.timeStamp,m=d-l.t,v=m?a.wheelX/m:l.vx,y=m?a.wheelY/m:l.vy;m<g&&(v=(v+l.vx)/2,y=(y+l.vy)/2);var k=Math.abs(v/y),C=!1;if(k>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(C=!0),k<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(C=!0),C)l.allowed=d;else if(d-l.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(l.vx)&&Math.abs(y)<=1.5*Math.abs(l.vy);S?(C=!0,l.allowed=d):l.allowed=0}if(l.t=d,l.vx=v,l.vy=y,C)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},i}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,r.DefaultHandlers=s;function p(i,a,c,l){return Math.sqrt(Math.pow(c-i,2)+Math.pow(l-a,2))}function o(i,a){if(i.start.row==i.end.row)var c=2*a.column-i.start.column-i.end.column;else if(i.start.row==i.end.row-1&&!i.start.column&&!i.end.column)var c=a.column-4;else var c=2*a.row-i.start.row-i.end.row;return c<0?{cursor:i.start,anchor:i.end}:{cursor:i.end,anchor:i.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,f){r.preventParentScroll=function(h){h.stopPropagation();var g=h.currentTarget,s=g.scrollHeight>g.clientHeight;s||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,f){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)}}(),h=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");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",i=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(m){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=h(this.popups),b=S.next();!b.done;b=S.next()){var R=b.value,L=!0;try{for(var E=(y=void 0,h(C)),M=E.next();!M.done;M=E.next()){var $=M.value;if(this.doPopupsOverlap($,R)){L=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=E.return)&&k.call(E)}finally{if(y)throw y.error}}L?C.push(R):R.hide()}}catch(A){m={error:A}}finally{try{b&&!b.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}(),c=new a;r.popupManager=c,r.Tooltip=i;var l=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",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var 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),b=y.session.documentToScreenPosition(k.row,k.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,C){var S=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=s.fromPoints(y.start,y.end);var R=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();R.pageX<L.left&&(R.pageX=L.left);var E=this.getElement();E.innerHTML="",E.appendChild(k),E.style.maxHeight="",E.style.display="block";var M=E.clientHeight,$=E.clientWidth,A=window.innerHeight-R.pageY-b.lineHeight,_=!0;R.pageY-M<0&&R.pageY<A&&(_=!1),E.style.maxHeight=(_?R.pageY:A)-S+"px",E.style.top=_?"":R.pageY+b.lineHeight+"px",E.style.bottom=_?window.innerHeight-R.pageY+"px":"",E.style.left=Math.min(R.pageX,window.innerWidth-$-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,c.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}(i);r.HoverTooltip=l}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,f){var u=this&&this.__extends||function(){var c=function(l,d){return c=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])},c(l,d)};return function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),h=this&&this.__values||function(c){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&c[l],m=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls;function i(c){var l=c.editor,d=l.renderer.$gutterLayer,m=new a(l);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!l.isFocused()||b.getButton()!=0)){var R=d.getRegion(b);if(R!="foldWidgets"){var L=b.getDocumentPosition().row,E=l.session.selection;if(b.getShiftKey())E.selectTo(L,0);else{if(b.domEvent.detail==2)return l.selectAll(),b.preventDefault();c.$clickSelection=l.selection.getLineRange(L)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var v,y;function k(){var b=y.getDocumentPosition().row,R=l.session.getLength();if(b==R){var L=l.renderer.pixelToScreenCoordinates(0,y.y).row,E=y.$pos;if(L>l.session.documentToScreenRow(E.row,E.column))return C()}if(m.showTooltip(b),!!m.isOpen)if(l.on("mousewheel",C),c.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),$=d.$lines.get(M);if($){var A=$.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(),l.off("mousewheel",C))}function S(b){m.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var R=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(R,"ace_fold-widget"))return C();m.isOpen&&c.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!c.isMousePressed?k():C()},50))}),s.addListener(l.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},l),l.on("changeSession",C),l.on("input",C)}r.GutterHandler=i;var a=function(c){u(l,c);function l(d){var m=c.call(this,d.container)||this;return m.editor=d,m}return l.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),p.prototype.setPosition.call(this,d,m)},Object.defineProperty(l,"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}),l.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,b=d+1;b<=k.end.row;b++)if(m.$annotations[b])for(var R=0;R<m.$annotations[b].text.length;R++){var L=m.$annotations[b].type[R];if(C[L].push(m.$annotations[b].text[R]),L==="error"){S="error_fold";continue}if(L==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var E="".concat(l.annotationsToSummaryString(C)," in folded code.");y.text.push(E),y.type.push(S)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},$=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var A="<span class='ace_".concat(y.type[b]," ").concat($,"' aria-label='").concat(l.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);M[y.type[b].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)},l.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},l.annotationsToSummaryString=function(d){var m,v,y=[],k=["error","warning","info"];try{for(var C=h(k),S=C.next();!S.done;S=C.next()){var b=S.value;if(d[b].length){var R=d[b].length===1?l.annotationLabels[b].singular:l.annotationLabels[b].plural;y.push("".concat(d[b].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(", ")},l}(p);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,f){var u=n("../lib/event"),h=n("../lib/useragent"),g=function(){function s(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return 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 p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-i},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=o.contains(i.row,i.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 h.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,f){var u=n("../lib/dom"),h=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function i(c){var l=c.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){c[H]=this[H]},this),l.on("mousedown",this.onMouseDown.bind(c));var v=l.container,y,k,C,S,b,R,L=0,E,M,$,A,_;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var V=this;return setTimeout(function(){V.startSelect(),V.captureMouse(H)},0),H.preventDefault()}b=l.getSelectionRange();var G=H.dataTransfer;G.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(d),G.setDragImage&&G.setDragImage(d,0,0),setTimeout(function(){l.container.removeChild(d)}),G.clearData(),G.setData("Text",l.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!l.getReadOnly()){var V=H.dataTransfer.dropEffect;!E&&V=="move"&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||O(),L++,H.dataTransfer.dropEffect=E=j(H),h.preventDefault(H)},this.onDragOver=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||(O(),L++),F!==null&&(F=null),H.dataTransfer.dropEffect=E=j(H),h.preventDefault(H)},this.onDragLeave=function(H){if(L--,L<=0&&y)return I(),E=null,h.preventDefault(H)},this.onDrop=function(H){if(R){var V=H.dataTransfer;if(M)switch(E){case"move":b.contains(R.row,R.column)?b={start:R,end:R}:b=l.moveText(b,R);break;case"copy":b=l.moveText(b,R,!0);break}else{var G=V.getData("Text");b={start:R,end:l.session.insert(R,G)},l.focus(),E=null}return I(),h.preventDefault(H)}},h.addListener(v,"dragstart",this.onDragStart.bind(c),l),h.addListener(v,"dragend",this.onDragEnd.bind(c),l),h.addListener(v,"dragenter",this.onDragEnter.bind(c),l),h.addListener(v,"dragover",this.onDragOver.bind(c),l),h.addListener(v,"dragleave",this.onDragLeave.bind(c),l),h.addListener(v,"drop",this.onDrop.bind(c),l);function w(H,V){var G=Date.now(),q=!V||H.row!=V.row,U=!V||H.column!=V.column;if(!A||q||U)l.moveCursorToPosition(H),A=G,_={x:k,y:C};else{var X=a(_.x,_.y,k,C);X>o?A=null:G-A>=p&&(l.renderer.scrollCursorIntoView(),A=null)}}function x(H,V){var G=Date.now(),q=l.renderer.layerConfig.lineHeight,U=l.renderer.layerConfig.characterWidth,X=l.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-X.left,right:X.right-k},y:{top:C-X.top,bottom:X.bottom-C}},z=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),ue={row:H.row,column:H.column};z/U<=2&&(ue.column+=Y.x.left<Y.x.right?-3:2),ee/q<=1&&(ue.row+=Y.y.top<Y.y.bottom?-1:1);var D=H.row!=ue.row,B=H.column!=ue.column,K=!V||H.row!=V.row;D||B&&!K?$?G-$>=s&&l.renderer.scrollCursorIntoView(ue):$=G:$=null}function T(){var H=R;R=l.renderer.screenToTextCoordinates(k,C),w(R,H),x(R,H)}function O(){b=l.selection.toOrientedRange(),y=l.session.addMarker(b,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,h.addListener(document,"mousemove",P)}function I(){clearInterval(S),l.session.removeMarker(y),y=null,l.selection.fromOrientedRange(b),l.isFocused()&&!M&&l.$resetCursorStyle(),b=null,R=null,L=0,$=null,A=null,h.removeListener(document,"mousemove",P)}var F=null;function P(){F==null&&(F=setTimeout(function(){F!=null&&y&&I()},20))}function W(H){var V=H.types;return!V||Array.prototype.some.call(V,function(G){return G=="text/plain"||G=="Text"})}function j(H){var V=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],q=g.isMac?H.altKey:H.ctrlKey,U="uninitialized";try{U=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return q&&V.indexOf(U)>=0?X="copy":G.indexOf(U)>=0?X="move":V.indexOf(U)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,l=c.container;l.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var d=g.isWin?"default":"move";c.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&l.dragDrop()}if(this.state==="dragWait"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,d=c.inSelection(),m=c.getButton(),v=c.domEvent.detail||1;if(v===1&&m===0&&d){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),l.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var k=l.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(i.prototype);function a(c,l,d,m){return Math.sqrt(Math.pow(d-c,2)+Math.pow(m-l,2))}r.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,f){var u=n("./mouse_event").MouseEvent,h=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(s,p){var o="scroll",i,a,c,l,d,m,v=0,y,k=0,C=0,S=0,b,R;function L(){var w=window.navigator&&window.navigator.clipboard,x=!1,T=function(){var I=p.getCopyText(),F=p.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(x?["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"||!x)return x=!x,T();F=="paste"?w.readText().then(function(P){p.execCommand(F,P)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),R.firstChild.style.display="none",x=!1,F!="openCommandPalette"&&p.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),p.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function E(){R||L();var w=p.selection.cursor,x=p.renderer.textToScreenCoordinates(w.row,w.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();R.style.top=x.pageY-I.top-3+"px",x.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",p.on("input",M)}function M(w){R&&(R.style.display="none"),p.off("input",M)}function $(){d=null,clearTimeout(d);var w=p.selection.getRange(),x=w.contains(y.row,y.column);(w.isEmpty()||!x)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",E()}function A(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var w=k>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),o="wait"}h.addListener(s,"contextmenu",function(w){if(b){var x=p.textInput.getElement();x.focus()}},p),h.addListener(s,"touchstart",function(w){var x=w.touches;if(d||x.length>1){clearTimeout(d),d=null,c=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;l=I;var F=x[0],P=F.clientX,W=F.clientY;Math.abs(i-P)+Math.abs(a-W)>T&&(c=-1),i=w.clientX=P,a=w.clientY=W,C=S=0;var j=new u(w,p);if(y=j.getDocumentPosition(),I-c<500&&x.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var H=p.selection.cursor,V=p.selection.isEmpty()?H:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(H,!0),q=p.renderer.$cursorLayer.getPixelPosition(V,!0),U=p.renderer.scroller.getBoundingClientRect(),X=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,z=function(D,B){return D=D/O,B=B/T-.75,D*D+B*B};if(w.clientX<U.left){o="zoom";return}var ee=z(w.clientX-U.left-G.left+Y,w.clientY-U.top-G.top+X),ue=z(w.clientX-U.left-q.left+Y,w.clientY-U.top-q.top+X);ee<3.5&&ue<3.5&&(o=ee>ue?"cursor":"anchor"),ue<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",d=setTimeout($,450)}c=I},p),h.addListener(s,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(p.selection.moveToPosition(y),v=0,E()):o=="scroll"?(_(),M()):E(),clearTimeout(d),d=null},p),h.addListener(s,"touchmove",function(w){d&&(clearTimeout(d),d=null);var x=w.touches;if(!(x.length>1||o=="zoom")){var T=x[0],O=i-T.clientX,I=a-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();i=T.clientX,a=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,P=F-l;if(l=F,o=="scroll"){var W=new u(w,p);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),P!=0&&(C=O/P,S=I/P),p._emit("mousewheel",W),W.propagationStopped||(C=S=0)}else{var j=new u(w,p),H=j.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(H):o=="anchor"&&p.selection.setSelectionAnchor(H.row,H.column),p.renderer.scrollCursorIntoView(H),w.preventDefault()}}},p);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=p.session.getScrollTop();p.renderer.scrollBy(10*C,10*S),w==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,f){var u=n("../lib/event"),h=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,i=n("./touch_handler").addTouchListeners,a=n("../config"),c=function(){function l(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;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),i(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),h.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),b=d.session.selection.getRange(),R=d.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},d)}return l.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseMove=function(d,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseWheel=function(d,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(d,v)},l.prototype.setState=function(d){this.state=d},l.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(E){if(E){if(h.isWebKit&&!E.which&&k.releaseMouse)return k.releaseMouse();k.x=E.clientX,k.y=E.clientY,m&&m(E),k.mouseEvent=new p(E,k.editor),k.$mouseMoved=!0}},S=function(E){v.off("beforeEndOperation",R),clearInterval(L),v.session&&b(),k[k.state+"End"]&&k[k.state+"End"](E),k.state="",k.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),k.$onCaptureMouseMove=k.releaseMouse=null,E&&k.onMouseEvent("mouseup",E),v.endOperation()},b=function(){k[k.state]&&k[k.state](),k.$mouseMoved=!1};if(h.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){S(d)});var R=function(E){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(b,20)},l.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)},l.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},l}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:h.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("../lib/dom"),h=function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),i=s.session,a=i.getFoldAt(o.row,o.column,1);a&&(p.getAccelKey()?i.removeFold(a):i.expandFold(a),p.stop());var c=p.domEvent&&p.domEvent.target;c&&u.hasCssClass(c,"ace_inline_button")&&u.hasCssClass(c,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var i=p.getDocumentPosition().row,a=s.session;a.foldWidgets&&a.foldWidgets[i]&&s.session.onFoldWidgetClick(i,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var i=p.getDocumentPosition().row,a=s.session,c=a.getParentFoldRangeData(i,!0),l=c.range||c.firstRange;if(l){i=l.start.row;var d=a.getFoldAt(i,a.getLine(i).length,1);d?a.removeFold(d):(a.addFold("...",l),s.renderer.scrollCursorIntoView({row:l.start.row,column:0}))}p.stop()}})}return g}();r.FoldHandler=h}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,f){var u=n("../lib/keys"),h=n("../lib/event"),g=function(){function s(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return s.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},s.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},s.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var i=this.$handlers.indexOf(p);i!=-1&&this.$handlers.splice(i,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),i==-1&&p.attach&&p.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(i){return i.getStatusText&&i.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,i,a){for(var c,l=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,p,o,i,a),!(!(!c||!c.command)&&(c.command=="null"?l=!0:l=d.exec(c.command,this.$editor,c.args,a),l&&a&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&h.stopEvent(a),l))););return!l&&p==-1&&(c={command:"insertstring"},l=d.exec("insertstring",this.$editor,o)),l&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),l},s.prototype.onCommandKey=function(p,o,i){var a=u.keyCodeToString(i);return this.$callKeyboardHandlers(o,a,i,p)},s.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},s}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,f){var u=0,h=0,g=!1,s=!1,p=!1,o=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],i=[[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,c=1,l=0,d=1,m=2,v=3,y=4,k=5,C=6,S=7,b=8,R=9,L=10,E=11,M=12,$=13,A=14,_=15,w=16,x=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,k,C,b,k,T,T,T,T,T,T,T,T,T,T,T,T,T,T,k,k,k,C,b,y,y,E,E,E,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,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,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,E,E,E,E,y,y,y,y,l,y,y,T,y,y,E,E,m,m,y,l,y,y,y,m,l,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,l,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,b,k,$,A,_,w,x,R,E,E,E,E,E,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,b];function F(H,V,G,q){var U=u?i:o,X=null,Y=null,z=null,ee=0,ue=null,D=null,B=-1,K=null,Q=null,te=[];if(!q)for(K=0,q=[];K<G;K++)q[K]=j(H[K]);for(h=u,g=!1,s=!1,p=!1,Q=0;Q<G;Q++){if(X=ee,te[Q]=Y=W(H,q,te,Q),ee=U[X][Y],ue=ee&240,ee&=15,V[Q]=z=U[ee][5],ue>0)if(ue==16){for(K=B;K<Q;K++)V[K]=1;B=-1}else B=-1;if(D=U[ee][6],D)B==-1&&(B=Q);else if(B>-1){for(K=B;K<Q;K++)V[K]=z;B=-1}q[Q]==k&&(V[Q]=0),h|=z}if(p){for(K=0;K<G;K++)if(q[K]==C){V[K]=u;for(var ae=K-1;ae>=0&&q[ae]==b;ae--)V[ae]=u}}}function P(H,V,G){if(!(h<H)){if(H==1&&u==c&&!s){G.reverse();return}for(var q=G.length,U=0,X,Y,z,ee;U<q;){if(V[U]>=H){for(X=U+1;X<q&&V[X]>=H;)X++;for(Y=U,z=X-1;Y<z;Y++,z--)ee=G[Y],G[Y]=G[z],G[z]=ee;U=X}U++}}}function W(H,V,G,q){var U=V[q],X,Y,z,ee;switch(U){case l:case d:g=!1;case y:case v:return U;case m:return g?v:m;case S:return g=!0,d;case b:return y;case R:return q<1||q+1>=V.length||(X=G[q-1])!=m&&X!=v||(Y=V[q+1])!=m&&Y!=v?y:(g&&(Y=v),Y==X?Y:y);case L:return X=q>0?G[q-1]:k,X==m&&q+1<V.length&&V[q+1]==m?m:y;case E:if(q>0&&G[q-1]==m)return m;if(g)return y;for(ee=q+1,z=V.length;ee<z&&V[ee]==E;)ee++;return ee<z&&V[ee]==m?m:y;case M:for(z=V.length,ee=q+1;ee<z&&V[ee]==M;)ee++;if(ee<z){var ue=H[q],D=ue>=1425&&ue<=2303||ue==64286;if(X=V[ee],D&&(X==d||X==S))return d}return q<1||(X=V[q-1])==k?y:G[q-1];case k:return g=!1,s=!0,u;case C:return p=!0,y;case $:case A:case w:case x:case _:g=!1;case T:return y}}function j(H){var V=H.charCodeAt(0),G=V>>8;return G==0?V>191?l:O[V]:G==5?/[\u0591-\u05f4]/.test(H)?d:l:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:V==1642?E:/[\u06f0-\u06f9]/.test(H)?m:S:G==32&&V<=8287?I[V&255]:G==254&&V>=65136?S:y}r.L=l,r.R=d,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(H,V,G){if(H.length<2)return{};var q=H.split(""),U=new Array(q.length),X=new Array(q.length),Y=[];u=G?c:a,F(q,Y,q.length,V);for(var z=0;z<U.length;U[z]=z,z++);P(2,Y,U),P(1,Y,U);for(var z=0;z<U.length-1;z++)V[z]===v?Y[z]=r.AN:Y[z]===d&&(V[z]>S&&V[z]<$||V[z]===y||V[z]===T)?Y[z]=r.ON_R:z>0&&q[z-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(q[z])&&(Y[z-1]=Y[z]=r.R_H,z++);q[q.length-1]===r.DOT&&(Y[q.length-1]=r.B),q[0]==="‫"&&(Y[0]=r.RLE);for(var z=0;z<U.length;z++)X[z]=Y[U[z]];return{logicalFromVisual:U,bidiLevels:X}},r.hasBidiCharacters=function(H,V){for(var G=!1,q=0;q<H.length;q++)V[q]=j(H.charAt(q)),!G&&(V[q]==d||V[q]==S||V[q]==v)&&(G=!0);return G},r.getVisualFromLogicalIdx=function(H,V){for(var G=0;G<V.logicalFromVisual.length;G++)if(V.logicalFromVisual[G]==H)return G;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,f){var u=n("./lib/bidiutil"),h=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function p(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 p.prototype.isBidiRow=function(o,i,a){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(i,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
1002
+ @license */var u=n("./oop"),h=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,p;for(p in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[p].toLowerCase(),g[s]=parseInt(p,10);for(p in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[p].toLowerCase(),g[s]=parseInt(p,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"],i=Math.pow(2,o.length);i--;)g.KEY_MODS[i]=o.filter(function(a){return i&g.KEY_MODS[a]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(r,h),r.default=r,r.keyCodeToString=function(g){var s=h[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,r,f){var u=n("./keys"),h=n("./useragent"),g=null,s=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function i(){return p==null&&o(),p}function a(k,C,S){this.elem=k,this.type=C,this.callback=S}a.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(k,C,S,b){k.addEventListener(C,S,i()),b&&b.$toDestroy.push(new a(k,C,S))},l=r.removeListener=function(k,C,S){k.removeEventListener(C,S,i())};r.stopEvent=function(k){return r.stopPropagation(k),r.preventDefault(k),!1},r.stopPropagation=function(k){k.stopPropagation&&k.stopPropagation()},r.preventDefault=function(k){k.preventDefault&&k.preventDefault()},r.getButton=function(k){return k.type=="dblclick"?0:k.type=="contextmenu"||h.isMac&&k.ctrlKey&&!k.altKey&&!k.shiftKey?2:k.button},r.capture=function(k,C,S){var b=k&&k.ownerDocument||document;function R(L){C&&C(L),S&&S(L),l(b,"mousemove",C),l(b,"mouseup",R),l(b,"dragstart",R)}return c(b,"mousemove",C),c(b,"mouseup",R),c(b,"dragstart",R),R},r.addMouseWheelListener=function(k,C,S){c(k,"wheel",function(b){var R=.15,L=b.deltaX||0,E=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=L*R,b.wheelY=E*R;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=L*M,b.wheelY=E*M;break;case b.DOM_DELTA_PAGE:var $=150;b.wheelX=L*$,b.wheelY=E*$;break}C(b)},S)},r.addMultiMouseDownListener=function(k,C,S,b,R){var L=0,E,M,$,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(w){if(r.getButton(w)!==0?L=0:w.detail>1?(L++,L>4&&(L=1)):L=1,h.isIE){var x=Math.abs(w.clientX-E)>5||Math.abs(w.clientY-M)>5;(!$||x)&&(L=1),$&&clearTimeout($),$=setTimeout(function(){$=null},C[L-1]||600),L==1&&(E=w.clientX,M=w.clientY)}if(w._clicks=L,S[b]("mousedown",w),L>4)L=0;else if(L>1)return S[b](A[L],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){c(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)};r.getModifierString=function(k){return u.KEY_MODS[d(k)]};function m(k,C,S){var b=d(C);if(!h.isMac&&g){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=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&&b===3&&R===2){var L=C.timeStamp-s;L<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!b&&S===13){var R="location"in C?C.location:C.keyLocation;if(R===3&&(k(C,b,-S),C.defaultPrevented))return}if(h.isChromeOS&&b&8){if(k(C,b,S),C.defaultPrevented)return;b&=-9}return!b&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:k(C,b,S)}r.addCommandKeyListener=function(k,C,S){var b=null;c(k,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var L=m(C,R,R.keyCode);return b=R.defaultPrevented,L},S),c(k,"keypress",function(R){b&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(r.stopEvent(R),b=null)},S),c(k,"keyup",function(R){g[R.keyCode]=null},S),g||(v(),c(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!h.isOldIE){var y=1;r.nextTick=function(k,C){C=C||window;var S="zero-timeout-message-"+y++,b=function(R){R.data==S&&(r.stopPropagation(R),l(C,"message",b),k())};c(C,"message",b),C.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(k,C){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):k()},C)},r.$idleBlockId=null,r.blockIdle=function(k){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},k||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,f){var u;f.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,r,f){var u=n("../lib/event"),h=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),i=g.isChrome<18,a=g.isIE,c=g.isChrome>63,l=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,k=g.isMobile,C;C=function(S,b){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","false"),R.style.opacity="0",S.insertBefore(R,S.firstChild);var L=!1,E=!1,M=!1,$=!1,A="";k||(R.style.fontSize="1px");var _=!1,w=!1,x="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===R}catch{}this.setNumberOfExtraLines=function(q){if(F=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,q<0){W=0;return}W=q},this.setAriaOptions=function(q){if(q.activeDescendant?(R.setAttribute("aria-haspopup","true"),R.setAttribute("aria-autocomplete",q.inline?"both":"list"),R.setAttribute("aria-activedescendant",q.activeDescendant)):(R.setAttribute("aria-haspopup","false"),R.setAttribute("aria-autocomplete","both"),R.removeAttribute("aria-activedescendant")),q.role&&R.setAttribute("role",q.role),q.setLabel&&(R.setAttribute("aria-roledescription",h("editor")),b.session)){var le=b.session.selection.cursor.row;R.setAttribute("aria-label",h("Cursor at row $0",[le+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(R,"blur",function(q){w||(b.onBlur(q),j=!1)},b),u.addListener(R,"focus",function(q){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(q),g.isEdge?setTimeout(V):V()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),A||c||this.$focusScroll=="browser")return R.focus({preventScroll:!0});var q=R.style.top;R.style.position="fixed",R.style.top="0px";try{var le=R.getBoundingClientRect().top!=0}catch{return}var de=[];if(le)for(var _e=R.parentElement;_e&&_e.nodeType==1;)de.push(_e),_e.setAttribute("ace_nocontext","true"),!_e.parentElement&&_e.getRootNode?_e=_e.getRootNode().host:_e=_e.parentElement;R.focus({preventScroll:!0}),le&&de.forEach(function(Ee){Ee.removeAttribute("ace_nocontext")}),setTimeout(function(){R.style.position="",R.style.top=="0px"&&(R.style.top=q)},0)},this.blur=function(){R.blur()},this.isFocused=function(){return j},b.on("beforeEndOperation",function(){var q=b.curOp,le=q&&q.command&&q.command.name;if(le!="insertstring"){var de=le&&(q.docChanged||q.selectionChanged);M&&de&&(x=R.value="",ae()),V()}});var H=function(q,le){for(var de=le,_e=1;_e<=q-F&&_e<2*W+1;_e++)de+=b.session.getLine(q-_e).length+1;return de},V=v?function(q){if(!(!j||L&&!q||$)){q||(q="");var le=`
1003
+ ab`+q+`cde fg
1004
+ `;le!=R.value&&(R.value=x=le);var de=4,_e=4+(q.length||(b.selection.isEmpty()?0:1));(T!=de||O!=_e)&&R.setSelectionRange(de,_e),T=de,O=_e}}:function(){if(!(M||$)&&!(!j&&!Z)){M=!0;var q=0,le=0,de="";if(b.session){var _e=b.selection,Ee=_e.getRange(),Me=_e.cursor.row;Me===P+1?(F=P+1,P=F+2*W):Me===F-1?(P=F-1,F=P-2*W):(Me<F-1||Me>P+1)&&(F=Me>W?Me-W:0,P=Me>W?Me+W:2*W);for(var Ue=[],je=F;je<=P;je++)Ue.push(b.session.getLine(je));if(de=Ue.join(`
1005
+ `),q=H(Ee.start.row,Ee.start.column),le=H(Ee.end.row,Ee.end.column),Ee.start.row<F){var De=b.session.getLine(F-1);q=Ee.start.row<F-1?0:q,le+=De.length+1,de=De+`
1006
+ `+de}else if(Ee.end.row>P){var Ne=b.session.getLine(P+1);le=Ee.end.row>P+1?Ne.length:Ee.end.column,le+=de.length+1,de=de+`
1007
+ `+Ne}else k&&Me>0&&(de=`
1008
+ `+de,le+=1,q+=1);de.length>l&&(q<l&&le<l?de=de.slice(0,l):(de=`
1009
+ `,q==le?q=le=0:(q=0,le=1)));var We=de+`
1010
+
1011
+ `;We!=x&&(R.value=x=We,T=O=We.length)}if(Z&&(T=R.selectionStart,O=R.selectionEnd),O!=le||T!=q||R.selectionEnd!=O)try{R.setSelectionRange(q,le),T=q,O=le}catch{}M=!1}};this.resetSelection=V,j&&b.onFocus();var G=function(q){return q.selectionStart===0&&q.selectionEnd>=x.length&&q.value===x&&x&&q.selectionEnd!==O},Q=function(q){M||(L?L=!1:G(R)?(b.selectAll(),V()):k&&R.selectionStart!=T&&V())},U=null;this.setInputHandler=function(q){U=q},this.getInputHandler=function(){return U};var Z=!1,Y=function(q,le){if(Z&&(Z=!1),E)return V(),q&&b.onPaste(q),E=!1,"";for(var de=R.selectionStart,_e=R.selectionEnd,Ee=T,Me=x.length-O,Ue=q,je=q.length-de,De=q.length-_e,Ne=0;Ee>0&&x[Ne]==q[Ne];)Ne++,Ee--;for(Ue=Ue.slice(Ne),Ne=1;Me>0&&x.length-Ne>T-1&&x[x.length-Ne]==q[q.length-Ne];)Ne++,Me--;je-=Ne-1,De-=Ne-1;var We=Ue.length-Ne+1;if(We<0&&(Ee=-We,We=0),Ue=Ue.slice(0,We),!le&&!Ue&&!je&&!Ee&&!Me&&!De)return"";$=!0;var ct=!1;return g.isAndroid&&Ue==". "&&(Ue=" ",ct=!0),Ue&&!Ee&&!Me&&!je&&!De||_?b.onTextInput(Ue):b.onTextInput(Ue,{extendLeft:Ee,extendRight:Me,restoreStart:je,restoreEnd:De}),$=!1,x=q,T=de,O=_e,I=De,ct?`
1012
+ `:Ue},z=function(q){if(M)return te();if(q&&q.inputType){if(q.inputType=="historyUndo")return b.execCommand("undo");if(q.inputType=="historyRedo")return b.execCommand("redo")}var le=R.value,de=Y(le,!0);(le.length>l+100||y.test(de)||k&&T<1&&T==O)&&V()},ee=function(q,le,de){var _e=q.clipboardData||window.clipboardData;if(!(!_e||i)){var Ee=a||de?"Text":"text/plain";try{return le?_e.setData(Ee,le)!==!1:_e.getData(Ee)}catch(Me){if(!de)return ee(Me,le,!0)}}},ue=function(q,le){var de=b.getCopyText();if(!de)return u.preventDefault(q);ee(q,de)?(v&&(V(de),L=de,setTimeout(function(){L=!1},10)),le?b.onCut():b.onCopy(),u.preventDefault(q)):(L=!0,R.value=de,R.select(),setTimeout(function(){L=!1,V(),le?b.onCut():b.onCopy()}))},D=function(q){ue(q,!0)},B=function(q){ue(q,!1)},K=function(q){var le=ee(q);o.pasteCancelled()||(typeof le=="string"?(le&&b.onPaste(le,q),g.isIE&&setTimeout(V),u.preventDefault(q)):(R.value="",E=!0))};u.addCommandKeyListener(R,b.onCommandKey.bind(b),b),u.addListener(R,"select",Q,b),u.addListener(R,"input",z,b),u.addListener(R,"cut",D,b),u.addListener(R,"copy",B,b),u.addListener(R,"paste",K,b),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&u.addListener(S,"keydown",function(q){if(!(g.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:B(q);break;case 86:K(q);break;case 88:D(q);break}},b);var J=function(q){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!_)){q.data&&(M.useTextareaForIME=!1),setTimeout(te,0),b._signal("compositionStart"),b.on("mousedown",fe);var le=b.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,M.markerRange=le,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(x=R.value="",T=0,O=0):(R.msGetInputContext&&(M.context=R.msGetInputContext()),R.getInputContext&&(M.context=R.getInputContext()))}},te=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(_)return fe();if(M.useTextareaForIME)b.onCompositionUpdate(R.value);else{var q=R.value;Y(q),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)}}},ae=function(q){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",fe),q&&z())};function fe(){w=!0,R.blur(),R.focus(),w=!1}var ce=p.delayedCall(te,50).schedule.bind(null,null);function he(q){q.keyCode==27&&R.value.length<R.selectionStart&&(M||(x=R.value),T=O=-1,V()),ce()}u.addListener(R,"compositionstart",J,b),u.addListener(R,"compositionupdate",te,b),u.addListener(R,"keyup",he,b),u.addListener(R,"keydown",ce,b),u.addListener(R,"compositionend",ae,b),this.getElement=function(){return R},this.setCommandMode=function(q){_=q,R.readOnly=!1},this.setReadOnly=function(q){_||(R.readOnly=q)},this.setCopyWithEmptySelection=function(q){},this.onContextMenu=function(q){Z=!0,V(),b._emit("nativecontextmenu",{target:b,domEvent:q}),this.moveToMouse(q,!0)},this.moveToMouse=function(q,le){A||(A=R.style.cssText),R.style.cssText=(le?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*b.renderer.characterWidth*.5+"px;";var de=b.container.getBoundingClientRect(),_e=s.computedStyle(b.container),Ee=de.top+(parseInt(_e.borderTopWidth)||0),Me=de.left+(parseInt(de.borderLeftWidth)||0),Ue=de.bottom-Ee-R.clientHeight-2,je=function(De){s.translate(R,De.clientX-Me-2,Math.min(De.clientY-Ee-2,Ue))};je(q),q.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(se),g.isWin&&u.capture(b.container,je,ge))},this.onContextMenuClose=ge;var se;function ge(){clearTimeout(se),se=setTimeout(function(){A&&(R.style.cssText=A,A=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Ce=function(q){b.textInput.onContextMenu(q),ge()};u.addListener(R,"mouseup",Ce,b),u.addListener(R,"mousedown",function(q){q.preventDefault(),ge()},b),u.addListener(b.renderer.scroller,"contextmenu",Ce,b),u.addListener(R,"contextmenu",Ce,b),v&&$e(S,b,R);function $e(q,le,de){var _e=null,Ee=!1;de.addEventListener("keydown",function(Ue){_e&&clearTimeout(_e),Ee=!0},!0),de.addEventListener("keyup",function(Ue){_e=setTimeout(function(){Ee=!1},100)},!0);var Me=function(Ue){if(document.activeElement===de&&!(Ee||M||le.$mouseHandler.isMousePressed)&&!L){var je=de.selectionStart,De=de.selectionEnd,Ne=null,We=0;if(je==0?Ne=d.up:je==1?Ne=d.home:De>O&&x[De]==`
1013
+ `?Ne=d.end:je<T&&x[je-1]==" "?(Ne=d.left,We=m.option):je<T||je==T&&O!=T&&je==De?Ne=d.left:De>O&&x.slice(0,De).split(`
1014
+ `).length>2?Ne=d.down:De>O&&x[De-1]==" "?(Ne=d.right,We=m.option):(De>O||De==O&&O!=T&&je==De)&&(Ne=d.right),je!==De&&(We|=m.shift),Ne){var ct=le.onCommandKey({},We,Ne);if(!ct&&le.commands){Ne=d.keyCodeToString(Ne);var Or=le.commands.findKeyCommand(We,Ne);Or&&le.execCommand(Or)}T=je,O=De,V("")}}};document.addEventListener("selectionchange",Me),le.on("destroy",function(){document.removeEventListener("selectionchange",Me)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=C,r.$setUserAgentForTests=function(S,b){k=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,f){var u=n("../lib/useragent"),h=0,g=550,s=function(){function i(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var l=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];l.forEach(function(d){a[d]=this[d]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return i.prototype.onMouseDown=function(a){var c=a.inSelection(),l=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(l),m==2&&(d.textInput.onContextMenu(a.domEvent),u.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(l,a.domEvent._clicks>1),a.preventDefault()},i.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var l=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?l.selection.selectToPosition(a):c||l.selection.moveToPosition(a),c||this.select(),l.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var a,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(l);if(d==-1)a=this.$clickSelection.end;else if(d==1)a=this.$clickSelection.start;else{var m=o(this.$clickSelection,l);l=m.cursor,a=m.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(a){var c,l=this.editor,d=l.renderer.screenToTextCoordinates(this.x,this.y),m=l.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)c=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&v>=0)c=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,c=m.start;else{var k=o(this.$clickSelection,d);d=k.cursor,c=k.anchor}l.selection.setSelectionAnchor(c.row,c.column)}l.selection.selectToPosition(d),l.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var a=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>h||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),l=this.editor,d=l.session,m=d.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=l.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},i.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),l=this.editor;this.setState("selectByLines");var d=l.getSelectionRange();d.isMultiLine()&&d.contains(c.row,c.column)?(this.$clickSelection=l.selection.getLineRange(d.start.row),this.$clickSelection.end=l.selection.getLineRange(d.end.row).end):this.$clickSelection=l.selection.getLineRange(c.row),this.select()},i.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var l=this.$lastScroll,d=a.domEvent.timeStamp,m=d-l.t,v=m?a.wheelX/m:l.vx,y=m?a.wheelY/m:l.vy;m<g&&(v=(v+l.vx)/2,y=(y+l.vy)/2);var k=Math.abs(v/y),C=!1;if(k>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(C=!0),k<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(C=!0),C)l.allowed=d;else if(d-l.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(l.vx)&&Math.abs(y)<=1.5*Math.abs(l.vy);S?(C=!0,l.allowed=d):l.allowed=0}if(l.t=d,l.vx=v,l.vy=y,C)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},i}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,r.DefaultHandlers=s;function p(i,a,c,l){return Math.sqrt(Math.pow(c-i,2)+Math.pow(l-a,2))}function o(i,a){if(i.start.row==i.end.row)var c=2*a.column-i.start.column-i.end.column;else if(i.start.row==i.end.row-1&&!i.start.column&&!i.end.column)var c=a.column-4;else var c=2*a.row-i.start.row-i.end.row;return c<0?{cursor:i.start,anchor:i.end}:{cursor:i.end,anchor:i.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,f){r.preventParentScroll=function(h){h.stopPropagation();var g=h.currentTarget,s=g.scrollHeight>g.clientHeight;s||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,f){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)}}(),h=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");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",i=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(m){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=h(this.popups),b=S.next();!b.done;b=S.next()){var R=b.value,L=!0;try{for(var E=(y=void 0,h(C)),M=E.next();!M.done;M=E.next()){var $=M.value;if(this.doPopupsOverlap($,R)){L=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=E.return)&&k.call(E)}finally{if(y)throw y.error}}L?C.push(R):R.hide()}}catch(A){m={error:A}}finally{try{b&&!b.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}(),c=new a;r.popupManager=c,r.Tooltip=i;var l=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",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var 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),b=y.session.documentToScreenPosition(k.row,k.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,C){var S=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=s.fromPoints(y.start,y.end);var R=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();R.pageX<L.left&&(R.pageX=L.left);var E=this.getElement();E.innerHTML="",E.appendChild(k),E.style.maxHeight="",E.style.display="block";var M=E.clientHeight,$=E.clientWidth,A=window.innerHeight-R.pageY-b.lineHeight,_=!0;R.pageY-M<0&&R.pageY<A&&(_=!1),E.style.maxHeight=(_?R.pageY:A)-S+"px",E.style.top=_?"":R.pageY+b.lineHeight+"px",E.style.bottom=_?window.innerHeight-R.pageY+"px":"",E.style.left=Math.min(R.pageX,window.innerWidth-$-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,c.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}(i);r.HoverTooltip=l}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,f){var u=this&&this.__extends||function(){var c=function(l,d){return c=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])},c(l,d)};return function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),h=this&&this.__values||function(c){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&c[l],m=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls;function i(c){var l=c.editor,d=l.renderer.$gutterLayer,m=new a(l);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!l.isFocused()||b.getButton()!=0)){var R=d.getRegion(b);if(R!="foldWidgets"){var L=b.getDocumentPosition().row,E=l.session.selection;if(b.getShiftKey())E.selectTo(L,0);else{if(b.domEvent.detail==2)return l.selectAll(),b.preventDefault();c.$clickSelection=l.selection.getLineRange(L)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var v,y;function k(){var b=y.getDocumentPosition().row,R=l.session.getLength();if(b==R){var L=l.renderer.pixelToScreenCoordinates(0,y.y).row,E=y.$pos;if(L>l.session.documentToScreenRow(E.row,E.column))return C()}if(m.showTooltip(b),!!m.isOpen)if(l.on("mousewheel",C),c.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),$=d.$lines.get(M);if($){var A=$.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(),l.off("mousewheel",C))}function S(b){m.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var R=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(R,"ace_fold-widget"))return C();m.isOpen&&c.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!c.isMousePressed?k():C()},50))}),s.addListener(l.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},l),l.on("changeSession",C),l.on("input",C)}r.GutterHandler=i;var a=function(c){u(l,c);function l(d){var m=c.call(this,d.container)||this;return m.editor=d,m}return l.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),p.prototype.setPosition.call(this,d,m)},Object.defineProperty(l,"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}),l.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,b=d+1;b<=k.end.row;b++)if(m.$annotations[b])for(var R=0;R<m.$annotations[b].text.length;R++){var L=m.$annotations[b].type[R];if(C[L].push(m.$annotations[b].text[R]),L==="error"){S="error_fold";continue}if(L==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var E="".concat(l.annotationsToSummaryString(C)," in folded code.");y.text.push(E),y.type.push(S)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},$=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var A="<span class='ace_".concat(y.type[b]," ").concat($,"' aria-label='").concat(l.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);M[y.type[b].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)},l.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},l.annotationsToSummaryString=function(d){var m,v,y=[],k=["error","warning","info"];try{for(var C=h(k),S=C.next();!S.done;S=C.next()){var b=S.value;if(d[b].length){var R=d[b].length===1?l.annotationLabels[b].singular:l.annotationLabels[b].plural;y.push("".concat(d[b].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(", ")},l}(p);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,f){var u=n("../lib/event"),h=n("../lib/useragent"),g=function(){function s(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return 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 p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-i},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=o.contains(i.row,i.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 h.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,f){var u=n("../lib/dom"),h=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function i(c){var l=c.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){c[H]=this[H]},this),l.on("mousedown",this.onMouseDown.bind(c));var v=l.container,y,k,C,S,b,R,L=0,E,M,$,A,_;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var V=this;return setTimeout(function(){V.startSelect(),V.captureMouse(H)},0),H.preventDefault()}b=l.getSelectionRange();var G=H.dataTransfer;G.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(d),G.setDragImage&&G.setDragImage(d,0,0),setTimeout(function(){l.container.removeChild(d)}),G.clearData(),G.setData("Text",l.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!l.getReadOnly()){var V=H.dataTransfer.dropEffect;!E&&V=="move"&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||O(),L++,H.dataTransfer.dropEffect=E=j(H),h.preventDefault(H)},this.onDragOver=function(H){if(!(l.getReadOnly()||!W(H.dataTransfer)))return k=H.clientX,C=H.clientY,y||(O(),L++),F!==null&&(F=null),H.dataTransfer.dropEffect=E=j(H),h.preventDefault(H)},this.onDragLeave=function(H){if(L--,L<=0&&y)return I(),E=null,h.preventDefault(H)},this.onDrop=function(H){if(R){var V=H.dataTransfer;if(M)switch(E){case"move":b.contains(R.row,R.column)?b={start:R,end:R}:b=l.moveText(b,R);break;case"copy":b=l.moveText(b,R,!0);break}else{var G=V.getData("Text");b={start:R,end:l.session.insert(R,G)},l.focus(),E=null}return I(),h.preventDefault(H)}},h.addListener(v,"dragstart",this.onDragStart.bind(c),l),h.addListener(v,"dragend",this.onDragEnd.bind(c),l),h.addListener(v,"dragenter",this.onDragEnter.bind(c),l),h.addListener(v,"dragover",this.onDragOver.bind(c),l),h.addListener(v,"dragleave",this.onDragLeave.bind(c),l),h.addListener(v,"drop",this.onDrop.bind(c),l);function w(H,V){var G=Date.now(),Q=!V||H.row!=V.row,U=!V||H.column!=V.column;if(!A||Q||U)l.moveCursorToPosition(H),A=G,_={x:k,y:C};else{var Z=a(_.x,_.y,k,C);Z>o?A=null:G-A>=p&&(l.renderer.scrollCursorIntoView(),A=null)}}function x(H,V){var G=Date.now(),Q=l.renderer.layerConfig.lineHeight,U=l.renderer.layerConfig.characterWidth,Z=l.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-Z.left,right:Z.right-k},y:{top:C-Z.top,bottom:Z.bottom-C}},z=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),ue={row:H.row,column:H.column};z/U<=2&&(ue.column+=Y.x.left<Y.x.right?-3:2),ee/Q<=1&&(ue.row+=Y.y.top<Y.y.bottom?-1:1);var D=H.row!=ue.row,B=H.column!=ue.column,K=!V||H.row!=V.row;D||B&&!K?$?G-$>=s&&l.renderer.scrollCursorIntoView(ue):$=G:$=null}function T(){var H=R;R=l.renderer.screenToTextCoordinates(k,C),w(R,H),x(R,H)}function O(){b=l.selection.toOrientedRange(),y=l.session.addMarker(b,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,h.addListener(document,"mousemove",P)}function I(){clearInterval(S),l.session.removeMarker(y),y=null,l.selection.fromOrientedRange(b),l.isFocused()&&!M&&l.$resetCursorStyle(),b=null,R=null,L=0,$=null,A=null,h.removeListener(document,"mousemove",P)}var F=null;function P(){F==null&&(F=setTimeout(function(){F!=null&&y&&I()},20))}function W(H){var V=H.types;return!V||Array.prototype.some.call(V,function(G){return G=="text/plain"||G=="Text"})}function j(H){var V=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],Q=g.isMac?H.altKey:H.ctrlKey,U="uninitialized";try{U=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return Q&&V.indexOf(U)>=0?Z="copy":G.indexOf(U)>=0?Z="move":V.indexOf(U)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,l=c.container;l.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var d=g.isWin?"default":"move";c.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&l.dragDrop()}if(this.state==="dragWait"){var d=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,d=c.inSelection(),m=c.getButton(),v=c.domEvent.detail||1;if(v===1&&m===0&&d){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),l.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var k=l.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(i.prototype);function a(c,l,d,m){return Math.sqrt(Math.pow(d-c,2)+Math.pow(m-l,2))}r.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,f){var u=n("./mouse_event").MouseEvent,h=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(s,p){var o="scroll",i,a,c,l,d,m,v=0,y,k=0,C=0,S=0,b,R;function L(){var w=window.navigator&&window.navigator.clipboard,x=!1,T=function(){var I=p.getCopyText(),F=p.session.getUndoManager().hasUndo();R.replaceChild(g.buildDom(x?["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"||!x)return x=!x,T();F=="paste"?w.readText().then(function(P){p.execCommand(F,P)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),R.firstChild.style.display="none",x=!1,F!="openCommandPalette"&&p.focus()};R=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),p.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function E(){R||L();var w=p.selection.cursor,x=p.renderer.textToScreenCoordinates(w.row,w.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();R.style.top=x.pageY-I.top-3+"px",x.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",p.on("input",M)}function M(w){R&&(R.style.display="none"),p.off("input",M)}function $(){d=null,clearTimeout(d);var w=p.selection.getRange(),x=w.contains(y.row,y.column);(w.isEmpty()||!x)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",E()}function A(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var w=k>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),o="wait"}h.addListener(s,"contextmenu",function(w){if(b){var x=p.textInput.getElement();x.focus()}},p),h.addListener(s,"touchstart",function(w){var x=w.touches;if(d||x.length>1){clearTimeout(d),d=null,c=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;l=I;var F=x[0],P=F.clientX,W=F.clientY;Math.abs(i-P)+Math.abs(a-W)>T&&(c=-1),i=w.clientX=P,a=w.clientY=W,C=S=0;var j=new u(w,p);if(y=j.getDocumentPosition(),I-c<500&&x.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var H=p.selection.cursor,V=p.selection.isEmpty()?H:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(H,!0),Q=p.renderer.$cursorLayer.getPixelPosition(V,!0),U=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,z=function(D,B){return D=D/O,B=B/T-.75,D*D+B*B};if(w.clientX<U.left){o="zoom";return}var ee=z(w.clientX-U.left-G.left+Y,w.clientY-U.top-G.top+Z),ue=z(w.clientX-U.left-Q.left+Y,w.clientY-U.top-Q.top+Z);ee<3.5&&ue<3.5&&(o=ee>ue?"cursor":"anchor"),ue<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",d=setTimeout($,450)}c=I},p),h.addListener(s,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(p.selection.moveToPosition(y),v=0,E()):o=="scroll"?(_(),M()):E(),clearTimeout(d),d=null},p),h.addListener(s,"touchmove",function(w){d&&(clearTimeout(d),d=null);var x=w.touches;if(!(x.length>1||o=="zoom")){var T=x[0],O=i-T.clientX,I=a-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();i=T.clientX,a=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,P=F-l;if(l=F,o=="scroll"){var W=new u(w,p);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),P!=0&&(C=O/P,S=I/P),p._emit("mousewheel",W),W.propagationStopped||(C=S=0)}else{var j=new u(w,p),H=j.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(H):o=="anchor"&&p.selection.setSelectionAnchor(H.row,H.column),p.renderer.scrollCursorIntoView(H),w.preventDefault()}}},p);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=p.session.getScrollTop();p.renderer.scrollBy(10*C,10*S),w==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,f){var u=n("../lib/event"),h=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,i=n("./touch_handler").addTouchListeners,a=n("../config"),c=function(){function l(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;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),i(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),h.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),b=d.session.selection.getRange(),R=d.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},d)}return l.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseMove=function(d,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(d,new p(m,this.editor))},l.prototype.onMouseWheel=function(d,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(d,v)},l.prototype.setState=function(d){this.state=d},l.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(E){if(E){if(h.isWebKit&&!E.which&&k.releaseMouse)return k.releaseMouse();k.x=E.clientX,k.y=E.clientY,m&&m(E),k.mouseEvent=new p(E,k.editor),k.$mouseMoved=!0}},S=function(E){v.off("beforeEndOperation",R),clearInterval(L),v.session&&b(),k[k.state+"End"]&&k[k.state+"End"](E),k.state="",k.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),k.$onCaptureMouseMove=k.releaseMouse=null,E&&k.onMouseEvent("mouseup",E),v.endOperation()},b=function(){k[k.state]&&k[k.state](),k.$mouseMoved=!1};if(h.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){S(d)});var R=function(E){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(b,20)},l.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)},l.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},l}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:h.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("../lib/dom"),h=function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),i=s.session,a=i.getFoldAt(o.row,o.column,1);a&&(p.getAccelKey()?i.removeFold(a):i.expandFold(a),p.stop());var c=p.domEvent&&p.domEvent.target;c&&u.hasCssClass(c,"ace_inline_button")&&u.hasCssClass(c,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var i=p.getDocumentPosition().row,a=s.session;a.foldWidgets&&a.foldWidgets[i]&&s.session.onFoldWidgetClick(i,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var i=p.getDocumentPosition().row,a=s.session,c=a.getParentFoldRangeData(i,!0),l=c.range||c.firstRange;if(l){i=l.start.row;var d=a.getFoldAt(i,a.getLine(i).length,1);d?a.removeFold(d):(a.addFold("...",l),s.renderer.scrollCursorIntoView({row:l.start.row,column:0}))}p.stop()}})}return g}();r.FoldHandler=h}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,f){var u=n("../lib/keys"),h=n("../lib/event"),g=function(){function s(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return s.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},s.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},s.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var i=this.$handlers.indexOf(p);i!=-1&&this.$handlers.splice(i,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),i==-1&&p.attach&&p.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(i){return i.getStatusText&&i.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,i,a){for(var c,l=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,p,o,i,a),!(!(!c||!c.command)&&(c.command=="null"?l=!0:l=d.exec(c.command,this.$editor,c.args,a),l&&a&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&h.stopEvent(a),l))););return!l&&p==-1&&(c={command:"insertstring"},l=d.exec("insertstring",this.$editor,o)),l&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),l},s.prototype.onCommandKey=function(p,o,i){var a=u.keyCodeToString(i);return this.$callKeyboardHandlers(o,a,i,p)},s.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},s}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,f){var u=0,h=0,g=!1,s=!1,p=!1,o=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],i=[[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,c=1,l=0,d=1,m=2,v=3,y=4,k=5,C=6,S=7,b=8,R=9,L=10,E=11,M=12,$=13,A=14,_=15,w=16,x=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,k,C,b,k,T,T,T,T,T,T,T,T,T,T,T,T,T,T,k,k,k,C,b,y,y,E,E,E,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,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,y,y,y,y,y,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,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,E,E,E,E,y,y,y,y,l,y,y,T,y,y,E,E,m,m,y,l,y,y,y,m,l,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,T,T,T,l,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,b,k,$,A,_,w,x,R,E,E,E,E,E,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,b];function F(H,V,G,Q){var U=u?i:o,Z=null,Y=null,z=null,ee=0,ue=null,D=null,B=-1,K=null,J=null,te=[];if(!Q)for(K=0,Q=[];K<G;K++)Q[K]=j(H[K]);for(h=u,g=!1,s=!1,p=!1,J=0;J<G;J++){if(Z=ee,te[J]=Y=W(H,Q,te,J),ee=U[Z][Y],ue=ee&240,ee&=15,V[J]=z=U[ee][5],ue>0)if(ue==16){for(K=B;K<J;K++)V[K]=1;B=-1}else B=-1;if(D=U[ee][6],D)B==-1&&(B=J);else if(B>-1){for(K=B;K<J;K++)V[K]=z;B=-1}Q[J]==k&&(V[J]=0),h|=z}if(p){for(K=0;K<G;K++)if(Q[K]==C){V[K]=u;for(var ae=K-1;ae>=0&&Q[ae]==b;ae--)V[ae]=u}}}function P(H,V,G){if(!(h<H)){if(H==1&&u==c&&!s){G.reverse();return}for(var Q=G.length,U=0,Z,Y,z,ee;U<Q;){if(V[U]>=H){for(Z=U+1;Z<Q&&V[Z]>=H;)Z++;for(Y=U,z=Z-1;Y<z;Y++,z--)ee=G[Y],G[Y]=G[z],G[z]=ee;U=Z}U++}}}function W(H,V,G,Q){var U=V[Q],Z,Y,z,ee;switch(U){case l:case d:g=!1;case y:case v:return U;case m:return g?v:m;case S:return g=!0,d;case b:return y;case R:return Q<1||Q+1>=V.length||(Z=G[Q-1])!=m&&Z!=v||(Y=V[Q+1])!=m&&Y!=v?y:(g&&(Y=v),Y==Z?Y:y);case L:return Z=Q>0?G[Q-1]:k,Z==m&&Q+1<V.length&&V[Q+1]==m?m:y;case E:if(Q>0&&G[Q-1]==m)return m;if(g)return y;for(ee=Q+1,z=V.length;ee<z&&V[ee]==E;)ee++;return ee<z&&V[ee]==m?m:y;case M:for(z=V.length,ee=Q+1;ee<z&&V[ee]==M;)ee++;if(ee<z){var ue=H[Q],D=ue>=1425&&ue<=2303||ue==64286;if(Z=V[ee],D&&(Z==d||Z==S))return d}return Q<1||(Z=V[Q-1])==k?y:G[Q-1];case k:return g=!1,s=!0,u;case C:return p=!0,y;case $:case A:case w:case x:case _:g=!1;case T:return y}}function j(H){var V=H.charCodeAt(0),G=V>>8;return G==0?V>191?l:O[V]:G==5?/[\u0591-\u05f4]/.test(H)?d:l:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:V==1642?E:/[\u06f0-\u06f9]/.test(H)?m:S:G==32&&V<=8287?I[V&255]:G==254&&V>=65136?S:y}r.L=l,r.R=d,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(H,V,G){if(H.length<2)return{};var Q=H.split(""),U=new Array(Q.length),Z=new Array(Q.length),Y=[];u=G?c:a,F(Q,Y,Q.length,V);for(var z=0;z<U.length;U[z]=z,z++);P(2,Y,U),P(1,Y,U);for(var z=0;z<U.length-1;z++)V[z]===v?Y[z]=r.AN:Y[z]===d&&(V[z]>S&&V[z]<$||V[z]===y||V[z]===T)?Y[z]=r.ON_R:z>0&&Q[z-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[z])&&(Y[z-1]=Y[z]=r.R_H,z++);Q[Q.length-1]===r.DOT&&(Y[Q.length-1]=r.B),Q[0]==="‫"&&(Y[0]=r.RLE);for(var z=0;z<U.length;z++)Z[z]=Y[U[z]];return{logicalFromVisual:U,bidiLevels:Z}},r.hasBidiCharacters=function(H,V){for(var G=!1,Q=0;Q<H.length;Q++)V[Q]=j(H.charAt(Q)),!G&&(V[Q]==d||V[Q]==S||V[Q]==v)&&(G=!0);return G},r.getVisualFromLogicalIdx=function(H,V){for(var G=0;G<V.logicalFromVisual.length;G++)if(V.logicalFromVisual[G]==H)return G;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,f){var u=n("./lib/bidiutil"),h=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function p(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 p.prototype.isBidiRow=function(o,i,a){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(i,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
1015
1015
  `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,i=this.session.$screenRowCache;if(i.length){var a=this.session.$getRowCacheIndex(i,this.currentRow);a>=0&&(o=this.session.$docRowCache[a])}return o},p.prototype.getSplitIndex=function(){var o=0,i=this.session.$screenRowCache;if(i.length)for(var a,c=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-o>0&&(a=this.session.$getRowCacheIndex(i,this.currentRow-o-1),a===c);)c=a,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,i){o===void 0&&(o=this.getDocumentRow());var a=o===this.session.getLength()-1,c=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 l=this.session.$wrapData[o];l&&(i===void 0&&(i=this.getSplitIndex()),i>0&&l.length?(this.wrapIndent=l.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=i<l.length?this.line.substring(l[i-1],l[i]):this.line.substring(l[l.length-1])):this.line=this.line.substring(0,l[i]),i==l.length&&(this.line+=this.showInvisibles?c:u.DOT))}else this.line+=this.showInvisibles?c: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,h.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)},p.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var i=this.characterWidth=o.$characterSize.width,a=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=i,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}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,i){for(var a=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=a.row;c++)!i&&o.session.getLine(c).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(c,0,1):i&&o.session.getLine(c).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:c},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var i=this.line.charAt(0)===this.RLE?1:0,a=o>i?this.session.getOverwrite()?o:o-1:i,c=u.getVisualFromLogicalIdx(a,this.bidiMap),l=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=i&&l[c]%2!==0&&c++;for(var m=0;m<c;m++)d+=this.charWidths[l[m]];return!this.session.getOverwrite()&&o>i&&l[c]%2===0&&(d+=this.charWidths[l[c]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(o,i){var a=this.bidiMap,c=a.bidiLevels,l,d=[],m=0,v=Math.min(o,i)-this.wrapIndent,y=Math.max(o,i)-this.wrapIndent,k=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,R=0;R<c.length;R++)b=a.logicalFromVisual[R],l=c[R],k=b>=v&&b<y,k&&!C?S=m:!k&&C&&d.push({left:S,width:m-S}),m+=this.charWidths[l],C=k;if(k&&R===c.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},p.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var i=0,a=Math.max(a,0),c=0,l=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[l]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+m/2;){if(c+=m,l===d.length-1){m=0;break}m=this.charWidths[d[++l]]}return l>0&&d[l-1]%2!==0&&d[l]%2===0?(a<c&&l--,i=this.bidiMap.logicalFromVisual[l]):l>0&&d[l-1]%2===0&&d[l]%2!==0?i=1+(a>c?this.bidiMap.logicalFromVisual[l]:this.bidiMap.logicalFromVisual[l-1]):this.isRtlDir&&l===d.length-1&&m===0&&d[l-1]%2===0||!this.isRtlDir&&l===0&&d[l]%2!==0?i=1+this.bidiMap.logicalFromVisual[l]:(l>0&&d[l-1]%2!==0&&m!==0&&l--,i=this.bidiMap.logicalFromVisual[l]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},p}();r.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,f){var u=n("./lib/oop"),h=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=function(){function o(i){this.session=i,this.doc=i.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(c){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&c.old.column!=c.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(i,a){this.$isEmpty=!1,this.anchor.setPosition(i,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 i=this.anchor,a=this.lead;return i.row>a.row||i.row==a.row&&i.column>a.column},o.prototype.getRange=function(){var i=this.anchor,a=this.lead;return this.$isEmpty?s.fromPoints(a,a):this.isBackwards()?s.fromPoints(a,i):s.fromPoints(i,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(i,a){var c=a?i.end:i.start,l=a?i.start:i.end;this.$setSelection(c.row,c.column,l.row,l.column)},o.prototype.$setSelection=function(i,a,c,l){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,a),this.cursor.setPosition(c,l),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(i){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),i.call(this)},o.prototype.selectTo=function(i,a){this.$moveSelection(function(){this.moveCursorTo(i,a)})},o.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},o.prototype.moveTo=function(i,a){this.clearSelection(),this.moveCursorTo(i,a)},o.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},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(i,a){if(typeof a>"u"){var c=i||this.lead;i=c.row,a=c.column}return this.session.getWordRange(i,a)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var i=this.getCursor(),a=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(a)},o.prototype.getLineRange=function(i,a){var c=typeof i=="number"?i:this.lead.row,l,d=this.session.getFoldLine(c);return d?(c=d.start.row,l=d.end.row):l=c,a===!0?new s(c,0,l,this.session.getLine(l).length):new s(c,0,l+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(i,a,c){var l=i.column,d=i.column+a;return c<0&&(l=i.column-a,d=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(l,d).split(" ").length-1==a},o.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),a;if(a=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),a;if(a=this.session.getFoldAt(i.row,i.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 c=this.session.getTabSize(),i=this.lead;this.wouldMoveIntoSoftTab(i,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var i=this.lead.row,a=this.lead.column,c=this.session.documentToScreenRow(i,a),l=this.session.screenToDocumentPosition(c,0),d=this.session.getDisplayLine(i,null,l.row,l.column),m=d.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(l.column+=m[0].length),this.moveCursorToPosition(l)},o.prototype.moveCursorLineEnd=function(){var i=this.lead,a=this.session.getDocumentLastRowColumnPosition(i.row,i.column);if(this.lead.column==a.column){var c=this.session.getLine(a.row);if(a.column==c.length){var l=c.search(/\s+$/);l>0&&(a.column=l)}}this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,a=this.doc.getLine(i).length;this.moveCursorTo(i,a)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,a=this.lead.column,c=this.doc.getLine(i),l=c.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(i,a,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(l)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,l=c.substring(a)),a>=c.length){this.moveCursorTo(i,c.length),this.moveCursorRight(),i<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(l)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,a)},o.prototype.moveCursorLongWordLeft=function(){var i=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(i,a,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var l=this.session.getFoldStringAt(i,a,-1);l==null&&(l=this.doc.getLine(i).substring(0,a));var d=h.stringReverse(l);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(i,0),this.moveCursorLeft(),i>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,a)},o.prototype.$shortWordEndIndex=function(i){var a=0,c,l=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(i))a=this.session.tokenRe.lastIndex;else{for(;(c=i[a])&&l.test(c);)a++;if(a<1){for(d.lastIndex=0;(c=i[a])&&!d.test(c);)if(d.lastIndex=0,a++,l.test(c))if(a>2){a--;break}else{for(;(c=i[a])&&l.test(c);)a++;if(a>2)break}}}return d.lastIndex=0,a},o.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,a=this.lead.column,c=this.doc.getLine(i),l=c.substring(a),d=this.session.getFoldAt(i,a,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(a==c.length){var m=this.doc.getLength();do i++,l=this.doc.getLine(i);while(i<m&&/^\s*$/.test(l));/^\s+/.test(l)||(l=""),a=0}var v=this.$shortWordEndIndex(l);this.moveCursorTo(i,a+v)},o.prototype.moveCursorShortWordLeft=function(){var i=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(i,a,-1))return this.moveCursorTo(c.start.row,c.start.column);var l=this.session.getLine(i).substring(0,a);if(a===0){do i--,l=this.doc.getLine(i);while(i>0&&/^\s*$/.test(l));a=l.length,/\s+$/.test(l)||(l="")}var d=h.stringReverse(l),m=this.$shortWordEndIndex(d);return this.moveCursorTo(i,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(i,a){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),l;if(a===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(l=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(l/this.session.$bidiHandler.charWidths[0])):l=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),i!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];i<0?i-=d.rowsAbove||0:i>0&&(i+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+i,c.column,l);i!==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(i){this.moveCursorTo(i.row,i.column)},o.prototype.moveCursorTo=function(i,a,c){var l=this.session.getFoldAt(i,a,1);l&&(i=l.start.row,a=l.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(d.charAt(a))&&d.charAt(a-1)&&(this.lead.row==i&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(i,a),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(i,a,c){var l=this.session.screenToDocumentPosition(i,a);this.moveCursorTo(l.row,l.column,c)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(i){var a=this.getRange();return i?(i.start.column=a.start.column,i.start.row=a.start.row,i.end.column=a.end.column,i.end.row=a.end.row):i=a,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},o.prototype.getRangeOfMovements=function(i){var a=this.getCursor();try{i(this);var c=this.getCursor();return s.fromPoints(a,c)}catch{return s.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},o.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(a){var c=a.clone();return c.isBackwards=a.cursor==a.start,c});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},o.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var a=i.length;a--;){var c=s.fromPoints(i[a].start,i[a].end);i[a].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},o.prototype.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(i[a]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,u.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,f){var u=n("./lib/report_error").reportError,h=2e3,g=function(){function s(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var i=this.states[o],a=[],c=0,l=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],v=0;v<i.length;v++){var y=i[v];if(y.defaultToken&&(l.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,b){return"\\"+(parseInt(b,10)+c+1)}):(C=1,k=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),l[c]=v,c+=C,a.push(k),y.onMatch||(y.onMatch=null)}}a.length||(l[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(p){h=p|0},s.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),i=this.token.apply(this,o);if(typeof i=="string")return[{type:i,value:p}];for(var a=[],c=0,l=i.length;c<l;c++)o[c]&&(a[a.length]={type:i[c],value:o[c]});return a},s.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var i=[],a=this.tokenArray,c=0,l=a.length;c<l;c++)o[c+1]&&(i[i.length]={type:a[c],value:o[c+1]});return i},s.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(i,a){return a?"(?:":i});return o},s.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var i=0,a=!1,c={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(l,d,m,v,y,k){return a?a=y!="]":y?a=!0:v?(i==c.stack&&(c.end=k+1,c.stack=-1),i--):m&&(i++,m.length!=1&&(c.stack=i,c.start=k)),l}),c.end!=null&&/^\)*$/.test(p.substr(c.end))&&(p=p.substring(0,c.start)+p.substr(c.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},s.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var i=o.slice(0);o=i[0],o==="#tmp"&&(i.shift(),o=i.shift())}else var i=[];var a=o||"start",c=this.states[a];c||(a="start",c=this.states[a]);var l=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(p);){var S=l.defaultToken,b=null,R=m[0],L=d.lastIndex;if(L-R.length>y){var E=p.substring(y,L-R.length);C.type==S?C.value+=E:(C.type&&v.push(C),C={type:S,value:E})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){b=c[l[M]],b.onMatch?S=b.onMatch(R,a,i,p):S=b.token,b.next&&(typeof b.next=="string"?a=b.next:a=b.next(a,i),c=this.states[a],c||(this.reportError("state doesn't exist",a),a="start",c=this.states[a]),l=this.matchMappings[a],y=L,d=this.regExps[a],d.lastIndex=L),b.consumeLineEnd&&(y=L);break}if(R){if(typeof S=="string")(!b||b.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==p.length)break;if(y=L,k++>h){for(k>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y<p.length;)C.type&&v.push(C),C={value:p.substring(y,y+=500),type:"overflow"};a="start",i=[];break}}return C.type&&v.push(C),i.length>1&&i[0]!==a&&i.unshift("#tmp",a),{tokens:v,state:i.length?i:a}},s}();g.prototype.reportError=u,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,f){var u=n("../lib/deep_copy").deepCopy,h;h=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var i in p)this.$rules[i]=p[i];return}for(var i in p){for(var a=p[i],c=0;c<a.length;c++){var l=a[c];(l.next||l.onMatch)&&(typeof l.next=="string"&&l.next.indexOf(o)!==0&&(l.next=o+l.next),l.nextState&&l.nextState.indexOf(o)!==0&&(l.nextState=o+l.nextState))}this.$rules[o+i]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,i,a,c){var l=typeof p=="function"?new p().getRules():p;if(a)for(var d=0;d<a.length;d++)a[d]=o+a[d];else{a=[];for(var m in l)a.push(o+m)}if(this.addRules(l,o),i)for(var v=Array.prototype[c?"push":"unshift"],d=0;d<a.length;d++)v.apply(this.$rules[a[d]],u(i));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},s=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function i(a){var c=o[a];c.processed=!0;for(var l=0;l<c.length;l++){var d=c[l],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+=p++)),o[y]=v,d.next=y,i(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(b){return o[b]}):m=o[C]),m){var S=[l,1].concat(m);d.noEscape&&(S=S.filter(function(b){return!b.next})),c.splice.apply(c,S),l--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(i,this)},this.createKeywordMapper=function(p,o,i,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(l){for(var d=p[l],m=d.split(a||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),i&&(y=y.toLowerCase()),c[y]=l}},this),p=null,i?function(l){return c[l.toLowerCase()]||o}:function(l){return c[l]||o}},this.getKeywords=function(){return this.$keywords}}).call(h.prototype),r.TextHighlightRules=h}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,f){var u;u=function(){this.$behaviours={}},(function(){this.add=function(h,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[h]:this.$behaviours[h]={}}this.$behaviours[h][g]=s},this.addBehaviours=function(h){for(var g in h)for(var s in h[g])this.add(g,s,h[g][s])},this.remove=function(h){this.$behaviours&&this.$behaviours[h]&&delete this.$behaviours[h]},this.inherit=function(h,g){if(typeof h=="function")var s=new h().getBehaviours(g);else var s=h.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(h){if(h){for(var g={},s=0;s<h.length;s++)this.$behaviours[h[s]]&&(g[h[s]]=this.$behaviours[h[s]]);return g}else return this.$behaviours}}).call(u.prototype),r.Behaviour=u}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,f){var u=n("./range").Range,h=function(){function g(s,p,o){this.$session=s,this.$row=p,this.$rowTokens=s.getTokens(p);var i=s.getTokenAt(p,o);this.$tokenIndex=i?i.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,p=this.$tokenIndex,o=s[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=s[p].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],p=this.getCurrentTokenColumn();return new u(this.$row,p,this.$row,p+s.value.length)},g}();r.TokenIterator=h}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,f){var u=n("../../lib/oop"),h=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,a={},c={'"':'"',"'":"'"},l=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 i=a[y];i=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;m=function(v){v=v||{},this.add("braces","insertion",function(y,k,C,S,b){var R=C.getCursorPosition(),L=S.doc.getLine(R.row);if(b=="{"){l(C);var E=C.getSelectionRange(),M=S.doc.getTextRange(E);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return d(E,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(b=="}"){l(C);var $=L.substring(R.column,R.column+1);if($=="}"){var A=S.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(A!==null&&m.isAutoInsertedClosing(R,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
1016
1016
  `||b==`\r
1017
1017
  `){l(C);var _="";m.isMaybeInsertedClosing(R,L)&&(_=s.stringRepeat("}",i.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var $=L.substring(R.column,R.column+1);if($==="}"){var w=S.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!w)return null;var x=this.$getIndent(S.getLine(w.row))}else if(_)var x=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=x+S.getTabString();return{text:`
1018
1018
  `+T+`
1019
1019
  `+x+_,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,k,C,S,b){var R=S.doc.getTextRange(b);if(!b.isMultiLine()&&R=="{"){l(C);var L=S.doc.getLine(b.start.row),E=L.substring(b.end.column,b.end.column+1);if(E=="}")return b.end.column++,b;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,k,C,S,b){if(b=="("){l(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(b==")"){l(C);var E=C.getCursorPosition(),M=S.doc.getLine(E.row),$=M.substring(E.column,E.column+1);if($==")"){var A=S.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(A!==null&&m.isAutoInsertedClosing(E,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,k,C,S,b){var R=S.doc.getTextRange(b);if(!b.isMultiLine()&&R=="("){l(C);var L=S.doc.getLine(b.start.row),E=L.substring(b.start.column+1,b.start.column+2);if(E==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,k,C,S,b){if(b=="["){l(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(b=="]"){l(C);var E=C.getCursorPosition(),M=S.doc.getLine(E.row),$=M.substring(E.column,E.column+1);if($=="]"){var A=S.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(A!==null&&m.isAutoInsertedClosing(E,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,k,C,S,b){var R=S.doc.getTextRange(b);if(!b.isMultiLine()&&R=="["){l(C);var L=S.doc.getLine(b.start.row),E=L.substring(b.start.column+1,b.start.column+2);if(E=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,k,C,S,b){var R=S.$mode.$quotes||c;if(b.length==1&&R[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;l(C);var L=b,E=C.getSelectionRange(),M=S.doc.getTextRange(E);if(M!==""&&(M.length!=1||!R[M])&&C.getWrapBehavioursEnabled())return d(E,M,L,L);if(!M){var $=C.getCursorPosition(),A=S.doc.getLine($.row),_=A.substring($.column-1,$.column),w=A.substring($.column,$.column+1),x=S.getTokenAt($.row,$.column),T=S.getTokenAt($.row,$.column+1);if(_=="\\"&&x&&/escape/.test(x.type))return null;var O=x&&/string|escape/.test(x.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 P=S.$mode.tokenRe;P.lastIndex=0;var W=P.test(_);P.lastIndex=0;var j=P.test(w),H=S.$mode.$pairQuotesAfter,V=H&&H[L]&&H[L].test(_);if(!V&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var G=A[$.column-2];if(_==L&&(G==L||P.test(G)))return null;F=!0}return{text:F?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,k,C,S,b){var R=S.$mode.$quotes||c,L=S.doc.getTextRange(b);if(!b.isMultiLine()&&R.hasOwnProperty(L)){l(C);var E=S.doc.getLine(b.start.row),M=E.substring(b.start.column+1,b.start.column+2);if(M==L)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,k,C,S,b){if(y==="doc-start"&&(b===`
1020
1020
  `||b===`\r
1021
- `)&&C.selection.isEmpty()){var R=C.getCursorPosition(),L=S.doc.getLine(R.row),E=S.doc.getLine(R.row+1),M=this.$getIndent(L);if(/\s*\*/.test(E))return/^\s*\*/.test(L)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,R.column)))return{text:b+M+" * "+b+" "+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",p)){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",p))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,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=C.row,i.autoInsertedLineEnd=k+S.substr(C.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=C.row,i.maybeInsertedLineStart=S.substr(0,C.column)+k,i.maybeInsertedLineEnd=S.substr(C.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&k===i.autoInsertedLineEnd[0]&&y.substr(v.column)===i.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return i.maybeInsertedBrackets>0&&v.row===i.maybeInsertedRow&&y.substr(v.column)===i.maybeInsertedLineEnd&&y.substr(0,v.column)==i.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},u.inherits(m,h),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,f){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],h=0,g=[],s=0;s<u.length;s+=2)g.push(h+=u[s]),u[s+1]&&g.push(45,h+=u[s+1]);r.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,r,f){var u=n("../config"),h=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),i=n("../token_iterator").TokenIterator,a=n("../range").Range,c;c=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new h(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(l,d,m,v){var y=d.doc,k=!0,C=!0,S=1/0,b=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 V=j.match(M);if(V){var G=V[1].length,q=V[0].length;!T(j,G,q)&&V[0][q-1]==" "&&q--,y.removeInLine(H,G,q)}},x=L+" ",A=function(j,H){(!k||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:H,column:S},x):y.insertInLine({row:H,column:S},L))},w=function(j,H){return M.test(j)},T=function(j,H,V){for(var G=0;H--&&j.charAt(H)==" ";)G++;if(G%b!=0)return!1;for(var G=0;j.charAt(V++)==" ";)G++;return b>2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,E=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(L)+")"),$=new RegExp("(?:"+o.escapeRegExp(E)+")\\s*$"),A=function(F,P){w(F,P)||(!k||/\S/.test(F))&&(y.insertInLine({row:P,column:F.length},E),y.insertInLine({row:P,column:S},L))},_=function(F,P){var W;(W=F.match($))&&y.removeInLine(P,F.length-W[0].length,F.length),(W=F.match(M))&&y.removeInLine(P,W[1].length,W[0].length)},w=function(F,P){if(M.test(F))return!0;for(var W=d.getTokens(P),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(F){for(var P=m;P<=v;P++)F(y.getLine(P),P)}var I=1/0;O(function(F,P){var W=F.search(/\S/);W!==-1?(W<S&&(S=W),C&&!w(F,P)&&(C=!1)):I>F.length&&(I=F.length)}),S==1/0&&(S=I,k=!1,C=!1),R&&S%b!=0&&(S=Math.floor(S/b)*b),O(C?_:A)},this.toggleBlockComment=function(l,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new i(d,v.row,v.column),C=k.getCurrentToken();d.selection;var S=d.selection.toOrientedRange(),b,R;if(C&&/comment/.test(C.type)){for(var L,E;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var $=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;L=new a($,A,$,A+y.start.length);break}C=k.stepBackward()}for(var k=new i(d,v.row,v.column),C=k.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var $=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;E=new a($,A,$,A+y.end.length);break}C=k.stepForward()}E&&d.remove(E),L&&(d.remove(L),b=L.start.row,R=-y.start.length)}else R=y.start.length,b=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);S.start.row==b&&(S.start.column+=R),S.end.row==b&&(S.end.column+=R),d.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(l,d,m){return this.$getIndent(d)},this.checkOutdent=function(l,d,m){return!1},this.autoOutdent=function(l,d,m){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){this.$embeds=[],this.$modes={};for(var d in l)if(l[d]){var m=l[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"],C=function(b){(function(R){var L=k[b],E=R[L];R[k[b]]=function(){return this.$delegator(L,arguments,E)}})(S)},S=this,d=0;d<k.length;d++)C(d)},this.$delegator=function(l,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[l].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[l].apply(k,d)}}var b=m.apply(this,d);return m?b:void 0},this.transformAction=function(l,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(l){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,b=y[k].token.length;S<b;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 l?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(l,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(c.prototype),r.Mode=c}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,f){r.applyDelta=function(u,h,g){var s=h.start.row,p=h.start.column,o=u[s]||"";switch(h.action){case"insert":var i=h.lines;if(i.length===1)u[s]=o.substring(0,p)+h.lines[0]+o.substring(p);else{var a=[s,1].concat(h.lines);u.splice.apply(u,a),u[s]=o.substring(0,p)+u[s],u[s+h.lines.length-1]+=o.substring(p)}break;case"remove":var c=h.end.column,l=h.end.row;s===l?u[s]=o.substring(0,p)+o.substring(c):u.splice(s,l-s+1,o.substring(0,p)+u[l].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,f){var u=n("./lib/oop"),h=n("./lib/event_emitter").EventEmitter,g=function(){function o(i,a,c){this.$onChange=this.onChange.bind(this),this.attach(i),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var a=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},o.prototype.setPosition=function(i,a,c){var l;if(c?l={row:i,column:a}:l=this.$clipPositionToDocument(i,a),!(this.row==l.row&&this.column==l.column)){var d={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:d,value:l})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(i,a){var c={};return i>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):i<0?(c.row=0,c.column=0):(c.row=i,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,h);function s(o,i,a){var c=a?o.column<=i.column:o.column<i.column;return o.row<i.row||o.row==i.row&&c}function p(o,i,a){var c=o.action=="insert",l=(c?1:-1)*(o.end.row-o.start.row),d=(c?1:-1)*(o.end.column-o.start.column),m=o.start,v=c?m:o.end;return s(i,m,a)?{row:i.row,column:i.column}:s(v,i,!a)?{row:i.row+l,column:i.column+(i.row==v.row?d:0)}:{row:m.row,column:m.column}}r.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,r,f){var u=n("./lib/oop"),h=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=function(){function i(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 i.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},i.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},i.prototype.createAnchor=function(a,c){return new p(this,a,c)},i.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
1021
+ `)&&C.selection.isEmpty()){var R=C.getCursorPosition(),L=S.doc.getLine(R.row),E=S.doc.getLine(R.row+1),M=this.$getIndent(L);if(/\s*\*/.test(E))return/^\s*\*/.test(L)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,R.column)))return{text:b+M+" * "+b+" "+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",p)){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",p))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,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=C.row,i.autoInsertedLineEnd=k+S.substr(C.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=C.row,i.maybeInsertedLineStart=S.substr(0,C.column)+k,i.maybeInsertedLineEnd=S.substr(C.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&k===i.autoInsertedLineEnd[0]&&y.substr(v.column)===i.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return i.maybeInsertedBrackets>0&&v.row===i.maybeInsertedRow&&y.substr(v.column)===i.maybeInsertedLineEnd&&y.substr(0,v.column)==i.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},u.inherits(m,h),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,f){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],h=0,g=[],s=0;s<u.length;s+=2)g.push(h+=u[s]),u[s+1]&&g.push(45,h+=u[s+1]);r.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,r,f){var u=n("../config"),h=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),i=n("../token_iterator").TokenIterator,a=n("../range").Range,c;c=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new h(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(l,d,m,v){var y=d.doc,k=!0,C=!0,S=1/0,b=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 V=j.match(M);if(V){var G=V[1].length,Q=V[0].length;!T(j,G,Q)&&V[0][Q-1]==" "&&Q--,y.removeInLine(H,G,Q)}},x=L+" ",A=function(j,H){(!k||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:H,column:S},x):y.insertInLine({row:H,column:S},L))},w=function(j,H){return M.test(j)},T=function(j,H,V){for(var G=0;H--&&j.charAt(H)==" ";)G++;if(G%b!=0)return!1;for(var G=0;j.charAt(V++)==" ";)G++;return b>2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,E=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(L)+")"),$=new RegExp("(?:"+o.escapeRegExp(E)+")\\s*$"),A=function(F,P){w(F,P)||(!k||/\S/.test(F))&&(y.insertInLine({row:P,column:F.length},E),y.insertInLine({row:P,column:S},L))},_=function(F,P){var W;(W=F.match($))&&y.removeInLine(P,F.length-W[0].length,F.length),(W=F.match(M))&&y.removeInLine(P,W[1].length,W[0].length)},w=function(F,P){if(M.test(F))return!0;for(var W=d.getTokens(P),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(F){for(var P=m;P<=v;P++)F(y.getLine(P),P)}var I=1/0;O(function(F,P){var W=F.search(/\S/);W!==-1?(W<S&&(S=W),C&&!w(F,P)&&(C=!1)):I>F.length&&(I=F.length)}),S==1/0&&(S=I,k=!1,C=!1),R&&S%b!=0&&(S=Math.floor(S/b)*b),O(C?_:A)},this.toggleBlockComment=function(l,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new i(d,v.row,v.column),C=k.getCurrentToken();d.selection;var S=d.selection.toOrientedRange(),b,R;if(C&&/comment/.test(C.type)){for(var L,E;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var $=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;L=new a($,A,$,A+y.start.length);break}C=k.stepBackward()}for(var k=new i(d,v.row,v.column),C=k.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var $=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;E=new a($,A,$,A+y.end.length);break}C=k.stepForward()}E&&d.remove(E),L&&(d.remove(L),b=L.start.row,R=-y.start.length)}else R=y.start.length,b=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);S.start.row==b&&(S.start.column+=R),S.end.row==b&&(S.end.column+=R),d.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(l,d,m){return this.$getIndent(d)},this.checkOutdent=function(l,d,m){return!1},this.autoOutdent=function(l,d,m){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){this.$embeds=[],this.$modes={};for(var d in l)if(l[d]){var m=l[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"],C=function(b){(function(R){var L=k[b],E=R[L];R[k[b]]=function(){return this.$delegator(L,arguments,E)}})(S)},S=this,d=0;d<k.length;d++)C(d)},this.$delegator=function(l,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[l].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[l].apply(k,d)}}var b=m.apply(this,d);return m?b:void 0},this.transformAction=function(l,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(l){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,b=y[k].token.length;S<b;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 l?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(l,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(c.prototype),r.Mode=c}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,f){r.applyDelta=function(u,h,g){var s=h.start.row,p=h.start.column,o=u[s]||"";switch(h.action){case"insert":var i=h.lines;if(i.length===1)u[s]=o.substring(0,p)+h.lines[0]+o.substring(p);else{var a=[s,1].concat(h.lines);u.splice.apply(u,a),u[s]=o.substring(0,p)+u[s],u[s+h.lines.length-1]+=o.substring(p)}break;case"remove":var c=h.end.column,l=h.end.row;s===l?u[s]=o.substring(0,p)+o.substring(c):u.splice(s,l-s+1,o.substring(0,p)+u[l].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,f){var u=n("./lib/oop"),h=n("./lib/event_emitter").EventEmitter,g=function(){function o(i,a,c){this.$onChange=this.onChange.bind(this),this.attach(i),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var a=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},o.prototype.setPosition=function(i,a,c){var l;if(c?l={row:i,column:a}:l=this.$clipPositionToDocument(i,a),!(this.row==l.row&&this.column==l.column)){var d={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:d,value:l})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(i,a){var c={};return i>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):i<0?(c.row=0,c.column=0):(c.row=i,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,h);function s(o,i,a){var c=a?o.column<=i.column:o.column<i.column;return o.row<i.row||o.row==i.row&&c}function p(o,i,a){var c=o.action=="insert",l=(c?1:-1)*(o.end.row-o.start.row),d=(c?1:-1)*(o.end.column-o.start.column),m=o.start,v=c?m:o.end;return s(i,m,a)?{row:i.row,column:i.column}:s(v,i,!a)?{row:i.row+l,column:i.column+(i.row==v.row?d:0)}:{row:m.row,column:m.column}}r.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,r,f){var u=n("./lib/oop"),h=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=function(){function i(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 i.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},i.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},i.prototype.createAnchor=function(a,c){return new p(this,a,c)},i.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
1022
1022
  `,this._signal("changeNewLineMode")},i.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
1023
1023
  `;case"unix":return`
1024
1024
  `;default:return this.$autoNewLine||`
@@ -1031,16 +1031,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1031
1031
  `):b=a(S.value)),S.start&&(b+=a(S)),(S.id||S.rev)&&(b+=" ("+(S.id||S.rev)+")"),b}function a(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function c(S,b){var R=S.action=="insert",L=b.action=="insert";if(R&&L)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.start,S.start)<=0)m(S,b,1);else return null;else if(R&&!L)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!R&&L)if(s(b.start,S.start)>=0)m(b,S,1);else if(s(b.start,S.start)<=0)m(S,b,1);else return null;else if(!R&&!L)if(s(b.start,S.start)>=0)m(b,S,1);else if(s(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function l(S,b){for(var R=S.length;R--;)for(var L=0;L<b.length;L++)if(!c(S[R],b[L])){for(;R<S.length;){for(;L--;)c(b[L],S[R]);L=b.length,R++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function d(S,b){var R=S.action=="insert",L=b.action=="insert";if(R&&L)s(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(R&&!L)s(S.start,b.end)>=0?m(S,b,-1):(s(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!R&&L)s(b.start,S.end)>=0?m(b,S,-1):(s(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!R&&!L)if(s(b.start,S.end)>=0)m(b,S,-1);else if(s(b.end,S.start)<=0)m(S,b,-1);else{var E,M;return s(S.start,b.start)<0&&(E=S,S=y(S,b.start)),s(S.end,b.end)>0&&(M=y(S,b.end)),v(b.end,S.start,S.end,-1),M&&!E&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[b,E,M].filter(Boolean)}return[b,S]}function m(S,b,R){v(S.start,b.start,b.end,R),v(S.end,b.start,b.end,R)}function v(S,b,R,L){S.row==(L==1?b:R).row&&(S.column+=L*(R.column-b.column)),S.row+=L*(R.row-b.row)}function y(S,b){var R=S.lines,L=S.end;S.end=p(b);var E=S.end.row-S.start.row,M=R.splice(E,R.length),$=E?b.column:b.column-S.start.column;R.push(M[0].substring(0,$)),M[0]=M[0].substr($);var A={start:p(b),end:L,lines:M,action:S.action};return A}function k(S,b){b=o(b);for(var R=S.length;R--;){for(var L=S[R],E=0;E<L.length;E++){var M=L[E],$=d(M,b);b=$[0],$.length!=2&&($[2]?(L.splice(E+1,1,$[1],$[2]),E++):$[1]||(L.splice(E,1),E--))}L.length||S.splice(R,1)}return S}function C(S,b){for(var R=0;R<b.length;R++)for(var L=b[R],E=0;E<L.length;E++)k(S,L[E])}r.UndoManager=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,f){var u=n("../range").Range,h=function(){function g(s,p){this.foldData=s,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new u(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return g.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(p){p.start.row+=s,p.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(p,o){return-p.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,p,o){var i=0,a=this.folds,c,l,d,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<a.length;v++){if(c=a[v],l=c.range.compareStart(p,o),l==-1){s(null,p,o,i,m);return}if(d=s(null,c.start.row,c.start.column,i,m),d=!d&&s(c.placeholder,c.start.row,c.start.column,i),d||l===0)return;m=!c.sameRow,i=c.end.column}s(null,p,o,i,m)},g.prototype.getNextFoldTo=function(s,p){for(var o,i,a=0;a<this.folds.length;a++){if(o=this.folds[a],i=o.range.compareEnd(s,p),i==-1)return{fold:o,kind:"after"};if(i===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,p,o){var i=this.getNextFoldTo(s,p),a,c;if(i){if(a=i.fold,i.kind=="inside"&&a.start.column!=p&&a.start.row!=s)window.console&&window.console.log(s,p,a);else if(a.start.row==s){c=this.folds;var l=c.indexOf(a);for(l===0&&(this.start.column+=o),l;l<c.length;l++){if(a=c[l],a.start.column+=o,!a.sameRow)return;a.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,p){var o=this.getNextFoldTo(s,p);if(!o||o.kind=="inside")return null;var i=o.fold,a=this.folds,c=this.foldData,l=a.indexOf(i),d=a[l-1];this.end.row=d.end.row,this.end.column=d.end.column,a=a.splice(l,a.length-l);var m=new g(c,a);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var p=s.folds,o=0;o<p.length;o++)this.addFold(p[o]);var i=this.foldData;i.splice(i.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(p){s.push(" "+p.toString())}),s.push("]"),s.join(`
1032
1032
  `)},g.prototype.idxToPosition=function(s){for(var p=0,o=0;o<this.folds.length;o++){var i=this.folds[o];if(s-=i.start.column-p,s<0)return{row:i.start.row,column:i.start.column+s};if(s-=i.placeholder.length,s<0)return i.start;p=i.end.column}return{row:this.end.row,column:this.end.column+s}},g}();r.FoldLine=h}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,f){var u=n("./range").Range,h=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(p,o,i){for(var a=this.ranges,c=i||0;c<a.length;c++){var l=a[c],d=h(p,l.end);if(!(d>0)){var m=h(p,l.start);return d===0?o&&m!==0?-c-2:c:m>0||m===0&&!o?c:-c-1}}return-c-1},s.prototype.add=function(p){var o=!p.isEmpty(),i=this.pointIndex(p.start,o);i<0&&(i=-i-1);var a=this.pointIndex(p.end,o,i);return a<0?a=-a-1:a++,this.ranges.splice(i,a-i,p)},s.prototype.addList=function(p){for(var o=[],i=p.length;i--;)o.push.apply(o,this.add(p[i]));return o},s.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(d,m){return h(d.start,m.start)});for(var i=o[0],a,c=1;c<o.length;c++){a=i,i=o[c];var l=h(a.end,i.start);l<0||l==0&&!a.isEmpty()&&!i.isEmpty()||(h(a.end,i.end)<0&&(a.end.row=i.end.row,a.end.column=i.end.column),o.splice(c,1),p.push(i),i=a,c--)}return this.ranges=o,p},s.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},s.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},s.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(p,o){var i=this.ranges;if(i[0].start.row>o||i[i.length-1].start.row<p)return[];var a=this.pointIndex({row:p,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:o,column:0},a);c<0&&(c=-c-1);for(var l=[],d=a;d<c;d++)l.push(i[d]);return l},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(p){this.session&&this.detach(),this.session=p,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(p){for(var o=p.start,i=p.end,a=o.row,c=i.row,l=this.ranges,d=0,m=l.length;d<m;d++){var v=l[d];if(v.end.row>=a)break}if(p.action=="insert")for(var y=c-a,k=-o.column+i.column;d<m;d++){var v=l[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==l[d+1].start.column&&(v.end.column-=k),v.end.column+=k,v.end.row+=y}}else for(var y=a-c,k=o.column-i.column;d<m;d++){var v=l[d];if(v.start.row>c)break;v.end.row<c&&(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==c?v.end.column<=i.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>c&&(v.end.row+=y),v.start.row<c&&(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==c?v.start.column<=i.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>c&&(v.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var v=l[d];v.start.row+=y,v.end.row+=y}},s}();g.prototype.comparePoints=h,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,f){var u=this&&this.__extends||function(){var a=function(c,l){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(c,l)};return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");a(c,l);function d(){this.constructor=c}c.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),h=n("../range_list").RangeList,g=function(a){u(c,a);function c(l,d){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=l,m.start=l.start,m.end=l.end,m.sameRow=l.start.row==l.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(l){this.foldLine=l,this.subFolds.forEach(function(d){d.setFoldLine(l)})},c.prototype.clone=function(){var l=this.range.clone(),d=new c(l,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},c.prototype.addSubFold=function(l){if(!this.range.isEqual(l)){p(l,this.start);for(var k=l.start.row,C=l.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(l))return v.addSubFold(l);y=1}for(var k=l.range.end.row,C=l.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 b=this.subFolds.splice(d,S-d,l),R=m==0?b.length-1:b.length,L=y;L<R;L++)l.addSubFold(b[L]);return l.setFoldLine(this.foldLine),l}},c.prototype.restoreRange=function(l){return i(l,this.start)},c}(h);function s(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function p(a,c){s(a.start,c),s(a.end,c)}function o(a,c){a.row==0&&(a.column+=c.column),a.row+=c.row}function i(a,c){o(a.start,c),o(a.end,c)}r.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,r,f){var u=n("../range").Range,h=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(i,a,c){var l=this.getFoldLine(i);if(!l)return null;for(var d=l.folds,m=0;m<d.length;m++){var v=d[m].range;if(v.contains(i,a)){if(c==1&&v.isEnd(i,a)&&!v.isEmpty())continue;if(c==-1&&v.isStart(i,a)&&!v.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(i){var a=i.start,c=i.end,l=this.$foldData,d=[];a.column+=1,c.column-=1;for(var m=0;m<l.length;m++){var v=l[m].range.compareRange(i);if(v!=2){if(v==-2)break;for(var y=l[m].folds,k=0;k<y.length;k++){var C=y[k];if(v=C.range.compareRange(i),v==-2)break;if(v==2)continue;if(v==42)break;d.push(C)}}}return a.column-=1,c.column+=1,d},this.getFoldsInRangeList=function(i){if(Array.isArray(i)){var a=[];i.forEach(function(c){a=a.concat(this.getFoldsInRange(c))},this)}else var a=this.getFoldsInRange(i);return a},this.getAllFolds=function(){for(var i=[],a=this.$foldData,c=0;c<a.length;c++)for(var l=0;l<a[c].folds.length;l++)i.push(a[c].folds[l]);return i},this.getFoldStringAt=function(i,a,c,l){if(l=l||this.getFoldLine(i),!l)return null;for(var d={end:{column:0}},m,v,y=0;y<l.folds.length;y++){v=l.folds[y];var k=v.range.compareEnd(i,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)),c==-1?m.substring(0,a-d.end.column):c==1?m.substring(a-d.end.column):m},this.getFoldLine=function(i,a){var c=this.$foldData,l=0;for(a&&(l=c.indexOf(a)),l==-1&&(l=0),l;l<c.length;l++){var d=c[l];if(d.start.row<=i&&d.end.row>=i)return d;if(d.end.row>i)return null}return null},this.getNextFoldLine=function(i,a){var c=this.$foldData,l=0;for(a&&(l=c.indexOf(a)),l==-1&&(l=0),l;l<c.length;l++){var d=c[l];if(d.end.row>=i)return d}return null},this.getFoldedRowCount=function(i,a){for(var c=this.$foldData,l=a-i+1,d=0;d<c.length;d++){var m=c[d],v=m.end.row,y=m.start.row;if(v>=a){y<a&&(y>=i?l-=a-y:l=0);break}else v>=i&&(y>=i?l-=v-y:l-=v-i+1)}return l},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(a,c){return a.start.row-c.start.row}),i},this.addFold=function(i,a){var c=this.$foldData,l=!1,d;i instanceof g?d=i:(d=new g(a,i),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 b=this.getFoldsInRange(d.range);b.length>0&&(this.removeFolds(b),d.collapseChildren||b.forEach(function(M){d.addSubFold(M)}));for(var R=0;R<c.length;R++){var L=c[R];if(y==L.start.row){L.addFold(d),l=!0;break}else if(m==L.end.row){if(L.addFold(d),l=!0,!d.sameRow){var E=c[R+1];if(E&&E.start.row==y){L.merge(E);break}}break}else if(y<=L.start.row)break}return l||(L=this.$addFoldLine(new h(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(i){i.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(i){var a=i.foldLine,c=a.start.row,l=a.end.row,d=this.$foldData,m=a.folds;if(m.length==1)d.splice(d.indexOf(a),1);else if(a.range.isEnd(i.end.row,i.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(i.start.row,i.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(i.sameRow)m.splice(m.indexOf(i),1);else{var v=a.split(i.start.row,i.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(c,l):this.$updateRowLengthCache(c,l)),this.$modified=!0,this._signal("changeFold",{data:i,action:"remove"})},this.removeFolds=function(i){for(var a=[],c=0;c<i.length;c++)a.push(i[c]);a.forEach(function(l){this.removeFold(l)},this),this.$modified=!0},this.expandFold=function(i){this.removeFold(i),i.subFolds.forEach(function(a){i.restoreRange(a),this.addFold(a)},this),i.collapseChildren>0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(i,a){var c,l;if(i==null)c=new u(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof i=="number")c=new u(i,0,i,this.getLine(i).length);else if("row"in i)c=u.fromPoints(i,i);else{if(Array.isArray(i))return l=[],i.forEach(function(m){l=l.concat(this.unfold(m))},this),l;c=i}l=this.getFoldsInRangeList(c);for(var d=l;l.length==1&&u.comparePoints(l[0].start,c.start)<0&&u.comparePoints(l[0].end,c.end)>0;)this.expandFolds(l),l=this.getFoldsInRangeList(c);if(a!=!1?this.removeFolds(l):this.expandFolds(l),d.length)return d},this.isRowFolded=function(i,a){return!!this.getFoldLine(i,a)},this.getRowFoldEnd=function(i,a){var c=this.getFoldLine(i,a);return c?c.end.row:i},this.getRowFoldStart=function(i,a){var c=this.getFoldLine(i,a);return c?c.start.row:i},this.getFoldDisplayLine=function(i,a,c,l,d){l==null&&(l=i.start.row),d==null&&(d=0),a==null&&(a=i.end.row),c==null&&(c=this.getLine(a).length);var m=this.doc,v="";return i.walk(function(y,k,C,S){if(!(k<l)){if(k==l){if(C<d)return;S=Math.max(d,S)}y!=null?v+=y:v+=m.getLine(k).substring(S,C)}},a,c),v},this.getDisplayLine=function(i,a,c,l){var d=this.getFoldLine(i);if(d)return this.getFoldDisplayLine(d,i,a,c,l);var m;return m=this.doc.getLine(i),m.substring(l||0,a||m.length)},this.$cloneFoldData=function(){var i=[];return i=this.$foldData.map(function(a){var c=a.folds.map(function(l){return l.clone()});return new h(i,c)}),i},this.toggleFold=function(i){var a=this.selection,c=a.getRange(),l,d;if(c.isEmpty()){var m=c.start;if(l=this.getFoldAt(m.row,m.column),l){this.expandFold(l);return}else(d=this.findMatchingBracket(m))?c.comparePoint(d)==1?c.end=d:(c.start=d,c.start.column++,c.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(c.comparePoint(d)==1?c.end=d:c.start=d,c.start.column++):c=this.getCommentFoldRange(m.row,m.column)||c}else{var v=this.getFoldsInRange(c);if(i&&v.length){this.expandFolds(v);return}else v.length==1&&(l=v[0])}if(l||(l=this.getFoldAt(c.start.row,c.start.column)),l&&l.range.toString()==c.toString()){this.expandFold(l);return}var y="...";if(!c.isMultiLine()){if(y=this.getTextRange(c),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,c)},this.getCommentFoldRange=function(i,a,c){var l=new s(this,i,a),d=l.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(c!=1){do d=l.stepBackward();while(d&&v.test(d.type)&&!/^comment.end/.test(d.type));d=l.stepForward()}if(y.start.row=l.getCurrentTokenRow(),y.start.column=l.getCurrentTokenColumn()+(/^comment.start/.test(d.type)?d.value.length:2),l=new s(this,i,a),c!=-1){var k=-1;do if(d=l.stepForward(),k==-1){var C=this.getState(l.$row);v.test(C)||(k=l.$row)}else if(l.$row>k)break;while(d&&v.test(d.type)&&!/^comment.start/.test(d.type));d=l.stepBackward()}else d=l.getCurrentToken();return y.end.row=l.getCurrentTokenRow(),y.end.column=l.getCurrentTokenColumn(),/^comment.end/.test(d.type)||(y.end.column+=d.value.length-2),y}},this.foldAll=function(i,a,c,l){c==null&&(c=1e5);var d=this.foldWidgets;if(d){a=a||this.getLength(),i=i||0;for(var m=i;m<a;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(l&&!l(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=a&&v.start.row>=i&&(m=v.end.row,v.collapseChildren=c,this.addFold("...",v))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(a){for(var c=i.getTokens(a),l=0;l<c.length;l++){var d=c[l];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(i){if(!this.$foldStyles[i])throw new Error("invalid fold style: "+i+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=i){this.$foldStyle=i,i=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(i){if(this.$foldMode!=i){if(this.$foldMode=i,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!i||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=i.getFoldWidget.bind(i,this,this.$foldStyle),this.getFoldWidgetRange=i.getFoldWidgetRange.bind(i,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(i,a){var c=this.foldWidgets;if(!c||a&&c[i])return{};for(var l=i-1,d;l>=0;){var m=c[l];if(m==null&&(m=c[l]=this.getFoldWidget(l)),m=="start"){var v=this.getFoldWidgetRange(l);if(d||(d=v),v&&v.end.row>=i)break}l--}return{range:l!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(i,a){a instanceof p&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},l=this.$toggleFoldWidget(i,c);if(!l){var d=a.target||a.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,a){if(this.getFoldWidget){var c=this.getFoldWidget(i),l=this.getLine(i),d=c==="end"?-1:1,m=this.getFoldAt(i,d===-1?0:l.length,d);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(i,!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(i);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(i+1,C,a.all?1e4:0)):v&&(a.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(i){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var c=this.$toggleFoldWidget(a,{});if(!c){var l=this.getParentFoldRangeData(a,!0);if(c=l.range||l.firstRange,c){a=c.start.row;var d=this.getFoldAt(a,this.getLine(a).length,1);d?this.removeFold(d):this.addFold("...",c)}}},this.updateFoldWidgets=function(i){var a=i.start.row,c=i.end.row-a;if(c===0)this.foldWidgets[a]=null;else if(i.action=="remove")this.foldWidgets.splice(a,c+1,null);else{var l=Array(c+1);l.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,l)}},this.tokenizerUpdateFoldWidgets=function(i){var a=i.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}r.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,f){var u=n("../token_iterator").TokenIterator,h=n("../range").Range;function g(){this.findMatchingBracket=function(s,p){if(s.column==0)return null;var o=p||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var i=o.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],s):this.$findOpeningBracket(i[2],s):null},this.getBracketRange=function(s){var p=this.getLine(s.row),o=!0,i,a=p.charAt(s.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=p.charAt(s.column),s={row:s.row,column:s.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var l=this.$findClosingBracket(c[1],s);if(!l)return null;i=h.fromPoints(s,l),o||(i.end.column++,i.start.column--),i.cursor=i.end}else{var l=this.$findOpeningBracket(c[2],s);if(!l)return null;i=h.fromPoints(l,s),o||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(s,p){var o=this.getLine(s.row),i=/([\(\[\{])|([\)\]\}])/,a=!p&&o.charAt(s.column-1),c=a&&a.match(i);if(c||(a=(p===void 0||p)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=a&&a.match(i)),!c)return null;var l=new h(s.row,s.column-1,s.row,s.column),d=c[1]?this.$findClosingBracket(c[1],s):this.$findOpeningBracket(c[2],s);if(!d)return[l];var m=new h(d.row,d.column,d.row,d.column+1);return[l,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,p,o){var i=this.$brackets[s],a=1,c=new u(this,p.row,p.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=p.column-c.getCurrentTokenColumn()-2,m=l.value;;){for(;d>=0;){var v=m.charAt(d);if(v==i){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else v==s&&(a+=1);d-=1}do l=c.stepBackward();while(l&&!o.test(l.type));if(l==null)break;m=l.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,p,o){var i=this.$brackets[s],a=1,c=new u(this,p.row,p.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),!!l){o||(o=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=p.column-c.getCurrentTokenColumn();;){for(var m=l.value,v=m.length;d<v;){var y=m.charAt(d);if(y==i){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else y==s&&(a+=1);d+=1}do l=c.stepForward();while(l&&!o.test(l.type));if(l==null)break;d=0}return null}},this.getMatchingTags=function(s){var p=new u(this,s.row,s.column),o=this.$findTagName(p);if(o){var i=p.stepBackward();return i.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(s){var p=s.getCurrentToken(),o=!1,i=!1;if(p&&p.type.indexOf("tag-name")===-1)do i?p=s.stepBackward():p=s.stepForward(),p&&(p.value==="/>"?i=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(s,p){var o,i=p.value,a=p.value,c=0,l=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=s.stepForward();var d=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length),m=!1;do if(o=p,p=s.stepForward(),p){if(p.value===">"&&!m){var v=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(i=p.value,a===i){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);p=s.stepForward();var k=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p=s.stepForward(),p&&p.value===">")var C=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(a===i&&p.value==="/>"&&(c--,c<0))var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),k=y,C=k,v=new h(d.end.row,d.end.column,d.end.row,d.end.column+1)}while(p&&c>=0);if(l&&v&&y&&C&&d&&k)return{openTag:new h(l.start.row,l.start.column,v.end.row,v.end.column),closeTag:new h(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:d,closeTagName:k}},this.$findOpeningTag=function(s,p){var o=s.getCurrentToken(),i=p.value,a=0,c=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),d=l+2,m=new h(c,l,c,d);s.stepForward();var v=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p=s.stepForward(),!(!p||p.value!==">")){var y=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(p=o,c=s.getCurrentTokenRow(),l=s.getCurrentTokenColumn(),d=l+p.value.length,o=s.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(i===p.value)if(o.value==="<"){if(a++,a>0){var k=new h(c,l,c,d),C=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do p=s.stepForward();while(p&&p.value!==">");var S=new h(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&a--}else if(p.value==="/>"){for(var b=0,R=o;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===i){a--;break}else if(R.value==="<")break;R=s.stepBackward(),b++}for(var L=0;L<b;L++)s.stepForward()}}while(o&&a<=0);if(C&&S&&m&&y&&k&&v)return{openTag:new h(C.start.row,C.start.column,S.end.row,S.end.column),closeTag:new h(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:k,closeTagName:v}}}}r.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,r,f){var u=n("./lib/oop"),h=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,i=n("./mode/text").Mode,a=n("./range").Range,c=n("./document").Document,l=n("./background_tokenizer").BackgroundTokenizer,d=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function $(A,_){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
1033
1033
  `)},this.bgTokenizer=new l(new i().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(x){w._signal("tokenizerUpdate",x)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new c(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 $.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()},$.prototype.getDocument=function(){return this.doc},$.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,_))},$.prototype.$getRowCacheIndex=function(A,_){for(var w=0,x=A.length-1;w<=x;){var T=w+x>>1,O=A[T];if(_>O)w=T+1;else if(_<O)x=T-1;else return T}return w-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(A){var _=A.data;this.$resetRowCache(_.start.row)},$.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)},$.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.fromJSON=function(A){typeof A=="string"&&(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 $(A.value);return A.folds.forEach(function(x){w.addFold("...",a.fromPoints(x.start,x.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},$.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()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(A){return this.bgTokenizer.getState(A)},$.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},$.prototype.getTokenAt=function(A,_){var w=this.bgTokenizer.getTokens(A),x,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 x=w[O],x?(x.index=O,x.start=T-x.value.length,x):null},$.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=h.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?h.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(A){this.setOption("tabSize",A)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_<A.length;_++)this.$breakpoints[A[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(A,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[A]=_:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(A,_,w,x){var T=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:_,inFront:!!x,id:T};return x?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},$.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}},$.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")}},$.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(A){if(!this.$searchHighlight){var _=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(A)},$.prototype.highlightLines=function(A,_,w,x){typeof _!="number"&&(w=_,_=A),w||(w="ace_step");var T=new a(A,0,_,1/0);return T.id=this.addMarker(T,w,"fullLine",x),T},$.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(A){var _=A.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
1034
- `},$.prototype.getWordRange=function(A,_){var w=this.getLine(A),x=!1;if(_>0&&(x=!!w.charAt(_-1).match(this.tokenRe)),x||(x=!!w.charAt(_).match(this.tokenRe)),x)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)},$.prototype.getAWordRange=function(A,_){for(var w=this.getWordRange(A,_),x=this.getLine(w.end.row);x.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},$.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},$.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,x=w.path}else x=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new i),this.$modes[x]&&!w){this.$onChangeMode(this.$modes[x]),_&&_();return}this.$modeId=x,s.loadModule(["mode",x],(function(T){if(this.$modeId!==x)return _&&_();this.$modes[x]&&!w?this.$onChangeMode(this.$modes[x]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[x]=T,T.$id=x),this.$onChangeMode(T)),_&&_()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.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 x=A.getTokenizer();if(x.on!==void 0){var T=this.onReloadTokenizer.bind(this);x.on("update",T)}this.bgTokenizer.setTokenizer(x),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}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.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},$.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,x=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,F=_.length,P=0;P<F;P++){if(P>I){if(P=O.end.row+1,P>=F)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[P]==null&&(w[P]=this.$getStringScreenWidth(_[P])[0]),w[P]>x&&(x=w[P])}this.screenWidth=x}},$.prototype.getLine=function(A){return this.doc.getLine(A)},$.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},$.prototype.insert=function(A,_){return this.doc.insert(A,_)},$.prototype.remove=function(A){return this.doc.remove(A)},$.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},$.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var x=A[w];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var x=A[w];(x.action=="insert"||x.action=="remove")&&this.doc.$safeApplyDelta(x)}!_&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(A){this.$undoSelect=A},$.prototype.$getUndoSelection=function(A,_){function w(F){return _?F.action!=="insert":F.action==="insert"}for(var x,T,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!x){w(I)?x=a.fromPoints(I.start,I.end):x=a.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,x.compare(T.row,T.column)==-1&&x.setStart(T),T=I.end,x.compare(T.row,T.column)==1&&x.setEnd(T)):(T=I.start,x.compare(T.row,T.column)==-1&&(x=a.fromPoints(I.start,I.start)))}}return x},$.prototype.replace=function(A,_){return this.doc.replace(A,_)},$.prototype.moveText=function(A,_,w){var x=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,x),T.length){var P=A.start,W=O.start,I=W.row-P.row,F=W.column-P.column;this.addFolds(T.map(function(V){return V=V.clone(),V.start.row==P.row&&(V.start.column+=F),V.end.row==P.row&&(V.end.column+=F),V.start.row+=I,V.end.row+=I,V}))}return O},$.prototype.indentRows=function(A,_,w){w=w.replace(/\t/g,this.getTabString());for(var x=A;x<=_;x++)this.doc.insertInLine({row:x,column:0},w)},$.prototype.outdentRows=function(A){for(var _=A.collapseRows(),w=new a(0,0,0,0),x=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<x&&O.charAt(I)==" ";++I);I<x&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},$.prototype.$moveLines=function(A,_,w){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),w<0){var x=this.getRowFoldStart(A+w);if(x<0)return 0;var T=x-A}else if(w>0){var x=this.getRowFoldEnd(_+w);if(x>this.doc.getLength()-1)return 0;var T=x-_}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(P){return P=P.clone(),P.start.row+=T,P.end.row+=T,P}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},$.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},$.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},$.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},$.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},$.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:_}},$.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},$.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")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.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"))},$.prototype.adjustWrapLimit=function(A,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var x=this.$constrainWrapLimit(A,w.min,w.max);return x!=this.$wrapLimit&&x>1?(this.$wrapLimit=x,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(A,_,w){return _&&(A=Math.max(_,A)),w&&(A=Math.min(w,A)),A},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,w=A.action,x=A.start,T=A.end,O=x.row,I=T.row,F=I-O,P=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;P=this.getFoldsInRange(A),this.removeFolds(P);var j=this.getFoldLine(T.row),H=0;if(j){j.addRemoveChars(T.row,T.column,x.column-T.column),j.shiftRow(-F);var V=this.getFoldLine(O);V&&V!==j&&(V.merge(j),j=V),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 G=Array(F);G.unshift(O,0);var q=_?this.$wrapData:this.$rowLengthCache;q.splice.apply(q,G);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var U=j.range.compareInside(x.row,x.column);U==0?(j=j.split(x.row,x.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,T.column-x.column))):U==-1&&(j.addRemoveChars(O,0,T.column-x.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"&&(P=this.getFoldsInRange(A),this.removeFolds(P),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,x.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),P},$.prototype.$updateRowLengthCache=function(A,_){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},$.prototype.$updateWrapData=function(A,_){var w=this.doc.getAllLines(),x=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,P=A;for(_=Math.min(_,w.length-1);P<=_;)F=this.getFoldLine(P,F),F?(I=[],F.walk((function(W,j,H,V){var G;if(W!=null){G=this.$getDisplayTokens(W,I.length),G[0]=C;for(var q=1;q<G.length;q++)G[q]=S}else G=this.$getDisplayTokens(w[j].substring(V,H),I.length);I=I.concat(G)}).bind(this),F.end.row,w[F.end.row].length+1),T[F.start.row]=this.$computeWrapSplits(I,O,x),P=F.end.row+1):(I=this.$getDisplayTokens(w[P]),T[P]=this.$computeWrapSplits(I,O,x),P++)},$.prototype.$computeWrapSplits=function(A,_,w){if(A.length==0)return[];var x=[],T=A.length,O=0,I=0,F=this.$wrapAsCode,P=this.$indentedSoftWrap,W=_<=Math.max(2*w,8)||P===!1?0:Math.floor(_/2);function j(){var U=0;if(W===0)return U;if(P)for(var X=0;X<A.length;X++){var Y=A[X];if(Y==R)U+=1;else if(Y==L)U+=w;else{if(Y==E)continue;break}}return F&&P!==!1&&(U+=w),Math.min(U,W)}function H(U){for(var X=U-O,Y=O;Y<U;Y++){var z=A[Y];(z===12||z===2)&&(X-=1)}x.length||(V=j(),x.indent=V),I+=X,x.push(I),O=U}for(var V=0;T-O>_-V;){var G=O+_-V;if(A[G-1]>=R&&A[G]>=R){H(G);continue}if(A[G]==C||A[G]==S){for(G;G!=O-1&&A[G]!=C;G--);if(G>O){H(G);continue}for(G=O+_,G;G<A.length&&A[G]==S;G++);if(G==A.length)break;H(G);continue}for(var q=Math.max(G-(_-(_>>2)),O-1);G>q&&A[G]<C;)G--;if(F){for(;G>q&&A[G]<C;)G--;for(;G>q&&A[G]==b;)G--}else for(;G>q&&A[G]<R;)G--;if(G>q){H(++G);continue}G=O+_,A[G]==k&&G--,H(G-V)}return x},$.prototype.$getDisplayTokens=function(A,_){var w=[],x;_=_||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){x=this.getScreenTabSize(w.length+_),w.push(L);for(var I=1;I<x;I++)w.push(E)}else O==32?w.push(R):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},$.prototype.$getStringScreenWidth=function(A,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var x,T;for(T=0;T<A.length&&(x=A.charCodeAt(T),x==9?w+=this.getScreenTabSize(w):x>=4352&&M(x)?w+=2:w+=1,!(w>_));T++);return[w,T]},$.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+_},$.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},$.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},$.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},$.prototype.getDocumentLastRowColumn=function(A,_){var w=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(w)},$.prototype.getDocumentLastRowColumnPosition=function(A,_){var w=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},$.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},$.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},$.prototype.screenToDocumentPosition=function(A,_,w){if(A<0)return{row:0,column:0};var x,T=0,O=0,I,F=0,P=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],T=this.$docRowCache[j],V=A>W[H-1];else var V=!H;for(var G=this.getLength()-1,q=this.getNextFoldLine(T),U=q?q.start.row:1/0;F<=A&&(P=this.getRowLength(T),!(F+P>A||T>=G));)F+=P,T++,T>U&&(T=q.end.row+1,q=this.getNextFoldLine(T,q),U=q?q.start.row:1/0),V&&(this.$docRowCache.push(T),this.$screenRowCache.push(F));if(q&&q.start.row<=T)x=this.getFoldDisplayLine(q),T=q.start.row;else{if(F+P<=A||T>G)return{row:G,column:this.getLine(G).length};x=this.getLine(T),q=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var z=this.$wrapData[T];z&&(I=z[Y],Y>0&&z.length&&(X=z.indent,O=z[Y-1]||z[z.length-1],x=x.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(x,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),q?q.idxToPosition(O):{row:T,column:O}},$.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 x=0,T=null,O=null;O=this.getFoldAt(A,_,1),O&&(A=O.start.row,_=O.start.column);var I,F=0,P=this.$docRowCache,W=this.$getRowCacheIndex(P,A),j=P.length;if(j&&W>=0)var F=P[W],x=this.$screenRowCache[W],H=A>P[j-1];else var H=!j;for(var V=this.getNextFoldLine(F),G=V?V.start.row:1/0;F<A;){if(F>=G){if(I=V.end.row+1,I>A)break;V=this.getNextFoldLine(I,V),G=V?V.start.row:1/0}else I=F+1;x+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(x))}var q="";V&&F>=G?(q=this.getFoldDisplayLine(V,A,_),T=V.start.row):(q=this.getLine(A).substring(0,_),T=A);var U=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;q.length>=X[Y];)x++,Y++;q=q.substring(X[Y-1]||0,q.length),U=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(x+=this.lineWidgets[F].rowsAbove),{row:x,column:U+this.$getStringScreenWidth(q)[0]}},$.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},$.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},$.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,x=0,_=this.$foldData[x++],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[x++],I=_?_.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,x=0;x<w.length;x++)_=w[x],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},$.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,w,x){if(w===0)return[0,0];w||(w=1/0),x=x||0;var T,O;for(O=0;O<_.length&&(T=_.charAt(O),T===" "?x+=this.getScreenTabSize(x):x+=A.getCharacterWidth(T),!(x>w));O++);return[x,O]})},$.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()},$}();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,p);var y=1,k=2,C=3,S=4,b=9,R=10,L=11,E=12;function M($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=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($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var A=typeof $=="number"?$: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($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,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($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,f){var u=n("./lib/lang"),h=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(i){return h.mixin(this.$options,i),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(i){this.$options=i},o.prototype.find=function(i){var a=this.$options,c=this.$matchIterator(i,a);if(!c)return!1;var l=null;return c.forEach(function(d,m,v,y){return l=new g(d,m,v,y),m==y&&a.start&&a.start.start&&a.skipCurrent!=!1&&l.isEqual(a.start)?(l=null,!1):!0}),l},o.prototype.findAll=function(i){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,l=c?i.getLines(c.start.row,c.end.row):i.doc.getAllLines(),d=[],m=a.re;if(a.$isMultiLine){var v=m.length,y=l.length-v,k;e:for(var C=m.offset||0;C<=y;C++){for(var S=0;S<v;S++)if(l[C+S].search(m[S])==-1)continue e;var b=l[C],R=l[C+v-1],L=b.length-b.match(m[0])[0].length,E=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,E)),v>2&&(C=C+v-2))}}else for(var M=0;M<l.length;M++)for(var $=u.getMatchOffsets(l[M],m),S=0;S<$.length;S++){var A=$[S];d.push(new g(M,A.offset,M,A.offset+A.length))}if(c){for(var _=c.start.column,w=c.end.column,M=0,S=d.length-1;M<S&&d[M].start.column<_&&d[M].start.row==0;)M++;for(var x=c.end.row-c.start.row;M<S&&d[S].end.column>w&&d[S].end.row==x;)S--;for(d=d.slice(M,S+1),M=0,S=d.length;M<S;M++)d[M].start.row+=c.start.row,d[M].end.row+=c.start.row}return d},o.prototype.replace=function(i,a){var c=this.$options,l=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(l){var d=l.exec(i);if(!d||d[0].length!=i.length)return null;if(a=i.replace(l,a),c.preserveCase){a=a.split("");for(var m=Math.min(i.length,i.length);m--;){var v=i[m];v&&v.toLowerCase()!=v?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},o.prototype.$assembleRegExp=function(i,a){if(i.needle instanceof RegExp)return i.re=i.needle;var c=i.needle;if(!i.needle)return i.re=!1;i.regExp||(c=u.escapeRegExp(c));var l=i.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),i.$supportsUnicodeFlag=!0,l+="u"}catch{i.$supportsUnicodeFlag=!1}if(i.wholeWord&&(c=p(c,i)),i.$isMultiLine=!a&&/[\n\r]/.test(c),i.$isMultiLine)return i.re=this.$assembleMultilineRegExp(c,l);try{var d=new RegExp(c,l)}catch{d=!1}return i.re=d},o.prototype.$assembleMultilineRegExp=function(i,a){for(var c=i.replace(/\r\n|\r|\n/g,`$
1034
+ `},$.prototype.getWordRange=function(A,_){var w=this.getLine(A),x=!1;if(_>0&&(x=!!w.charAt(_-1).match(this.tokenRe)),x||(x=!!w.charAt(_).match(this.tokenRe)),x)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)},$.prototype.getAWordRange=function(A,_){for(var w=this.getWordRange(A,_),x=this.getLine(w.end.row);x.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},$.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},$.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,x=w.path}else x=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new i),this.$modes[x]&&!w){this.$onChangeMode(this.$modes[x]),_&&_();return}this.$modeId=x,s.loadModule(["mode",x],(function(T){if(this.$modeId!==x)return _&&_();this.$modes[x]&&!w?this.$onChangeMode(this.$modes[x]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[x]=T,T.$id=x),this.$onChangeMode(T)),_&&_()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.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 x=A.getTokenizer();if(x.on!==void 0){var T=this.onReloadTokenizer.bind(this);x.on("update",T)}this.bgTokenizer.setTokenizer(x),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}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.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},$.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,x=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,F=_.length,P=0;P<F;P++){if(P>I){if(P=O.end.row+1,P>=F)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[P]==null&&(w[P]=this.$getStringScreenWidth(_[P])[0]),w[P]>x&&(x=w[P])}this.screenWidth=x}},$.prototype.getLine=function(A){return this.doc.getLine(A)},$.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},$.prototype.insert=function(A,_){return this.doc.insert(A,_)},$.prototype.remove=function(A){return this.doc.remove(A)},$.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},$.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var x=A[w];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var x=A[w];(x.action=="insert"||x.action=="remove")&&this.doc.$safeApplyDelta(x)}!_&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(A){this.$undoSelect=A},$.prototype.$getUndoSelection=function(A,_){function w(F){return _?F.action!=="insert":F.action==="insert"}for(var x,T,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!x){w(I)?x=a.fromPoints(I.start,I.end):x=a.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,x.compare(T.row,T.column)==-1&&x.setStart(T),T=I.end,x.compare(T.row,T.column)==1&&x.setEnd(T)):(T=I.start,x.compare(T.row,T.column)==-1&&(x=a.fromPoints(I.start,I.start)))}}return x},$.prototype.replace=function(A,_){return this.doc.replace(A,_)},$.prototype.moveText=function(A,_,w){var x=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,x),T.length){var P=A.start,W=O.start,I=W.row-P.row,F=W.column-P.column;this.addFolds(T.map(function(V){return V=V.clone(),V.start.row==P.row&&(V.start.column+=F),V.end.row==P.row&&(V.end.column+=F),V.start.row+=I,V.end.row+=I,V}))}return O},$.prototype.indentRows=function(A,_,w){w=w.replace(/\t/g,this.getTabString());for(var x=A;x<=_;x++)this.doc.insertInLine({row:x,column:0},w)},$.prototype.outdentRows=function(A){for(var _=A.collapseRows(),w=new a(0,0,0,0),x=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<x&&O.charAt(I)==" ";++I);I<x&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},$.prototype.$moveLines=function(A,_,w){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),w<0){var x=this.getRowFoldStart(A+w);if(x<0)return 0;var T=x-A}else if(w>0){var x=this.getRowFoldEnd(_+w);if(x>this.doc.getLength()-1)return 0;var T=x-_}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(P){return P=P.clone(),P.start.row+=T,P.end.row+=T,P}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},$.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},$.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},$.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},$.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},$.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:_}},$.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},$.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")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.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"))},$.prototype.adjustWrapLimit=function(A,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var x=this.$constrainWrapLimit(A,w.min,w.max);return x!=this.$wrapLimit&&x>1?(this.$wrapLimit=x,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(A,_,w){return _&&(A=Math.max(_,A)),w&&(A=Math.min(w,A)),A},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,w=A.action,x=A.start,T=A.end,O=x.row,I=T.row,F=I-O,P=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;P=this.getFoldsInRange(A),this.removeFolds(P);var j=this.getFoldLine(T.row),H=0;if(j){j.addRemoveChars(T.row,T.column,x.column-T.column),j.shiftRow(-F);var V=this.getFoldLine(O);V&&V!==j&&(V.merge(j),j=V),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 G=Array(F);G.unshift(O,0);var Q=_?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,G);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var U=j.range.compareInside(x.row,x.column);U==0?(j=j.split(x.row,x.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,T.column-x.column))):U==-1&&(j.addRemoveChars(O,0,T.column-x.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"&&(P=this.getFoldsInRange(A),this.removeFolds(P),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,x.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),P},$.prototype.$updateRowLengthCache=function(A,_){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},$.prototype.$updateWrapData=function(A,_){var w=this.doc.getAllLines(),x=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,P=A;for(_=Math.min(_,w.length-1);P<=_;)F=this.getFoldLine(P,F),F?(I=[],F.walk((function(W,j,H,V){var G;if(W!=null){G=this.$getDisplayTokens(W,I.length),G[0]=C;for(var Q=1;Q<G.length;Q++)G[Q]=S}else G=this.$getDisplayTokens(w[j].substring(V,H),I.length);I=I.concat(G)}).bind(this),F.end.row,w[F.end.row].length+1),T[F.start.row]=this.$computeWrapSplits(I,O,x),P=F.end.row+1):(I=this.$getDisplayTokens(w[P]),T[P]=this.$computeWrapSplits(I,O,x),P++)},$.prototype.$computeWrapSplits=function(A,_,w){if(A.length==0)return[];var x=[],T=A.length,O=0,I=0,F=this.$wrapAsCode,P=this.$indentedSoftWrap,W=_<=Math.max(2*w,8)||P===!1?0:Math.floor(_/2);function j(){var U=0;if(W===0)return U;if(P)for(var Z=0;Z<A.length;Z++){var Y=A[Z];if(Y==R)U+=1;else if(Y==L)U+=w;else{if(Y==E)continue;break}}return F&&P!==!1&&(U+=w),Math.min(U,W)}function H(U){for(var Z=U-O,Y=O;Y<U;Y++){var z=A[Y];(z===12||z===2)&&(Z-=1)}x.length||(V=j(),x.indent=V),I+=Z,x.push(I),O=U}for(var V=0;T-O>_-V;){var G=O+_-V;if(A[G-1]>=R&&A[G]>=R){H(G);continue}if(A[G]==C||A[G]==S){for(G;G!=O-1&&A[G]!=C;G--);if(G>O){H(G);continue}for(G=O+_,G;G<A.length&&A[G]==S;G++);if(G==A.length)break;H(G);continue}for(var Q=Math.max(G-(_-(_>>2)),O-1);G>Q&&A[G]<C;)G--;if(F){for(;G>Q&&A[G]<C;)G--;for(;G>Q&&A[G]==b;)G--}else for(;G>Q&&A[G]<R;)G--;if(G>Q){H(++G);continue}G=O+_,A[G]==k&&G--,H(G-V)}return x},$.prototype.$getDisplayTokens=function(A,_){var w=[],x;_=_||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){x=this.getScreenTabSize(w.length+_),w.push(L);for(var I=1;I<x;I++)w.push(E)}else O==32?w.push(R):O>39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},$.prototype.$getStringScreenWidth=function(A,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var x,T;for(T=0;T<A.length&&(x=A.charCodeAt(T),x==9?w+=this.getScreenTabSize(w):x>=4352&&M(x)?w+=2:w+=1,!(w>_));T++);return[w,T]},$.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+_},$.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},$.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},$.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},$.prototype.getDocumentLastRowColumn=function(A,_){var w=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(w)},$.prototype.getDocumentLastRowColumnPosition=function(A,_){var w=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},$.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},$.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},$.prototype.screenToDocumentPosition=function(A,_,w){if(A<0)return{row:0,column:0};var x,T=0,O=0,I,F=0,P=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],T=this.$docRowCache[j],V=A>W[H-1];else var V=!H;for(var G=this.getLength()-1,Q=this.getNextFoldLine(T),U=Q?Q.start.row:1/0;F<=A&&(P=this.getRowLength(T),!(F+P>A||T>=G));)F+=P,T++,T>U&&(T=Q.end.row+1,Q=this.getNextFoldLine(T,Q),U=Q?Q.start.row:1/0),V&&(this.$docRowCache.push(T),this.$screenRowCache.push(F));if(Q&&Q.start.row<=T)x=this.getFoldDisplayLine(Q),T=Q.start.row;else{if(F+P<=A||T>G)return{row:G,column:this.getLine(G).length};x=this.getLine(T),Q=null}var Z=0,Y=Math.floor(A-F);if(this.$useWrapMode){var z=this.$wrapData[T];z&&(I=z[Y],Y>0&&z.length&&(Z=z.indent,O=z[Y-1]||z[z.length-1],x=x.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(x,_-Z)[1],this.$useWrapMode&&O>=I&&(O=I-1),Q?Q.idxToPosition(O):{row:T,column:O}},$.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 x=0,T=null,O=null;O=this.getFoldAt(A,_,1),O&&(A=O.start.row,_=O.start.column);var I,F=0,P=this.$docRowCache,W=this.$getRowCacheIndex(P,A),j=P.length;if(j&&W>=0)var F=P[W],x=this.$screenRowCache[W],H=A>P[j-1];else var H=!j;for(var V=this.getNextFoldLine(F),G=V?V.start.row:1/0;F<A;){if(F>=G){if(I=V.end.row+1,I>A)break;V=this.getNextFoldLine(I,V),G=V?V.start.row:1/0}else I=F+1;x+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(x))}var Q="";V&&F>=G?(Q=this.getFoldDisplayLine(V,A,_),T=V.start.row):(Q=this.getLine(A).substring(0,_),T=A);var U=0;if(this.$useWrapMode){var Z=this.$wrapData[T];if(Z){for(var Y=0;Q.length>=Z[Y];)x++,Y++;Q=Q.substring(Z[Y-1]||0,Q.length),U=Y>0?Z.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(x+=this.lineWidgets[F].rowsAbove),{row:x,column:U+this.$getStringScreenWidth(Q)[0]}},$.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},$.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},$.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,x=0,_=this.$foldData[x++],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[x++],I=_?_.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,x=0;x<w.length;x++)_=w[x],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},$.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,w,x){if(w===0)return[0,0];w||(w=1/0),x=x||0;var T,O;for(O=0;O<_.length&&(T=_.charAt(O),T===" "?x+=this.getScreenTabSize(x):x+=A.getCharacterWidth(T),!(x>w));O++);return[x,O]})},$.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()},$}();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,p);var y=1,k=2,C=3,S=4,b=9,R=10,L=11,E=12;function M($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=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($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var A=typeof $=="number"?$: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($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,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($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,f){var u=n("./lib/lang"),h=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(i){return h.mixin(this.$options,i),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(i){this.$options=i},o.prototype.find=function(i){var a=this.$options,c=this.$matchIterator(i,a);if(!c)return!1;var l=null;return c.forEach(function(d,m,v,y){return l=new g(d,m,v,y),m==y&&a.start&&a.start.start&&a.skipCurrent!=!1&&l.isEqual(a.start)?(l=null,!1):!0}),l},o.prototype.findAll=function(i){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,l=c?i.getLines(c.start.row,c.end.row):i.doc.getAllLines(),d=[],m=a.re;if(a.$isMultiLine){var v=m.length,y=l.length-v,k;e:for(var C=m.offset||0;C<=y;C++){for(var S=0;S<v;S++)if(l[C+S].search(m[S])==-1)continue e;var b=l[C],R=l[C+v-1],L=b.length-b.match(m[0])[0].length,E=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,E)),v>2&&(C=C+v-2))}}else for(var M=0;M<l.length;M++)for(var $=u.getMatchOffsets(l[M],m),S=0;S<$.length;S++){var A=$[S];d.push(new g(M,A.offset,M,A.offset+A.length))}if(c){for(var _=c.start.column,w=c.end.column,M=0,S=d.length-1;M<S&&d[M].start.column<_&&d[M].start.row==0;)M++;for(var x=c.end.row-c.start.row;M<S&&d[S].end.column>w&&d[S].end.row==x;)S--;for(d=d.slice(M,S+1),M=0,S=d.length;M<S;M++)d[M].start.row+=c.start.row,d[M].end.row+=c.start.row}return d},o.prototype.replace=function(i,a){var c=this.$options,l=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(l){var d=l.exec(i);if(!d||d[0].length!=i.length)return null;if(a=i.replace(l,a),c.preserveCase){a=a.split("");for(var m=Math.min(i.length,i.length);m--;){var v=i[m];v&&v.toLowerCase()!=v?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},o.prototype.$assembleRegExp=function(i,a){if(i.needle instanceof RegExp)return i.re=i.needle;var c=i.needle;if(!i.needle)return i.re=!1;i.regExp||(c=u.escapeRegExp(c));var l=i.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),i.$supportsUnicodeFlag=!0,l+="u"}catch{i.$supportsUnicodeFlag=!1}if(i.wholeWord&&(c=p(c,i)),i.$isMultiLine=!a&&/[\n\r]/.test(c),i.$isMultiLine)return i.re=this.$assembleMultilineRegExp(c,l);try{var d=new RegExp(c,l)}catch{d=!1}return i.re=d},o.prototype.$assembleMultilineRegExp=function(i,a){for(var c=i.replace(/\r\n|\r|\n/g,`$
1035
1035
  ^`).split(`
1036
1036
  `),l=[],d=0;d<c.length;d++)try{l.push(new RegExp(c[d],a))}catch{return!1}return l},o.prototype.$matchIterator=function(i,a){var c=this.$assembleRegExp(a);if(!c)return!1;var l=a.backwards==!0,d=a.skipCurrent!=!1,m=c.unicode,v=a.range,y=a.start;y||(y=v?v[l?"end":"start"]:i.selection.getRange()),y.start&&(y=y[d!=l?"end":"start"]);var k=v?v.start.row:0,C=v?v.end.row:i.getLength()-1;if(l)var S=function(L){var E=y.row;if(!R(E,y.column,L)){for(E--;E>=k;E--)if(R(E,Number.MAX_VALUE,L))return;if(a.wrap!=!1){for(E=C,k=y.row;E>=k;E--)if(R(E,Number.MAX_VALUE,L))return}}};else var S=function(E){var M=y.row;if(!R(M,y.column,E)){for(M=M+1;M<=C;M++)if(R(M,0,E))return;if(a.wrap!=!1){for(M=k,C=y.row;M<=C;M++)if(R(M,0,E))return}}};if(a.$isMultiLine)var b=c.length,R=function(L,E,M){var $=l?L-b+1:L;if(!($<0||$+b>i.getLength())){var A=i.getLine($),_=A.search(c[0]);if(!(!l&&_<E||_===-1)){for(var w=1;w<b;w++)if(A=i.getLine($+w),A.search(c[w])==-1)return;var x=A.match(c[b-1])[0].length;if(!(l&&x>E)&&M($,_,$+b-1,x))return!0}}};else if(l)var R=function(E,M,$){var A=i.getLine(E),_=[],w,x=0;for(c.lastIndex=0;w=c.exec(A);){var T=w[0].length;if(x=w.index,!T){if(x>=A.length)break;c.lastIndex=x+=u.skipEmptyMatch(A,x,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($(E,I,E,I+T))return!0}};else var R=function(E,M,$){var A=i.getLine(E),_,w;for(c.lastIndex=M;w=c.exec(A);){var x=w[0].length;if(_=w.index,$(E,_,E,_+x))return!0;if(!x&&(c.lastIndex=_+=u.skipEmptyMatch(A,_,m),_>=A.length))return!1}};return{forEach:S}},o}();function p(o,i){var a=u.supportsLookbehind();function c(v,y){y===void 0&&(y=!0);var k=a&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return k.test(v)||i.regExp?a&&i.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var l=Array.from(o),d=l[0],m=l[l.length-1];return c(d)+o+c(m,!1)}r.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,f){var u=this&&this.__extends||function(){var a=function(c,l){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(c,l)};return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");a(c,l);function d(){this.constructor=c}c.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),h=n("../lib/keys"),g=n("../lib/useragent"),s=h.KEY_MODS,p=function(){function a(c,l){this.$init(c,l,!1)}return a.prototype.$init=function(c,l,d){this.platform=l||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=d},a.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},a.prototype.removeCommand=function(c,l){var d=c&&(typeof c=="string"?c:c.name);c=this.commands[d],l||delete this.commands[d];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==c)delete m[v];else if(Array.isArray(y)){var k=y.indexOf(c);k!=-1&&(y.splice(k,1),y.length==1&&(m[v]=y[0]))}}},a.prototype.bindKey=function(c,l,d){if(typeof c=="object"&&c&&(d==null&&(d=c.position),c=c[this.platform]),!!c){if(typeof l=="function")return this.addCommand({exec:l,bindKey:c,name:l.name||c});c.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),R=s[b.hashId]+b.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,l,d)},this)}},a.prototype._addCommandToBinding=function(c,l,d){var m=this.commandKeyBinding,v;if(!l)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=l;else{Array.isArray(m[c])?(v=m[c].indexOf(l))!=-1&&m[c].splice(v,1):m[c]=[m[c]],typeof d!="number"&&(d=o(l));var y=m[c];for(v=0;v<y.length;v++){var k=y[v],C=o(k);if(C>d)break}y.splice(v,0,l)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(l){var d=c[l];if(d){if(typeof d=="string")return this.bindKey(d,l);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=l),this.addCommand(d))}},this)},a.prototype.removeCommands=function(c){Object.keys(c).forEach(function(l){this.removeCommand(c[l])},this)},a.prototype.bindKeys=function(c){Object.keys(c).forEach(function(l){this.bindKey(l,c[l])},this)},a.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},a.prototype.parseKeys=function(c){var l=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),d=l.pop(),m=h[d];if(h.FUNCTION_KEYS[m])d=h.FUNCTION_KEYS[m].toLowerCase();else if(l.length){if(l.length==1&&l[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,y=l.length;y--;){var k=h.KEY_MODS[l[y]];if(k==null)return typeof console<"u"&&console.error("invalid modifier "+l[y]+" in "+c),!1;v|=k}return{key:d,hashId:v}},a.prototype.findKeyCommand=function(c,l){var d=s[c]+l;return this.commandKeyBinding[d]},a.prototype.handleKeyboard=function(c,l,d,m){if(!(m<0)){var v=s[l]+d,y=this.commandKeyBinding[v];return c.$keyChain&&(c.$keyChain+=" "+v,y=this.commandKeyBinding[c.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||v,{command:"null"}):(c.$keyChain&&((!l||l==4)&&d.length==1?c.$keyChain=c.$keyChain.slice(0,-v.length-1):(l==-1||m>0)&&(c.$keyChain="")),{command:y})}},a.prototype.getStatusText=function(c,l){return l.$keyChain||""},a}();function o(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var i=function(a){u(c,a);function c(l,d){var m=a.call(this,l,d)||this;return m.$singleCommand=!0,m}return c}(p);i.call=function(a,c,l){p.prototype.$init.call(a,c,l,!0)},p.call=function(a,c,l){p.prototype.$init.call(a,c,l,!1)},r.HashHandler=i,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,f){var u=this&&this.__extends||function(){var o=function(i,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(c[d]=l[d])},o(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");o(i,a);function c(){this.constructor=i}i.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),h=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,p=function(o){u(i,o);function i(a,c){var l=o.call(this,c,a)||this;return l.byName=l.commands,l.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)}),l}return i.prototype.exec=function(a,c,l){if(Array.isArray(a)){for(var d=a.length;d--;)if(this.exec(a[d],c,l))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!a||c&&c.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(c))return!1;var m={editor:c,command:a,args:l};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},i.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(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,a):this.exec(c[0],a,c[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(a){return a.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},i}(g);h.implement(p.prototype,s),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,f){var u=n("../lib/lang"),h=n("../config"),g=n("../range").Range;function s(o,i){return{win:o,mac:i}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){h.loadModule("ace/ext/settings_menu",function(i){i.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){h.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){h.loadModule("ace/ext/error_marker",function(i){i.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,i){typeof i=="number"&&!isNaN(i)&&o.gotoLine(i),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){h.loadModule("ace/ext/searchbox",function(i){i.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,i){o.navigateUp(i.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,i){o.navigateDown(i.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,i){o.navigateLeft(i.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,i){o.navigateRight(i.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 i=o.$copyWithEmptySelection&&o.selection.isEmpty(),a=i?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,i){o.$handlePaste(i)},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){h.loadModule("ace/ext/searchbox",function(i){i.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 i=o.selection.getRange();i.start.column=0,o.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var i=o.selection.getRange();i.end.column=Number.MAX_VALUE,o.session.remove(i)},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,i){o.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,i){o.insert(u.stringRepeat(i.text||"",i.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 i=o.selection.getRange();i.start.column=i.end.column=0,i.end.row++,o.selection.setRange(i,!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 i=o.selection.isBackwards(),a=i?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=i?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),l=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<=c.row+1;y++){var k=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(y)));k.length!==0&&(k=" "+k),v+=k}c.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(a.row,0,c.row+2,0),v),m>0?(o.selection.moveCursorTo(a.row,a.column),o.selection.selectTo(a.row,a.column+m)):(l=o.session.doc.getLine(a.row).length>l?l+1:l,o.selection.moveCursorTo(a.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var i=o.session.doc.getLength()-1,a=o.session.doc.getLine(i).length,c=o.selection.rangeList.ranges,l=[];c.length<1&&(c=[o.selection.getRange()]);for(var d=0;d<c.length;d++)d==c.length-1&&(c[d].end.row===i&&c[d].end.column===a||l.push(new g(c[d].end.row,c[d].end.column,i,a))),d===0?c[d].start.row===0&&c[d].start.column===0||l.push(new g(0,0,c[d].start.row,c[d].start.column)):l.push(new g(c[d-1].end.row,c[d-1].end.column,c[d].start.row,c[d].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var d=0;d<l.length;d++)o.selection.addRange(l[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(`
1037
1037
  `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var i=o.getCursorPosition();o.selection.moveTo(i.row-1,Number.MAX_VALUE),o.insert(`
1038
1038
  `),i.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 p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("./lib/dom"),h=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 p;return this.lineWidgets?p=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[s]?1+p:this.$wrapData[s].length+1+p},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(s+=p.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 p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(i){i&&i.el&&i.el.parentNode&&(i._inDocument=!1,i.el.parentNode.removeChild(i.el))})}},g.prototype.updateOnFold=function(s,p){var o=p.lineWidgets;if(!(!o||!s.action)){for(var i=s.data,a=i.start.row,c=i.end.row,l=s.action=="add",d=a+1;d<c;d++)o[d]&&(o[d].hidden=l);o[c]&&(l?o[a]?o[c].hidden=l:o[a]=o[c]:(o[a]==o[c]&&(o[a]=void 0),o[c].hidden=l))}},g.prototype.updateOnChange=function(s){var p=this.session.lineWidgets;if(p){var o=s.start.row,i=s.end.row-o;if(i!==0)if(s.action=="remove"){var a=p.splice(o+1,i);!p[o]&&a[a.length-1]&&(p[o]=a.pop()),a.forEach(function(l){l&&this.removeLineWidget(l)},this),this.$updateRows()}else{var c=new Array(i);p[o]&&p[o].column!=null&&s.start.column>p[o].column&&o++,c.unshift(o,0),p.splice.apply(p,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var p=!0;s.forEach(function(o,i){if(o)for(p=!1,o.row=i;o.$oldWidget;)o.$oldWidget.row=i,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[s.row];return p&&(s.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._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 p=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",p.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/p.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var i=this.session.lineWidgets;s.row==o.end.row&&!i[o.start.row]?i[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,p),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 p=this.session.lineWidgets[s.row];if(p==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;p;){if(p.$oldWidget==s){p.$oldWidget=s.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var p=this.session.lineWidgets,o=p&&p[s],i=[];o;)i.push(o),o=o.$oldWidget;return i},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,p){var o=this.session._changedWidgets,i=p.layerConfig;if(!(!o||!o.length)){for(var a=1/0,c=0;c<o.length;c++){var l=o[c];if(!(!l||!l.el)&&l.session==this.session){if(!l._inDocument){if(this.session.lineWidgets[l.row]!=l)continue;l._inDocument=!0,p.container.appendChild(l.el)}l.h=l.el.offsetHeight,l.fixedWidth||(l.w=l.el.offsetWidth,l.screenWidth=Math.ceil(l.w/i.characterWidth));var d=l.h/i.lineHeight;l.coverLine&&(d-=this.session.getRowLineCount(l.row),d<0&&(d=0)),l.rowCount!=d&&(l.rowCount=d,l.row<a&&(a=l.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,p){var o=p.layerConfig,i=this.session.lineWidgets;if(i){for(var a=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,i.length);a>0&&!i[a];)a--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var l=a;l<=c;l++){var d=i[l];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,p.container.appendChild(d.el));var m=p.$cursorLayer.getPixelPosition({row:l,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:p.gutterWidth;d.fixedWidth||(v-=p.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=p.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();r.LineWidgets=h}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,f){var u=n("../lib/keys"),h=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new h(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=u.enter)return;o.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(a),l=this.$findNearestAnnotation(a);if(!(c===null&&l===null)){if(c===null&&l!==null){this.activeRowIndex=l,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&l===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(l-a)<Math.abs(c-a)){this.activeRowIndex=l,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,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)},p.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 i=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==i&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(i),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],c=a.getBoundingClientRect(),l=this.annotationTooltip.getElement().style;l.left=c.right+"px",l.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getFoldWidget(o).style.display!=="none";return i&&a},p.prototype.$isAnnotationVisible=function(o){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),a=this.$getAnnotation(o).style.display!=="none";return i&&a},p.prototype.$getFoldWidget=function(o){var i=this.lines.get(o),a=i.element;return a.childNodes[1]},p.prototype.$getAnnotation=function(o){var i=this.lines.get(o),a=i.element;return a.childNodes[2]},p.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var i=0;o-i>0||o+i<this.lines.getLength()-1;){if(i++,o-i>=0&&this.$isFoldWidgetVisible(o-i))return o-i;if(o+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+i))return o+i}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var i=0;o-i>0||o+i<this.lines.getLength()-1;){if(i++,o-i>=0&&this.$isAnnotationVisible(o-i))return o-i;if(o+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+i))return o+i}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var i=this.$getFoldWidget(o);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$focusAnnotation=function(o){if(o!=null){var i=this.$getAnnotation(o);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$blurFoldWidget=function(o){var i=this.$getFoldWidget(o);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$blurAnnotation=function(o){var i=this.$getAnnotation(o);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var i=this.$findNearestAnnotation(this.activeRowIndex);if(i==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,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}},p.prototype.$rowIndexToRow=function(o){var i=this.lines.get(o);return i?i.row:null},p.prototype.$rowToRowIndex=function(o){for(var i=0;i<this.lines.getLength();i++){var a=this.lines.get(i);if(a.row==o)return i}return null},p}();r.GutterKeyboardHandler=g;var s=function(){function p(o,i){this.gutterKeyboardHandler=i,this.domEvent=o}return p.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.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,r,f){var u=this&&this.__values||function(_){var w=typeof Symbol=="function"&&Symbol.iterator,x=w&&_[w],T=0;if(x)return x.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.")},h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,i=n("./mouse/mouse_handler").MouseHandler,a=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,l=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,b=n("./line_widgets").LineWidgets,R=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,E=n("./clipboard"),M=n("./lib/keys"),$=function(){function _(w,x,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++_.$uid,this.commands=new y(p.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new a(this)),this.keyBinding=new c(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(x||T&&T.session||new l("")),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 x=this.curOp.command,T=x&&x.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 x=this.prevOp,T=this.$mergeableCommands,O=x.command&&w.command.name==x.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(x.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,x){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),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),x&&x()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var x=this.session;if(x){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:x}),this.curOp=null,x&&x._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,x){return this.session.doc.setValue(w),x?x==1?this.navigateFileEnd():x==-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,x){this.renderer.setTheme(w,x)},_.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 x=w.session;if(!(!x||x.destroyed)){x.$bracketHighlight&&(x.$bracketHighlight.markerIds.forEach(function(V){x.removeMarker(V)}),x.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=x.getMatchingBracketRanges(T,I);if(!F){var P=new S(x,T.row,T.column),W=P.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=x.getMatchingTags(T);j&&(F=[j.openTagName,j.closeTagName])}}if(!F&&x.$mode.getMatching&&(F=x.$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)])),x.$bracketHighlight={ranges:F,markerIds:F.map(function(V){return x.addMarker(V,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 x=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,x),this._signal("change",w),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(w){var x=w.data;this.renderer.updateLines(x.first,x.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(),x;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(x=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(x=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(x=!1)),w.$highlightLineMarker&&!x)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&x){var T=new m(x.row,x.column,x.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else x&&(w.$highlightLineMarker.start.row=x.row,w.$highlightLineMarker.end.row=x.row,w.$highlightLineMarker.start.column=x.column,w._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(w){var x=this.session;if(x.$selectionMarker&&x.removeMarker(x.$selectionMarker),x.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();x.$selectionMarker=x.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,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var T=x.start.column,O=x.end.column,I=w.getLine(x.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(P.test(W))return P}}},_.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(),x=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)+x)}}var P={text:w};return this._signal("copy",P),E.lineMode=T?P.text:!1,P.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(w,x){var T={text:w,event:x};this.commands.exec("paste",this,T)},_.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var x=w.text,T=x===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(T)this.selection.rangeList.ranges.forEach(function(H){O.insert({row:H.start.row,column:0},x)});else{var I=x.split(/\r\n|\r|\n/),F=this.selection.rangeList.ranges,P=I.length==2&&(!I[0]||!I[1]);if(I.length!=F.length||P)return this.commands.exec("insertstring",this,x);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,x){return this.commands.exec(w,this,x)},_.prototype.insert=function(w,x){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){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(`
1039
1039
  `)==-1){var P=m.fromPoints(I,I);P.end.column+=w.length,this.session.remove(P)}}else{var P=this.getSelectionRange();I=this.session.remove(P),this.clearSelection()}if(w==`
1040
1040
  `||w==`\r
1041
- `){var V=T.getLine(I.row);if(I.column>V.search(/\S|$/)){var W=V.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),V=T.getLine(I.row),G=O.checkOutdent(H,V,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 q=O.getNextLineIndent(H,V.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},q)}G&&O.autoOutdent(H,T,I.row)}},_.prototype.autoIndent=function(){var w=this.session,x=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="",P="",W="",j,H,V,G=w.getTabString(),q=T;q<=O;q++)q>0&&(F=w.getState(q-1),P=w.getLine(q-1),W=x.getNextLineIndent(F,P,G)),j=w.getLine(q),H=x.$getIndent(j),W!==H&&(H.length>0&&(V=new m(q,0,q,H.length),w.remove(V)),W.length>0&&w.insert({row:q,column:0},W)),x.autoOutdent(F,w,q)},_.prototype.onTextInput=function(w,x){if(!x)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,x);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,x){if(x.extendLeft||x.extendRight){var T=this.selection.getRange();T.start.column-=x.extendLeft,T.end.column+=x.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),x.restoreStart||x.restoreEnd){var T=this.selection.getRange();T.start.column-=x.restoreStart,T.end.column-=x.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,x,T){return this.keyBinding.onCommandKey(w,x,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 x=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(x.start.row),I=T.getMode().transformAction(O,"deletion",this,T,x);if(x.end.column===0){var F=T.getTextRange(x);if(F[F.length-1]==`
1041
+ `){var V=T.getLine(I.row);if(I.column>V.search(/\S|$/)){var W=V.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),V=T.getLine(I.row),G=O.checkOutdent(H,V,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 Q=O.getNextLineIndent(H,V.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Q)}G&&O.autoOutdent(H,T,I.row)}},_.prototype.autoIndent=function(){var w=this.session,x=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="",P="",W="",j,H,V,G=w.getTabString(),Q=T;Q<=O;Q++)Q>0&&(F=w.getState(Q-1),P=w.getLine(Q-1),W=x.getNextLineIndent(F,P,G)),j=w.getLine(Q),H=x.$getIndent(j),W!==H&&(H.length>0&&(V=new m(Q,0,Q,H.length),w.remove(V)),W.length>0&&w.insert({row:Q,column:0},W)),x.autoOutdent(F,w,Q)},_.prototype.onTextInput=function(w,x){if(!x)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,x);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,x){if(x.extendLeft||x.extendRight){var T=this.selection.getRange();T.start.column-=x.extendLeft,T.end.column+=x.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),x.restoreStart||x.restoreEnd){var T=this.selection.getRange();T.start.column-=x.restoreStart,T.end.column-=x.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,x,T){return this.keyBinding.onCommandKey(w,x,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 x=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(x.start.row),I=T.getMode().transformAction(O,"deletion",this,T,x);if(x.end.column===0){var F=T.getTextRange(x);if(F[F.length-1]==`
1042
1042
  `){var P=T.getLine(x.end.row);/^\s+$/.test(P)&&(x.end.column=P.length)}}I&&(x=I)}this.session.remove(x),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(`
1043
- `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,x){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,x)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),x=w.column;if(x!==0){var T=this.session.getLine(w.row),O,I;x<T.length?(O=T.charAt(x)+T.charAt(x-1),I=new m(w.row,x-1,w.row,x+1)):(O=T.charAt(x-1)+T.charAt(x-2),I=new m(w.row,x-2,w.row,x)),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 x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(x.start.column<x.end.column){var O=w.getTextRange(x);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(x.start.row),F=x.start,P=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var j=P-W%P,H=s.stringRepeat(" ",j);else{for(var j=W%P;I[x.start.column-1]==" "&&j;)x.start.column--,j--;this.selection.setSelectionRange(x),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(),x=this.session,T=[],O=w.first;O<=w.last;O++)T.push(x.getLine(O));T.sort(function(P,W){return P.toLowerCase()<W.toLowerCase()?-1:P.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=x.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,x.replace(I,T[O-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,x.first,x.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),x=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,T,w)},_.prototype.getNumberAt=function(w,x){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<x;){var I=T.exec(O);if(I.index<=x&&I.index+I[0].length>=x){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},_.prototype.modifyNumber=function(w){var x=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(x,T-1,x,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(x,T);if(F){var P=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-P,j=parseFloat(F.value);j*=Math.pow(10,W),P!==F.end&&T<P?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),V=new m(x,F.start,x,F.end);this.session.replace(V,H),this.moveCursorTo(x,Math.max(F.start+1,T+H.length-F.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var w=this.selection.getCursor().row,x=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=x-O-1;F<0&&(F=0);var P=0,W=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,ue){W=P+ee.length,F>=P&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,P+O),j.selection.selectTo(w,W+O)),P=W});for(var H=this.$toggleWordPairs,V,G=0;G<H.length;G++)for(var q=H[G],U=0;U<=1;U++){var X=+!U,Y=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(q[U])+")\\s?$","i"));if(Y){var z=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));z&&(V=T.replace(new RegExp(s.escapeRegExp(q[U]),"i"),function(ee){var ue=q[X];return ee.toUpperCase()==ee?ue=ue.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(ue=ue.substr(0,0)+q[X].charAt(0).toUpperCase()+ue.substr(1)),ue}),this.insert(V),V="")}}},_.prototype.findLinkAt=function(w,x){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),P=x;P<0&&(P=0);var W=0,j=0,H;try{for(var V=u(F),G=V.next();!G.done;G=V.next()){var q=G.value;if(j=W+q.length,P>=W&&P<=j&&q.match(/((?:https?|ftp):\/\/[\S]+)/)){H=q.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(U){T={error:U}}finally{try{G&&!G.done&&(O=V.return)&&O.call(V)}finally{if(T)throw T.error}}return H},_.prototype.openLink=function(){var w=this.selection.getCursor(),x=this.findLinkAt(w.row,w.column);return x&&window.open(x,"_blank"),x!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,x=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;x.duplicateLines(I,I)}else{var F=O?T.start:T.end,P=x.insert(F,x.getTextRange(T));T.start=F,T.end=P,w.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,x,T){return this.session.moveText(w,x,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,x){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,x?0:w),x&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var P=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=P.length,V=0;V<H;V++){var G=V;P[V].moveBy(W,0),T=this.$getSelectedRows(P[V]);for(var q=T.first,U=T.last;++V<H;){j&&P[V].moveBy(j,0);var X=this.$getSelectedRows(P[V]);if(x&&X.first!=U)break;if(!x&&X.first>U+1)break;U=X.last}for(V--,W=this.session.$moveLines(q,U,x?0:w),x&&w==-1&&(G=V+1);G<=V;)P[G].moveBy(W,0),G++;x||(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,x){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):x===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),x!=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,x,T,O){this.renderer.scrollToLine(w,x,T,O)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),x={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(x,.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,x){this.selection.moveCursorTo(w,x)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,x){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 P=I||O.stepForward();if(P){var W,j=!1,H={},V=T.column-P.start,G,q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;V<P.value.length&&!j;V++)if(q[P.value[V]])switch(G=q[P.value[V]]+"."+P.type.replace("rparen","lparen"),isNaN(H[G])&&(H[G]=0),P.value[V]){case"(":case"[":case"{":H[G]++;break;case")":case"]":case"}":H[G]--,H[G]===-1&&(W="bracket",j=!0);break}}else P.type.indexOf("tag-name")!==-1&&(isNaN(H[P.value])&&(H[P.value]=0),I.value==="<"&&F>1?H[P.value]++:I.value==="</"&&H[P.value]--,H[P.value]===-1&&(W="tag",j=!0));j||(I=P,F++,P=O.stepForward(),V=0)}while(P&&!j);if(W){var U,X;if(W==="bracket")U=this.session.getBracketRange(T),U||(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+V-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+V-1),X=U.start,(x||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(U=this.session.getBracketRange(X)));else if(W==="tag"){if(!P||P.type.indexOf("tag-name")===-1)return;if(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),U.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(U=Y.closeTag,X=U.start):(U=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?X=U.end:X=U.start))}X=X||U.start}X=U&&U.cursor||X,X&&(w?U&&x?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},_.prototype.gotoLine=function(w,x,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:x||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,x||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},_.prototype.navigateTo=function(w,x){this.selection.moveTo(w,x)},_.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},_.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}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 x=this.getSelectionRange().start;this.moveCursorToPosition(x)}this.clearSelection()},_.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var x=this.getSelectionRange().end;this.moveCursorToPosition(x)}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,x){x&&this.$search.set(x);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,x){x&&this.$search.set(x);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,x){var T=this.session.getTextRange(w);return x=this.$search.replace(T,x),x!==null?(w.end=this.session.replace(w,x),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,x,T){x||(x={}),typeof w=="string"||w instanceof RegExp?x.needle=w:typeof w=="object"&&h.mixin(x,w);var O=this.selection.getRange();x.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(x),x.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(x.preventScroll)return I;if(I)return this.revealRange(I,T),I;x.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(w,x){this.find({skipCurrent:!0,backwards:!1},w,x)},_.prototype.findPrevious=function(w,x){this.find(w,{skipCurrent:!0,backwards:!0},x)},_.prototype.revealRange=function(w,x){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),x!==!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 x,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}),P=this.renderer.on("beforeRender",function(){O&&(x=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&x&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,H=j.$cursorLayer.$pixelPos,V=j.layerConfig,G=H.top-V.offset;H.top>=0&&G+x.top<0?O=!0:H.top<V.height&&H.top+x.top+V.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=G+"px",I.style.left=H.left+"px",I.style.height=V.lineHeight+"px",I.scrollIntoView(O)),O=x=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",P))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;x&&(x.setSmoothBlinking(/smooth/.test(w)),x.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(x.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,x,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,x,T)})},_}();$.$uid=0,$.prototype.curOp=null,$.prototype.prevOp={},$.prototype.$mergeableCommands=["backspace","del","insertstring"],$.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"],["&&","||"],["==","!="]],h.implement($.prototype,v),C.defineOptions($.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 x=g.createElement("div");x.className="ace_placeholder",x.textContent=this.$placeholder||"",this.renderer.placeholderNode=x,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},x=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(p.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",x.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",x.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,x){return Math.max(w.toString().length,(x.lastRow+1).toString().length,2)*x.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,_)}};r.Editor=$}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("../lib/dom"),h=function(){function g(s,p){this.element=s,this.canvasHeight=p||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,p){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,p,o){var i=p.firstRowScreen*p.lineHeight,a=Math.floor(i/this.canvasHeight),c=o.documentToScreenRow(s,0)*p.lineHeight;return c-a*this.canvasHeight},g.prototype.computeLineHeight=function(s,p,o){return p.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 p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.appendChild(p)}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 p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}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,p,o,i){var a=this.cellCache.pop();if(!a){var c=u.createElement("div");i&&i(c),this.element.appendChild(c),a={element:c,text:"",row:s}}return a.row=s,a},g}();r.Lines=h}),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,r,f){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,i=function(){function c(l){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",l.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(l){this.session&&this.session.off("change",this.$updateAnnotations),this.session=l,l&&l.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(l,d)},c.prototype.removeGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(l,d)},c.prototype.setAnnotations=function(l){this.$annotations=[];for(var d=0;d<l.length;d++){var m=l[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")}},c.prototype.$updateAnnotations=function(l){if(this.$annotations.length){var d=l.start.row,m=l.end.row-d;if(m!==0)if(l.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)}}},c.prototype.update=function(l){this.config=l;var d=this.session,m=l.firstRow,v=Math.min(l.lastRow+l.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=l,this.$lines.moveContainer(l),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),k=y?y.start.row:1/0,C=null,S=-1,b=m;;){if(b>k&&(b=y.end.row+1,y=d.getNextFoldLine(b,y),k=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=b:(C=this.$lines.createCell(b,l,this.session,a),this.$lines.push(C)),this.$renderCell(C,l,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$updateGutterWidth=function(l){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,l):y.toString().length*l.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))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var l=this.session.selection.getCursor();this.$cursorRow!==l.row&&(this.$cursorRow=l.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var l=this.session.selection.cursor.row;if(this.$cursorRow=l,!(this.$cursorCell&&this.$cursorCell.row==l)){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}}}}},c.prototype.scrollLines=function(l){var d=this.config;if(this.config=l,this.$updateCursorRow(),this.$lines.pageChanged(d,l))return this.update(l);this.$lines.moveContainer(l);var m=Math.min(l.lastRow+l.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<l.firstRow)return this.update(l);if(m<d.firstRow)return this.update(l);if(d.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,l.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();l.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(l,l.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(l,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$renderLines=function(l,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,l,this.session,a);this.$renderCell(S,l,k,y),v.push(S),y++}return v},c.prototype.$renderCell=function(l,d,m,v){var y=l.element,k=this.session,C=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],R=b.firstChild,L=k.$firstLineNumber,E=k.$breakpoints,M=k.$decorations,$=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",x=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=($?$.getText(k,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=m.end.row)&&(x+="ace_gutter-active-line ",this.$cursorCell!=l&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=l)),E[v]&&(x+=E[v]),M[v]&&(x+=M[v]),this.$annotations[v]&&v!==_&&(x+=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,P=I=="start"&&v==_&&v<m.end.row;if(P){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}}x+=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 V=k.getFoldWidgetRange(v);V?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[V.start.row+1,V.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])),P?(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?(b.className="ace_gutter_annotation",R.className=T,R.className+=W,u.setStyle(R.style,"height",w),u.setStyle(b.style,"display","block"),u.setStyle(b.style,"height",w),b.setAttribute("aria-label",o("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):this.$annotations[v]?(b.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(b.style,"display","block"),u.setStyle(b.style,"height",w),b.setAttribute("aria-label",o("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):(u.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0")),O!==C.data&&(C.data=O),y.className!=x&&(y.className=x),u.setStyle(l.element.style,"height",this.$lines.computeLineHeight(v,d,k)+"px"),u.setStyle(l.element.style,"top",this.$lines.computeLineTop(v,d,k)+"px"),l.text=O,b.style.display==="none"&&S.style.display==="none"?l.element.setAttribute("aria-hidden",!0):l.element.setAttribute("aria-hidden",!1),l},c.prototype.setHighlightGutterLine=function(l){this.$highlightGutterLine=l},c.prototype.setShowLineNumbers=function(l){this.$renderer=!l&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(l){l?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=l,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var l=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(l.borderLeftWidth)||0)+(parseInt(l.paddingLeft)||0)+1,this.$padding.right=(parseInt(l.borderRightWidth)||0)+(parseInt(l.paddingRight)||0),this.$padding},c.prototype.getRegion=function(l){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(l.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&l.x>m.right-d.right)return"foldWidgets"},c}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,h.implement(i.prototype,s);function a(c){var l=document.createTextNode("");c.appendChild(l);var d=u.createElement("span");c.appendChild(d);var m=u.createElement("span");c.appendChild(m);var v=u.createElement("span");return m.appendChild(v),c}r.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,f){var u=n("../range").Range,h=n("../lib/dom"),g=function(){function p(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,i){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=i,a.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var i;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(i,this,this.session,o);continue}var l=c.range.clipRows(o.firstRow,o.lastRow);if(!l.isEmpty())if(l=l.toScreenRange(this.session),c.renderer){var d=this.$getTop(l.start.row,o),m=this.$padding+l.start.column*o.characterWidth;c.renderer(i,l,m,d,o)}else c.type=="fullLine"?this.drawFullLineMarker(i,l,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(i,l,c.clazz,o):l.isMultiLine()?c.type=="text"?this.drawTextMarker(i,l,c.clazz,o):this.drawMultiLineMarker(i,l,c.clazz,o):this.drawSingleLineMarker(i,l,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,i){return(o-i.firstRowScreen)*i.lineHeight},p.prototype.drawTextMarker=function(o,i,a,c,l){for(var d=this.session,m=i.start.row,v=i.end.row,y=m,k=0,C=0,S=d.getScreenLastRowColumn(y),b=new u(y,i.start.column,y,C);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?i.start.column:d.getRowWrapIndent(y),b.end.column=S,k=C,C=S,S=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:i.end.column,this.drawSingleLineMarker(o,b,a+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&i.start.column,k<C,C>S,y==v),c,y==v?0:1,l)},p.prototype.drawMultiLineMarker=function(o,i,a,c,l){var d=this.$padding,m=c.lineHeight,v=this.$getTop(i.start.row,c),y=d+i.start.column*c.characterWidth;if(l=l||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var k=i.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",c,null,l)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(l||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var k=i.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(o,k,a+" ace_br12",c,null,l)}else{v=this.$getTop(i.end.row,c);var C=i.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+d+"px;"+(l||""))}if(m=(i.end.row-i.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(i.start.row+1,c);var S=(i.start.column?1:0)|(i.end.column?0:8);this.elt(a+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+d+"px;"+(l||""))}},p.prototype.drawSingleLineMarker=function(o,i,a,c,l,d){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(o,i,a,c,l,d);var m=c.lineHeight,v=(i.end.column+(l||0)-i.start.column)*c.characterWidth,y=this.$getTop(i.start.row,c),k=this.$padding+i.start.column*c.characterWidth;this.elt(a,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(o,i,a,c,l,d){var m=c.lineHeight,v=this.$getTop(i.start.row,c),y=this.$padding,k=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);k.forEach(function(C){this.elt(a,"height:"+m+"px;width:"+(C.width+(l||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(o,i,a,c,l){var d=this.$getTop(i.start.row,c),m=c.lineHeight;i.start.row!=i.end.row&&(m+=this.$getTop(i.end.row,c)-d),this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p.prototype.drawScreenLineMarker=function(o,i,a,c,l){var d=this.$getTop(i.start.row,c),m=c.lineHeight;this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p}();g.prototype.$padding=0;function s(p,o,i,a){return(p?1:0)|(o?2:0)|(i?4:0)|(a?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,f){var u=new Set(["text","rparen","lparen"]);r.isTextToken=function(h){return u.has(h)}}),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,r,f){var u=n("../lib/oop"),h=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,i=n("./text_util").isTextToken,a=function(){function c(l){this.dom=h,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",l.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var l=this.session.doc,d=l.getNewLineCharacter()==`
1043
+ `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,x){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,x)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),x=w.column;if(x!==0){var T=this.session.getLine(w.row),O,I;x<T.length?(O=T.charAt(x)+T.charAt(x-1),I=new m(w.row,x-1,w.row,x+1)):(O=T.charAt(x-1)+T.charAt(x-2),I=new m(w.row,x-2,w.row,x)),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 x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),T=this.session.getTextRange(x);this.session.replace(x,T.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(x.start.column<x.end.column){var O=w.getTextRange(x);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(x.start.row),F=x.start,P=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var j=P-W%P,H=s.stringRepeat(" ",j);else{for(var j=W%P;I[x.start.column-1]==" "&&j;)x.start.column--,j--;this.selection.setSelectionRange(x),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(),x=this.session,T=[],O=w.first;O<=w.last;O++)T.push(x.getLine(O));T.sort(function(P,W){return P.toLowerCase()<W.toLowerCase()?-1:P.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=x.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,x.replace(I,T[O-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,x.first,x.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),x=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,T,w)},_.prototype.getNumberAt=function(w,x){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<x;){var I=T.exec(O);if(I.index<=x&&I.index+I[0].length>=x){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},_.prototype.modifyNumber=function(w){var x=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(x,T-1,x,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(x,T);if(F){var P=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-P,j=parseFloat(F.value);j*=Math.pow(10,W),P!==F.end&&T<P?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),V=new m(x,F.start,x,F.end);this.session.replace(V,H),this.moveCursorTo(x,Math.max(F.start+1,T+H.length-F.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var w=this.selection.getCursor().row,x=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=x-O-1;F<0&&(F=0);var P=0,W=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,ue){W=P+ee.length,F>=P&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,P+O),j.selection.selectTo(w,W+O)),P=W});for(var H=this.$toggleWordPairs,V,G=0;G<H.length;G++)for(var Q=H[G],U=0;U<=1;U++){var Z=+!U,Y=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(Q[U])+")\\s?$","i"));if(Y){var z=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));z&&(V=T.replace(new RegExp(s.escapeRegExp(Q[U]),"i"),function(ee){var ue=Q[Z];return ee.toUpperCase()==ee?ue=ue.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(ue=ue.substr(0,0)+Q[Z].charAt(0).toUpperCase()+ue.substr(1)),ue}),this.insert(V),V="")}}},_.prototype.findLinkAt=function(w,x){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),P=x;P<0&&(P=0);var W=0,j=0,H;try{for(var V=u(F),G=V.next();!G.done;G=V.next()){var Q=G.value;if(j=W+Q.length,P>=W&&P<=j&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Q.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(U){T={error:U}}finally{try{G&&!G.done&&(O=V.return)&&O.call(V)}finally{if(T)throw T.error}}return H},_.prototype.openLink=function(){var w=this.selection.getCursor(),x=this.findLinkAt(w.row,w.column);return x&&window.open(x,"_blank"),x!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,x=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;x.duplicateLines(I,I)}else{var F=O?T.start:T.end,P=x.insert(F,x.getTextRange(T));T.start=F,T.end=P,w.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,x,T){return this.session.moveText(w,x,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,x){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,x?0:w),x&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var P=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=P.length,V=0;V<H;V++){var G=V;P[V].moveBy(W,0),T=this.$getSelectedRows(P[V]);for(var Q=T.first,U=T.last;++V<H;){j&&P[V].moveBy(j,0);var Z=this.$getSelectedRows(P[V]);if(x&&Z.first!=U)break;if(!x&&Z.first>U+1)break;U=Z.last}for(V--,W=this.session.$moveLines(Q,U,x?0:w),x&&w==-1&&(G=V+1);G<=V;)P[G].moveBy(W,0),G++;x||(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,x){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):x===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),x!=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,x,T,O){this.renderer.scrollToLine(w,x,T,O)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),x={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(x,.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,x){this.selection.moveCursorTo(w,x)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,x){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 P=I||O.stepForward();if(P){var W,j=!1,H={},V=T.column-P.start,G,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;V<P.value.length&&!j;V++)if(Q[P.value[V]])switch(G=Q[P.value[V]]+"."+P.type.replace("rparen","lparen"),isNaN(H[G])&&(H[G]=0),P.value[V]){case"(":case"[":case"{":H[G]++;break;case")":case"]":case"}":H[G]--,H[G]===-1&&(W="bracket",j=!0);break}}else P.type.indexOf("tag-name")!==-1&&(isNaN(H[P.value])&&(H[P.value]=0),I.value==="<"&&F>1?H[P.value]++:I.value==="</"&&H[P.value]--,H[P.value]===-1&&(W="tag",j=!0));j||(I=P,F++,P=O.stepForward(),V=0)}while(P&&!j);if(W){var U,Z;if(W==="bracket")U=this.session.getBracketRange(T),U||(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+V-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+V-1),Z=U.start,(x||Z.row===T.row&&Math.abs(Z.column-T.column)<2)&&(U=this.session.getBracketRange(Z)));else if(W==="tag"){if(!P||P.type.indexOf("tag-name")===-1)return;if(U=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),U.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(U=Y.closeTag,Z=U.start):(U=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?Z=U.end:Z=U.start))}Z=Z||U.start}Z=U&&U.cursor||Z,Z&&(w?U&&x?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Z.row,Z.column):this.selection.moveTo(Z.row,Z.column))}}},_.prototype.gotoLine=function(w,x,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:x||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,x||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},_.prototype.navigateTo=function(w,x){this.selection.moveTo(w,x)},_.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},_.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}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 x=this.getSelectionRange().start;this.moveCursorToPosition(x)}this.clearSelection()},_.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var x=this.getSelectionRange().end;this.moveCursorToPosition(x)}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,x){x&&this.$search.set(x);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,x){x&&this.$search.set(x);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,x){var T=this.session.getTextRange(w);return x=this.$search.replace(T,x),x!==null?(w.end=this.session.replace(w,x),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,x,T){x||(x={}),typeof w=="string"||w instanceof RegExp?x.needle=w:typeof w=="object"&&h.mixin(x,w);var O=this.selection.getRange();x.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(x),x.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(x.preventScroll)return I;if(I)return this.revealRange(I,T),I;x.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(w,x){this.find({skipCurrent:!0,backwards:!1},w,x)},_.prototype.findPrevious=function(w,x){this.find(w,{skipCurrent:!0,backwards:!0},x)},_.prototype.revealRange=function(w,x){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),x!==!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 x,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}),P=this.renderer.on("beforeRender",function(){O&&(x=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&x&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,H=j.$cursorLayer.$pixelPos,V=j.layerConfig,G=H.top-V.offset;H.top>=0&&G+x.top<0?O=!0:H.top<V.height&&H.top+x.top+V.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=G+"px",I.style.left=H.left+"px",I.style.height=V.lineHeight+"px",I.scrollIntoView(O)),O=x=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",P))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;x&&(x.setSmoothBlinking(/smooth/.test(w)),x.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(x.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,x,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,x,T)})},_}();$.$uid=0,$.prototype.curOp=null,$.prototype.prevOp={},$.prototype.$mergeableCommands=["backspace","del","insertstring"],$.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"],["&&","||"],["==","!="]],h.implement($.prototype,v),C.defineOptions($.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 x=g.createElement("div");x.className="ace_placeholder",x.textContent=this.$placeholder||"",this.renderer.placeholderNode=x,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},x=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(p.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",x.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",x.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,x){return Math.max(w.toString().length,(x.lastRow+1).toString().length,2)*x.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,_)}};r.Editor=$}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("../lib/dom"),h=function(){function g(s,p){this.element=s,this.canvasHeight=p||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,p){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,p,o){var i=p.firstRowScreen*p.lineHeight,a=Math.floor(i/this.canvasHeight),c=o.documentToScreenRow(s,0)*p.lineHeight;return c-a*this.canvasHeight},g.prototype.computeLineHeight=function(s,p,o){return p.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 p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.appendChild(p)}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 p=u.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}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,p,o,i){var a=this.cellCache.pop();if(!a){var c=u.createElement("div");i&&i(c),this.element.appendChild(c),a={element:c,text:"",row:s}}return a.row=s,a},g}();r.Lines=h}),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,r,f){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,i=function(){function c(l){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",l.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(l){this.session&&this.session.off("change",this.$updateAnnotations),this.session=l,l&&l.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(l,d)},c.prototype.removeGutterDecoration=function(l,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(l,d)},c.prototype.setAnnotations=function(l){this.$annotations=[];for(var d=0;d<l.length;d++){var m=l[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")}},c.prototype.$updateAnnotations=function(l){if(this.$annotations.length){var d=l.start.row,m=l.end.row-d;if(m!==0)if(l.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)}}},c.prototype.update=function(l){this.config=l;var d=this.session,m=l.firstRow,v=Math.min(l.lastRow+l.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=l,this.$lines.moveContainer(l),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),k=y?y.start.row:1/0,C=null,S=-1,b=m;;){if(b>k&&(b=y.end.row+1,y=d.getNextFoldLine(b,y),k=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=b:(C=this.$lines.createCell(b,l,this.session,a),this.$lines.push(C)),this.$renderCell(C,l,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$updateGutterWidth=function(l){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,l):y.toString().length*l.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))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var l=this.session.selection.getCursor();this.$cursorRow!==l.row&&(this.$cursorRow=l.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var l=this.session.selection.cursor.row;if(this.$cursorRow=l,!(this.$cursorCell&&this.$cursorCell.row==l)){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}}}}},c.prototype.scrollLines=function(l){var d=this.config;if(this.config=l,this.$updateCursorRow(),this.$lines.pageChanged(d,l))return this.update(l);this.$lines.moveContainer(l);var m=Math.min(l.lastRow+l.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<l.firstRow)return this.update(l);if(m<d.firstRow)return this.update(l);if(d.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,l.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();l.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(l,l.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(l,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(l)},c.prototype.$renderLines=function(l,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,l,this.session,a);this.$renderCell(S,l,k,y),v.push(S),y++}return v},c.prototype.$renderCell=function(l,d,m,v){var y=l.element,k=this.session,C=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],R=b.firstChild,L=k.$firstLineNumber,E=k.$breakpoints,M=k.$decorations,$=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",x=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=($?$.getText(k,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=m.end.row)&&(x+="ace_gutter-active-line ",this.$cursorCell!=l&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=l)),E[v]&&(x+=E[v]),M[v]&&(x+=M[v]),this.$annotations[v]&&v!==_&&(x+=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,P=I=="start"&&v==_&&v<m.end.row;if(P){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}}x+=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 V=k.getFoldWidgetRange(v);V?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[V.start.row+1,V.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])),P?(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?(b.className="ace_gutter_annotation",R.className=T,R.className+=W,u.setStyle(R.style,"height",w),u.setStyle(b.style,"display","block"),u.setStyle(b.style,"height",w),b.setAttribute("aria-label",o("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):this.$annotations[v]?(b.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(b.style,"display","block"),u.setStyle(b.style,"height",w),b.setAttribute("aria-label",o("Read annotations row $0",[O])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):(u.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0")),O!==C.data&&(C.data=O),y.className!=x&&(y.className=x),u.setStyle(l.element.style,"height",this.$lines.computeLineHeight(v,d,k)+"px"),u.setStyle(l.element.style,"top",this.$lines.computeLineTop(v,d,k)+"px"),l.text=O,b.style.display==="none"&&S.style.display==="none"?l.element.setAttribute("aria-hidden",!0):l.element.setAttribute("aria-hidden",!1),l},c.prototype.setHighlightGutterLine=function(l){this.$highlightGutterLine=l},c.prototype.setShowLineNumbers=function(l){this.$renderer=!l&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(l){l?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=l,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var l=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(l.borderLeftWidth)||0)+(parseInt(l.paddingLeft)||0)+1,this.$padding.right=(parseInt(l.borderRightWidth)||0)+(parseInt(l.paddingRight)||0),this.$padding},c.prototype.getRegion=function(l){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(l.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&l.x>m.right-d.right)return"foldWidgets"},c}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,h.implement(i.prototype,s);function a(c){var l=document.createTextNode("");c.appendChild(l);var d=u.createElement("span");c.appendChild(d);var m=u.createElement("span");c.appendChild(m);var v=u.createElement("span");return m.appendChild(v),c}r.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,f){var u=n("../range").Range,h=n("../lib/dom"),g=function(){function p(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,i){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=i,a.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var i;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(i,this,this.session,o);continue}var l=c.range.clipRows(o.firstRow,o.lastRow);if(!l.isEmpty())if(l=l.toScreenRange(this.session),c.renderer){var d=this.$getTop(l.start.row,o),m=this.$padding+l.start.column*o.characterWidth;c.renderer(i,l,m,d,o)}else c.type=="fullLine"?this.drawFullLineMarker(i,l,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(i,l,c.clazz,o):l.isMultiLine()?c.type=="text"?this.drawTextMarker(i,l,c.clazz,o):this.drawMultiLineMarker(i,l,c.clazz,o):this.drawSingleLineMarker(i,l,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,i){return(o-i.firstRowScreen)*i.lineHeight},p.prototype.drawTextMarker=function(o,i,a,c,l){for(var d=this.session,m=i.start.row,v=i.end.row,y=m,k=0,C=0,S=d.getScreenLastRowColumn(y),b=new u(y,i.start.column,y,C);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?i.start.column:d.getRowWrapIndent(y),b.end.column=S,k=C,C=S,S=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:i.end.column,this.drawSingleLineMarker(o,b,a+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&i.start.column,k<C,C>S,y==v),c,y==v?0:1,l)},p.prototype.drawMultiLineMarker=function(o,i,a,c,l){var d=this.$padding,m=c.lineHeight,v=this.$getTop(i.start.row,c),y=d+i.start.column*c.characterWidth;if(l=l||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var k=i.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",c,null,l)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(l||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var k=i.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(o,k,a+" ace_br12",c,null,l)}else{v=this.$getTop(i.end.row,c);var C=i.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+d+"px;"+(l||""))}if(m=(i.end.row-i.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(i.start.row+1,c);var S=(i.start.column?1:0)|(i.end.column?0:8);this.elt(a+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+d+"px;"+(l||""))}},p.prototype.drawSingleLineMarker=function(o,i,a,c,l,d){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(o,i,a,c,l,d);var m=c.lineHeight,v=(i.end.column+(l||0)-i.start.column)*c.characterWidth,y=this.$getTop(i.start.row,c),k=this.$padding+i.start.column*c.characterWidth;this.elt(a,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(o,i,a,c,l,d){var m=c.lineHeight,v=this.$getTop(i.start.row,c),y=this.$padding,k=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);k.forEach(function(C){this.elt(a,"height:"+m+"px;width:"+(C.width+(l||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(o,i,a,c,l){var d=this.$getTop(i.start.row,c),m=c.lineHeight;i.start.row!=i.end.row&&(m+=this.$getTop(i.end.row,c)-d),this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p.prototype.drawScreenLineMarker=function(o,i,a,c,l){var d=this.$getTop(i.start.row,c),m=c.lineHeight;this.elt(a,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(l||""))},p}();g.prototype.$padding=0;function s(p,o,i,a){return(p?1:0)|(o?2:0)|(i?4:0)|(a?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,f){var u=new Set(["text","rparen","lparen"]);r.isTextToken=function(h){return u.has(h)}}),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,r,f){var u=n("../lib/oop"),h=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,i=n("./text_util").isTextToken,a=function(){function c(l){this.dom=h,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",l.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var l=this.session.doc,d=l.getNewLineCharacter()==`
1044
1044
  `&&l.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(l){this.$padding=l,this.element.style.margin="0 "+l+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(l){this.$fontMetrics=l,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(l){this.session=l,l&&this.$computeTabString()},c.prototype.setShowInvisibles=function(l){return this.showInvisibles==l?!1:(this.showInvisibles=l,typeof l=="string"?(this.showSpaces=/tab/i.test(l),this.showTabs=/space/i.test(l),this.showEOL=/eol/i.test(l)):this.showSpaces=this.showTabs=this.showEOL=l,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(l){return this.displayIndentGuides==l?!1:(this.displayIndentGuides=l,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(l){return this.$highlightIndentGuides===l?!1:(this.$highlightIndentGuides=l,l)},c.prototype.$computeTabString=function(){var l=this.session.getTabSize();this.tabSize=l;for(var d=this.$tabStrings=[0],m=1;m<l+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":"",b=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=b,this.$tabStrings[" "]=v}},c.prototype.updateLines=function(l,d,m){if(this.config.lastRow!=l.lastRow||this.config.firstRow!=l.firstRow)return this.update(l);this.config=l;for(var v=Math.max(d,l.firstRow),y=Math.min(m,l.lastRow),k=this.element.childNodes,C=0,b=l.firstRow;b<v;b++){var R=this.session.getFoldLine(b);if(R)if(R.containsRow(v)){v=R.start.row;break}else b=R.end.row;C++}for(var S=!1,b=v,R=this.session.getNextFoldLine(b),L=R?R.start.row:1/0;b>L&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),L=R?R.start.row:1/0),!(b>y);){var E=k[C++];if(E){this.dom.removeChildren(E),this.$renderLine(E,b,b==L?R:!1),S&&(E.style.top=this.$lines.computeLineTop(b,l,this.session)+"px");var M=l.lineHeight*this.session.getRowLength(b)+"px";E.style.height!=M&&(S=!0,E.style.height=M)}b++}if(S)for(;C<this.$lines.cells.length;){var $=this.$lines.cells[C++];$.element.style.top=this.$lines.computeLineTop($.row,l,this.session)+"px"}},c.prototype.scrollLines=function(l){var d=this.config;if(this.config=l,this.$lines.pageChanged(d,l))return this.update(l);this.$lines.moveContainer(l);var m=l.lastRow,v=d?d.lastRow:-1;if(!d||v<l.firstRow)return this.update(l);if(m<d.firstRow)return this.update(l);if(!d||d.lastRow<l.firstRow)return this.update(l);if(l.lastRow<d.firstRow)return this.update(l);if(d.firstRow<l.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,l.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>l.lastRow)for(var y=this.session.getFoldedRowCount(l.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();l.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(l,l.firstRow,d.firstRow-1)),l.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(l,d.lastRow+1,l.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(l,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,l,this.session),b=S.element;this.dom.removeChildren(b),h.setStyle(b.style,"height",this.$lines.computeLineHeight(y,l,this.session)+"px"),h.setStyle(b.style,"top",this.$lines.computeLineTop(y,l,this.session)+"px"),this.$renderLine(b,y,y==C?k:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},c.prototype.update=function(l){this.$lines.moveContainer(l),this.config=l;for(var d=l.firstRow,m=l.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(l,d,m))},c.prototype.$renderToken=function(l,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,b=0;S=k.exec(v);){var R=S[1],L=S[2],E=S[3],M=S[4],$=S[5];if(!(!y.showSpaces&&L)){var A=b!=S.index?v.slice(b,S.index):"";if(b=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(E){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,E.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($){d+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=$,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),i(m.type))l.appendChild(C);else{var x="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=x,w.appendChild(C),l.appendChild(w)}return d+v.length},c.prototype.renderIndentGuide=function(l,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++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}else if(d[0]==" "){for(var k=0;k<v;k++)l.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}return this.$highlightIndentGuide(),d},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var l=this.session.doc.$lines;if(l){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&&l[d.row]!==""&&d.column===l[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=d.row+1;C<l.length;C++){var S=l[C],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=C,b<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var l=this.$lines.cells,d=0;d<l.length;d++){var m=l[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}}}},c.prototype.$setIndentGuideActive=function(l,d){var m=this.session.doc.getLine(l.row);if(m!==""){var v=l.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")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var l=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<l.length;m++){var v=l[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=l.length-1;m>=0;m--){var v=l[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}}},c.prototype.$createLineElement=function(l){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},c.prototype.$renderWrappedLine=function(l,d,m){var v=0,y=0,k=m[0],C=0,S=this.$createLineElement();l.appendChild(S);for(var b=0;b<d.length;b++){var R=d[b],L=R.value;if(b==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(),l.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)},c.prototype.$renderSimpleLine=function(l,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(l,k),!k))){if(m+k.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(l,m,y,k);m=this.$renderToken(l,m,y,k)}}},c.prototype.$renderOverflowMessage=function(l,d,m,v,y){m&&this.$renderToken(l,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...>",l.appendChild(k)},c.prototype.$renderLine=function(l,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=l;if(v.length){var k=this.session.getRowSplitData(d);if(k&&k.length){this.$renderWrappedLine(l,v,k);var y=l.lastChild}else{var y=l;this.$useLineGroups()&&(y=this.$createLineElement(),l.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),l.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)}},c.prototype.$getFoldLineTokens=function(l,d){var m=this.session,v=[];function y(C,S,b){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 E=C[R].value.substring(S-L);E.length>b-S&&(E=E.substring(0,b-S)),v.push({type:C[R].type,value:E}),L=S+E.length,R+=1}for(;L<b&&R<C.length;){var E=C[R].value;E.length+L>b?v.push({type:C[R].type,value:E.substring(0,b-L)}):v.push(C[R]),L+=E.length,R+=1}}var k=m.getTokens(l);return d.walk(function(C,S,b,R,L){C!=null?v.push({type:"fold",value:C}):(L&&(k=m.getTokens(S)),k.length&&y(k,R,b))},d.end.row,this.session.getLine(d.end.row).length),v},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();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,p),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,f){var u=n("../lib/dom"),h=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 p=this.cursors,o=p.length;o--;)u.setStyle(p[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,p=s.length;p--;)s[p].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 p=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(s,p){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),i=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),a=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:a}},g.prototype.isCursorInView=function(s,p){return s.top>=0&&s.top<p.maxHeight},g.prototype.update=function(s){this.config=s;var p=this.session.$selectionMarkers,o=0,i=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,a=p.length;o<a;o++){var c=this.getPixelPosition(p[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var l=this.cursors[i++]||this.addCursor(),d=l.style;this.drawCursor?this.drawCursor(l,c,s,p[o],this.session):this.isCursorInView(c,s)?(u.setStyle(d,"display","block"),u.translate(l,c.left,c.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>i;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=c,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}();h.prototype.$padding=0,h.prototype.drawCursor=null,r.Cursor=h}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,f){var u=this&&this.__extends||function(){var l=function(d,m){return l=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])},l(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");l(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,i=function(){function l(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 l.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},l}();h.implement(i.prototype,p);var a=function(l){u(d,l);function d(m,v){var y=l.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}(i);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(l){u(d,l);function d(m,v){var y=l.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}(i);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=c,r.VScrollBar=a,r.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,f){var u=this&&this.__extends||function(){var c=function(l,d){return c=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])},c(l,d)};return function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),h=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1045
1045
  position: absolute;
1046
1046
  background: rgba(128, 128, 128, 0.6);
@@ -1736,7 +1736,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1736
1736
  width:1px;
1737
1737
  height:1px;
1738
1738
  overflow:hidden;
1739
- }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,f){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function p(o,i){this.canvas=u.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var i=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 c=this.canvas.getContext("2d");function l($,A){return $.priority<A.priority?-1:$.priority>A.priority?1:0}var d=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),d){var m={info:1,warning:2,error:3};d.forEach(function($){$.priority=m[$.type]||null}),d=d.sort(l);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),b=Math.round((k-C)*this.lineHeight*this.heightRatio),R=Math.round(((k-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=R-b;if(L<this.minDecorationHeight){var E=(b+R)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(E-this.halfMinDecorationHeight),R=Math.round(E+this.halfMinDecorationHeight)}c.fillStyle=i[d[y].type]||null,c.fillRect(0,S,this.canvasWidth,R-b)}}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);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,i){var a=0;if(i&&i.length>0)for(var c=0;c<i.length;c++)o>i[c].start.row&&o<i[c].end.row?a+=o-i[c].start.row:o>=i[c].end.row&&(a+=i[c].end.row-i[c].start.row);return a},p}();h.implement(s.prototype,g),r.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,r,f){var u=n("./lib/oop"),h=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,i=n("./layer/text").Text,a=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,l=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,b=n("./lib/useragent");h.importCssString(C,"ace_editor.css",!1);var R=function(){function L(E,M){var $=this;this.container=E||h.createElement("div"),h.addCssClass(this.container,"ace_editor"),h.HI_DPI&&h.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=h.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=h.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=h.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new i(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 l(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(_){$.$scrollAnimation||$.session.setScrollTop(_.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){$.$scrollAnimation||$.session.setScrollLeft(_.data-$.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(_){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._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=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),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(),h.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(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(E,M,$){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:E,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if($)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(E){E?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(E,M,$,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),$||($=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(E,M,$,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!A)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?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(E,M,$,A){A-=this.$extraHeight||0;var _=0,w=this.$size,x={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(E||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),$&&(E||w.width!=$)){_|=this.CHANGE_SIZE,w.width=$,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,h.setStyle(this.scrollBarH.element.style,"left",M+"px"),h.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,$-M-this.scrollBarV.getWidth()-this.margin.h),h.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";h.setStyle(this.scrollBarH.element.style,"right",T),h.setStyle(this.scroller.style,"right",T),h.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&(_|=this.CHANGE_FULL)}return w.$dirty=!$||!A,_&&this._signal("resize",x),_},L.prototype.onGutterResize=function(E){var M=this.$showGutter?E: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 E=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},L.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},L.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=h.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=h.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,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 E=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){h.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){M&&M.markerRange&&($=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=$.top,w=$.left;_-=A.offset;var x=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if(_<0||_>A.height-x){h.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-x;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,h.setStyle(E,"height",x+"px"),h.setStyle(E,"width",T+"px"),h.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 E=this.layerConfig,M=E.lastRow,$=this.session.documentToScreenRow(M,0)*E.lineHeight;return $-this.session.getScrollTop()>E.height-E.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(E,M,$,A){var _=this.scrollMargin;_.top=E|0,_.bottom=M|0,_.right=A|0,_.left=$|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},L.prototype.setMargin=function(E,M,$,A){var _=this.margin;_.top=E|0,_.bottom=M|0,_.right=A|0,_.left=$|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(E){this.setOption("hScrollBarAlwaysVisible",E)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},L.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-M&&(E=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+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(E,M){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!M){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),h.translate(this.content,-this.scrollLeft,-$.offset);var _=$.width+2*this.$padding+"px",w=$.minHeight+"px";h.setStyle(this.content.style,"width",_),h.setStyle(this.content.style,"height",w)}if(E&this.CHANGE_H_SCROLL&&(h.translate(this.content,-this.scrollLeft,-$.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),E&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update($):this.$gutterLayer.scrollLines($)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",E)},L.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,$=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var A=$<=2*this.lineHeight,_=!A&&E>M;if($!=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=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,$),this.desiredHeight=$,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var E=this.session,M=this.$size,$=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,w=this.$getLongestLine(),x=!$&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==x;T&&(this.$horizScroll=x,this.scrollBarH.setVisible(x));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 P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,_-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var W=!$&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-_+F<0||this.scrollTop>P.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,V=Math.ceil(I/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),q=G+V,U,X,Y=this.lineHeight;G=E.screenToDocumentRow(G,0);var z=E.getFoldLine(G);z&&(G=z.start.row),U=E.documentToScreenRow(G,0),X=E.getRowLength(G)*Y,q=Math.min(E.screenToDocumentRow(q,0),E.getLength()-1),I=M.scrollerHeight+E.getRowLength(q)*Y+X,H=this.scrollTop-U*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:G,firstRowScreen:U,lastRow:q,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 E=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(E>$.lastRow+1)&&!(M<$.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,E,M),!0}}},L.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*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(E,M){this.$gutterLayer.addGutterDecoration(E,M)},L.prototype.removeGutterDecoration=function(E,M){this.$gutterLayer.removeGutterDecoration(E,M)},L.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),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(E,M,$){this.scrollCursorIntoView(E,$),this.scrollCursorIntoView(M,$)},L.prototype.scrollCursorIntoView=function(E,M,$){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(E),_=A.left,w=A.top,x=$&&$.top||0,T=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+x>w?(M&&O+x>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(E){this.session.setScrollTop(E*this.lineHeight)},L.prototype.alignCursor=function(E,M){typeof E=="number"&&(E={row:E,column:0});var $=this.$cursorLayer.getPixelPosition(E),A=this.$size.scrollerHeight-this.lineHeight,_=$.top-A*(M||0);return this.session.setScrollTop(_),_},L.prototype.$calcSteps=function(E,M){var $=0,A=this.STEPS,_=[],w=function(x,T,O){return O*(Math.pow(x-1,3)+1)+T};for($=0;$<A;++$)_.push(w($/this.STEPS,E,M-E));return _},L.prototype.scrollToLine=function(E,M,$,A){var _=this.$cursorLayer.getPixelPosition({row:E,column:0}),w=_.top;M&&(w-=this.$size.scrollerHeight/2);var x=this.scrollTop;this.session.setScrollTop(w),$!==!1&&this.animateScrolling(x,A)},L.prototype.animateScrolling=function(E,M){var $=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(E==$)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(E=_[0],E==$))return}var w=A.$calcSteps(E,$);this.$scrollAnimation={from:E,to:$,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=$;function x(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){x();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=$):$!=null?(A.session.$scrollTop=-1,A.session.setScrollTop($),$=null):x()},10)},L.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},L.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(E,M){this.session.setScrollTop(M),this.session.setScrollLeft(E)},L.prototype.scrollBy=function(E,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},L.prototype.isScrollableBy=function(E,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||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(E,M){var $;if(this.$hasCssTransforms){$={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([E,M]);E=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else $=this.scroller.getBoundingClientRect();var _=E+this.scrollLeft-$.left-this.$padding,w=_/this.characterWidth,x=Math.floor((M+this.scrollTop-$.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:x,column:T,side:w-T>0?1:-1,offsetX:_}},L.prototype.screenToTextCoordinates=function(E,M){var $;if(this.$hasCssTransforms){$={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([E,M]);E=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else $=this.scroller.getBoundingClientRect();var _=E+this.scrollLeft-$.left-this.$padding,w=_/this.characterWidth,x=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(x,0),_)},L.prototype.textToScreenCoordinates=function(E,M){var $=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(E,M),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,E)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:$.left+_-this.scrollLeft,pageY:$.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){h.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){h.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(h.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(E){var M=this.session.selection.cursor;this.addToken(E,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),h.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(E,M){var $=this.session.selection.cursor,A=M||{row:$.row,column:$.column};this.removeGhostText();var _=E.split(`
1739
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,f){var u=n("../lib/dom"),h=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function p(o,i){this.canvas=u.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var i=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 c=this.canvas.getContext("2d");function l($,A){return $.priority<A.priority?-1:$.priority>A.priority?1:0}var d=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),d){var m={info:1,warning:2,error:3};d.forEach(function($){$.priority=m[$.type]||null}),d=d.sort(l);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),b=Math.round((k-C)*this.lineHeight*this.heightRatio),R=Math.round(((k-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=R-b;if(L<this.minDecorationHeight){var E=(b+R)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(E-this.halfMinDecorationHeight),R=Math.round(E+this.halfMinDecorationHeight)}c.fillStyle=i[d[y].type]||null,c.fillRect(0,S,this.canvasWidth,R-b)}}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);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,i){var a=0;if(i&&i.length>0)for(var c=0;c<i.length;c++)o>i[c].start.row&&o<i[c].end.row?a+=o-i[c].start.row:o>=i[c].end.row&&(a+=i[c].end.row-i[c].start.row);return a},p}();h.implement(s.prototype,g),r.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,r,f){var u=n("./lib/oop"),h=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,i=n("./layer/text").Text,a=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,l=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,b=n("./lib/useragent");h.importCssString(C,"ace_editor.css",!1);var R=function(){function L(E,M){var $=this;this.container=E||h.createElement("div"),h.addCssClass(this.container,"ace_editor"),h.HI_DPI&&h.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=h.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=h.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=h.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new i(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 l(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(_){$.$scrollAnimation||$.session.setScrollTop(_.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){$.$scrollAnimation||$.session.setScrollLeft(_.data-$.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(_){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._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=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),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(),h.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(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(E,M,$){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:E,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if($)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(E){E?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(E,M,$,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),$||($=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(E,M,$,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!A)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?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(E,M,$,A){A-=this.$extraHeight||0;var _=0,w=this.$size,x={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(E||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),$&&(E||w.width!=$)){_|=this.CHANGE_SIZE,w.width=$,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,h.setStyle(this.scrollBarH.element.style,"left",M+"px"),h.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,$-M-this.scrollBarV.getWidth()-this.margin.h),h.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";h.setStyle(this.scrollBarH.element.style,"right",T),h.setStyle(this.scroller.style,"right",T),h.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&(_|=this.CHANGE_FULL)}return w.$dirty=!$||!A,_&&this._signal("resize",x),_},L.prototype.onGutterResize=function(E){var M=this.$showGutter?E: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 E=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},L.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},L.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=h.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=h.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,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 E=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){h.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){M&&M.markerRange&&($=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=$.top,w=$.left;_-=A.offset;var x=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if(_<0||_>A.height-x){h.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-x;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,h.setStyle(E,"height",x+"px"),h.setStyle(E,"width",T+"px"),h.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 E=this.layerConfig,M=E.lastRow,$=this.session.documentToScreenRow(M,0)*E.lineHeight;return $-this.session.getScrollTop()>E.height-E.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(E,M,$,A){var _=this.scrollMargin;_.top=E|0,_.bottom=M|0,_.right=A|0,_.left=$|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},L.prototype.setMargin=function(E,M,$,A){var _=this.margin;_.top=E|0,_.bottom=M|0,_.right=A|0,_.left=$|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(E){this.setOption("hScrollBarAlwaysVisible",E)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},L.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-M&&(E=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+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(E,M){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!M){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),h.translate(this.content,-this.scrollLeft,-$.offset);var _=$.width+2*this.$padding+"px",w=$.minHeight+"px";h.setStyle(this.content.style,"width",_),h.setStyle(this.content.style,"height",w)}if(E&this.CHANGE_H_SCROLL&&(h.translate(this.content,-this.scrollLeft,-$.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),E&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update($):this.$gutterLayer.scrollLines($)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",E)},L.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,$=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var A=$<=2*this.lineHeight,_=!A&&E>M;if($!=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=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,$),this.desiredHeight=$,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var E=this.session,M=this.$size,$=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,w=this.$getLongestLine(),x=!$&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==x;T&&(this.$horizScroll=x,this.scrollBarH.setVisible(x));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 P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,_-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var W=!$&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-_+F<0||this.scrollTop>P.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,V=Math.ceil(I/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Q=G+V,U,Z,Y=this.lineHeight;G=E.screenToDocumentRow(G,0);var z=E.getFoldLine(G);z&&(G=z.start.row),U=E.documentToScreenRow(G,0),Z=E.getRowLength(G)*Y,Q=Math.min(E.screenToDocumentRow(Q,0),E.getLength()-1),I=M.scrollerHeight+E.getRowLength(Q)*Y+Z,H=this.scrollTop-U*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:G,firstRowScreen:U,lastRow:Q,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 E=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(E>$.lastRow+1)&&!(M<$.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,E,M),!0}}},L.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*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(E,M){this.$gutterLayer.addGutterDecoration(E,M)},L.prototype.removeGutterDecoration=function(E,M){this.$gutterLayer.removeGutterDecoration(E,M)},L.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),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(E,M,$){this.scrollCursorIntoView(E,$),this.scrollCursorIntoView(M,$)},L.prototype.scrollCursorIntoView=function(E,M,$){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(E),_=A.left,w=A.top,x=$&&$.top||0,T=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+x>w?(M&&O+x>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(E){this.session.setScrollTop(E*this.lineHeight)},L.prototype.alignCursor=function(E,M){typeof E=="number"&&(E={row:E,column:0});var $=this.$cursorLayer.getPixelPosition(E),A=this.$size.scrollerHeight-this.lineHeight,_=$.top-A*(M||0);return this.session.setScrollTop(_),_},L.prototype.$calcSteps=function(E,M){var $=0,A=this.STEPS,_=[],w=function(x,T,O){return O*(Math.pow(x-1,3)+1)+T};for($=0;$<A;++$)_.push(w($/this.STEPS,E,M-E));return _},L.prototype.scrollToLine=function(E,M,$,A){var _=this.$cursorLayer.getPixelPosition({row:E,column:0}),w=_.top;M&&(w-=this.$size.scrollerHeight/2);var x=this.scrollTop;this.session.setScrollTop(w),$!==!1&&this.animateScrolling(x,A)},L.prototype.animateScrolling=function(E,M){var $=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(E==$)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(E=_[0],E==$))return}var w=A.$calcSteps(E,$);this.$scrollAnimation={from:E,to:$,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=$;function x(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){x();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=$):$!=null?(A.session.$scrollTop=-1,A.session.setScrollTop($),$=null):x()},10)},L.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},L.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(E,M){this.session.setScrollTop(M),this.session.setScrollLeft(E)},L.prototype.scrollBy=function(E,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},L.prototype.isScrollableBy=function(E,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||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(E,M){var $;if(this.$hasCssTransforms){$={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([E,M]);E=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else $=this.scroller.getBoundingClientRect();var _=E+this.scrollLeft-$.left-this.$padding,w=_/this.characterWidth,x=Math.floor((M+this.scrollTop-$.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:x,column:T,side:w-T>0?1:-1,offsetX:_}},L.prototype.screenToTextCoordinates=function(E,M){var $;if(this.$hasCssTransforms){$={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([E,M]);E=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else $=this.scroller.getBoundingClientRect();var _=E+this.scrollLeft-$.left-this.$padding,w=_/this.characterWidth,x=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(x,0),_)},L.prototype.textToScreenCoordinates=function(E,M){var $=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(E,M),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,E)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:$.left+_-this.scrollLeft,pageY:$.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){h.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){h.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(h.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(E){var M=this.session.selection.cursor;this.addToken(E,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),h.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(E,M){var $=this.session.selection.cursor,A=M||{row:$.row,column:$.column};this.removeGhostText();var _=E.split(`
1740
1740
  `);if(this.addToken(_[0],"ghost_text",A.row,A.column),this.$ghostText={text:E,position:{row:A.row,column:A.column}},_.length>1){this.$ghostTextWidget={text:_.slice(1).join(`
1741
1741
  `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(A,!0),x=this.container,T=x.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 E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(E,M,$,A){var _=this.session;_.bgTokenizer.lines[$]=null;var w={type:M,value:E},x=_.getTokens($);if(A==null||!x.length)x.push(w);else for(var T=0,O=0;O<x.length;O++){var I=x[O];if(T+=I.value.length,A<=T){var F=I.value.length-(T-A),P=I.value.slice(0,F),W=I.value.slice(F);x.splice(O,1,{type:I.type,value:P},w,{type:I.type,value:W});break}}this.updateLines($,$)},L.prototype.removeExtraToken=function(E,M){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},L.prototype.setTheme=function(E,M){var $=this;if(this.$themeId=E,$._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var A=E||this.$options.theme.initialValue;s.loadModule(["theme",A],_)}else _(E);function _(w){if($.$themeId!=E)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");w.$id&&($.$themeId=w.$id),h.importCssString(w.cssText,w.cssClass,$.container),$.theme&&h.removeCssClass($.container,$.theme.cssClass);var x="padding"in w?w.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&x!=$.$padding&&$.setPadding(x),$.$theme=w.cssClass,$.theme=w,h.addCssClass($.container,w.cssClass),h.setCssClass($.container,"ace_dark",w.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(E,M){h.setCssClass(this.container,E,M!==!1)},L.prototype.unsetStyle=function(E){h.removeCssClass(this.container,E)},L.prototype.setCursorStyle=function(E){h.setStyle(this.scroller.style,"cursor",E)},L.prototype.setMouseCursor=function(E){h.setStyle(this.scroller.style,"cursor",E)},L.prototype.attachToShadowRoot=function(){h.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(E){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!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($){M.$scrollAnimation||M.session.setScrollTop($.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){M.$scrollAnimation||M.session.setScrollLeft($.data-M.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new l(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function($){M.$scrollAnimation||M.session.setScrollTop($.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){M.$scrollAnimation||M.session.setScrollLeft($.data-M.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=g.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var $=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(E.$size.width-$)>1||Math.abs(E.$size.height-A)>1?E.$resizeTimer.delay():E.$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){h.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.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,r,f){var u=n("../lib/oop"),h=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function p(c){var l="importScripts('"+h.qualifyURL(c)+"');";try{return new Blob([l],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(l),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var l=p(c),d=window.URL||window.webkitURL,m=d.createObjectURL(l);return new Worker(m)}return new Worker(c)}var i=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,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(c,l,d,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(l,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var k={};c.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:l,classname:d}),this.$worker},this.onMessage=function(c){var l=c.data;switch(l.type){case"event":this._signal(l.name,{data:l.data});break;case"call":var d=this.callbacks[l.id];d&&(d(l.data),delete this.callbacks[l.id]);break;case"error":this.reportError(l.data);break;case"log":window.console&&console.log&&console.log.apply(console,l.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return h.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,l){this.$worker.postMessage({command:c,args:l})},this.call=function(c,l,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,l.push(m)}this.send(c,l)},this.emit=function(c,l){try{l.data&&l.data.err&&(l.data.err={message:l.data.err.message,stack:l.data.err.stack,code:l.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:l.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(i.prototype);var a=function(c,l,d){var m=null,v=!1,y=Object.create(g),k=[],C=new i({messageBuffer:k,terminate:function(){},postMessage:function(b){k.push(b),m&&(v?setTimeout(S):S())}});C.setEmitSync=function(b){v=b};var S=function(){var b=k.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){C.onMessage({data:b})},y.callback=function(b,R){this.postMessage({type:"call",id:R,data:b})},y.emit=function(b,R){this.postMessage({type:"event",name:b,data:R})},s.loadModule(["worker",l],function(b){for(m=new b[d](y);k.length;)S()}),C};r.UIWorkerClient=a,r.WorkerClient=i,r.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,f){var u=n("./range").Range,h=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function p(o,i,a,c,l,d){var m=this;this.length=i,this.session=o,this.doc=o.getDocument(),this.mainClass=l,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,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 p.prototype.setup=function(){var o=this,i=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=a.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(l){var d=i.createAnchor(l.row,l.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),a.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,i=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=o.addMarker(new u(a.row,a.column,a.row,a.column+i.length),i.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var i=o;if(i.start.row===i.end.row&&i.start.row===this.pos.row){this.$updating=!0;var a=o.action==="insert"?i.end.column-i.start.column:i.start.column-i.end.column,c=i.start.column>=this.pos.column&&i.start.column<=this.pos.column+this.length+1,l=i.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=a),c&&!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+l};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+l};this.doc.remove(new u(v.row,v.column,v.row,v.column-a))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var i=this.others.length;i--;)this.others[i].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,i=this.session,a=function(l,d){i.removeMarker(l.markerId),l.markerId=i.addMarker(new u(l.row,l.column,l.row,l.column+o.length),d,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),i=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,a=0;a<i;a++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(s.prototype,h),r.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,f){var u=n("../lib/event"),h=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function s(p){var o=p.domEvent,i=o.altKey,a=o.shiftKey,c=o.ctrlKey,l=p.getAccelKey(),d=p.getButton();if(c&&h.isMac&&(d=o.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!c&&!i&&!l){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,k=p.getDocumentPosition(),C=v.getCursor(),S=p.inSelection()||v.isEmpty()&&g(k,C),b=p.x,R=p.y,L=function(W){b=W.clientX,R=W.clientY},E=m.session,M=m.renderer.pixelToScreenCoordinates(b,R),$=M,A;if(m.$mouseHandler.$enableJumpToDef)c&&i||l&&i?A=a?"block":"add":i&&m.$blockSelectEnabled&&(A="block");else if(l&&!i){if(A="add",!y&&a)return}else i&&m.$blockSelectEnabled&&(A="block");if(A&&h.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"){p.stop(),m.inVirtualSelectionMode=!0;var x,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates(b,R),j=E.screenToDocumentPosition(W.row,W.column,W.offsetX);g($,W)&&g(j,v.lead)||($=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock($,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!l?v.toSingleRange():!y&&l&&(x=v.toOrientedRange(),m.addSelectionMarker(x)),a?M=E.documentToScreenPosition(v.lead):v.moveToPosition(k),$={row:-1,column:-1};var I=function(W){O(),clearInterval(P),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),x&&(m.removeSelectionMarker(x),v.toSingleRange(x));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 P=setInterval(function(){F()},20);return p.preventDefault()}}}r.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,f){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(h){h.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(h){h.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(h){h.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(h){h.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(h){h.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(h){h.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(h){h.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(h){h.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(h){h.multiSelect.rangeCount>1?h.multiSelect.joinSelections():h.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(h){h.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(h){h.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(h){h.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(h){h.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(h){return h&&h.inMultiSelectMode}}];var u=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new u(r.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,r,f){var u=n("./range_list").RangeList,h=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),i=n("./commands/multi_select_commands");r.commands=i.defaultCommands.concat(i.multiSelectCommands);var a=n("./search").Search,c=new a;function l(C,S,b){return c.$options.wrap=!0,c.$options.needle=S,c.$options.backwards=b==-1,c.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 b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}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 b=C.length;b--;){var R=this.ranges.indexOf(C[b]);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=[],b=0;b<C.length;b++){var R=C[b],L=R.start.row,E=R.end.row;if(L===E)S.push(R.clone());else{for(S.push(new h(L,R.start.column,L,this.session.getLine(L).length));++L<E;)S.push(this.getLineRange(L,!0));S.push(new h(E,0,E,R.end.column))}b==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var b=S.length;b--;)this.addRange(S[b])},this.joinSelections=function(){var C=this.rangeList.ranges,S=C[C.length-1],b=h.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,S=C[C.length-1],b=h.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var R=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(R,L);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,b){var R=[],L=C.column<S.column;if(L)var E=C.column,M=S.column,$=C.offsetX,A=S.offsetX;else var E=S.column,M=C.column,$=S.offsetX,A=C.offsetX;var _=C.row<S.row;if(_)var w=C.row,x=S.row;else var w=S.row,x=C.row;E<0&&(E=0),w<0&&(w=0),w==x&&(b=!0);for(var T,O=w;O<=x;O++){var I=h.fromPoints(this.session.screenToDocumentPosition(O,E,$),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(),!b){for(var F=R.length-1;R[F].isEmpty()&&F>0;)F--;if(F>0)for(var P=0;R[P].isEmpty();)P++;for(var W=F;W>=P;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,b=C.length;b--;){var R=C[b];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(i.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(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var S=C.command,b=C.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?R=b.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?R=b.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),R=S.exec(b,C.args||{})):R=S.multiSelectAction(b,C.args||{});else{var R=S.exec(b,C.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(C,S,b){if(!this.inVirtualSelectionMode){var R=b&&b.keepOrder,L=b==!0||b&&b.$byLines,E=this.session,M=this.selection,$=M.rangeList,A=(R?M:$).ranges,_;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var x=new g(E);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(L)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;x.fromOrientedRange(A[T]),x.index=T,this.selection=E.selection=x;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!_&&O!==void 0&&(_=O),x.toOrientedRange(A[T])}x.detach(),this.selection=E.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,b=[],R=0;R<S.length;R++)b.push(this.session.getTextRange(S[R]));var L=this.session.getDocument().getNewLineCharacter();C=b.join(L),C.length==(b.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 b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var R=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.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,b){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 E=this.multiSelect;b||E.toSingleRange(L[0]);for(var M=L.length;M--;)E.addRange(L[M],!0);return R&&E.rangeList.rangeAtPoint(R.start)&&E.addRange(R,!0),L.length},this.selectMoreLines=function(C,S){var b=this.selection.toOrientedRange(),R=b.cursor==b.end,L=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(L.row+C,L.column);if(b.isEmpty())var $=E;else var M=this.session.documentToScreenPosition(R?b.end:b.start),$=this.session.screenToDocumentPosition(M.row+C,M.column);if(R){var A=h.fromPoints(E,$);A.cursor=A.start}else{var A=h.fromPoints($,E);A.cursor=A.end}if(A.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var _=b.cursor;this.selection.addRange(A),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var S=this.session,b=S.multiSelect,R=b.ranges,L=R.length;L--;){var E=R[L];if(E.isEmpty()){var M=S.getWordRange(E.start.row,E.start.column);E.start.row=M.start.row,E.start.column=M.start.column,E.end.row=M.end.row,E.end.column=M.end.column}}b.mergeOverlappingRanges();for(var $=[],L=R.length;L--;){var E=R[L];$.unshift(S.getTextRange(E))}C<0?$.unshift($.pop()):$.push($.shift());for(var L=R.length;L--;){var E=R[L],A=E.clone();S.replace(E,$[L]),E.start.row=A.start.row,E.start.column=A.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(C,S,b){var R=this.session,L=R.multiSelect,E=L.toOrientedRange();if(!(E.isEmpty()&&(E=R.getWordRange(E.start.row,E.start.column),E.cursor=C==-1?E.start:E.end,this.multiSelect.addRange(E),b))){var M=R.getTextRange(E),$=l(R,M,C);$&&($.cursor=C==-1?$.start:$.end,this.session.unfold($),this.multiSelect.addRange($),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var C=this.session,S=C.multiSelect,b=S.ranges,R=-1,L=b.filter(function(F){if(F.cursor.row==R)return!0;R=F.cursor.row});if(!b.length||L.length==b.length-1){var E=this.selection.getRange(),M=E.start.row,$=E.end.row,A=M==$;if(A){var _=this.session.getLength(),w;do w=this.session.getLine($);while(/[=:]/.test(w)&&++$<_);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),$>=_&&($=_-1)}var x=this.session.removeFullLines(M,$);x=this.$reAlignText(x,A),this.session.insert({row:M,column:0},x.join(`
1742
1742
  `)+`
@@ -1773,14 +1773,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1773
1773
  border-left-color: transparent!important;
1774
1774
  top: -5px;
1775
1775
  }
1776
- `,"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,r,f){n("./loader_build")(r);var u=n("./lib/dom"),h=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(i,a){if(typeof i=="string"){var c=i;if(i=document.getElementById(c),!i)throw new Error("ace.edit can't find div #"+c)}if(i&&i.env&&i.env.editor instanceof g)return i.env.editor;var l="";if(i&&/input|textarea/i.test(i.tagName)){var d=i;l=d.value,i=u.createElement("pre"),d.parentNode.replaceChild(i,d)}else i&&(l=i.textContent,i.innerHTML="");var m=r.createEditSession(l),v=new g(new o(i),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},r.createEditSession=function(i,a){var c=new s(i,a);return c.setUndoManager(new p),c},r.Range=h,r.Editor=g,r.EditSession=s,r.UndoManager=p,r.VirtualRenderer=o,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var f in n)n.hasOwnProperty(f)&&(r.ace[f]=n[f]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(mp);var FE=mp.exports;const Nl=tr(FE),NE="/assets/mode-yaml-BC4MIiYj.js",DE="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Nl.config.setModuleUrl("ace/mode/yaml",NE);Nl.config.setModuleUrl("ace/theme/monokai",DE);var vp=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(f,u){return f[0]===n?(r=u,!0):!1}),r}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 r=e(this.__entries__,n),f=this.__entries__[r];return f&&f[1]},t.prototype.set=function(n,r){var f=e(this.__entries__,n);~f?this.__entries__[f][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,f=e(r,n);~f&&r.splice(f,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var f=0,u=this.__entries__;f<u.length;f++){var h=u[f];n.call(r,h[1],h[0])}},t}()}(),La=typeof window<"u"&&typeof document<"u"&&window.document===document,Ao=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")()}(),PE=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ao):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),BE=2;function WE(e,t){var n=!1,r=!1,f=0;function u(){n&&(n=!1,e()),r&&g()}function h(){PE(u)}function g(){var s=Date.now();if(n){if(s-f<BE)return;r=!0}else n=!0,r=!1,setTimeout(h,t);f=s}return g}var HE=20,UE=["top","right","bottom","left","width","height","size","weight"],VE=typeof MutationObserver<"u",zE=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=WE(this.refresh.bind(this),HE)}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_,r=n.indexOf(t);~r&&n.splice(r,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(){!La||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),VE?(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(){!La||!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,r=n===void 0?"":n,f=UE.some(function(u){return!!~r.indexOf(u)});f&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),yp=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var f=r[n];Object.defineProperty(e,f,{value:t[f],enumerable:!1,writable:!1,configurable:!0})}return e},_r=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ao},bp=ds(0,0,0,0);function ko(e){return parseFloat(e)||0}function Tu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,f){var u=e["border-"+f+"-width"];return r+ko(u)},0)}function jE(e){for(var t=["top","right","bottom","left"],n={},r=0,f=t;r<f.length;r++){var u=f[r],h=e["padding-"+u];n[u]=ko(h)}return n}function GE(e){var t=e.getBBox();return ds(0,0,t.width,t.height)}function KE(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bp;var r=_r(e).getComputedStyle(e),f=jE(r),u=f.left+f.right,h=f.top+f.bottom,g=ko(r.width),s=ko(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=Tu(r,"left","right")+u),Math.round(s+h)!==n&&(s-=Tu(r,"top","bottom")+h)),!XE(e)){var p=Math.round(g+u)-t,o=Math.round(s+h)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return ds(f.left,f.top,g,s)}var YE=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _r(e).SVGGraphicsElement}:function(e){return e instanceof _r(e).SVGElement&&typeof e.getBBox=="function"}}();function XE(e){return e===_r(e).document.documentElement}function ZE(e){return La?YE(e)?GE(e):KE(e):bp}function qE(e){var t=e.x,n=e.y,r=e.width,f=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,h=Object.create(u.prototype);return yp(h,{x:t,y:n,width:r,height:f,top:n,right:t+r,bottom:f+n,left:t}),h}function ds(e,t,n,r){return{x:e,y:t,width:n,height:r}}var JE=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ds(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ZE(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}(),QE=function(){function e(t,n){var r=qE(n);yp(this,{target:t,contentRect:r})}return e}(),eR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new vp,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 _r(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new JE(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 _r(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(r){return new QE(r.target,r.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}(),wp=typeof WeakMap<"u"?new WeakMap:new vp,$p=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=zE.getInstance(),r=new eR(t,n,this);wp.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$p.prototype[e]=function(){var t;return(t=wp.get(this))[e].apply(t,arguments)}});var tR=function(){return typeof Ao.ResizeObserver<"u"?Ao.ResizeObserver:$p}();const Lu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],_p=be({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",...Lu],render(){return xr("div")},mounted(){const e=this._editor=Po(Nl.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)}),Lu.forEach(t=>{const n="on"+Ar(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new tR(()=>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)}}}),nR=be({name:"RuleInputForm",components:{VAceEditor:_p},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Wo(e,"yaml");return Hh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),rR={class:"block"};function iR(e,t,n,r,f,u){const h=ie("VAceEditor");return Z(),re("div",rR,[se(h,{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 Sp=Ae(nR,[["render",iR]]),oR=be({name:"EditRule",components:{InputForm:Sp,ErrorMessage:lt},props:{rule:{type:Object,required:!0}},setup(e){const t=Tr(),n=Wo(e.rule.yaml),r=E$();return{edit:async()=>{const h=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:h.id}})},yaml:n,updateYAML:h=>{n.value=h},updateRuleTask:r}}}),sR={class:"block"},aR={class:"is-size-2 block"},lR={class:"field is-grouped is-grouped-centered"},cR={class:"control"},uR={class:"icon is-small"},hR=N("span",null,"Edit",-1),fR={key:0,class:"block"},dR=N("hr",null,null,-1);function pR(e,t,n,r,f,u){var p,o;const h=ie("InputForm"),g=ie("font-awesome-icon"),s=ie("ErrorMessage");return Z(),re(xe,null,[N("div",sR,[N("h2",aR,"Edit rule: "+ye(e.rule.id),1),se(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",lR,[N("p",cR,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.edit&&e.edit(...i))},[N("span",uR,[se(g,{icon:"edit"})]),hR])])])]),(p=e.updateRuleTask.last)!=null&&p.error?(Z(),re("div",fR,[dR,se(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):ge("",!0)],64)}const gR=Ae(oR,[["render",pR]]),mR=be({name:"EditRuleWrapper",components:{EditRule:gR,Loading:ln,ErrorMessage:lt},props:{id:{type:String,required:!0}},setup(e){const t=Gd(),n=async()=>{await t.perform(e.id)};return Xe(async()=>{await n()}),qe(e,async()=>{await n()}),{getRuleTask:t}}});function vR(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("EditRule");return Z(),re(xe,null,[e.getRuleTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getRuleTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getRuleTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):ge("",!0)],64)}const yR=Ae(mR,[["render",vR]]),bR=be({name:"EditRuleView",components:{EditRule:yR},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Edit rule:${e.id} - Mihari`)};Xe(()=>{t()}),qe(()=>e.id,()=>{t()})}});function wR(e,t,n,r,f,u){const h=ie("EditRule",!0);return Z(),Ce(h,{id:e.id},null,8,["id"])}const $R=Ae(bR,[["render",wR]]);function _R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var f=r.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var i,a;return(a=(i=o.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&a!==void 0?a:0})):g},[]);if(f.length){var u=new RegExp(`
1776
+ `,"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,r,f){n("./loader_build")(r);var u=n("./lib/dom"),h=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(i,a){if(typeof i=="string"){var c=i;if(i=document.getElementById(c),!i)throw new Error("ace.edit can't find div #"+c)}if(i&&i.env&&i.env.editor instanceof g)return i.env.editor;var l="";if(i&&/input|textarea/i.test(i.tagName)){var d=i;l=d.value,i=u.createElement("pre"),d.parentNode.replaceChild(i,d)}else i&&(l=i.textContent,i.innerHTML="");var m=r.createEditSession(l),v=new g(new o(i),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},r.createEditSession=function(i,a){var c=new s(i,a);return c.setUndoManager(new p),c},r.Range=h,r.Editor=g,r.EditSession=s,r.UndoManager=p,r.VirtualRenderer=o,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var f in n)n.hasOwnProperty(f)&&(r.ace[f]=n[f]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(mp);var FE=mp.exports;const Nl=tr(FE),NE="/assets/mode-yaml-BC4MIiYj.js",DE="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Nl.config.setModuleUrl("ace/mode/yaml",NE);Nl.config.setModuleUrl("ace/theme/monokai",DE);var vp=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(f,u){return f[0]===n?(r=u,!0):!1}),r}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 r=e(this.__entries__,n),f=this.__entries__[r];return f&&f[1]},t.prototype.set=function(n,r){var f=e(this.__entries__,n);~f?this.__entries__[f][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,f=e(r,n);~f&&r.splice(f,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var f=0,u=this.__entries__;f<u.length;f++){var h=u[f];n.call(r,h[1],h[0])}},t}()}(),Ma=typeof window<"u"&&typeof document<"u"&&window.document===document,ko=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")()}(),PE=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ko):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),BE=2;function WE(e,t){var n=!1,r=!1,f=0;function u(){n&&(n=!1,e()),r&&g()}function h(){PE(u)}function g(){var s=Date.now();if(n){if(s-f<BE)return;r=!0}else n=!0,r=!1,setTimeout(h,t);f=s}return g}var HE=20,UE=["top","right","bottom","left","width","height","size","weight"],VE=typeof MutationObserver<"u",zE=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=WE(this.refresh.bind(this),HE)}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_,r=n.indexOf(t);~r&&n.splice(r,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(){!Ma||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),VE?(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(){!Ma||!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,r=n===void 0?"":n,f=UE.some(function(u){return!!~r.indexOf(u)});f&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),yp=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var f=r[n];Object.defineProperty(e,f,{value:t[f],enumerable:!1,writable:!1,configurable:!0})}return e},_r=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ko},bp=ps(0,0,0,0);function Eo(e){return parseFloat(e)||0}function Tu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,f){var u=e["border-"+f+"-width"];return r+Eo(u)},0)}function jE(e){for(var t=["top","right","bottom","left"],n={},r=0,f=t;r<f.length;r++){var u=f[r],h=e["padding-"+u];n[u]=Eo(h)}return n}function GE(e){var t=e.getBBox();return ps(0,0,t.width,t.height)}function KE(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bp;var r=_r(e).getComputedStyle(e),f=jE(r),u=f.left+f.right,h=f.top+f.bottom,g=Eo(r.width),s=Eo(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=Tu(r,"left","right")+u),Math.round(s+h)!==n&&(s-=Tu(r,"top","bottom")+h)),!XE(e)){var p=Math.round(g+u)-t,o=Math.round(s+h)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return ps(f.left,f.top,g,s)}var YE=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _r(e).SVGGraphicsElement}:function(e){return e instanceof _r(e).SVGElement&&typeof e.getBBox=="function"}}();function XE(e){return e===_r(e).document.documentElement}function ZE(e){return Ma?YE(e)?GE(e):KE(e):bp}function QE(e){var t=e.x,n=e.y,r=e.width,f=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,h=Object.create(u.prototype);return yp(h,{x:t,y:n,width:r,height:f,top:n,right:t+r,bottom:f+n,left:t}),h}function ps(e,t,n,r){return{x:e,y:t,width:n,height:r}}var qE=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ps(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ZE(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}(),JE=function(){function e(t,n){var r=QE(n);yp(this,{target:t,contentRect:r})}return e}(),eR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new vp,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 _r(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qE(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 _r(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(r){return new JE(r.target,r.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}(),wp=typeof WeakMap<"u"?new WeakMap:new vp,$p=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=zE.getInstance(),r=new eR(t,n,this);wp.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$p.prototype[e]=function(){var t;return(t=wp.get(this))[e].apply(t,arguments)}});var tR=function(){return typeof ko.ResizeObserver<"u"?ko.ResizeObserver:$p}();const Lu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],_p=we({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",...Lu],render(){return xr("div")},mounted(){const e=this._editor=Bo(Nl.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)}),Lu.forEach(t=>{const n="on"+Ar(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new tR(()=>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)}}}),nR=we({name:"RuleInputForm",components:{VAceEditor:_p},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Ho(e,"yaml");return Hh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),rR={class:"block"};function iR(e,t,n,r,f,u){const h=ne("VAceEditor");return X(),ie("div",rR,[oe(h,{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 Sp=Ae(nR,[["render",iR]]),oR=we({name:"EditRule",components:{InputForm:Sp,ErrorMessage:lt},props:{rule:{type:Object,required:!0}},setup(e){const t=Tr(),n=Ho(e.rule.yaml),r=E$();return{edit:async()=>{const h=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:h.id}})},yaml:n,updateYAML:h=>{n.value=h},updateRuleTask:r}}}),sR={class:"block"},aR={class:"is-size-2 block"},lR={class:"field is-grouped is-grouped-centered"},cR={class:"control"},uR={class:"icon is-small"},hR=N("span",null,"Edit",-1),fR={key:0,class:"block"},dR=N("hr",null,null,-1);function pR(e,t,n,r,f,u){var p,o;const h=ne("InputForm"),g=ne("font-awesome-icon"),s=ne("ErrorMessage");return X(),ie(xe,null,[N("div",sR,[N("h2",aR,"Edit rule: "+ye(e.rule.id),1),oe(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",lR,[N("p",cR,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.edit&&e.edit(...i))},[N("span",uR,[oe(g,{icon:"edit"})]),hR])])])]),(p=e.updateRuleTask.last)!=null&&p.error?(X(),ie("div",fR,[dR,oe(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):pe("",!0)],64)}const gR=Ae(oR,[["render",pR]]),mR=we({name:"EditRuleWrapper",components:{EditRule:gR,Loading:ln,ErrorMessage:lt},props:{id:{type:String,required:!0}},setup(e){const t=Gd(),n=async()=>{await t.perform(e.id)};return qe(async()=>{await n()}),Xe(e,async()=>{await n()}),{getRuleTask:t}}});function vR(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("EditRule");return X(),ie(xe,null,[e.getRuleTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getRuleTask.isError?(X(),be(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getRuleTask.last)!=null&&o.value?(X(),be(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):pe("",!0)],64)}const yR=Ae(mR,[["render",vR]]),bR=we({name:"EditRuleView",components:{EditRule:yR},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Edit rule:${e.id} - Mihari`)};qe(()=>{t()}),Xe(()=>e.id,()=>{t()})}});function wR(e,t,n,r,f,u){const h=ne("EditRule",!0);return X(),be(h,{id:e.id},null,8,["id"])}const $R=Ae(bR,[["render",wR]]);function _R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var f=r.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var i,a;return(a=(i=o.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&a!==void 0?a:0})):g},[]);if(f.length){var u=new RegExp(`
1777
1777
  [ ]{`+Math.min.apply(Math,f)+"}","g");r=r.map(function(g){return g.replace(u,`
1778
1778
  `)})}r[0]=r[0].replace(/^\r?\n/,"");var h=r[0];return t.forEach(function(g,s){var p=h.match(/(?:^|\n)( *)$/),o=p?p[1]:"",i=g;typeof g=="string"&&g.includes(`
1779
1779
  `)&&(i=String(g).split(`
1780
1780
  `).map(function(a,c){return c===0?a:""+o+a}).join(`
1781
- `)),h+=i+r[s+1]}),h}var qi,SR=new Uint8Array(16);function CR(){if(!qi&&(qi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qi(SR)}const AR=/^(?:[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 kR(e){return typeof e=="string"&&AR.test(e)}var it=[];for(var Ps=0;Ps<256;++Ps)it.push((Ps+256).toString(16).substr(1));function ER(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(!kR(n))throw TypeError("Stringified UUID is invalid");return n}function RR(e,t,n){e=e||{};var r=e.random||(e.rng||CR)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var f=0;f<16;++f)t[n+f]=r[f];return t}return ER(r)}function xR(){const e=RR(),t=Mr();return _R`---
1781
+ `)),h+=i+r[s+1]}),h}var qi,SR=new Uint8Array(16);function CR(){if(!qi&&(qi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qi(SR)}const AR=/^(?:[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 kR(e){return typeof e=="string"&&AR.test(e)}var it=[];for(var Bs=0;Bs<256;++Bs)it.push((Bs+256).toString(16).substr(1));function ER(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(!kR(n))throw TypeError("Stringified UUID is invalid");return n}function RR(e,t,n){e=e||{};var r=e.random||(e.rng||CR)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var f=0;f<16;++f)t[n+f]=r[f];return t}return ER(r)}function xR(){const e=RR(),t=Mr();return _R`---
1782
1782
  id: ${e}
1783
1783
  title: Title goes here
1784
1784
  description: Description goes here
1785
1785
  created_on: ${t.format("YYYY-MM-DD")}
1786
- queries: []`}const TR=be({name:"NewRule",components:{InputForm:Sp,ErrorMessage:lt},setup(){const e=Tr(),t=Ne(xR()),n=k$();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}}}),LR={class:"block"},MR=N("h2",{class:"is-size-2 block"},"New rule",-1),OR={class:"field is-grouped is-grouped-centered"},IR={class:"control"},FR={class:"icon is-small"},NR=N("span",null,"Create",-1),DR={key:0,class:"block"},PR=N("hr",null,null,-1);function BR(e,t,n,r,f,u){var p,o;const h=ie("InputForm"),g=ie("font-awesome-icon"),s=ie("ErrorMessage");return Z(),re(xe,null,[N("div",LR,[MR,se(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",OR,[N("p",IR,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.create&&e.create(...i))},[N("span",FR,[se(g,{icon:"plus"})]),NR])])])]),(p=e.createRuleTask.last)!=null&&p.error?(Z(),re("div",DR,[PR,se(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):ge("",!0)],64)}const WR=Ae(TR,[["render",BR]]),HR=be({name:"NewRuleView",components:{NewRule:WR},setup(){const e=()=>{an("New rule - Mihari")};Xe(()=>{e()})}});function UR(e,t,n,r,f,u){const h=ie("NewRule",!0);return Z(),Ce(h)}const VR=Ae(HR,[["render",UR]]),zR=be({name:"RuleActionButtons",props:{rule:{type:Object,required:!0}},emits:["set-message","set-error","delete"],setup(e,t){const n=ke(()=>`/api/rules/${e.rule.id}`),r=ke(()=>`rule.id:"${e.rule.id}"`),f=C$(),u=A$(),h=Ei(),g=Tl(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${e.rule.id}?`))try{await f.perform(e.rule.id),t.emit("delete")}catch(i){Ve.isAxiosError(i)&&t.emit("set-error")}},p=async()=>{try{const o=await u.perform(e.rule.id);t.emit("set-message",o)}catch(o){Ve.isAxiosError(o)&&t.emit("set-error",o)}};return Xe(()=>{h.perform({q:r.value,page:1,limit:0}),g.perform({q:r.value,page:1,limit:0})}),{deleteRule:s,searchRule:p,searchRuleTask:u,href:n,getAlertsTask:h,getArtifactsTask:g,q:r}}}),jR={class:"buttons is-pulled-right"},GR=N("span",null,"Alerts:",-1),KR={class:"button is-small is-success is-rounded"},YR=N("span",null,"Artifacts:",-1),XR=["href"],ZR=N("span",null,"JSON",-1),qR={class:"icon is-small"},JR=N("span",null,"Search",-1),QR={class:"icon is-small"},ex=N("span",null,"Edit",-1),tx={class:"icon is-small"},nx=N("span",null,"Delete",-1),rx={class:"icon is-small"};function ix(e,t,n,r,f,u){var s,p;const h=ie("router-link"),g=ie("font-awesome-icon");return Z(),re("span",jR,[se(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:e.q}}},{default:Je(()=>{var o,i;return[GR,N("span",null,ye((i=(o=e.getAlertsTask.last)==null?void 0:o.value)==null?void 0:i.total),1)]}),_:1},8,["to"]),N("a",KR,[YR,N("span",null,ye((p=(s=e.getArtifactsTask.last)==null?void 0:s.value)==null?void 0:p.total),1)]),N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[ZR,N("span",qR,[se(g,{icon:"barcode"})])],8,XR),N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.searchRule&&e.searchRule(...o))},[JR,N("span",QR,[e.searchRuleTask.isRunning?(Z(),Ce(g,{key:0,icon:"spinner",spin:""})):(Z(),Ce(g,{key:1,icon:"magnifying-glass"}))])]),se(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Je(()=>[ex,N("span",tx,[se(g,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.deleteRule&&e.deleteRule(...o))},[nx,N("span",rx,[se(g,{icon:"times"})])])])}const Cp=Ae(zR,[["render",ix]]),ox=be({name:"YAML",components:{VAceEditor:_p},props:{yaml:{type:String,required:!0}},setup(){}}),sx={class:"block"};function ax(e,t,n,r,f,u){const h=ie("VAceEditor");return Z(),re("div",sx,[se(h,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const lx=Ae(ox,[["render",ax]]),cx=be({name:"RuleDetailItem",props:{rule:{type:Object,required:!0}},components:{YAML:lx,Alerts:sp,ErrorMessage:lt,Message:fs,ActionButtons:Cp},emits:["delete","refresh"],setup(e,t){const n=Ne(),r=Ne();return{onSetMessage:o=>{o.queued?r.value=o:t.emit("refresh")},onDisposeMessage:()=>{r.value=void 0},message:r,onSetError:o=>{n.value=o},error:n,onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},onRefresh:()=>{t.emit("refresh")}}}}),ux={class:"block"},hx={class:"is-size-2 block"},fx={class:"block is-clearfix"},dx=N("hr",null,null,-1),px={class:"block"},gx=N("h2",{class:"is-size-2 block"},"Alerts",-1);function mx(e,t,n,r,f,u){const h=ie("ErrorMessage"),g=ie("Message"),s=ie("ActionButtons"),p=ie("YAML"),o=ie("Alerts");return Z(),re(xe,null,[N("div",ux,[N("h2",hx,ye(e.rule.id),1),e.error?(Z(),Ce(h,{key:0,class:"mt-3 mb-3",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(Z(),Ce(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),N("p",fx,[se(s,{rule:e.rule,onSetMessage:e.onSetMessage,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["rule","onSetMessage","onDelete","onSetError"])]),se(p,{yaml:e.rule.yaml},null,8,["yaml"])]),dx,N("div",px,[gx,se(o,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const vx=Ae(cx,[["render",mx]]),yx=be({name:"RuleDetailWrapper",components:{Rule:vx,Loading:ln,ErrorMessage:lt},props:{id:{type:String,required:!0}},setup(e){const t=Gd(),n=Tr(),r=async()=>{await t.perform(e.id)},f=async()=>{await r()},u=()=>{n.push("/")};return Xe(async()=>{await r()}),qe(e,async()=>{await r()}),{getRuleTask:t,onRefresh:f,onDelete:u}}});function bx(e,t,n,r,f,u){var p,o;const h=ie("Loading"),g=ie("ErrorMessage"),s=ie("Rule");return Z(),re(xe,null,[e.getRuleTask.isRunning?(Z(),Ce(h,{key:0})):ge("",!0),e.getRuleTask.isError?(Z(),Ce(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=e.getRuleTask.last)!=null&&o.value?(Z(),Ce(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["rule","onRefresh","onDelete"])):ge("",!0)],64)}const wx=Ae(yx,[["render",bx]]),$x=be({name:"RuleView",components:{Rule:wx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Rule:${e.id} - Mihari`)};Xe(()=>{t()}),qe(()=>e.id,()=>{t()})}});function _x(e,t,n,r,f,u){const h=ie("Rule",!0);return Z(),Ce(h,{id:e.id},null,8,["id"])}const Sx=Ae($x,[["render",_x]]),Cx=be({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{ActionButtons:Cp,Tags:Ll,ErrorMessage:lt,Message:fs},emits:["delete"],setup(e,t){const n=Ne(),r=Ne();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onSetMessage:p=>{r.value=p},onDelete:()=>{t.emit("delete")},error:n,message:r,onDisposeMessage:()=>{r.value=void 0}}}}),Ax={class:"box"},kx={class:"block"},Ex={class:"table is-fullwidth is-completely-borderless"},Rx=N("th",null,"Title",-1),xx=N("th",null,"Description",-1),Tx={key:0},Lx=N("th",null,"Tags",-1),Mx=N("p",{class:"block is-clearfix"},null,-1),Ox={class:"help"};function Ix(e,t,n,r,f,u){const h=ie("ErrorMessage"),g=ie("Message"),s=ie("ActionButtons"),p=ie("router-link"),o=ie("Tags");return Z(),re("div",Ax,[e.error?(Z(),Ce(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):ge("",!0),e.message?(Z(),Ce(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):ge("",!0),N("div",kx,[N("p",null,[se(s,{rule:e.rule,onSetError:e.onSetError,onDelete:e.onDelete,onSetMessage:e.onSetMessage},null,8,["rule","onSetError","onDelete","onSetMessage"])]),se(p,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Je(()=>[et(ye(e.rule.id),1)]),_:1},8,["to"])]),N("table",Ex,[N("tr",null,[Rx,N("td",null,ye(e.rule.title),1)]),N("tr",null,[xx,N("td",null,ye(e.rule.description),1)]),e.rule.tags.length>0?(Z(),re("tr",Tx,[Lx,N("td",null,[se(o,{tags:e.rule.tags},null,8,["tags"])])])):ge("",!0)]),Mx,N("p",Ox,"Created at: "+ye(e.rule.createdAt),1)])}const Fx=Ae(Cx,[["render",Ix]]),Nx=be({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Ml,Rule:Fx},emits:["update-page","refresh"],setup(e,t){const n=Ne(),r=h=>{t.emit("update-page",h)},f=()=>{t.emit("refresh")},u=ke(()=>e.rules.results.length>0);return{onUpdatePage:r,onRefresh:f,hasRules:u,error:n}}}),Dx={key:0,class:"block"},Px={class:"help"},Bx={key:1,class:"block"},Wx=N("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),Hx=[Wx];function Ux(e,t,n,r,f,u){const h=ie("Rule"),g=ie("Pagination");return e.hasRules?(Z(),re("div",Dx,[(Z(!0),re(xe,null,_t(e.rules.results,s=>(Z(),Ce(h,{rule:s,key:s.id,onRefresh:e.onRefresh,onDelete:e.onRefresh},null,8,["rule","onRefresh","onDelete"]))),128)),se(g,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.onUpdatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",Px,"("+ye(e.rules.total)+" results in total, "+ye(e.rules.results.length)+" shown)",1)])):(Z(),re("div",Bx,Hx))}const Vx=Ae(Nx,[["render",Ux]]),zx=be({name:"RulesWrapper",components:{Rules:Vx,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Ne(!1),r=jd(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return Xe(async()=>{await f()}),qe(e,async()=>{await f()}),{getRulesTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),jx={class:"block"},Gx={class:"field has-addons"},Kx={class:"control is-expanded"},Yx={class:"control"},Xx={class:"icon is-small"},Zx=N("span",null,"Search",-1),qx={class:"control"},Jx={class:"icon is-small"},Qx=N("span",null,"Help",-1),eT={key:0,class:"content mt-3"},tT=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),nT={key:0,class:"block"};function rT(e,t,n,r,f,u){var i,a;const h=ie("font-awesome-icon"),g=ie("router-link"),s=ie("Loading"),p=ie("ErrorMessage"),o=ie("Rules");return Z(),re(xe,null,[N("div",jx,[N("div",Gx,[N("p",Kx,[Go(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[Xn,e.q]])]),N("p",Yx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[N("span",Xx,[se(h,{icon:"search"})]),Zx])]),N("p",qx,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[N("span",Jx,[se(h,{icon:"question"})]),Qx])])]),e.showHelp?(Z(),re("div",eT,[tT,N("ul",null,[N("li",null,[se(g,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):ge("",!0)]),e.getRulesTask.performCount>0?(Z(),re("div",nT,[e.getRulesTask.isRunning?(Z(),Ce(s,{key:0})):ge("",!0),e.getRulesTask.isError?(Z(),Ce(p,{key:1,error:(i=e.getRulesTask.last)==null?void 0:i.error},null,8,["error"])):ge("",!0),(a=e.getRulesTask.last)!=null&&a.value?(Z(),Ce(o,{key:2,rules:e.getRulesTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["rules","onUpdatePage","onRefresh"])):ge("",!0)])):ge("",!0)],64)}const iT=Ae(zx,[["render",rT]]),oT=be({name:"RulesView",components:{Rules:iT},setup(){an("Rules - Mihari")}});function sT(e,t,n,r,f,u){const h=ie("Rules",!0);return Z(),Ce(h)}const aT=Ae(oT,[["render",sT]]),lT=[{path:"/",name:"Alerts",component:EC},{path:"/alerts/:id",name:"Alert",component:AS,props:!0},{path:"/config",name:"Config",component:IE},{path:"/artifacts/",name:"Artifacts",component:fE},{path:"/artifacts/:id",name:"Artifact",component:Ek,props:!0},{path:"/rules",name:"Rules",component:aT},{path:"/rules/new",name:"NewRule",component:VR},{path:"/rules/:id",name:"Rule",component:Sx,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:$R,props:!0}],cT=w1({history:Nb(),routes:lT});sm.add(fm,km,Sm,um,Am,pm,lm,bm,ym,_m,$m,hm,oh,vm,mm,gm,Cm);const Ap=Yf(vb);Ap.component("font-awesome-icon",nb);Ap.use(cT).mount("#app");
1786
+ queries: []`}const TR=we({name:"NewRule",components:{InputForm:Sp,ErrorMessage:lt},setup(){const e=Tr(),t=Fe(xR()),n=k$();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}}}),LR={class:"block"},MR=N("h2",{class:"is-size-2 block"},"New rule",-1),OR={class:"field is-grouped is-grouped-centered"},IR={class:"control"},FR={class:"icon is-small"},NR=N("span",null,"Create",-1),DR={key:0,class:"block"},PR=N("hr",null,null,-1);function BR(e,t,n,r,f,u){var p,o;const h=ne("InputForm"),g=ne("font-awesome-icon"),s=ne("ErrorMessage");return X(),ie(xe,null,[N("div",LR,[MR,oe(h,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",OR,[N("p",IR,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.create&&e.create(...i))},[N("span",FR,[oe(g,{icon:"plus"})]),NR])])])]),(p=e.createRuleTask.last)!=null&&p.error?(X(),ie("div",DR,[PR,oe(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):pe("",!0)],64)}const WR=Ae(TR,[["render",BR]]),HR=we({name:"NewRuleView",components:{NewRule:WR},setup(){const e=()=>{an("New rule - Mihari")};qe(()=>{e()})}});function UR(e,t,n,r,f,u){const h=ne("NewRule",!0);return X(),be(h)}const VR=Ae(HR,[["render",UR]]),zR=we({name:"RuleActionButtons",props:{rule:{type:Object,required:!0}},emits:["set-message","set-error","delete"],setup(e,t){const n=ke(()=>`/api/rules/${e.rule.id}`),r=ke(()=>`rule.id:"${e.rule.id}"`),f=C$(),u=A$(),h=Ei(),g=Ll(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${e.rule.id}?`))try{await f.perform(e.rule.id),t.emit("delete")}catch(i){ze.isAxiosError(i)&&t.emit("set-error")}},p=async()=>{try{const o=await u.perform(e.rule.id);t.emit("set-message",o)}catch(o){ze.isAxiosError(o)&&t.emit("set-error",o)}};return qe(()=>{h.perform({q:r.value,page:1,limit:0}),g.perform({q:r.value,page:1,limit:0})}),{deleteRule:s,searchRule:p,searchRuleTask:u,href:n,getAlertsTask:h,getArtifactsTask:g,q:r}}}),jR={class:"buttons is-pulled-right"},GR=N("span",null,"Alerts:",-1),KR=N("span",null,"Artifacts:",-1),YR=["href"],XR=N("span",null,"JSON",-1),ZR={class:"icon is-small"},QR=N("span",null,"Search",-1),qR={class:"icon is-small"},JR=N("span",null,"Edit",-1),ex={class:"icon is-small"},tx=N("span",null,"Delete",-1),nx={class:"icon is-small"};function rx(e,t,n,r,f,u){const h=ne("router-link"),g=ne("font-awesome-icon");return X(),ie("span",jR,[oe(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:e.q}}},{default:Ve(()=>{var s,p;return[GR,N("span",null,ye((p=(s=e.getAlertsTask.last)==null?void 0:s.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),oe(h,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:e.q}}},{default:Ve(()=>{var s,p;return[KR,N("span",null,ye((p=(s=e.getArtifactsTask.last)==null?void 0:s.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),N("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[XR,N("span",ZR,[oe(g,{icon:"barcode"})])],8,YR),N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...s)=>e.searchRule&&e.searchRule(...s))},[QR,N("span",qR,[e.searchRuleTask.isRunning?(X(),be(g,{key:0,icon:"spinner",spin:""})):(X(),be(g,{key:1,icon:"magnifying-glass"}))])]),oe(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Ve(()=>[JR,N("span",ex,[oe(g,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...s)=>e.deleteRule&&e.deleteRule(...s))},[tx,N("span",nx,[oe(g,{icon:"times"})])])])}const Cp=Ae(zR,[["render",rx]]),ix=we({name:"YAML",components:{VAceEditor:_p},props:{yaml:{type:String,required:!0}},setup(){}}),ox={class:"block"};function sx(e,t,n,r,f,u){const h=ne("VAceEditor");return X(),ie("div",ox,[oe(h,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ax=Ae(ix,[["render",sx]]),lx=we({name:"RuleDetailItem",props:{rule:{type:Object,required:!0}},components:{YAML:ax,Alerts:sp,ErrorMessage:lt,Message:ds,ActionButtons:Cp},emits:["delete","refresh"],setup(e,t){const n=Fe(),r=Fe();return{onSetMessage:o=>{o.queued?r.value=o:t.emit("refresh")},onDisposeMessage:()=>{r.value=void 0},message:r,onSetError:o=>{n.value=o},error:n,onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},onRefresh:()=>{t.emit("refresh")}}}}),cx={class:"block"},ux={class:"is-size-2 block"},hx={class:"block is-clearfix"},fx=N("hr",null,null,-1),dx={class:"block"},px=N("h2",{class:"is-size-2 block"},"Alerts",-1);function gx(e,t,n,r,f,u){const h=ne("ErrorMessage"),g=ne("Message"),s=ne("ActionButtons"),p=ne("YAML"),o=ne("Alerts");return X(),ie(xe,null,[N("div",cx,[N("h2",ux,ye(e.rule.id),1),e.error?(X(),be(h,{key:0,class:"mt-3 mb-3",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),e.message?(X(),be(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):pe("",!0),N("p",hx,[oe(s,{rule:e.rule,onSetMessage:e.onSetMessage,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["rule","onSetMessage","onDelete","onSetError"])]),oe(p,{yaml:e.rule.yaml},null,8,["yaml"])]),fx,N("div",dx,[px,oe(o,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const mx=Ae(lx,[["render",gx]]),vx=we({name:"RuleDetailWrapper",components:{Rule:mx,Loading:ln,ErrorMessage:lt},props:{id:{type:String,required:!0}},setup(e){const t=Gd(),n=Tr(),r=async()=>{await t.perform(e.id)},f=async()=>{await r()},u=()=>{n.push("/")};return qe(async()=>{await r()}),Xe(e,async()=>{await r()}),{getRuleTask:t,onRefresh:f,onDelete:u}}});function yx(e,t,n,r,f,u){var p,o;const h=ne("Loading"),g=ne("ErrorMessage"),s=ne("Rule");return X(),ie(xe,null,[e.getRuleTask.isRunning?(X(),be(h,{key:0})):pe("",!0),e.getRuleTask.isError?(X(),be(g,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):pe("",!0),(o=e.getRuleTask.last)!=null&&o.value?(X(),be(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["rule","onRefresh","onDelete"])):pe("",!0)],64)}const bx=Ae(vx,[["render",yx]]),wx=we({name:"RuleView",components:{Rule:bx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{an(`Rule:${e.id} - Mihari`)};qe(()=>{t()}),Xe(()=>e.id,()=>{t()})}});function $x(e,t,n,r,f,u){const h=ne("Rule",!0);return X(),be(h,{id:e.id},null,8,["id"])}const _x=Ae(wx,[["render",$x]]),Sx=we({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{ActionButtons:Cp,Tags:xi,ErrorMessage:lt,Message:ds},emits:["delete"],setup(e,t){const n=Fe(),r=Fe();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onSetMessage:p=>{r.value=p},onDelete:()=>{t.emit("delete")},error:n,message:r,onDisposeMessage:()=>{r.value=void 0}}}}),Cx={class:"box"},Ax={class:"block"},kx={class:"table is-fullwidth is-completely-borderless"},Ex=N("th",null,"Title",-1),Rx=N("th",null,"Description",-1),xx={key:0},Tx=N("th",null,"Tags",-1),Lx=N("p",{class:"block is-clearfix"},null,-1),Mx={class:"help"};function Ox(e,t,n,r,f,u){const h=ne("ErrorMessage"),g=ne("Message"),s=ne("ActionButtons"),p=ne("router-link"),o=ne("Tags");return X(),ie("div",Cx,[e.error?(X(),be(h,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):pe("",!0),e.message?(X(),be(g,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):pe("",!0),N("div",Ax,[N("p",null,[oe(s,{rule:e.rule,onSetError:e.onSetError,onDelete:e.onDelete,onSetMessage:e.onSetMessage},null,8,["rule","onSetError","onDelete","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Ve(()=>[Ke(ye(e.rule.id),1)]),_:1},8,["to"])]),N("table",kx,[N("tr",null,[Ex,N("td",null,ye(e.rule.title),1)]),N("tr",null,[Rx,N("td",null,ye(e.rule.description),1)]),e.rule.tags.length>0?(X(),ie("tr",xx,[Tx,N("td",null,[oe(o,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):pe("",!0)]),Lx,N("p",Mx,"Created at: "+ye(e.rule.createdAt),1)])}const Ix=Ae(Sx,[["render",Ox]]),Fx=we({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Ml,Rule:Ix},emits:["update-page","refresh"],setup(e,t){const n=Fe(),r=h=>{t.emit("update-page",h)},f=()=>{t.emit("refresh")},u=ke(()=>e.rules.results.length>0);return{onUpdatePage:r,onRefresh:f,hasRules:u,error:n}}}),Nx={key:0,class:"block"},Dx={class:"help"},Px={key:1,class:"block"},Bx=N("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),Wx=[Bx];function Hx(e,t,n,r,f,u){const h=ne("Rule"),g=ne("Pagination");return e.hasRules?(X(),ie("div",Nx,[(X(!0),ie(xe,null,_t(e.rules.results,s=>(X(),be(h,{rule:s,key:s.id,onRefresh:e.onRefresh,onDelete:e.onRefresh},null,8,["rule","onRefresh","onDelete"]))),128)),oe(g,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.onUpdatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",Dx,"("+ye(e.rules.total)+" results in total, "+ye(e.rules.results.length)+" shown)",1)])):(X(),ie("div",Px,Wx))}const Ux=Ae(Fx,[["render",Hx]]),Vx=we({name:"RulesWrapper",components:{Rules:Ux,Loading:ln,ErrorMessage:lt},setup(){const e=$r("page","1"),t=$r("q",""),n=Fe(!1),r=jd(),f=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},u=p=>{e.value=p.toString()},h=async()=>{e.value="1",await f()},g=h,s=()=>{n.value=!n.value};return qe(async()=>{await f()}),Xe(e,async()=>{await f()}),Xe(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getRulesTask:r,page:e,q:t,search:h,showHelp:n,toggleShowHelp:s,onUpdatePage:u,onRefresh:g}}}),zx={class:"block"},jx={class:"field has-addons"},Gx={class:"control is-expanded"},Kx={class:"control"},Yx={class:"icon is-small"},Xx=N("span",null,"Search",-1),Zx={class:"control"},Qx={class:"icon is-small"},qx=N("span",null,"Help",-1),Jx={key:0,class:"content mt-3"},eT=Jo('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3),tT={key:0,class:"block"};function nT(e,t,n,r,f,u){var i,a;const h=ne("font-awesome-icon"),g=ne("router-link"),s=ne("Loading"),p=ne("ErrorMessage"),o=ne("Rules");return X(),ie(xe,null,[N("div",zx,[N("div",jx,[N("p",Gx,[Ko(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[Xn,e.q]])]),N("p",Kx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[N("span",Yx,[oe(h,{icon:"search"})]),Xx])]),N("p",Zx,[N("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[N("span",Qx,[oe(h,{icon:"question"})]),qx])])]),e.showHelp?(X(),ie("div",Jx,[eT,N("ul",null,[N("li",null,[oe(g,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Ve(()=>[Ke("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):pe("",!0)]),e.getRulesTask.performCount>0?(X(),ie("div",tT,[e.getRulesTask.isRunning?(X(),be(s,{key:0})):pe("",!0),e.getRulesTask.isError?(X(),be(p,{key:1,error:(i=e.getRulesTask.last)==null?void 0:i.error},null,8,["error"])):pe("",!0),(a=e.getRulesTask.last)!=null&&a.value?(X(),be(o,{key:2,rules:e.getRulesTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["rules","onUpdatePage","onRefresh"])):pe("",!0)])):pe("",!0)],64)}const rT=Ae(Vx,[["render",nT]]),iT=we({name:"RulesView",components:{Rules:rT},setup(){an("Rules - Mihari")}});function oT(e,t,n,r,f,u){const h=ne("Rules",!0);return X(),be(h)}const sT=Ae(iT,[["render",oT]]),aT=[{path:"/",name:"Alerts",component:kC},{path:"/alerts/:id",name:"Alert",component:CS,props:!0},{path:"/config",name:"Config",component:IE},{path:"/artifacts/",name:"Artifacts",component:fE},{path:"/artifacts/:id",name:"Artifact",component:Ak,props:!0},{path:"/rules",name:"Rules",component:sT},{path:"/rules/new",name:"NewRule",component:VR},{path:"/rules/:id",name:"Rule",component:_x,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:$R,props:!0}],lT=w1({history:Nb(),routes:aT});sm.add(fm,km,Sm,um,Am,pm,lm,bm,ym,_m,$m,hm,oh,vm,mm,gm,Cm);const Ap=Yf(vb);Ap.component("font-awesome-icon",nb);Ap.use(lT).mount("#app");