mihari 8.2.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1571 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const h of i)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(i){const h={};return i.integrity&&(h.integrity=i.integrity),i.referrerPolicy&&(h.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?h.credentials="include":i.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(i){if(i.ep)return;i.ep=!0;const h=n(i);fetch(i.href,h)}})();function Gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fg(e){if(Array.isArray(e))return e}function Pg(e){if(Array.isArray(e))return Gs(e)}function zg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wg(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,Eh(r.key),r)}}function Bg(e,t,n){return t&&Wg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pi(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Pa(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h,f=!0,g=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return f=s.done,s},e:function(s){g=!0,h=s},f:function(){try{f||n.return==null||n.return()}finally{if(g)throw h}}}}function Ee(e,t,n){return(t=Eh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,h,f,g=[],s=!0,p=!1;try{if(h=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=h.call(n)).done)&&(g.push(r.value),g.length!==t);s=!0);}catch(o){p=!0,i=o}finally{try{if(!s&&n.return!=null&&(f=n.return(),Object(f)!==f))return}finally{if(p)throw i}}return g}}function Ug(){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.`)}function Vg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(r){Ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Co(e,t){return Fg(e)||Hg(e,t)||Pa(e,t)||Ug()}function jt(e){return Pg(e)||jg(e)||Pa(e)||Vg()}function Gg(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eh(e){var t=Gg(e,"string");return typeof t=="symbol"?t:t+""}function no(e){"@babel/helpers - typeof";return no=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},no(e)}function Pa(e,t){if(e){if(typeof e=="string")return Gs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gs(e,t):void 0}}var Gl=function(){},za={},Mh={},Th=null,Lh={mark:Gl,measure:Gl};try{typeof window<"u"&&(za=window),typeof document<"u"&&(Mh=document),typeof MutationObserver<"u"&&(Th=MutationObserver),typeof performance<"u"&&(Lh=performance)}catch{}var Zg=za.navigator||{},Zl=Zg.userAgent,Yl=Zl===void 0?"":Zl,kn=za,Ye=Mh,Kl=Th,$i=Lh;kn.document;var gn=!!Ye.documentElement&&!!Ye.head&&typeof Ye.addEventListener=="function"&&typeof Ye.createElement=="function",Rh=~Yl.indexOf("MSIE")||~Yl.indexOf("Trident/"),us,Yg=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Kg=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Ih={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Xg={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Oh=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],at="classic",li="duotone",Nh="sharp",Dh="sharp-duotone",Fh="chisel",Ph="etch",zh="jelly",Wh="jelly-duo",Bh="jelly-fill",jh="notdog",Hh="notdog-duo",Uh="slab",Vh="slab-press",Gh="thumbprint",Zh="utility",Yh="utility-duo",Kh="utility-fill",Xh="whiteboard",Qg="Classic",Jg="Duotone",qg="Sharp",em="Sharp Duotone",tm="Chisel",nm="Etch",rm="Jelly",im="Jelly Duo",om="Jelly Fill",sm="Notdog",am="Notdog Duo",lm="Slab",cm="Slab Press",um="Thumbprint",hm="Utility",fm="Utility Duo",dm="Utility Fill",pm="Whiteboard",Qh=[at,li,Nh,Dh,Fh,Ph,zh,Wh,Bh,jh,Hh,Uh,Vh,Gh,Zh,Yh,Kh,Xh];us={},Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(us,at,Qg),li,Jg),Nh,qg),Dh,em),Fh,tm),Ph,nm),zh,rm),Wh,im),Bh,om),jh,sm),Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(us,Hh,am),Uh,lm),Vh,cm),Gh,um),Zh,hm),Yh,fm),Kh,dm),Xh,pm);var gm={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},mm={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},vm=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),ym={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Jh=["fak","fa-kit","fakd","fa-kit-duotone"],Xl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},bm=["kit"],wm="kit",Sm="kit-duotone",_m="Kit",$m="Kit Duotone";Ee(Ee({},wm,_m),Sm,$m);var Cm={kit:{"fa-kit":"fak"}},Am={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},xm={kit:{fak:"fa-kit"}},Ql={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},hs,Ci={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},km=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Em="classic",Mm="duotone",Tm="sharp",Lm="sharp-duotone",Rm="chisel",Im="etch",Om="jelly",Nm="jelly-duo",Dm="jelly-fill",Fm="notdog",Pm="notdog-duo",zm="slab",Wm="slab-press",Bm="thumbprint",jm="utility",Hm="utility-duo",Um="utility-fill",Vm="whiteboard",Gm="Classic",Zm="Duotone",Ym="Sharp",Km="Sharp Duotone",Xm="Chisel",Qm="Etch",Jm="Jelly",qm="Jelly Duo",ev="Jelly Fill",tv="Notdog",nv="Notdog Duo",rv="Slab",iv="Slab Press",ov="Thumbprint",sv="Utility",av="Utility Duo",lv="Utility Fill",cv="Whiteboard";hs={},Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(hs,Em,Gm),Mm,Zm),Tm,Ym),Lm,Km),Rm,Xm),Im,Qm),Om,Jm),Nm,qm),Dm,ev),Fm,tv),Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(hs,Pm,nv),zm,rv),Wm,iv),Bm,ov),jm,sv),Hm,av),Um,lv),Vm,cv);var uv="kit",hv="kit-duotone",fv="Kit",dv="Kit Duotone";Ee(Ee({},uv,fv),hv,dv);var pv={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},gv={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Zs={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},mv=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],qh=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(km,mv),vv=["solid","regular","light","thin","duotone","brands","semibold"],ef=[1,2,3,4,5,6,7,8,9,10],yv=ef.concat([11,12,13,14,15,16,17,18,19,20]),bv=["aw","fw","pull-left","pull-right"],wv=[].concat(jt(Object.keys(gv)),vv,bv,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Ci.GROUP,Ci.SWAP_OPACITY,Ci.PRIMARY,Ci.SECONDARY]).concat(ef.map(function(e){return"".concat(e,"x")})).concat(yv.map(function(e){return"w-".concat(e)})),Sv={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},un="___FONT_AWESOME___",Ys=16,tf="fa",nf="svg-inline--fa",Gn="data-fa-i2svg",Ks="data-fa-pseudo-element",_v="data-fa-pseudo-element-pending",Wa="data-prefix",Ba="data-icon",Jl="fontawesome-i2svg",$v="async",Cv=["HTML","HEAD","STYLE","SCRIPT"],rf=["::before","::after",":before",":after"],of=(function(){try{return!0}catch{return!1}})();function ci(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[at]}})}var sf=le({},Ih);sf[at]=le(le(le(le({},{"fa-duotone":"duotone"}),Ih[at]),Xl.kit),Xl["kit-duotone"]);var Av=ci(sf),Xs=le({},ym);Xs[at]=le(le(le(le({},{duotone:"fad"}),Xs[at]),Ql.kit),Ql["kit-duotone"]);var ql=ci(Xs),Qs=le({},Zs);Qs[at]=le(le({},Qs[at]),xm.kit);var ja=ci(Qs),Js=le({},pv);Js[at]=le(le({},Js[at]),Cm.kit);ci(Js);var xv=Yg,af="fa-layers-text",kv=Kg,Ev=le({},gm);ci(Ev);var Mv=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],fs=Xg,Tv=[].concat(jt(bm),jt(wv)),Wr=kn.FontAwesomeConfig||{};function Lv(e){var t=Ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Rv(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ye&&typeof Ye.querySelector=="function"){var Iv=[["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-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Iv.forEach(function(e){var t=Co(e,2),n=t[0],r=t[1],i=Rv(Lv(n));i!=null&&(Wr[r]=i)})}var lf={styleDefault:"solid",familyDefault:at,cssPrefix:tf,replacementClass:nf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Wr.familyPrefix&&(Wr.cssPrefix=Wr.familyPrefix);var pr=le(le({},lf),Wr);pr.autoReplaceSvg||(pr.observeMutations=!1);var we={};Object.keys(lf).forEach(function(e){Object.defineProperty(we,e,{enumerable:!0,set:function(n){pr[e]=n,Br.forEach(function(r){return r(we)})},get:function(){return pr[e]}})});Object.defineProperty(we,"familyPrefix",{enumerable:!0,set:function(t){pr.cssPrefix=t,Br.forEach(function(n){return n(we)})},get:function(){return pr.cssPrefix}});kn.FontAwesomeConfig=we;var Br=[];function Ov(e){return Br.push(e),function(){Br.splice(Br.indexOf(e),1)}}var tr=Ys,qt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Nv(e){if(!(!e||!gn)){var t=Ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ye.head.childNodes,r=null,i=n.length-1;i>-1;i--){var h=n[i],f=(h.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(r=h)}return Ye.head.insertBefore(t,r),e}}var Dv="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ec(){for(var e=12,t="";e-- >0;)t+=Dv[Math.random()*62|0];return t}function $r(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ha(e){return e.classList?$r(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function cf(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Fv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(cf(e[n]),'" ')},"").trim()}function Ao(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ua(e){return e.size!==qt.size||e.x!==qt.x||e.y!==qt.y||e.rotate!==qt.rotate||e.flipX||e.flipY}function Pv(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},h="translate(".concat(t.x*32,", ").concat(t.y*32,") "),f="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(h," ").concat(f," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:p}}function zv(e){var t=e.transform,n=e.width,r=n===void 0?Ys:n,i=e.height,h=i===void 0?Ys:i,f="";return Rh?f+="translate(".concat(t.x/tr-r/2,"em, ").concat(t.y/tr-h/2,"em) "):f+="translate(calc(-50% + ".concat(t.x/tr,"em), calc(-50% + ").concat(t.y/tr,"em)) "),f+="scale(".concat(t.size/tr*(t.flipX?-1:1),", ").concat(t.size/tr*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var Wv=`:root, :host {
5
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
6
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
7
+ --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
8
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
9
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
10
+ --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
11
+ --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
12
+ --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
13
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
14
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
15
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
16
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
17
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
18
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
19
+ --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
20
+ --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
21
+ --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
22
+ --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
23
+ --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
24
+ --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
25
+ --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
26
+ --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
27
+ --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
28
+ --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
29
+ --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
30
+ --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
31
+ --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
32
+ --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
33
+ --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
34
+ --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
35
+ --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
36
+ }
37
+
38
+ .svg-inline--fa {
39
+ box-sizing: content-box;
40
+ display: var(--fa-display, inline-block);
41
+ height: 1em;
42
+ overflow: visible;
43
+ vertical-align: -0.125em;
44
+ width: var(--fa-width, 1.25em);
45
+ }
46
+ .svg-inline--fa.fa-2xs {
47
+ vertical-align: 0.1em;
48
+ }
49
+ .svg-inline--fa.fa-xs {
50
+ vertical-align: 0em;
51
+ }
52
+ .svg-inline--fa.fa-sm {
53
+ vertical-align: -0.0714285714em;
54
+ }
55
+ .svg-inline--fa.fa-lg {
56
+ vertical-align: -0.2em;
57
+ }
58
+ .svg-inline--fa.fa-xl {
59
+ vertical-align: -0.25em;
60
+ }
61
+ .svg-inline--fa.fa-2xl {
62
+ vertical-align: -0.3125em;
63
+ }
64
+ .svg-inline--fa.fa-pull-left,
65
+ .svg-inline--fa .fa-pull-start {
66
+ float: inline-start;
67
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
68
+ }
69
+ .svg-inline--fa.fa-pull-right,
70
+ .svg-inline--fa .fa-pull-end {
71
+ float: inline-end;
72
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
73
+ }
74
+ .svg-inline--fa.fa-li {
75
+ width: var(--fa-li-width, 2em);
76
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
77
+ inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
78
+ }
79
+
80
+ .fa-layers-counter, .fa-layers-text {
81
+ display: inline-block;
82
+ position: absolute;
83
+ text-align: center;
84
+ }
85
+
86
+ .fa-layers {
87
+ display: inline-block;
88
+ height: 1em;
89
+ position: relative;
90
+ text-align: center;
91
+ vertical-align: -0.125em;
92
+ width: var(--fa-width, 1.25em);
93
+ }
94
+ .fa-layers .svg-inline--fa {
95
+ inset: 0;
96
+ margin: auto;
97
+ position: absolute;
98
+ transform-origin: center center;
99
+ }
100
+
101
+ .fa-layers-text {
102
+ left: 50%;
103
+ top: 50%;
104
+ transform: translate(-50%, -50%);
105
+ transform-origin: center center;
106
+ }
107
+
108
+ .fa-layers-counter {
109
+ background-color: var(--fa-counter-background-color, #ff253a);
110
+ border-radius: var(--fa-counter-border-radius, 1em);
111
+ box-sizing: border-box;
112
+ color: var(--fa-inverse, #fff);
113
+ line-height: var(--fa-counter-line-height, 1);
114
+ max-width: var(--fa-counter-max-width, 5em);
115
+ min-width: var(--fa-counter-min-width, 1.5em);
116
+ overflow: hidden;
117
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
118
+ right: var(--fa-right, 0);
119
+ text-overflow: ellipsis;
120
+ top: var(--fa-top, 0);
121
+ transform: scale(var(--fa-counter-scale, 0.25));
122
+ transform-origin: top right;
123
+ }
124
+
125
+ .fa-layers-bottom-right {
126
+ bottom: var(--fa-bottom, 0);
127
+ right: var(--fa-right, 0);
128
+ top: auto;
129
+ transform: scale(var(--fa-layers-scale, 0.25));
130
+ transform-origin: bottom right;
131
+ }
132
+
133
+ .fa-layers-bottom-left {
134
+ bottom: var(--fa-bottom, 0);
135
+ left: var(--fa-left, 0);
136
+ right: auto;
137
+ top: auto;
138
+ transform: scale(var(--fa-layers-scale, 0.25));
139
+ transform-origin: bottom left;
140
+ }
141
+
142
+ .fa-layers-top-right {
143
+ top: var(--fa-top, 0);
144
+ right: var(--fa-right, 0);
145
+ transform: scale(var(--fa-layers-scale, 0.25));
146
+ transform-origin: top right;
147
+ }
148
+
149
+ .fa-layers-top-left {
150
+ left: var(--fa-left, 0);
151
+ right: auto;
152
+ top: var(--fa-top, 0);
153
+ transform: scale(var(--fa-layers-scale, 0.25));
154
+ transform-origin: top left;
155
+ }
156
+
157
+ .fa-1x {
158
+ font-size: 1em;
159
+ }
160
+
161
+ .fa-2x {
162
+ font-size: 2em;
163
+ }
164
+
165
+ .fa-3x {
166
+ font-size: 3em;
167
+ }
168
+
169
+ .fa-4x {
170
+ font-size: 4em;
171
+ }
172
+
173
+ .fa-5x {
174
+ font-size: 5em;
175
+ }
176
+
177
+ .fa-6x {
178
+ font-size: 6em;
179
+ }
180
+
181
+ .fa-7x {
182
+ font-size: 7em;
183
+ }
184
+
185
+ .fa-8x {
186
+ font-size: 8em;
187
+ }
188
+
189
+ .fa-9x {
190
+ font-size: 9em;
191
+ }
192
+
193
+ .fa-10x {
194
+ font-size: 10em;
195
+ }
196
+
197
+ .fa-2xs {
198
+ font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
199
+ line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
200
+ vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
201
+ }
202
+
203
+ .fa-xs {
204
+ font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
205
+ line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
206
+ vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
207
+ }
208
+
209
+ .fa-sm {
210
+ font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
211
+ line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
212
+ vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
213
+ }
214
+
215
+ .fa-lg {
216
+ font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
217
+ line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
218
+ vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
219
+ }
220
+
221
+ .fa-xl {
222
+ font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
223
+ line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
224
+ vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
225
+ }
226
+
227
+ .fa-2xl {
228
+ font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
229
+ line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
230
+ vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
231
+ }
232
+
233
+ .fa-width-auto {
234
+ --fa-width: auto;
235
+ }
236
+
237
+ .fa-fw,
238
+ .fa-width-fixed {
239
+ --fa-width: 1.25em;
240
+ }
241
+
242
+ .fa-ul {
243
+ list-style-type: none;
244
+ margin-inline-start: var(--fa-li-margin, 2.5em);
245
+ padding-inline-start: 0;
246
+ }
247
+ .fa-ul > li {
248
+ position: relative;
249
+ }
250
+
251
+ .fa-li {
252
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
253
+ position: absolute;
254
+ text-align: center;
255
+ width: var(--fa-li-width, 2em);
256
+ line-height: inherit;
257
+ }
258
+
259
+ /* Heads Up: Bordered Icons will not be supported in the future!
260
+ - This feature will be deprecated in the next major release of Font Awesome (v8)!
261
+ - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
262
+ */
263
+ /* Notes:
264
+ * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
265
+ * --@{v.$css-prefix}-border-padding =
266
+ ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
267
+ ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
268
+ */
269
+ .fa-border {
270
+ border-color: var(--fa-border-color, #eee);
271
+ border-radius: var(--fa-border-radius, 0.1em);
272
+ border-style: var(--fa-border-style, solid);
273
+ border-width: var(--fa-border-width, 0.0625em);
274
+ box-sizing: var(--fa-border-box-sizing, content-box);
275
+ padding: var(--fa-border-padding, 0.1875em 0.25em);
276
+ }
277
+
278
+ .fa-pull-left,
279
+ .fa-pull-start {
280
+ float: inline-start;
281
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
282
+ }
283
+
284
+ .fa-pull-right,
285
+ .fa-pull-end {
286
+ float: inline-end;
287
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
288
+ }
289
+
290
+ .fa-beat {
291
+ animation-name: fa-beat;
292
+ animation-delay: var(--fa-animation-delay, 0s);
293
+ animation-direction: var(--fa-animation-direction, normal);
294
+ animation-duration: var(--fa-animation-duration, 1s);
295
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
296
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
297
+ }
298
+
299
+ .fa-bounce {
300
+ animation-name: fa-bounce;
301
+ animation-delay: var(--fa-animation-delay, 0s);
302
+ animation-direction: var(--fa-animation-direction, normal);
303
+ animation-duration: var(--fa-animation-duration, 1s);
304
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
305
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
306
+ }
307
+
308
+ .fa-fade {
309
+ animation-name: fa-fade;
310
+ animation-delay: var(--fa-animation-delay, 0s);
311
+ animation-direction: var(--fa-animation-direction, normal);
312
+ animation-duration: var(--fa-animation-duration, 1s);
313
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
314
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
315
+ }
316
+
317
+ .fa-beat-fade {
318
+ animation-name: fa-beat-fade;
319
+ animation-delay: var(--fa-animation-delay, 0s);
320
+ animation-direction: var(--fa-animation-direction, normal);
321
+ animation-duration: var(--fa-animation-duration, 1s);
322
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
323
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
324
+ }
325
+
326
+ .fa-flip {
327
+ animation-name: fa-flip;
328
+ animation-delay: var(--fa-animation-delay, 0s);
329
+ animation-direction: var(--fa-animation-direction, normal);
330
+ animation-duration: var(--fa-animation-duration, 1s);
331
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
332
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
333
+ }
334
+
335
+ .fa-shake {
336
+ animation-name: fa-shake;
337
+ animation-delay: var(--fa-animation-delay, 0s);
338
+ animation-direction: var(--fa-animation-direction, normal);
339
+ animation-duration: var(--fa-animation-duration, 1s);
340
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
341
+ animation-timing-function: var(--fa-animation-timing, linear);
342
+ }
343
+
344
+ .fa-spin {
345
+ animation-name: fa-spin;
346
+ animation-delay: var(--fa-animation-delay, 0s);
347
+ animation-direction: var(--fa-animation-direction, normal);
348
+ animation-duration: var(--fa-animation-duration, 2s);
349
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
+ animation-timing-function: var(--fa-animation-timing, linear);
351
+ }
352
+
353
+ .fa-spin-reverse {
354
+ --fa-animation-direction: reverse;
355
+ }
356
+
357
+ .fa-pulse,
358
+ .fa-spin-pulse {
359
+ animation-name: fa-spin;
360
+ animation-direction: var(--fa-animation-direction, normal);
361
+ animation-duration: var(--fa-animation-duration, 1s);
362
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
363
+ animation-timing-function: var(--fa-animation-timing, steps(8));
364
+ }
365
+
366
+ @media (prefers-reduced-motion: reduce) {
367
+ .fa-beat,
368
+ .fa-bounce,
369
+ .fa-fade,
370
+ .fa-beat-fade,
371
+ .fa-flip,
372
+ .fa-pulse,
373
+ .fa-shake,
374
+ .fa-spin,
375
+ .fa-spin-pulse {
376
+ animation: none !important;
377
+ transition: none !important;
378
+ }
379
+ }
380
+ @keyframes fa-beat {
381
+ 0%, 90% {
382
+ transform: scale(1);
383
+ }
384
+ 45% {
385
+ transform: scale(var(--fa-beat-scale, 1.25));
386
+ }
387
+ }
388
+ @keyframes fa-bounce {
389
+ 0% {
390
+ transform: scale(1, 1) translateY(0);
391
+ }
392
+ 10% {
393
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
394
+ }
395
+ 30% {
396
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
397
+ }
398
+ 50% {
399
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
400
+ }
401
+ 57% {
402
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
403
+ }
404
+ 64% {
405
+ transform: scale(1, 1) translateY(0);
406
+ }
407
+ 100% {
408
+ transform: scale(1, 1) translateY(0);
409
+ }
410
+ }
411
+ @keyframes fa-fade {
412
+ 50% {
413
+ opacity: var(--fa-fade-opacity, 0.4);
414
+ }
415
+ }
416
+ @keyframes fa-beat-fade {
417
+ 0%, 100% {
418
+ opacity: var(--fa-beat-fade-opacity, 0.4);
419
+ transform: scale(1);
420
+ }
421
+ 50% {
422
+ opacity: 1;
423
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
424
+ }
425
+ }
426
+ @keyframes fa-flip {
427
+ 50% {
428
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
429
+ }
430
+ }
431
+ @keyframes fa-shake {
432
+ 0% {
433
+ transform: rotate(-15deg);
434
+ }
435
+ 4% {
436
+ transform: rotate(15deg);
437
+ }
438
+ 8%, 24% {
439
+ transform: rotate(-18deg);
440
+ }
441
+ 12%, 28% {
442
+ transform: rotate(18deg);
443
+ }
444
+ 16% {
445
+ transform: rotate(-22deg);
446
+ }
447
+ 20% {
448
+ transform: rotate(22deg);
449
+ }
450
+ 32% {
451
+ transform: rotate(-12deg);
452
+ }
453
+ 36% {
454
+ transform: rotate(12deg);
455
+ }
456
+ 40%, 100% {
457
+ transform: rotate(0deg);
458
+ }
459
+ }
460
+ @keyframes fa-spin {
461
+ 0% {
462
+ transform: rotate(0deg);
463
+ }
464
+ 100% {
465
+ transform: rotate(360deg);
466
+ }
467
+ }
468
+ .fa-rotate-90 {
469
+ transform: rotate(90deg);
470
+ }
471
+
472
+ .fa-rotate-180 {
473
+ transform: rotate(180deg);
474
+ }
475
+
476
+ .fa-rotate-270 {
477
+ transform: rotate(270deg);
478
+ }
479
+
480
+ .fa-flip-horizontal {
481
+ transform: scale(-1, 1);
482
+ }
483
+
484
+ .fa-flip-vertical {
485
+ transform: scale(1, -1);
486
+ }
487
+
488
+ .fa-flip-both,
489
+ .fa-flip-horizontal.fa-flip-vertical {
490
+ transform: scale(-1, -1);
491
+ }
492
+
493
+ .fa-rotate-by {
494
+ transform: rotate(var(--fa-rotate-angle, 0));
495
+ }
496
+
497
+ .svg-inline--fa .fa-primary {
498
+ fill: var(--fa-primary-color, currentColor);
499
+ opacity: var(--fa-primary-opacity, 1);
500
+ }
501
+
502
+ .svg-inline--fa .fa-secondary {
503
+ fill: var(--fa-secondary-color, currentColor);
504
+ opacity: var(--fa-secondary-opacity, 0.4);
505
+ }
506
+
507
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
508
+ opacity: var(--fa-secondary-opacity, 0.4);
509
+ }
510
+
511
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
512
+ opacity: var(--fa-primary-opacity, 1);
513
+ }
514
+
515
+ .svg-inline--fa mask .fa-primary,
516
+ .svg-inline--fa mask .fa-secondary {
517
+ fill: black;
518
+ }
519
+
520
+ .svg-inline--fa.fa-inverse {
521
+ fill: var(--fa-inverse, #fff);
522
+ }
523
+
524
+ .fa-stack {
525
+ display: inline-block;
526
+ height: 2em;
527
+ line-height: 2em;
528
+ position: relative;
529
+ vertical-align: middle;
530
+ width: 2.5em;
531
+ }
532
+
533
+ .fa-inverse {
534
+ color: var(--fa-inverse, #fff);
535
+ }
536
+
537
+ .svg-inline--fa.fa-stack-1x {
538
+ --fa-width: 1.25em;
539
+ height: 1em;
540
+ width: var(--fa-width);
541
+ }
542
+ .svg-inline--fa.fa-stack-2x {
543
+ --fa-width: 2.5em;
544
+ height: 2em;
545
+ width: var(--fa-width);
546
+ }
547
+
548
+ .fa-stack-1x,
549
+ .fa-stack-2x {
550
+ inset: 0;
551
+ margin: auto;
552
+ position: absolute;
553
+ z-index: var(--fa-stack-z-index, auto);
554
+ }`;function uf(){var e=tf,t=nf,n=we.cssPrefix,r=we.replacementClass,i=Wv;if(n!==e||r!==t){var h=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");i=i.replace(h,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(r))}return i}var tc=!1;function ds(){we.autoAddCss&&!tc&&(Nv(uf()),tc=!0)}var Bv={mixout:function(){return{dom:{css:uf,insertCss:ds}}},hooks:function(){return{beforeDOMElementCreation:function(){ds()},beforeI2svg:function(){ds()}}}},hn=kn||{};hn[un]||(hn[un]={});hn[un].styles||(hn[un].styles={});hn[un].hooks||(hn[un].hooks={});hn[un].shims||(hn[un].shims=[]);var Wt=hn[un],hf=[],ff=function(){Ye.removeEventListener("DOMContentLoaded",ff),ro=1,hf.map(function(t){return t()})},ro=!1;gn&&(ro=(Ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ye.readyState),ro||Ye.addEventListener("DOMContentLoaded",ff));function jv(e){gn&&(ro?setTimeout(e,0):hf.push(e))}function ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,h=i===void 0?[]:i;return typeof e=="string"?cf(e):"<".concat(t," ").concat(Fv(r),">").concat(h.map(ui).join(""),"</").concat(t,">")}function nc(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ps=function(t,n,r,i){var h=Object.keys(t),f=h.length,g=n,s,p,o;for(r===void 0?(s=1,o=t[h[0]]):(s=0,o=r);s<f;s++)p=h[s],o=g(o,t[p],p,t);return o};function df(e){return jt(e).length!==1?null:e.codePointAt(0).toString(16)}function rc(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function qs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,h=rc(t);typeof Wt.hooks.addPack=="function"&&!i?Wt.hooks.addPack(e,rc(t)):Wt.styles[e]=le(le({},Wt.styles[e]||{}),h),e==="fas"&&qs("fa",t)}var Xr=Wt.styles,Hv=Wt.shims,pf=Object.keys(ja),Uv=pf.reduce(function(e,t){return e[t]=Object.keys(ja[t]),e},{}),Va=null,gf={},mf={},vf={},yf={},bf={};function Vv(e){return~Tv.indexOf(e)}function Gv(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Vv(i)?i:null}var wf=function(){var t=function(h){return ps(Xr,function(f,g,s){return f[s]=ps(g,h,{}),f},{})};gf=t(function(i,h,f){if(h[3]&&(i[h[3]]=f),h[2]){var g=h[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){i[s.toString(16)]=f})}return i}),mf=t(function(i,h,f){if(i[f]=f,h[2]){var g=h[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){i[s]=f})}return i}),bf=t(function(i,h,f){var g=h[2];return i[f]=f,g.forEach(function(s){i[s]=f}),i});var n="far"in Xr||we.autoFetchSvg,r=ps(Hv,function(i,h){var f=h[0],g=h[1],s=h[2];return g==="far"&&!n&&(g="fas"),typeof f=="string"&&(i.names[f]={prefix:g,iconName:s}),typeof f=="number"&&(i.unicodes[f.toString(16)]={prefix:g,iconName:s}),i},{names:{},unicodes:{}});vf=r.names,yf=r.unicodes,Va=xo(we.styleDefault,{family:we.familyDefault})};Ov(function(e){Va=xo(e.styleDefault,{family:we.familyDefault})});wf();function Ga(e,t){return(gf[e]||{})[t]}function Zv(e,t){return(mf[e]||{})[t]}function Pn(e,t){return(bf[e]||{})[t]}function Sf(e){return vf[e]||{prefix:null,iconName:null}}function Yv(e){var t=yf[e],n=Ga("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function En(){return Va}var _f=function(){return{prefix:null,iconName:null,rest:[]}};function Kv(e){var t=at,n=pf.reduce(function(r,i){return r[i]="".concat(we.cssPrefix,"-").concat(i),r},{});return Qh.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Uv[r].includes(i)}))&&(t=r)}),t}function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?at:n,i=Av[r][e];if(r===li&&!e)return"fad";var h=ql[r][e]||ql[r][i],f=e in Wt.styles?e:null,g=h||f||null;return g}function Xv(e){var t=[],n=null;return e.forEach(function(r){var i=Gv(we.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function ic(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var oc=qh.concat(Jh);function ko(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,h=ic(e.filter(function(c){return oc.includes(c)})),f=ic(e.filter(function(c){return!oc.includes(c)})),g=h.filter(function(c){return i=c,!Oh.includes(c)}),s=Co(g,1),p=s[0],o=p===void 0?null:p,l=Kv(h),u=le(le({},Xv(f)),{},{prefix:xo(o,{family:l})});return le(le(le({},u),ey({values:e,family:l,styles:Xr,config:we,canonical:u,givenPrefix:i})),Qv(r,i,u))}function Qv(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var h=t==="fa"?Sf(i):{},f=Pn(r,i);return i=h.iconName||f||i,r=h.prefix||r,r==="far"&&!Xr.far&&Xr.fas&&!we.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Jv=Qh.filter(function(e){return e!==at||e!==li}),qv=Object.keys(Zs).filter(function(e){return e!==at}).map(function(e){return Object.keys(Zs[e])}).flat();function ey(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,h=i===void 0?"":i,f=e.styles,g=f===void 0?{}:f,s=e.config,p=s===void 0?{}:s,o=n===li,l=t.includes("fa-duotone")||t.includes("fad"),u=p.familyDefault==="duotone",c=r.prefix==="fad"||r.prefix==="fa-duotone";if(!o&&(l||u||c)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Jv.includes(n)){var a=Object.keys(g).find(function(m){return qv.includes(m)});if(a||p.autoFetchSvg){var d=vm.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=Pn(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||h==="fa")&&(r.prefix=En()||"fas"),r}var ty=(function(){function e(){zg(this,e),this.definitions={}}return Bg(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),h=0;h<r;h++)i[h]=arguments[h];var f=i.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(g){n.definitions[g]=le(le({},n.definitions[g]||{}),f[g]),qs(g,f[g]);var s=ja[at][g];s&&qs(s,f[g]),wf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(h){var f=i[h],g=f.prefix,s=f.iconName,p=f.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(l){typeof l=="string"&&(n[g][l]=p)}),n[g][s]=p}),n}}])})(),sc=[],sr={},cr={},ny=Object.keys(cr);function ry(e,t){var n=t.mixoutsTo;return sc=e,sr={},Object.keys(cr).forEach(function(r){ny.indexOf(r)===-1&&delete cr[r]}),sc.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(f){typeof i[f]=="function"&&(n[f]=i[f]),no(i[f])==="object"&&Object.keys(i[f]).forEach(function(g){n[f]||(n[f]={}),n[f][g]=i[f][g]})}),r.hooks){var h=r.hooks();Object.keys(h).forEach(function(f){sr[f]||(sr[f]=[]),sr[f].push(h[f])})}r.provides&&r.provides(cr)}),n}function ea(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var h=sr[e]||[];return h.forEach(function(f){t=f.apply(null,[t].concat(r))}),t}function Zn(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 i=sr[e]||[];i.forEach(function(h){h.apply(null,n)})}function Mn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return cr[e]?cr[e].apply(null,t):void 0}function ta(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||En();if(t)return t=Pn(n,t)||t,nc($f.definitions,n,t)||nc(Wt.styles,n,t)}var $f=new ty,iy=function(){we.autoReplaceSvg=!1,we.observeMutations=!1,Zn("noAuto")},oy={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gn?(Zn("beforeI2svg",t),Mn("pseudoElements2svg",t),Mn("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;we.autoReplaceSvg===!1&&(we.autoReplaceSvg=!0),we.observeMutations=!0,jv(function(){ay({autoReplaceSvgRoot:n}),Zn("watch",t)})}},sy={icon:function(t){if(t===null)return null;if(no(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Pn(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:Pn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(we.cssPrefix,"-"))>-1||t.match(xv))){var i=ko(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||En(),iconName:Pn(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var h=En();return{prefix:h,iconName:Pn(h,t)||t}}}},Ot={noAuto:iy,config:we,dom:oy,parse:sy,library:$f,findIconDefinition:ta,toHtml:ui},ay=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ye:n;(Object.keys(Wt.styles).length>0||we.autoFetchSvg)&&gn&&we.autoReplaceSvg&&Ot.dom.i2svg({node:r})};function Eo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(gn){var r=Ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function ly(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,h=e.styles,f=e.transform;if(Ua(f)&&n.found&&!r.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};i.style=Ao(le(le({},h),{},{"transform-origin":"".concat(p.x+f.x/16,"em ").concat(p.y+f.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function cy(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,h=e.symbol,f=h===!0?"".concat(t,"-").concat(we.cssPrefix,"-").concat(n):h;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:le(le({},i),{},{id:f}),children:r}]}]}function uy(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Za(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,h=e.iconName,f=e.transform,g=e.symbol,s=e.maskId,p=e.extra,o=e.watchable,l=o===void 0?!1:o,u=r.found?r:n,c=u.width,a=u.height,d=[we.replacementClass,h?"".concat(we.cssPrefix,"-").concat(h):""].filter(function(_){return p.classes.indexOf(_)===-1}).filter(function(_){return _!==""||!!_}).concat(p.classes).join(" "),m={children:[],attributes:le(le({},p.attributes),{},{"data-prefix":i,"data-icon":h,class:d,role:p.attributes.role||"img",viewBox:"0 0 ".concat(c," ").concat(a)})};!uy(p.attributes)&&!p.attributes["aria-hidden"]&&(m.attributes["aria-hidden"]="true"),l&&(m.attributes[Gn]="");var v=le(le({},m),{},{prefix:i,iconName:h,main:n,mask:r,maskId:s,transform:f,symbol:g,styles:le({},p.styles)}),y=r.found&&n.found?Mn("generateAbstractMask",v)||{children:[],attributes:{}}:Mn("generateAbstractIcon",v)||{children:[],attributes:{}},A=y.children,C=y.attributes;return v.children=A,v.attributes=C,g?cy(v):ly(v)}function ac(e){var t=e.content,n=e.width,r=e.height,i=e.transform,h=e.extra,f=e.watchable,g=f===void 0?!1:f,s=le(le({},h.attributes),{},{class:h.classes.join(" ")});g&&(s[Gn]="");var p=le({},h.styles);Ua(i)&&(p.transform=zv({transform:i,width:n,height:r}),p["-webkit-transform"]=p.transform);var o=Ao(p);o.length>0&&(s.style=o);var l=[];return l.push({tag:"span",attributes:s,children:[t]}),l}function hy(e){var t=e.content,n=e.extra,r=le(le({},n.attributes),{},{class:n.classes.join(" ")}),i=Ao(n.styles);i.length>0&&(r.style=i);var h=[];return h.push({tag:"span",attributes:r,children:[t]}),h}var gs=Wt.styles;function na(e){var t=e[0],n=e[1],r=e.slice(4),i=Co(r,1),h=i[0],f=null;return Array.isArray(h)?f={tag:"g",attributes:{class:"".concat(we.cssPrefix,"-").concat(fs.GROUP)},children:[{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(fs.SECONDARY),fill:"currentColor",d:h[0]}},{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(fs.PRIMARY),fill:"currentColor",d:h[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:h}},{found:!0,width:t,height:n,icon:f}}var fy={found:!1,width:512,height:512};function dy(e,t){!of&&!we.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ra(e,t){var n=t;return t==="fa"&&we.styleDefault!==null&&(t=En()),new Promise(function(r,i){if(n==="fa"){var h=Sf(e)||{};e=h.iconName||e,t=h.prefix||t}if(e&&t&&gs[t]&&gs[t][e]){var f=gs[t][e];return r(na(f))}dy(e,t),r(le(le({},fy),{},{icon:we.showMissingIcons&&e?Mn("missingIconAbstract")||{}:{}}))})}var lc=function(){},ia=we.measurePerformance&&$i&&$i.mark&&$i.measure?$i:{mark:lc,measure:lc},Pr='FA "7.1.0"',py=function(t){return ia.mark("".concat(Pr," ").concat(t," begins")),function(){return Cf(t)}},Cf=function(t){ia.mark("".concat(Pr," ").concat(t," ends")),ia.measure("".concat(Pr," ").concat(t),"".concat(Pr," ").concat(t," begins"),"".concat(Pr," ").concat(t," ends"))},Ya={begin:py,end:Cf},zi=function(){};function cc(e){var t=e.getAttribute?e.getAttribute(Gn):null;return typeof t=="string"}function gy(e){var t=e.getAttribute?e.getAttribute(Wa):null,n=e.getAttribute?e.getAttribute(Ba):null;return t&&n}function my(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(we.replacementClass)}function vy(){if(we.autoReplaceSvg===!0)return Wi.replace;var e=Wi[we.autoReplaceSvg];return e||Wi.replace}function yy(e){return Ye.createElementNS("http://www.w3.org/2000/svg",e)}function by(e){return Ye.createElement(e)}function Af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?yy:by:n;if(typeof e=="string")return Ye.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(f){i.setAttribute(f,e.attributes[f])});var h=e.children||[];return h.forEach(function(f){i.appendChild(Af(f,{ceFn:r}))}),i}function wy(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Wi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(Af(i),n)}),n.getAttribute(Gn)===null&&we.keepOriginalSource){var r=Ye.createComment(wy(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Ha(n).indexOf(we.replacementClass))return Wi.replace(t);var i=new RegExp("".concat(we.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var h=r[0].attributes.class.split(" ").reduce(function(g,s){return s===we.replacementClass||s.match(i)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});r[0].attributes.class=h.toSvg.join(" "),h.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",h.toNode.join(" "))}var f=r.map(function(g){return ui(g)}).join(`
555
+ `);n.setAttribute(Gn,""),n.innerHTML=f}};function uc(e){e()}function xf(e,t){var n=typeof t=="function"?t:zi;if(e.length===0)n();else{var r=uc;we.mutateApproach===$v&&(r=kn.requestAnimationFrame||uc),r(function(){var i=vy(),h=Ya.begin("mutate");e.map(i),h(),n()})}}var Ka=!1;function kf(){Ka=!0}function oa(){Ka=!1}var io=null;function hc(e){if(Kl&&we.observeMutations){var t=e.treeCallback,n=t===void 0?zi:t,r=e.nodeCallback,i=r===void 0?zi:r,h=e.pseudoElementsCallback,f=h===void 0?zi:h,g=e.observeMutationsRoot,s=g===void 0?Ye:g;io=new Kl(function(p){if(!Ka){var o=En();$r(p).forEach(function(l){if(l.type==="childList"&&l.addedNodes.length>0&&!cc(l.addedNodes[0])&&(we.searchPseudoElements&&f(l.target),n(l.target)),l.type==="attributes"&&l.target.parentNode&&we.searchPseudoElements&&f([l.target],!0),l.type==="attributes"&&cc(l.target)&&~Mv.indexOf(l.attributeName))if(l.attributeName==="class"&&gy(l.target)){var u=ko(Ha(l.target)),c=u.prefix,a=u.iconName;l.target.setAttribute(Wa,c||o),a&&l.target.setAttribute(Ba,a)}else my(l.target)&&i(l.target)})}}),gn&&io.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Sy(){io&&io.disconnect()}function _y(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var h=i.split(":"),f=h[0],g=h.slice(1);return f&&g.length>0&&(r[f]=g.join(":").trim()),r},{})),n}function $y(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=ko(Ha(e));return i.prefix||(i.prefix=En()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Zv(i.prefix,e.innerText)||Ga(i.prefix,df(e.innerText))),!i.iconName&&we.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Cy(e){var t=$r(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function Ay(){return{iconName:null,prefix:null,transform:qt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function fc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=$y(e),r=n.iconName,i=n.prefix,h=n.rest,f=Cy(e),g=ea("parseNodeAttributes",{},e),s=t.styleParser?_y(e):[];return le({iconName:r,prefix:i,transform:qt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:h,styles:s,attributes:f}},g)}var xy=Wt.styles;function Ef(e){var t=we.autoReplaceSvg==="nest"?fc(e,{styleParser:!1}):fc(e);return~t.extra.classes.indexOf(af)?Mn("generateLayersText",e,t):Mn("generateSvgReplacementMutation",e,t)}function ky(){return[].concat(jt(Jh),jt(qh))}function dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!gn)return Promise.resolve();var n=Ye.documentElement.classList,r=function(l){return n.add("".concat(Jl,"-").concat(l))},i=function(l){return n.remove("".concat(Jl,"-").concat(l))},h=we.autoFetchSvg?ky():Oh.concat(Object.keys(xy));h.includes("fa")||h.push("fa");var f=[".".concat(af,":not([").concat(Gn,"])")].concat(h.map(function(o){return".".concat(o,":not([").concat(Gn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var g=[];try{g=$r(e.querySelectorAll(f))}catch{}if(g.length>0)r("pending"),i("complete");else return Promise.resolve();var s=Ya.begin("onTree"),p=g.reduce(function(o,l){try{var u=Ef(l);u&&o.push(u)}catch(c){of||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,l){Promise.all(p).then(function(u){xf(u,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(u){s(),l(u)})})}function Ey(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ef(e).then(function(n){n&&xf([n],t)})}function My(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:ta(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ta(i||{})),e(r,le(le({},n),{},{mask:i}))}}var Ty=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?qt:r,h=n.symbol,f=h===void 0?!1:h,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,l=n.classes,u=l===void 0?[]:l,c=n.attributes,a=c===void 0?{}:c,d=n.styles,m=d===void 0?{}:d;if(t){var v=t.prefix,y=t.iconName,A=t.icon;return Eo(le({type:"icon"},t),function(){return Zn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Za({icons:{main:na(A),mask:s?na(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:y,transform:le(le({},qt),i),symbol:f,maskId:o,extra:{attributes:a,styles:m,classes:u}})})}},Ly={mixout:function(){return{icon:My(Ty)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=dc,n.nodeCallback=Ey,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Ye:r,h=n.callback,f=h===void 0?function(){}:h;return dc(i,f)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,h=r.prefix,f=r.transform,g=r.symbol,s=r.mask,p=r.maskId,o=r.extra;return new Promise(function(l,u){Promise.all([ra(i,h),s.iconName?ra(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(c){var a=Co(c,2),d=a[0],m=a[1];l([n,Za({icons:{main:d,mask:m},prefix:h,iconName:i,transform:f,symbol:g,maskId:p,extra:o,watchable:!0})])}).catch(u)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.transform,g=n.styles,s=Ao(g);s.length>0&&(i.style=s);var p;return Ua(f)&&(p=Mn("generateAbstractTransformGrouping",{main:h,transform:f,containerWidth:h.width,iconWidth:h.width})),r.push(p||h.icon),{children:r,attributes:i}}}},Ry={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,h=i===void 0?[]:i;return Eo({type:"layer"},function(){Zn("beforeDOMElementCreation",{assembler:n,params:r});var f=[];return n(function(g){Array.isArray(g)?g.map(function(s){f=f.concat(s.abstract)}):f=f.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(we.cssPrefix,"-layers")].concat(jt(h)).join(" ")},children:f}]})}}}},Iy={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,h=i===void 0?[]:i,f=r.attributes,g=f===void 0?{}:f,s=r.styles,p=s===void 0?{}:s;return Eo({type:"counter",content:n},function(){return Zn("beforeDOMElementCreation",{content:n,params:r}),hy({content:n.toString(),extra:{attributes:g,styles:p,classes:["".concat(we.cssPrefix,"-layers-counter")].concat(jt(h))}})})}}}},Oy={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,h=i===void 0?qt:i,f=r.classes,g=f===void 0?[]:f,s=r.attributes,p=s===void 0?{}:s,o=r.styles,l=o===void 0?{}:o;return Eo({type:"text",content:n},function(){return Zn("beforeDOMElementCreation",{content:n,params:r}),ac({content:n,transform:le(le({},qt),h),extra:{attributes:p,styles:l,classes:["".concat(we.cssPrefix,"-layers-text")].concat(jt(g))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,h=r.extra,f=null,g=null;if(Rh){var s=parseInt(getComputedStyle(n).fontSize,10),p=n.getBoundingClientRect();f=p.width/s,g=p.height/s}return Promise.resolve([n,ac({content:n.innerHTML,width:f,height:g,transform:i,extra:h,watchable:!0})])}}},Mf=new RegExp('"',"ug"),pc=[1105920,1112319],gc=le(le(le(le({},{FontAwesome:{normal:"fas",400:"fas"}}),mm),Sv),Am),sa=Object.keys(gc).reduce(function(e,t){return e[t.toLowerCase()]=gc[t],e},{}),Ny=Object.keys(sa).reduce(function(e,t){var n=sa[t];return e[t]=n[900]||jt(Object.entries(n))[0][1],e},{});function Dy(e){var t=e.replace(Mf,"");return df(jt(t)[0]||"")}function Fy(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(Mf,""),i=r.codePointAt(0),h=i>=pc[0]&&i<=pc[1],f=r.length===2?r[0]===r[1]:!1;return h||f||t}function Py(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(sa[n]||{})[i]||Ny[n]}function mc(e,t){var n="".concat(_v).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var h=$r(e.children),f=h.filter(function(b){return b.getAttribute(Ks)===t})[0],g=kn.getComputedStyle(e,t),s=g.getPropertyValue("font-family"),p=s.match(kv),o=g.getPropertyValue("font-weight"),l=g.getPropertyValue("content");if(f&&!p)return e.removeChild(f),r();if(p&&l!=="none"&&l!==""){var u=g.getPropertyValue("content"),c=Py(s,o),a=Dy(u),d=p[0].startsWith("FontAwesome"),m=Fy(g),v=Ga(c,a),y=v;if(d){var A=Yv(a);A.iconName&&A.prefix&&(v=A.iconName,c=A.prefix)}if(v&&!m&&(!f||f.getAttribute(Wa)!==c||f.getAttribute(Ba)!==y)){e.setAttribute(n,y),f&&e.removeChild(f);var C=Ay(),_=C.extra;_.attributes[Ks]=t,ra(v,c).then(function(b){var k=Za(le(le({},C),{},{icons:{main:b,mask:_f()},prefix:c,iconName:y,extra:_,watchable:!0})),R=Ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=k.map(function(M){return ui(M)}).join(`
556
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function zy(e){return Promise.all([mc(e,"::before"),mc(e,"::after")])}function Wy(e){return e.parentNode!==document.head&&!~Cv.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ks)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var By=function(t){return!!t&&rf.some(function(n){return t.includes(n)})},jy=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(s){return s.trim()});r=r.flatMap(function(s){return s.includes("(")?s:s.split(",").map(function(p){return p.trim()})});var i=Pi(r),h;try{for(i.s();!(h=i.n()).done;){var f=h.value;if(By(f)){var g=rf.reduce(function(s,p){return s.replace(p,"")},f);g!==""&&g!=="*"&&n.add(g)}}}catch(s){i.e(s)}finally{i.f()}return n};function vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gn){var n;if(t)n=e;else if(we.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Pi(document.styleSheets),h;try{for(i.s();!(h=i.n()).done;){var f=h.value;try{var g=Pi(f.cssRules),s;try{for(g.s();!(s=g.n()).done;){var p=s.value,o=jy(p.selectorText),l=Pi(o),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;r.add(c)}}catch(d){l.e(d)}finally{l.f()}}}catch(d){g.e(d)}finally{g.f()}}catch(d){we.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(f.href," (").concat(d.message,`)
557
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(d){i.e(d)}finally{i.f()}if(!r.size)return;var a=Array.from(r).join(", ");try{n=e.querySelectorAll(a)}catch{}}return new Promise(function(d,m){var v=$r(n).filter(Wy).map(zy),y=Ya.begin("searchPseudoElements");kf(),Promise.all(v).then(function(){y(),oa(),d()}).catch(function(){y(),oa(),m()})})}}var Hy={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=vc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Ye:r;we.searchPseudoElements&&vc(i)}}},yc=!1,Uy={mixout:function(){return{dom:{unwatch:function(){kf(),yc=!0}}}},hooks:function(){return{bootstrap:function(){hc(ea("mutationObserverCallbacks",{}))},noAuto:function(){Sy()},watch:function(n){var r=n.observeMutationsRoot;yc?oa():hc(ea("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},bc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var h=i.toLowerCase().split("-"),f=h[0],g=h.slice(1).join("-");if(f&&g==="h")return r.flipX=!0,r;if(f&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(f){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)},Vy={mixout:function(){return{parse:{transform:function(n){return bc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=bc(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,h=n.containerWidth,f=n.iconWidth,g={transform:"translate(".concat(h/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),p="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),o="rotate(".concat(i.rotate," 0 0)"),l={transform:"".concat(s," ").concat(p," ").concat(o)},u={transform:"translate(".concat(f/2*-1," -256)")},c={outer:g,inner:l,path:u};return{tag:"g",attributes:le({},c.outer),children:[{tag:"g",attributes:le({},c.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:le(le({},r.icon.attributes),c.path)}]}]}}}},ms={x:0,y:0,width:"100%",height:"100%"};function wc(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 Gy(e){return e.tag==="g"?e.children:[e]}var Zy={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),h=i?ko(i.split(" ").map(function(f){return f.trim()})):_f();return h.prefix||(h.prefix=En()),n.mask=h,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.mask,g=n.maskId,s=n.transform,p=h.width,o=h.icon,l=f.width,u=f.icon,c=Pv({transform:s,containerWidth:l,iconWidth:p}),a={tag:"rect",attributes:le(le({},ms),{},{fill:"white"})},d=o.children?{children:o.children.map(wc)}:{},m={tag:"g",attributes:le({},c.inner),children:[wc(le({tag:o.tag,attributes:le(le({},o.attributes),c.path)},d))]},v={tag:"g",attributes:le({},c.outer),children:[m]},y="mask-".concat(g||ec()),A="clip-".concat(g||ec()),C={tag:"mask",attributes:le(le({},ms),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,v]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:Gy(u)},C]};return r.push(_,{tag:"rect",attributes:le({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(y,")")},ms)}),{children:r,attributes:i}}}},Yy={provides:function(t){var n=!1;kn.matchMedia&&(n=kn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},h={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:le(le({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var f=le(le({},h),{},{attributeName:"opacity"}),g={tag:"circle",attributes:le(le({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:le(le({},h),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:le(le({},f),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:le(le({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:le(le({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:le(le({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:le(le({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Ky={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),h=i===null?!1:i===""?!0:i;return n.symbol=h,n}}}},Xy=[Bv,Ly,Ry,Iy,Oy,Hy,Uy,Vy,Zy,Yy,Ky];ry(Xy,{mixoutsTo:Ot});Ot.noAuto;Ot.config;var Qy=Ot.library;Ot.dom;var aa=Ot.parse;Ot.findIconDefinition;Ot.toHtml;var Jy=Ot.icon;Ot.layer;Ot.text;Ot.counter;var qy={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},e0={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},t0={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M64 432c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40c0-22.1 17.9-40 40-40zM64 0c26.5 0 48 21.5 48 48 0 .6 0 1.1 0 1.7l-16 304c-.9 17-15 30.3-32 30.3S33 370.7 32 353.7L16 49.7c0-.6 0-1.1 0-1.7 0-26.5 21.5-48 48-48z"]},Tf={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},n0=Tf,r0={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 0L368 46.1 465.9 144 490.3 119.6c21.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.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},i0=r0,o0={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},s0={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M292.9 384c7.3-22.3 21.9-42.5 38.4-59.9 32.7-34.4 52.7-80.9 52.7-132.1 0-106-86-192-192-192S0 86 0 192c0 51.2 20 97.7 52.7 132.1 16.5 17.4 31.2 37.6 38.4 59.9l201.7 0zM288 432l-192 0 0 16c0 44.2 35.8 80 80 80l32 0c44.2 0 80-35.8 80-80l0-16zM184 112c-39.8 0-72 32.2-72 72 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-66.3 53.7-120 120-120 13.3 0 24 10.7 24 24s-10.7 24-24 24z"]},a0={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-277.5c0-17-6.7-33.3-18.7-45.3L258.7 18.7C246.7 6.7 230.5 0 213.5 0L64 0zM325.5 176L232 176c-13.3 0-24-10.7-24-24L208 58.5 325.5 176z"]},l0={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},c0={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"]},u0={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64C0 200.8 7.4 207.7 15.7 210.6 34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6-18.8-6.5-32.3-24.4-32.3-45.4s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zM416 336l0-160-256 0 0 160 256 0zM112 160c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32l0-192z"]},h0={prefix:"fas",iconName:"barcode",icon:[448,512,[],"f02a","M32 32C14.3 32 0 46.3 0 64L0 448c0 17.7 14.3 32 32 32s32-14.3 32-32L64 64c0-17.7-14.3-32-32-32zm88 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24zm72 32l0 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-384c0-17.7-14.3-32-32-32s-32 14.3-32 32zm208-8l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24zm-96 0l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},f0={prefix:"fas",iconName:"arrow-right",icon:[512,512,[8594],"f061","M502.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.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},d0={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},p0=d0,g0={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},m0={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},v0={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},y0={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},b0=y0;function Xa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Pe={},ur=[],en=()=>{},Lf=()=>!1,Mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qa=e=>e.startsWith("onUpdate:"),gt=Object.assign,Ja=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w0=Object.prototype.hasOwnProperty,Ie=(e,t)=>w0.call(e,t),xe=Array.isArray,hr=e=>To(e)==="[object Map]",Rf=e=>To(e)==="[object Set]",Ae=e=>typeof e=="function",tt=e=>typeof e=="string",Ln=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",If=e=>(je(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),Of=Object.prototype.toString,To=e=>Of.call(e),S0=e=>To(e).slice(8,-1),Nf=e=>To(e)==="[object Object]",Lo=e=>tt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jr=Xa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ro=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},_0=/-\w/g,Ft=Ro(e=>e.replace(_0,t=>t.slice(1).toUpperCase())),$0=/\B([A-Z])/g,Jn=Ro(e=>e.replace($0,"-$1").toLowerCase()),hi=Ro(e=>e.charAt(0).toUpperCase()+e.slice(1)),vs=Ro(e=>e?`on${hi(e)}`:""),xn=(e,t)=>!Object.is(e,t),Bi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Df=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},qa=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Sc;const Io=()=>Sc||(Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function el(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=tt(r)?k0(r):el(r);if(i)for(const h in i)t[h]=i[h]}return t}else if(tt(e)||je(e))return e}const C0=/;(?![^(]*\))/g,A0=/:([^]+)/,x0=/\/\*[^]*?\*\//g;function k0(e){const t={};return e.replace(x0,"").split(C0).forEach(n=>{if(n){const r=n.split(A0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function fi(e){let t="";if(tt(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){const r=fi(e[n]);r&&(t+=r+" ")}else if(je(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const E0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",M0=Xa(E0);function Ff(e){return!!e||e===""}const Pf=e=>!!(e&&e.__v_isRef===!0),ge=e=>tt(e)?e:e==null?"":xe(e)||je(e)&&(e.toString===Of||!Ae(e.toString))?Pf(e)?ge(e.value):JSON.stringify(e,zf,2):String(e),zf=(e,t)=>Pf(t)?zf(e,t.value):hr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],h)=>(n[ys(r,h)+" =>"]=i,n),{})}:Rf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ys(n))}:Ln(t)?ys(t):je(t)&&!xe(t)&&!Nf(t)?String(t):t,ys=(e,t="")=>{var n;return Ln(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ut;class Wf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ut,!t&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ut;try{return ut=this,t()}finally{ut=n}}}on(){++this._on===1&&(this.prevScope=ut,ut=this)}off(){this._on>0&&--this._on===0&&(ut=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function T0(e){return new Wf(e)}function tl(){return ut}function L0(e,t=!1){ut&&ut.cleanups.push(e)}let We;const bs=new WeakSet;class Bf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ut&&ut.active&&ut.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bs.has(this)&&(bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_c(this),Uf(this);const t=We,n=Bt;We=this,Bt=!0;try{return this.fn()}finally{Vf(this),We=t,Bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)il(t);this.deps=this.depsTail=void 0,_c(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){la(this)&&this.run()}get dirty(){return la(this)}}let jf=0,Hr,Ur;function Hf(e,t=!1){if(e.flags|=8,t){e.next=Ur,Ur=e;return}e.next=Hr,Hr=e}function nl(){jf++}function rl(){if(--jf>0)return;if(Ur){let t=Ur;for(Ur=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Hr;){let t=Hr;for(Hr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Uf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Vf(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),il(r),R0(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function la(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qr)||(e.globalVersion=Qr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!la(e))))return;e.flags|=2;const t=e.dep,n=We,r=Bt;We=e,Bt=!0;try{Uf(e);const i=e.fn(e._value);(t.version===0||xn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{We=n,Bt=r,Vf(e),e.flags&=-3}}function il(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let h=n.computed.deps;h;h=h.nextDep)il(h,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function R0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bt=!0;const Zf=[];function fn(){Zf.push(Bt),Bt=!1}function dn(){const e=Zf.pop();Bt=e===void 0?!0:e}function _c(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let Qr=0,I0=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Oo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Bt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new I0(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,Yf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=r)}return n}trigger(t){this.version++,Qr++,this.notify(t)}notify(t){nl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rl()}}}function Yf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Yf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const oo=new WeakMap,Bn=Symbol(""),ca=Symbol(""),Jr=Symbol("");function ht(e,t,n){if(Bt&&We){let r=oo.get(e);r||oo.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Oo),i.map=r,i.key=n),i.track()}}function sn(e,t,n,r,i,h){const f=oo.get(e);if(!f){Qr++;return}const g=s=>{s&&s.trigger()};if(nl(),t==="clear")f.forEach(g);else{const s=xe(e),p=s&&Lo(n);if(s&&n==="length"){const o=Number(r);f.forEach((l,u)=>{(u==="length"||u===Jr||!Ln(u)&&u>=o)&&g(l)})}else switch((n!==void 0||f.has(void 0))&&g(f.get(n)),p&&g(f.get(Jr)),t){case"add":s?p&&g(f.get("length")):(g(f.get(Bn)),hr(e)&&g(f.get(ca)));break;case"delete":s||(g(f.get(Bn)),hr(e)&&g(f.get(ca)));break;case"set":hr(e)&&g(f.get(Bn));break}}rl()}function O0(e,t){const n=oo.get(e);return n&&n.get(t)}function nr(e){const t=Le(e);return t===e?t:(ht(t,"iterate",Jr),Rt(e)?t:t.map(Ht))}function No(e){return ht(e=Le(e),"iterate",Jr),e}function wn(e,t){return pn(e)?jn(e)?gr(Ht(t)):gr(t):Ht(t)}const N0={__proto__:null,[Symbol.iterator](){return ws(this,Symbol.iterator,e=>wn(this,e))},concat(...e){return nr(this).concat(...e.map(t=>xe(t)?nr(t):t))},entries(){return ws(this,"entries",e=>(e[1]=wn(this,e[1]),e))},every(e,t){return nn(this,"every",e,t,void 0,arguments)},filter(e,t){return nn(this,"filter",e,t,n=>n.map(r=>wn(this,r)),arguments)},find(e,t){return nn(this,"find",e,t,n=>wn(this,n),arguments)},findIndex(e,t){return nn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nn(this,"findLast",e,t,n=>wn(this,n),arguments)},findLastIndex(e,t){return nn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ss(this,"includes",e)},indexOf(...e){return Ss(this,"indexOf",e)},join(e){return nr(this).join(e)},lastIndexOf(...e){return Ss(this,"lastIndexOf",e)},map(e,t){return nn(this,"map",e,t,void 0,arguments)},pop(){return Ir(this,"pop")},push(...e){return Ir(this,"push",e)},reduce(e,...t){return $c(this,"reduce",e,t)},reduceRight(e,...t){return $c(this,"reduceRight",e,t)},shift(){return Ir(this,"shift")},some(e,t){return nn(this,"some",e,t,void 0,arguments)},splice(...e){return Ir(this,"splice",e)},toReversed(){return nr(this).toReversed()},toSorted(e){return nr(this).toSorted(e)},toSpliced(...e){return nr(this).toSpliced(...e)},unshift(...e){return Ir(this,"unshift",e)},values(){return ws(this,"values",e=>wn(this,e))}};function ws(e,t,n){const r=No(e),i=r[t]();return r!==e&&!Rt(e)&&(i._next=i.next,i.next=()=>{const h=i._next();return h.done||(h.value=n(h.value)),h}),i}const D0=Array.prototype;function nn(e,t,n,r,i,h){const f=No(e),g=f!==e&&!Rt(e),s=f[t];if(s!==D0[t]){const l=s.apply(e,h);return g?Ht(l):l}let p=n;f!==e&&(g?p=function(l,u){return n.call(this,wn(e,l),u,e)}:n.length>2&&(p=function(l,u){return n.call(this,l,u,e)}));const o=s.call(f,p,r);return g&&i?i(o):o}function $c(e,t,n,r){const i=No(e);let h=n;return i!==e&&(Rt(e)?n.length>3&&(h=function(f,g,s){return n.call(this,f,g,s,e)}):h=function(f,g,s){return n.call(this,f,wn(e,g),s,e)}),i[t](h,...r)}function Ss(e,t,n){const r=Le(e);ht(r,"iterate",Jr);const i=r[t](...n);return(i===-1||i===!1)&&Do(n[0])?(n[0]=Le(n[0]),r[t](...n)):i}function Ir(e,t,n=[]){fn(),nl();const r=Le(e)[t].apply(e,n);return rl(),dn(),r}const F0=Xa("__proto__,__v_isRef,__isVue"),Kf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ln));function P0(e){Ln(e)||(e=String(e));const t=Le(this);return ht(t,"has",e),t.hasOwnProperty(e)}class Xf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,h=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return h;if(n==="__v_raw")return r===(i?h?Y0:ed:h?qf:Jf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const f=xe(t);if(!i){let s;if(f&&(s=N0[n]))return s;if(n==="hasOwnProperty")return P0}const g=Reflect.get(t,n,Qe(t)?t:r);if((Ln(n)?Kf.has(n):F0(n))||(i||ht(t,"get",n),h))return g;if(Qe(g)){const s=f&&Lo(n)?g:g.value;return i&&je(s)?qr(s):s}return je(g)?i?qr(g):Cr(g):g}}class Qf extends Xf{constructor(t=!1){super(!1,t)}set(t,n,r,i){let h=t[n];const f=xe(t)&&Lo(n);if(!this._isShallow){const p=pn(h);if(!Rt(r)&&!pn(r)&&(h=Le(h),r=Le(r)),!f&&Qe(h)&&!Qe(r))return p||(h.value=r),!0}const g=f?Number(n)<t.length:Ie(t,n),s=Reflect.set(t,n,r,Qe(t)?t:i);return t===Le(i)&&(g?xn(r,h)&&sn(t,"set",n,r):sn(t,"add",n,r)),s}deleteProperty(t,n){const r=Ie(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&sn(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ln(n)||!Kf.has(n))&&ht(t,"has",n),r}ownKeys(t){return ht(t,"iterate",xe(t)?"length":Bn),Reflect.ownKeys(t)}}class z0 extends Xf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const W0=new Qf,B0=new z0,j0=new Qf(!0);const ua=e=>e,Ai=e=>Reflect.getPrototypeOf(e);function H0(e,t,n){return function(...r){const i=this.__v_raw,h=Le(i),f=hr(h),g=e==="entries"||e===Symbol.iterator&&f,s=e==="keys"&&f,p=i[e](...r),o=n?ua:t?gr:Ht;return!t&&ht(h,"iterate",s?ca:Bn),{next(){const{value:l,done:u}=p.next();return u?{value:l,done:u}:{value:g?[o(l[0]),o(l[1])]:o(l),done:u}},[Symbol.iterator](){return this}}}}function xi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function U0(e,t){const n={get(i){const h=this.__v_raw,f=Le(h),g=Le(i);e||(xn(i,g)&&ht(f,"get",i),ht(f,"get",g));const{has:s}=Ai(f),p=t?ua:e?gr:Ht;if(s.call(f,i))return p(h.get(i));if(s.call(f,g))return p(h.get(g));h!==f&&h.get(i)},get size(){const i=this.__v_raw;return!e&&ht(Le(i),"iterate",Bn),i.size},has(i){const h=this.__v_raw,f=Le(h),g=Le(i);return e||(xn(i,g)&&ht(f,"has",i),ht(f,"has",g)),i===g?h.has(i):h.has(i)||h.has(g)},forEach(i,h){const f=this,g=f.__v_raw,s=Le(g),p=t?ua:e?gr:Ht;return!e&&ht(s,"iterate",Bn),g.forEach((o,l)=>i.call(h,p(o),p(l),f))}};return gt(n,e?{add:xi("add"),set:xi("set"),delete:xi("delete"),clear:xi("clear")}:{add(i){!t&&!Rt(i)&&!pn(i)&&(i=Le(i));const h=Le(this);return Ai(h).has.call(h,i)||(h.add(i),sn(h,"add",i,i)),this},set(i,h){!t&&!Rt(h)&&!pn(h)&&(h=Le(h));const f=Le(this),{has:g,get:s}=Ai(f);let p=g.call(f,i);p||(i=Le(i),p=g.call(f,i));const o=s.call(f,i);return f.set(i,h),p?xn(h,o)&&sn(f,"set",i,h):sn(f,"add",i,h),this},delete(i){const h=Le(this),{has:f,get:g}=Ai(h);let s=f.call(h,i);s||(i=Le(i),s=f.call(h,i)),g&&g.call(h,i);const p=h.delete(i);return s&&sn(h,"delete",i,void 0),p},clear(){const i=Le(this),h=i.size!==0,f=i.clear();return h&&sn(i,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=H0(i,e,t)}),n}function ol(e,t){const n=U0(e,t);return(r,i,h)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ie(n,i)&&i in r?n:r,i,h)}const V0={get:ol(!1,!1)},G0={get:ol(!1,!0)},Z0={get:ol(!0,!1)};const Jf=new WeakMap,qf=new WeakMap,ed=new WeakMap,Y0=new WeakMap;function K0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function X0(e){return e.__v_skip||!Object.isExtensible(e)?0:K0(S0(e))}function Cr(e){return pn(e)?e:sl(e,!1,W0,V0,Jf)}function td(e){return sl(e,!1,j0,G0,qf)}function qr(e){return sl(e,!0,B0,Z0,ed)}function sl(e,t,n,r,i){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const h=X0(e);if(h===0)return e;const f=i.get(e);if(f)return f;const g=new Proxy(e,h===2?r:n);return i.set(e,g),g}function jn(e){return pn(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function pn(e){return!!(e&&e.__v_isReadonly)}function Rt(e){return!!(e&&e.__v_isShallow)}function Do(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function nd(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&Df(e,"__v_skip",!0),e}const Ht=e=>je(e)?Cr(e):e,gr=e=>je(e)?qr(e):e;function Qe(e){return e?e.__v_isRef===!0:!1}function Ne(e){return rd(e,!1)}function Hn(e){return rd(e,!0)}function rd(e,t){return Qe(e)?e:new Q0(e,t)}class Q0{constructor(t,n){this.dep=new Oo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Le(t),this._value=n?t:Ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Rt(t)||pn(t);t=r?t:Le(t),xn(t,n)&&(this._rawValue=t,this._value=r?t:Ht(t),this.dep.trigger())}}function se(e){return Qe(e)?e.value:e}function pt(e){return Ae(e)?e():se(e)}const J0={get:(e,t,n)=>t==="__v_raw"?e:se(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Qe(i)&&!Qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function id(e){return jn(e)?e:new Proxy(e,J0)}class q0{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Oo,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function od(e){return new q0(e)}class eb{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=Le(t);let i=!0,h=t;if(!xe(t)||!Lo(String(n)))do i=!Do(h)||Rt(h);while(i&&(h=h.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=se(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Qe(this._raw[this._key])){const n=this._object[this._key];if(Qe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return O0(this._raw,this._key)}}class tb{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function al(e,t,n){return Qe(e)?e:Ae(e)?new tb(e):je(e)&&arguments.length>1?nb(e,t,n):Ne(e)}function nb(e,t,n){return new eb(e,t,n)}class rb{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Oo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Hf(this,!0),!0}get value(){const t=this.dep.track();return Gf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ib(e,t,n=!1){let r,i;return Ae(e)?r=e:(r=e.get,i=e.set),new rb(r,i,n)}const ki={},so=new WeakMap;let Nn;function ob(e,t=!1,n=Nn){if(n){let r=so.get(n);r||so.set(n,r=[]),r.push(e)}}function sb(e,t,n=Pe){const{immediate:r,deep:i,once:h,scheduler:f,augmentJob:g,call:s}=n,p=C=>i?C:Rt(C)||i===!1||i===0?an(C,1):an(C);let o,l,u,c,a=!1,d=!1;if(Qe(e)?(l=()=>e.value,a=Rt(e)):jn(e)?(l=()=>p(e),a=!0):xe(e)?(d=!0,a=e.some(C=>jn(C)||Rt(C)),l=()=>e.map(C=>{if(Qe(C))return C.value;if(jn(C))return p(C);if(Ae(C))return s?s(C,2):C()})):Ae(e)?t?l=s?()=>s(e,2):e:l=()=>{if(u){fn();try{u()}finally{dn()}}const C=Nn;Nn=o;try{return s?s(e,3,[c]):e(c)}finally{Nn=C}}:l=en,t&&i){const C=l,_=i===!0?1/0:i;l=()=>an(C(),_)}const m=tl(),v=()=>{o.stop(),m&&m.active&&Ja(m.effects,o)};if(h&&t){const C=t;t=(..._)=>{C(..._),v()}}let y=d?new Array(e.length).fill(ki):ki;const A=C=>{if(!(!(o.flags&1)||!o.dirty&&!C))if(t){const _=o.run();if(i||a||(d?_.some((b,k)=>xn(b,y[k])):xn(_,y))){u&&u();const b=Nn;Nn=o;try{const k=[_,y===ki?void 0:d&&y[0]===ki?[]:y,c];y=_,s?s(t,3,k):t(...k)}finally{Nn=b}}}else o.run()};return g&&g(A),o=new Bf(l),o.scheduler=f?()=>f(A,!1):A,c=C=>ob(C,!1,o),u=o.onStop=()=>{const C=so.get(o);if(C){if(s)s(C,4);else for(const _ of C)_();so.delete(o)}},t?r?A(!0):y=o.run():f?f(A.bind(null,!0),!0):o.run(),v.pause=o.pause.bind(o),v.resume=o.resume.bind(o),v.stop=v,v}function an(e,t=1/0,n){if(t<=0||!je(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Qe(e))an(e.value,t,n);else if(xe(e))for(let r=0;r<e.length;r++)an(e[r],t,n);else if(Rf(e)||hr(e))e.forEach(r=>{an(r,t,n)});else if(Nf(e)){for(const r in e)an(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&an(e[r],t,n)}return e}function di(e,t,n,r){try{return r?e(...r):e()}catch(i){Fo(i,t,n)}}function tn(e,t,n,r){if(Ae(e)){const i=di(e,t,n,r);return i&&If(i)&&i.catch(h=>{Fo(h,t,n)}),i}if(xe(e)){const i=[];for(let h=0;h<e.length;h++)i.push(tn(e[h],t,n,r));return i}}function Fo(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:h,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||Pe;if(t){let g=t.parent;const s=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const o=g.ec;if(o){for(let l=0;l<o.length;l++)if(o[l](e,s,p)===!1)return}g=g.parent}if(h){fn(),di(h,null,10,[e,s,p]),dn();return}}ab(e,n,i,r,f)}function ab(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const wt=[];let Qt=-1;const fr=[];let Sn=null,rr=0;const sd=Promise.resolve();let ao=null;function Ar(e){const t=ao||sd;return e?t.then(this?e.bind(this):e):t}function lb(e){let t=Qt+1,n=wt.length;for(;t<n;){const r=t+n>>>1,i=wt[r],h=ei(i);h<e||h===e&&i.flags&2?t=r+1:n=r}return t}function ll(e){if(!(e.flags&1)){const t=ei(e),n=wt[wt.length-1];!n||!(e.flags&2)&&t>=ei(n)?wt.push(e):wt.splice(lb(t),0,e),e.flags|=1,ad()}}function ad(){ao||(ao=sd.then(cd))}function cb(e){xe(e)?fr.push(...e):Sn&&e.id===-1?Sn.splice(rr+1,0,e):e.flags&1||(fr.push(e),e.flags|=1),ad()}function Cc(e,t,n=Qt+1){for(;n<wt.length;n++){const r=wt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;wt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ld(e){if(fr.length){const t=[...new Set(fr)].sort((n,r)=>ei(n)-ei(r));if(fr.length=0,Sn){Sn.push(...t);return}for(Sn=t,rr=0;rr<Sn.length;rr++){const n=Sn[rr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Sn=null,rr=0}}const ei=e=>e.id==null?e.flags&2?-1:1/0:e.id;function cd(e){try{for(Qt=0;Qt<wt.length;Qt++){const t=wt[Qt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),di(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Qt<wt.length;Qt++){const t=wt[Qt];t&&(t.flags&=-2)}Qt=-1,wt.length=0,ld(),ao=null,(wt.length||fr.length)&&cd()}}let Tt=null,ud=null;function lo(e){const t=Tt;return Tt=e,ud=e&&e.type.__scopeId||null,t}function Ge(e,t=Tt,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&ho(-1);const h=lo(t);let f;try{f=e(...i)}finally{lo(h),r._d&&ho(1)}return f};return r._n=!0,r._c=!0,r._d=!0,r}function cl(e,t){if(Tt===null)return e;const n=Bo(Tt),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[h,f,g,s=Pe]=t[i];h&&(Ae(h)&&(h={mounted:h,updated:h}),h.deep&&an(f),r.push({dir:h,instance:n,value:f,oldValue:void 0,arg:g,modifiers:s}))}return e}function In(e,t,n,r){const i=e.dirs,h=t&&t.dirs;for(let f=0;f<i.length;f++){const g=i[f];h&&(g.oldValue=h[f].value);let s=g.dir[r];s&&(fn(),tn(s,n,8,[e.el,g,e,t]),dn())}}const ub=Symbol("_vte"),hb=e=>e.__isTeleport,fb=Symbol("_leaveCb");function ul(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ul(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 ve(e,t){return Ae(e)?gt({name:e.name},t,{setup:e}):e}function hd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const co=new WeakMap;function Vr(e,t,n,r,i=!1){if(xe(e)){e.forEach((a,d)=>Vr(a,t&&(xe(t)?t[d]:t),n,r,i));return}if(Gr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vr(e,t,n,r.component.subTree);return}const h=r.shapeFlag&4?Bo(r.component):r.el,f=i?null:h,{i:g,r:s}=e,p=t&&t.r,o=g.refs===Pe?g.refs={}:g.refs,l=g.setupState,u=Le(l),c=l===Pe?Lf:a=>Ie(u,a);if(p!=null&&p!==s){if(Ac(t),tt(p))o[p]=null,c(p)&&(l[p]=null);else if(Qe(p)){p.value=null;const a=t;a.k&&(o[a.k]=null)}}if(Ae(s))di(s,g,12,[f,o]);else{const a=tt(s),d=Qe(s);if(a||d){const m=()=>{if(e.f){const v=a?c(s)?l[s]:o[s]:s.value;if(i)xe(v)&&Ja(v,h);else if(xe(v))v.includes(h)||v.push(h);else if(a)o[s]=[h],c(s)&&(l[s]=o[s]);else{const y=[h];s.value=y,e.k&&(o[e.k]=y)}}else a?(o[s]=f,c(s)&&(l[s]=f)):d&&(s.value=f,e.k&&(o[e.k]=f))};if(f){const v=()=>{m(),co.delete(e)};v.id=-1,co.set(e,v),Mt(v,n)}else Ac(e),m()}}}function Ac(e){const t=co.get(e);t&&(t.flags|=8,co.delete(e))}Io().requestIdleCallback;Io().cancelIdleCallback;const Gr=e=>!!e.type.__asyncLoader,fd=e=>e.type.__isKeepAlive;function db(e,t){dd(e,"a",t)}function pb(e,t){dd(e,"da",t)}function dd(e,t,n=ft){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Po(t,r,n),n){let i=n.parent;for(;i&&i.parent;)fd(i.parent.vnode)&&gb(r,t,n,i),i=i.parent}}function gb(e,t,n,r){const i=Po(t,e,r,!0);gd(()=>{Ja(r[t],i)},n)}function Po(e,t,n=ft,r=!1){if(n){const i=n[e]||(n[e]=[]),h=t.__weh||(t.__weh=(...f)=>{fn();const g=pi(n),s=tn(t,n,e,f);return g(),dn(),s});return r?i.unshift(h):i.push(h),h}}const mn=e=>(t,n=ft)=>{(!ni||e==="sp")&&Po(e,(...r)=>t(...r),n)},mb=mn("bm"),et=mn("m"),vb=mn("bu"),yb=mn("u"),pd=mn("bum"),gd=mn("um"),bb=mn("sp"),wb=mn("rtg"),Sb=mn("rtc");function _b(e,t=ft){Po("ec",e,t)}const $b="components";function De(e,t){return Ab($b,e,!0,t)||e}const Cb=Symbol.for("v-ndc");function Ab(e,t,n=!0,r=!1){const i=Tt||ft;if(i){const h=i.type;{const g=fw(h,!1);if(g&&(g===t||g===Ft(t)||g===hi(Ft(t))))return h}const f=xc(i[e]||h[e],t)||xc(i.appContext[e],t);return!f&&r?h:f}}function xc(e,t){return e&&(e[t]||e[Ft(t)]||e[hi(Ft(t))])}function It(e,t,n,r){let i;const h=n,f=xe(e);if(f||tt(e)){const g=f&&jn(e);let s=!1,p=!1;g&&(s=!Rt(e),p=pn(e),e=No(e)),i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(s?p?gr(Ht(e[o])):Ht(e[o]):e[o],o,void 0,h)}else if(typeof e=="number"){i=new Array(e);for(let g=0;g<e;g++)i[g]=t(g+1,g,void 0,h)}else if(je(e))if(e[Symbol.iterator])i=Array.from(e,(g,s)=>t(g,s,void 0,h));else{const g=Object.keys(e);i=new Array(g.length);for(let s=0,p=g.length;s<p;s++){const o=g[s];i[s]=t(e[o],o,s,h)}}else i=[];return i}const ha=e=>e?Nd(e)?Bo(e):ha(e.parent):null,Zr=gt(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=>ha(e.parent),$root:e=>ha(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>vd(e),$forceUpdate:e=>e.f||(e.f=()=>{ll(e.update)}),$nextTick:e=>e.n||(e.n=Ar.bind(e.proxy)),$watch:e=>Db.bind(e)}),_s=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Ie(e,t),xb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:h,accessCache:f,type:g,appContext:s}=e;if(t[0]!=="$"){const u=f[t];if(u!==void 0)switch(u){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return h[t]}else{if(_s(r,t))return f[t]=1,r[t];if(i!==Pe&&Ie(i,t))return f[t]=2,i[t];if(Ie(h,t))return f[t]=3,h[t];if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];fa&&(f[t]=0)}}const p=Zr[t];let o,l;if(p)return t==="$attrs"&&ht(e.attrs,"get",""),p(e);if((o=g.__cssModules)&&(o=o[t]))return o;if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];if(l=s.config.globalProperties,Ie(l,t))return l[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:h}=e;return _s(i,t)?(i[t]=n,!0):r!==Pe&&Ie(r,t)?(r[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(h[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:h,type:f}},g){let s;return!!(n[g]||e!==Pe&&g[0]!=="$"&&Ie(e,g)||_s(t,g)||Ie(h,g)||Ie(r,g)||Ie(Zr,g)||Ie(i.config.globalProperties,g)||(s=f.__cssModules)&&s[g])},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)}};function kc(e){return xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fa=!0;function kb(e){const t=vd(e),n=e.proxy,r=e.ctx;fa=!1,t.beforeCreate&&Ec(t.beforeCreate,e,"bc");const{data:i,computed:h,methods:f,watch:g,provide:s,inject:p,created:o,beforeMount:l,mounted:u,beforeUpdate:c,updated:a,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:A,unmounted:C,render:_,renderTracked:b,renderTriggered:k,errorCaptured:R,serverPrefetch:M,expose:L,inheritAttrs:N,components:T,directives:$,filters:S}=t;if(p&&Eb(p,r,null),f)for(const E in f){const I=f[E];Ae(I)&&(r[E]=I.bind(n))}if(i){const E=i.call(n,n);je(E)&&(e.data=Cr(E))}if(fa=!0,h)for(const E in h){const I=h[E],O=Ae(I)?I.bind(n,n):Ae(I.get)?I.get.bind(n,n):en,D=!Ae(I)&&Ae(I.set)?I.set.bind(n):en,F=ye({get:O,set:D});Object.defineProperty(r,E,{enumerable:!0,configurable:!0,get:()=>F.value,set:H=>F.value=H})}if(g)for(const E in g)md(g[E],r,n,E);if(s){const E=Ae(s)?s.call(n):s;Reflect.ownKeys(E).forEach(I=>{ji(I,E[I])})}o&&Ec(o,e,"c");function x(E,I){xe(I)?I.forEach(O=>E(O.bind(n))):I&&E(I.bind(n))}if(x(mb,l),x(et,u),x(vb,c),x(yb,a),x(db,d),x(pb,m),x(_b,R),x(Sb,b),x(wb,k),x(pd,y),x(gd,C),x(bb,M),xe(L))if(L.length){const E=e.exposed||(e.exposed={});L.forEach(I=>{Object.defineProperty(E,I,{get:()=>n[I],set:O=>n[I]=O,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===en&&(e.render=_),N!=null&&(e.inheritAttrs=N),T&&(e.components=T),$&&(e.directives=$),M&&hd(e)}function Eb(e,t,n=en){xe(e)&&(e=da(e));for(const r in e){const i=e[r];let h;je(i)?"default"in i?h=Dt(i.from||r,i.default,!0):h=Dt(i.from||r):h=Dt(i),Qe(h)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>h.value,set:f=>h.value=f}):t[r]=h}}function Ec(e,t,n){tn(xe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function md(e,t,n,r){let i=r.includes(".")?wd(n,r):()=>n[r];if(tt(e)){const h=t[e];Ae(h)&&Fe(i,h)}else if(Ae(e))Fe(i,e.bind(n));else if(je(e))if(xe(e))e.forEach(h=>md(h,t,n,r));else{const h=Ae(e.handler)?e.handler.bind(n):t[e.handler];Ae(h)&&Fe(i,h,e)}}function vd(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:h,config:{optionMergeStrategies:f}}=e.appContext,g=h.get(t);let s;return g?s=g:!i.length&&!n&&!r?s=t:(s={},i.length&&i.forEach(p=>uo(s,p,f,!0)),uo(s,t,f)),je(t)&&h.set(t,s),s}function uo(e,t,n,r=!1){const{mixins:i,extends:h}=t;h&&uo(e,h,n,!0),i&&i.forEach(f=>uo(e,f,n,!0));for(const f in t)if(!(r&&f==="expose")){const g=Mb[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const Mb={data:Mc,props:Tc,emits:Tc,methods:zr,computed:zr,beforeCreate:yt,created:yt,beforeMount:yt,mounted:yt,beforeUpdate:yt,updated:yt,beforeDestroy:yt,beforeUnmount:yt,destroyed:yt,unmounted:yt,activated:yt,deactivated:yt,errorCaptured:yt,serverPrefetch:yt,components:zr,directives:zr,watch:Lb,provide:Mc,inject:Tb};function Mc(e,t){return t?e?function(){return gt(Ae(e)?e.call(this,this):e,Ae(t)?t.call(this,this):t)}:t:e}function Tb(e,t){return zr(da(e),da(t))}function da(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function yt(e,t){return e?[...new Set([].concat(e,t))]:t}function zr(e,t){return e?gt(Object.create(null),e,t):t}function Tc(e,t){return e?xe(e)&&xe(t)?[...new Set([...e,...t])]:gt(Object.create(null),kc(e),kc(t??{})):t}function Lb(e,t){if(!e)return t;if(!t)return e;const n=gt(Object.create(null),e);for(const r in t)n[r]=yt(e[r],t[r]);return n}function yd(){return{app:null,config:{isNativeTag:Lf,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 Rb=0;function Ib(e,t){return function(r,i=null){Ae(r)||(r=gt({},r)),i!=null&&!je(i)&&(i=null);const h=yd(),f=new WeakSet,g=[];let s=!1;const p=h.app={_uid:Rb++,_component:r,_props:i,_container:null,_context:h,_instance:null,version:pw,get config(){return h.config},set config(o){},use(o,...l){return f.has(o)||(o&&Ae(o.install)?(f.add(o),o.install(p,...l)):Ae(o)&&(f.add(o),o(p,...l))),p},mixin(o){return h.mixins.includes(o)||h.mixins.push(o),p},component(o,l){return l?(h.components[o]=l,p):h.components[o]},directive(o,l){return l?(h.directives[o]=l,p):h.directives[o]},mount(o,l,u){if(!s){const c=p._ceVNode||oe(r,i);return c.appContext=h,u===!0?u="svg":u===!1&&(u=void 0),e(c,o,u),s=!0,p._container=o,o.__vue_app__=p,Bo(c.component)}},onUnmount(o){g.push(o)},unmount(){s&&(tn(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(o,l){return h.provides[o]=l,p},runWithContext(o){const l=Un;Un=p;try{return o()}finally{Un=l}}};return p}}let Un=null;function ji(e,t){if(ft){let n=ft.provides;const r=ft.parent&&ft.parent.provides;r===n&&(n=ft.provides=Object.create(r)),n[e]=t}}function Dt(e,t,n=!1){const r=xr();if(r||Un){let i=Un?Un._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ae(t)?t.call(r&&r.proxy):t}}function bd(){return!!(xr()||Un)}const Ob=Symbol.for("v-scx"),Nb=()=>Dt(Ob);function hl(e,t){return fl(e,null,t)}function Fe(e,t,n){return fl(e,t,n)}function fl(e,t,n=Pe){const{immediate:r,deep:i,flush:h,once:f}=n,g=gt({},n),s=t&&r||!t&&h!=="post";let p;if(ni){if(h==="sync"){const c=Nb();p=c.__watcherHandles||(c.__watcherHandles=[])}else if(!s){const c=()=>{};return c.stop=en,c.resume=en,c.pause=en,c}}const o=ft;g.call=(c,a,d)=>tn(c,o,a,d);let l=!1;h==="post"?g.scheduler=c=>{Mt(c,o&&o.suspense)}:h!=="sync"&&(l=!0,g.scheduler=(c,a)=>{a?c():ll(c)}),g.augmentJob=c=>{t&&(c.flags|=4),l&&(c.flags|=2,o&&(c.id=o.uid,c.i=o))};const u=sb(e,t,g);return ni&&(p?p.push(u):s&&u()),u}function Db(e,t,n){const r=this.proxy,i=tt(e)?e.includes(".")?wd(r,e):()=>r[e]:e.bind(r,r);let h;Ae(t)?h=t:(h=t.handler,n=t);const f=pi(this),g=fl(i,h.bind(r),n);return f(),g}function wd(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Fb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ft(t)}Modifiers`]||e[`${Jn(t)}Modifiers`];function Pb(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Pe;let i=n;const h=t.startsWith("update:"),f=h&&Fb(r,t.slice(7));f&&(f.trim&&(i=n.map(o=>tt(o)?o.trim():o)),f.number&&(i=n.map(qa)));let g,s=r[g=vs(t)]||r[g=vs(Ft(t))];!s&&h&&(s=r[g=vs(Jn(t))]),s&&tn(s,e,6,i);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,tn(p,e,6,i)}}const zb=new WeakMap;function Sd(e,t,n=!1){const r=n?zb:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const h=e.emits;let f={},g=!1;if(!Ae(e)){const s=p=>{const o=Sd(p,t,!0);o&&(g=!0,gt(f,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!h&&!g?(je(e)&&r.set(e,null),null):(xe(h)?h.forEach(s=>f[s]=null):gt(f,h),je(e)&&r.set(e,f),f)}function zo(e,t){return!e||!Mo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,Jn(t))||Ie(e,t))}function Lc(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[h],slots:f,attrs:g,emit:s,render:p,renderCache:o,props:l,data:u,setupState:c,ctx:a,inheritAttrs:d}=e,m=lo(e);let v,y;try{if(n.shapeFlag&4){const C=i||r,_=C;v=Jt(p.call(_,C,o,l,c,u,a)),y=g}else{const C=t;v=Jt(C.length>1?C(l,{attrs:g,slots:f,emit:s}):C(l,null)),y=t.props?g:Wb(g)}}catch(C){Yr.length=0,Fo(C,e,1),v=oe(Tn)}let A=v;if(y&&d!==!1){const C=Object.keys(y),{shapeFlag:_}=A;C.length&&_&7&&(h&&C.some(Qa)&&(y=Bb(y,h)),A=mr(A,y,!1,!0))}return n.dirs&&(A=mr(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&ul(A,n.transition),v=A,lo(m),v}const Wb=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mo(n))&&((t||(t={}))[n]=e[n]);return t},Bb=(e,t)=>{const n={};for(const r in e)(!Qa(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jb(e,t,n){const{props:r,children:i,component:h}=e,{props:f,children:g,patchFlag:s}=t,p=h.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?Rc(r,f,p):!!f;if(s&8){const o=t.dynamicProps;for(let l=0;l<o.length;l++){const u=o[l];if(f[u]!==r[u]&&!zo(p,u))return!0}}}else return(i||g)&&(!g||!g.$stable)?!0:r===f?!1:r?f?Rc(r,f,p):!0:!!f;return!1}function Rc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const h=r[i];if(t[h]!==e[h]&&!zo(n,h))return!0}return!1}function Hb({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 _d={},$d=()=>Object.create(_d),Cd=e=>Object.getPrototypeOf(e)===_d;function Ub(e,t,n,r=!1){const i={},h=$d();e.propsDefaults=Object.create(null),Ad(e,t,i,h);for(const f in e.propsOptions[0])f in i||(i[f]=void 0);n?e.props=r?i:td(i):e.type.props?e.props=i:e.props=h,e.attrs=h}function Vb(e,t,n,r){const{props:i,attrs:h,vnode:{patchFlag:f}}=e,g=Le(i),[s]=e.propsOptions;let p=!1;if((r||f>0)&&!(f&16)){if(f&8){const o=e.vnode.dynamicProps;for(let l=0;l<o.length;l++){let u=o[l];if(zo(e.emitsOptions,u))continue;const c=t[u];if(s)if(Ie(h,u))c!==h[u]&&(h[u]=c,p=!0);else{const a=Ft(u);i[a]=pa(s,g,a,c,e,!1)}else c!==h[u]&&(h[u]=c,p=!0)}}}else{Ad(e,t,i,h)&&(p=!0);let o;for(const l in g)(!t||!Ie(t,l)&&((o=Jn(l))===l||!Ie(t,o)))&&(s?n&&(n[l]!==void 0||n[o]!==void 0)&&(i[l]=pa(s,g,l,void 0,e,!0)):delete i[l]);if(h!==g)for(const l in h)(!t||!Ie(t,l))&&(delete h[l],p=!0)}p&&sn(e.attrs,"set","")}function Ad(e,t,n,r){const[i,h]=e.propsOptions;let f=!1,g;if(t)for(let s in t){if(jr(s))continue;const p=t[s];let o;i&&Ie(i,o=Ft(s))?!h||!h.includes(o)?n[o]=p:(g||(g={}))[o]=p:zo(e.emitsOptions,s)||(!(s in r)||p!==r[s])&&(r[s]=p,f=!0)}if(h){const s=Le(n),p=g||Pe;for(let o=0;o<h.length;o++){const l=h[o];n[l]=pa(i,s,l,p[l],e,!Ie(p,l))}}return f}function pa(e,t,n,r,i,h){const f=e[n];if(f!=null){const g=Ie(f,"default");if(g&&r===void 0){const s=f.default;if(f.type!==Function&&!f.skipFactory&&Ae(s)){const{propsDefaults:p}=i;if(n in p)r=p[n];else{const o=pi(i);r=p[n]=s.call(null,t),o()}}else r=s;i.ce&&i.ce._setProp(n,r)}f[0]&&(h&&!g?r=!1:f[1]&&(r===""||r===Jn(n))&&(r=!0))}return r}const Gb=new WeakMap;function xd(e,t,n=!1){const r=n?Gb:t.propsCache,i=r.get(e);if(i)return i;const h=e.props,f={},g=[];let s=!1;if(!Ae(e)){const o=l=>{s=!0;const[u,c]=xd(l,t,!0);gt(f,u),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!h&&!s)return je(e)&&r.set(e,ur),ur;if(xe(h))for(let o=0;o<h.length;o++){const l=Ft(h[o]);Ic(l)&&(f[l]=Pe)}else if(h)for(const o in h){const l=Ft(o);if(Ic(l)){const u=h[o],c=f[l]=xe(u)||Ae(u)?{type:u}:gt({},u),a=c.type;let d=!1,m=!0;if(xe(a))for(let v=0;v<a.length;++v){const y=a[v],A=Ae(y)&&y.name;if(A==="Boolean"){d=!0;break}else A==="String"&&(m=!1)}else d=Ae(a)&&a.name==="Boolean";c[0]=d,c[1]=m,(d||Ie(c,"default"))&&g.push(l)}}const p=[f,g];return je(e)&&r.set(e,p),p}function Ic(e){return e[0]!=="$"&&!jr(e)}const dl=e=>e==="_"||e==="_ctx"||e==="$stable",pl=e=>xe(e)?e.map(Jt):[Jt(e)],Zb=(e,t,n)=>{if(t._n)return t;const r=Ge((...i)=>pl(t(...i)),n);return r._c=!1,r},kd=(e,t,n)=>{const r=e._ctx;for(const i in e){if(dl(i))continue;const h=e[i];if(Ae(h))t[i]=Zb(i,h,r);else if(h!=null){const f=pl(h);t[i]=()=>f}}},Ed=(e,t)=>{const n=pl(t);e.slots.default=()=>n},Md=(e,t,n)=>{for(const r in t)(n||!dl(r))&&(e[r]=t[r])},Yb=(e,t,n)=>{const r=e.slots=$d();if(e.vnode.shapeFlag&32){const i=t._;i?(Md(r,t,n),n&&Df(r,"_",i,!0)):kd(t,r)}else t&&Ed(e,t)},Kb=(e,t,n)=>{const{vnode:r,slots:i}=e;let h=!0,f=Pe;if(r.shapeFlag&32){const g=t._;g?n&&g===1?h=!1:Md(i,t,n):(h=!t.$stable,kd(t,i)),f=t}else t&&(Ed(e,t),f={default:1});if(h)for(const g in i)!dl(g)&&f[g]==null&&delete i[g]},Mt=ew;function Xb(e){return Qb(e)}function Qb(e,t){const n=Io();n.__VUE__=!0;const{insert:r,remove:i,patchProp:h,createElement:f,createText:g,createComment:s,setText:p,setElementText:o,parentNode:l,nextSibling:u,setScopeId:c=en,insertStaticContent:a}=e,d=(z,j,Y,q=null,te=null,ne=null,ue=void 0,he=null,ce=!!j.dynamicChildren)=>{if(z===j)return;z&&!Or(z,j)&&(q=B(z),H(z,te,ne,!0),z=null),j.patchFlag===-2&&(ce=!1,j.dynamicChildren=null);const{type:ie,ref:_e,shapeFlag:de}=j;switch(ie){case Wo:m(z,j,Y,q);break;case Tn:v(z,j,Y,q);break;case Hi:z==null&&y(j,Y,q,ue);break;case Me:T(z,j,Y,q,te,ne,ue,he,ce);break;default:de&1?_(z,j,Y,q,te,ne,ue,he,ce):de&6?$(z,j,Y,q,te,ne,ue,he,ce):(de&64||de&128)&&ie.process(z,j,Y,q,te,ne,ue,he,ce,Q)}_e!=null&&te?Vr(_e,z&&z.ref,ne,j||z,!j):_e==null&&z&&z.ref!=null&&Vr(z.ref,null,ne,z,!0)},m=(z,j,Y,q)=>{if(z==null)r(j.el=g(j.children),Y,q);else{const te=j.el=z.el;j.children!==z.children&&p(te,j.children)}},v=(z,j,Y,q)=>{z==null?r(j.el=s(j.children||""),Y,q):j.el=z.el},y=(z,j,Y,q)=>{[z.el,z.anchor]=a(z.children,j,Y,q,z.el,z.anchor)},A=({el:z,anchor:j},Y,q)=>{let te;for(;z&&z!==j;)te=u(z),r(z,Y,q),z=te;r(j,Y,q)},C=({el:z,anchor:j})=>{let Y;for(;z&&z!==j;)Y=u(z),i(z),z=Y;i(j)},_=(z,j,Y,q,te,ne,ue,he,ce)=>{if(j.type==="svg"?ue="svg":j.type==="math"&&(ue="mathml"),z==null)b(j,Y,q,te,ne,ue,he,ce);else{const ie=z.el&&z.el._isVueCE?z.el:null;try{ie&&ie._beginPatch(),M(z,j,te,ne,ue,he,ce)}finally{ie&&ie._endPatch()}}},b=(z,j,Y,q,te,ne,ue,he)=>{let ce,ie;const{props:_e,shapeFlag:de,transition:Se,dirs:Ce}=z;if(ce=z.el=f(z.type,ne,_e&&_e.is,_e),de&8?o(ce,z.children):de&16&&R(z.children,ce,null,q,te,$s(z,ne),ue,he),Ce&&In(z,null,q,"created"),k(ce,z,z.scopeId,ue,q),_e){for(const ze in _e)ze!=="value"&&!jr(ze)&&h(ce,ze,null,_e[ze],ne,q);"value"in _e&&h(ce,"value",null,_e.value,ne),(ie=_e.onVnodeBeforeMount)&&Kt(ie,q,z)}Ce&&In(z,null,q,"beforeMount");const Te=Jb(te,Se);Te&&Se.beforeEnter(ce),r(ce,j,Y),((ie=_e&&_e.onVnodeMounted)||Te||Ce)&&Mt(()=>{ie&&Kt(ie,q,z),Te&&Se.enter(ce),Ce&&In(z,null,q,"mounted")},te)},k=(z,j,Y,q,te)=>{if(Y&&c(z,Y),q)for(let ne=0;ne<q.length;ne++)c(z,q[ne]);if(te){let ne=te.subTree;if(j===ne||Rd(ne.type)&&(ne.ssContent===j||ne.ssFallback===j)){const ue=te.vnode;k(z,ue,ue.scopeId,ue.slotScopeIds,te.parent)}}},R=(z,j,Y,q,te,ne,ue,he,ce=0)=>{for(let ie=ce;ie<z.length;ie++){const _e=z[ie]=he?_n(z[ie]):Jt(z[ie]);d(null,_e,j,Y,q,te,ne,ue,he)}},M=(z,j,Y,q,te,ne,ue)=>{const he=j.el=z.el;let{patchFlag:ce,dynamicChildren:ie,dirs:_e}=j;ce|=z.patchFlag&16;const de=z.props||Pe,Se=j.props||Pe;let Ce;if(Y&&On(Y,!1),(Ce=Se.onVnodeBeforeUpdate)&&Kt(Ce,Y,j,z),_e&&In(j,z,Y,"beforeUpdate"),Y&&On(Y,!0),(de.innerHTML&&Se.innerHTML==null||de.textContent&&Se.textContent==null)&&o(he,""),ie?L(z.dynamicChildren,ie,he,Y,q,$s(j,te),ne):ue||I(z,j,he,null,Y,q,$s(j,te),ne,!1),ce>0){if(ce&16)N(he,de,Se,Y,te);else if(ce&2&&de.class!==Se.class&&h(he,"class",null,Se.class,te),ce&4&&h(he,"style",de.style,Se.style,te),ce&8){const Te=j.dynamicProps;for(let ze=0;ze<Te.length;ze++){const Oe=Te[ze],St=de[Oe],_t=Se[Oe];(_t!==St||Oe==="value")&&h(he,Oe,St,_t,te,Y)}}ce&1&&z.children!==j.children&&o(he,j.children)}else!ue&&ie==null&&N(he,de,Se,Y,te);((Ce=Se.onVnodeUpdated)||_e)&&Mt(()=>{Ce&&Kt(Ce,Y,j,z),_e&&In(j,z,Y,"updated")},q)},L=(z,j,Y,q,te,ne,ue)=>{for(let he=0;he<j.length;he++){const ce=z[he],ie=j[he],_e=ce.el&&(ce.type===Me||!Or(ce,ie)||ce.shapeFlag&198)?l(ce.el):Y;d(ce,ie,_e,null,q,te,ne,ue,!0)}},N=(z,j,Y,q,te)=>{if(j!==Y){if(j!==Pe)for(const ne in j)!jr(ne)&&!(ne in Y)&&h(z,ne,j[ne],null,te,q);for(const ne in Y){if(jr(ne))continue;const ue=Y[ne],he=j[ne];ue!==he&&ne!=="value"&&h(z,ne,he,ue,te,q)}"value"in Y&&h(z,"value",j.value,Y.value,te)}},T=(z,j,Y,q,te,ne,ue,he,ce)=>{const ie=j.el=z?z.el:g(""),_e=j.anchor=z?z.anchor:g("");let{patchFlag:de,dynamicChildren:Se,slotScopeIds:Ce}=j;Ce&&(he=he?he.concat(Ce):Ce),z==null?(r(ie,Y,q),r(_e,Y,q),R(j.children||[],Y,_e,te,ne,ue,he,ce)):de>0&&de&64&&Se&&z.dynamicChildren?(L(z.dynamicChildren,Se,Y,te,ne,ue,he),(j.key!=null||te&&j===te.subTree)&&Td(z,j,!0)):I(z,j,Y,_e,te,ne,ue,he,ce)},$=(z,j,Y,q,te,ne,ue,he,ce)=>{j.slotScopeIds=he,z==null?j.shapeFlag&512?te.ctx.activate(j,Y,q,ue,ce):S(j,Y,q,te,ne,ue,ce):w(z,j,ce)},S=(z,j,Y,q,te,ne,ue)=>{const he=z.component=aw(z,q,te);if(fd(z)&&(he.ctx.renderer=Q),lw(he,!1,ue),he.asyncDep){if(te&&te.registerDep(he,x,ue),!z.el){const ce=he.subTree=oe(Tn);v(null,ce,j,Y),z.placeholder=ce.el}}else x(he,z,j,Y,te,ne,ue)},w=(z,j,Y)=>{const q=j.component=z.component;if(jb(z,j,Y))if(q.asyncDep&&!q.asyncResolved){E(q,j,Y);return}else q.next=j,q.update();else j.el=z.el,q.vnode=j},x=(z,j,Y,q,te,ne,ue)=>{const he=()=>{if(z.isMounted){let{next:de,bu:Se,u:Ce,parent:Te,vnode:ze}=z;{const Zt=Ld(z);if(Zt){de&&(de.el=ze.el,E(z,de,ue)),Zt.asyncDep.then(()=>{z.isUnmounted||he()});return}}let Oe=de,St;On(z,!1),de?(de.el=ze.el,E(z,de,ue)):de=ze,Se&&Bi(Se),(St=de.props&&de.props.onVnodeBeforeUpdate)&&Kt(St,Te,de,ze),On(z,!0);const _t=Lc(z),Gt=z.subTree;z.subTree=_t,d(Gt,_t,l(Gt.el),B(Gt),z,te,ne),de.el=_t.el,Oe===null&&Hb(z,_t.el),Ce&&Mt(Ce,te),(St=de.props&&de.props.onVnodeUpdated)&&Mt(()=>Kt(St,Te,de,ze),te)}else{let de;const{el:Se,props:Ce}=j,{bm:Te,m:ze,parent:Oe,root:St,type:_t}=z,Gt=Gr(j);On(z,!1),Te&&Bi(Te),!Gt&&(de=Ce&&Ce.onVnodeBeforeMount)&&Kt(de,Oe,j),On(z,!0);{St.ce&&St.ce._def.shadowRoot!==!1&&St.ce._injectChildStyle(_t);const Zt=z.subTree=Lc(z);d(null,Zt,Y,q,z,te,ne),j.el=Zt.el}if(ze&&Mt(ze,te),!Gt&&(de=Ce&&Ce.onVnodeMounted)){const Zt=j;Mt(()=>Kt(de,Oe,Zt),te)}(j.shapeFlag&256||Oe&&Gr(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&z.a&&Mt(z.a,te),z.isMounted=!0,j=Y=q=null}};z.scope.on();const ce=z.effect=new Bf(he);z.scope.off();const ie=z.update=ce.run.bind(ce),_e=z.job=ce.runIfDirty.bind(ce);_e.i=z,_e.id=z.uid,ce.scheduler=()=>ll(_e),On(z,!0),ie()},E=(z,j,Y)=>{j.component=z;const q=z.vnode.props;z.vnode=j,z.next=null,Vb(z,j.props,q,Y),Kb(z,j.children,Y),fn(),Cc(z),dn()},I=(z,j,Y,q,te,ne,ue,he,ce=!1)=>{const ie=z&&z.children,_e=z?z.shapeFlag:0,de=j.children,{patchFlag:Se,shapeFlag:Ce}=j;if(Se>0){if(Se&128){D(ie,de,Y,q,te,ne,ue,he,ce);return}else if(Se&256){O(ie,de,Y,q,te,ne,ue,he,ce);return}}Ce&8?(_e&16&&V(ie,te,ne),de!==ie&&o(Y,de)):_e&16?Ce&16?D(ie,de,Y,q,te,ne,ue,he,ce):V(ie,te,ne,!0):(_e&8&&o(Y,""),Ce&16&&R(de,Y,q,te,ne,ue,he,ce))},O=(z,j,Y,q,te,ne,ue,he,ce)=>{z=z||ur,j=j||ur;const ie=z.length,_e=j.length,de=Math.min(ie,_e);let Se;for(Se=0;Se<de;Se++){const Ce=j[Se]=ce?_n(j[Se]):Jt(j[Se]);d(z[Se],Ce,Y,null,te,ne,ue,he,ce)}ie>_e?V(z,te,ne,!0,!1,de):R(j,Y,q,te,ne,ue,he,ce,de)},D=(z,j,Y,q,te,ne,ue,he,ce)=>{let ie=0;const _e=j.length;let de=z.length-1,Se=_e-1;for(;ie<=de&&ie<=Se;){const Ce=z[ie],Te=j[ie]=ce?_n(j[ie]):Jt(j[ie]);if(Or(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;ie++}for(;ie<=de&&ie<=Se;){const Ce=z[de],Te=j[Se]=ce?_n(j[Se]):Jt(j[Se]);if(Or(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;de--,Se--}if(ie>de){if(ie<=Se){const Ce=Se+1,Te=Ce<_e?j[Ce].el:q;for(;ie<=Se;)d(null,j[ie]=ce?_n(j[ie]):Jt(j[ie]),Y,Te,te,ne,ue,he,ce),ie++}}else if(ie>Se)for(;ie<=de;)H(z[ie],te,ne,!0),ie++;else{const Ce=ie,Te=ie,ze=new Map;for(ie=Te;ie<=Se;ie++){const kt=j[ie]=ce?_n(j[ie]):Jt(j[ie]);kt.key!=null&&ze.set(kt.key,ie)}let Oe,St=0;const _t=Se-Te+1;let Gt=!1,Zt=0;const Rr=new Array(_t);for(ie=0;ie<_t;ie++)Rr[ie]=0;for(ie=Ce;ie<=de;ie++){const kt=z[ie];if(St>=_t){H(kt,te,ne,!0);continue}let Yt;if(kt.key!=null)Yt=ze.get(kt.key);else for(Oe=Te;Oe<=Se;Oe++)if(Rr[Oe-Te]===0&&Or(kt,j[Oe])){Yt=Oe;break}Yt===void 0?H(kt,te,ne,!0):(Rr[Yt-Te]=ie+1,Yt>=Zt?Zt=Yt:Gt=!0,d(kt,j[Yt],Y,null,te,ne,ue,he,ce),St++)}const jl=Gt?qb(Rr):ur;for(Oe=jl.length-1,ie=_t-1;ie>=0;ie--){const kt=Te+ie,Yt=j[kt],Hl=j[kt+1],Ul=kt+1<_e?Hl.el||Hl.placeholder:q;Rr[ie]===0?d(null,Yt,Y,Ul,te,ne,ue,he,ce):Gt&&(Oe<0||ie!==jl[Oe]?F(Yt,Y,Ul,2):Oe--)}}},F=(z,j,Y,q,te=null)=>{const{el:ne,type:ue,transition:he,children:ce,shapeFlag:ie}=z;if(ie&6){F(z.component.subTree,j,Y,q);return}if(ie&128){z.suspense.move(j,Y,q);return}if(ie&64){ue.move(z,j,Y,Q);return}if(ue===Me){r(ne,j,Y);for(let de=0;de<ce.length;de++)F(ce[de],j,Y,q);r(z.anchor,j,Y);return}if(ue===Hi){A(z,j,Y);return}if(q!==2&&ie&1&&he)if(q===0)he.beforeEnter(ne),r(ne,j,Y),Mt(()=>he.enter(ne),te);else{const{leave:de,delayLeave:Se,afterLeave:Ce}=he,Te=()=>{z.ctx.isUnmounted?i(ne):r(ne,j,Y)},ze=()=>{ne._isLeaving&&ne[fb](!0),de(ne,()=>{Te(),Ce&&Ce()})};Se?Se(ne,Te,ze):ze()}else r(ne,j,Y)},H=(z,j,Y,q=!1,te=!1)=>{const{type:ne,props:ue,ref:he,children:ce,dynamicChildren:ie,shapeFlag:_e,patchFlag:de,dirs:Se,cacheIndex:Ce}=z;if(de===-2&&(te=!1),he!=null&&(fn(),Vr(he,null,Y,z,!0),dn()),Ce!=null&&(j.renderCache[Ce]=void 0),_e&256){j.ctx.deactivate(z);return}const Te=_e&1&&Se,ze=!Gr(z);let Oe;if(ze&&(Oe=ue&&ue.onVnodeBeforeUnmount)&&Kt(Oe,j,z),_e&6)G(z.component,Y,q);else{if(_e&128){z.suspense.unmount(Y,q);return}Te&&In(z,null,j,"beforeUnmount"),_e&64?z.type.remove(z,j,Y,Q,q):ie&&!ie.hasOnce&&(ne!==Me||de>0&&de&64)?V(ie,j,Y,!1,!0):(ne===Me&&de&384||!te&&_e&16)&&V(ce,j,Y),q&&W(z)}(ze&&(Oe=ue&&ue.onVnodeUnmounted)||Te)&&Mt(()=>{Oe&&Kt(Oe,j,z),Te&&In(z,null,j,"unmounted")},Y)},W=z=>{const{type:j,el:Y,anchor:q,transition:te}=z;if(j===Me){U(Y,q);return}if(j===Hi){C(z);return}const ne=()=>{i(Y),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(z.shapeFlag&1&&te&&!te.persisted){const{leave:ue,delayLeave:he}=te,ce=()=>ue(Y,ne);he?he(z.el,ne,ce):ce()}else ne()},U=(z,j)=>{let Y;for(;z!==j;)Y=u(z),i(z),z=Y;i(j)},G=(z,j,Y)=>{const{bum:q,scope:te,job:ne,subTree:ue,um:he,m:ce,a:ie}=z;Oc(ce),Oc(ie),q&&Bi(q),te.stop(),ne&&(ne.flags|=8,H(ue,z,j,Y)),he&&Mt(he,j),Mt(()=>{z.isUnmounted=!0},j)},V=(z,j,Y,q=!1,te=!1,ne=0)=>{for(let ue=ne;ue<z.length;ue++)H(z[ue],j,Y,q,te)},B=z=>{if(z.shapeFlag&6)return B(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const j=u(z.anchor||z.el),Y=j&&j[ub];return Y?u(Y):j};let Z=!1;const X=(z,j,Y)=>{z==null?j._vnode&&H(j._vnode,null,null,!0):d(j._vnode||null,z,j,null,null,null,Y),j._vnode=z,Z||(Z=!0,Cc(),ld(),Z=!1)},Q={p:d,um:H,m:F,r:W,mt:S,mc:R,pc:I,pbc:L,n:B,o:e};return{render:X,hydrate:void 0,createApp:Ib(X)}}function $s({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 On({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Td(e,t,n=!1){const r=e.children,i=t.children;if(xe(r)&&xe(i))for(let h=0;h<r.length;h++){const f=r[h];let g=i[h];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=i[h]=_n(i[h]),g.el=f.el),!n&&g.patchFlag!==-2&&Td(f,g)),g.type===Wo&&g.patchFlag!==-1&&(g.el=f.el),g.type===Tn&&!g.el&&(g.el=f.el)}}function qb(e){const t=e.slice(),n=[0];let r,i,h,f,g;const s=e.length;for(r=0;r<s;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(h=0,f=n.length-1;h<f;)g=h+f>>1,e[n[g]]<p?h=g+1:f=g;p<e[n[h]]&&(h>0&&(t[r]=n[h-1]),n[h]=r)}}for(h=n.length,f=n[h-1];h-- >0;)n[h]=f,f=t[f];return n}function Ld(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ld(t)}function Oc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Rd=e=>e.__isSuspense;function ew(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):cb(e)}const Me=Symbol.for("v-fgt"),Wo=Symbol.for("v-txt"),Tn=Symbol.for("v-cmt"),Hi=Symbol.for("v-stc"),Yr=[];let Lt=null;function K(e=!1){Yr.push(Lt=e?null:[])}function tw(){Yr.pop(),Lt=Yr[Yr.length-1]||null}let ti=1;function ho(e,t=!1){ti+=e,e<0&&Lt&&t&&(Lt.hasOnce=!0)}function Id(e){return e.dynamicChildren=ti>0?Lt||ur:null,tw(),ti>0&&Lt&&Lt.push(e),e}function re(e,t,n,r,i,h){return Id(P(e,t,n,r,i,h,!0))}function me(e,t,n,r,i){return Id(oe(e,t,n,r,i,!0))}function fo(e){return e?e.__v_isVNode===!0:!1}function Or(e,t){return e.type===t.type&&e.key===t.key}const Od=({key:e})=>e??null,Ui=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?tt(e)||Qe(e)||Ae(e)?{i:Tt,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,r=0,i=null,h=e===Me?0:1,f=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Od(t),ref:t&&Ui(t),scopeId:ud,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:h,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Tt};return g?(ml(s,n),h&128&&e.normalize(s)):n&&(s.shapeFlag|=tt(n)?8:16),ti>0&&!f&&Lt&&(s.patchFlag>0||h&6)&&s.patchFlag!==32&&Lt.push(s),s}const oe=nw;function nw(e,t=null,n=null,r=0,i=null,h=!1){if((!e||e===Cb)&&(e=Tn),fo(e)){const g=mr(e,t,!0);return n&&ml(g,n),ti>0&&!h&&Lt&&(g.shapeFlag&6?Lt[Lt.indexOf(e)]=g:Lt.push(g)),g.patchFlag=-2,g}if(dw(e)&&(e=e.__vccOpts),t){t=rw(t);let{class:g,style:s}=t;g&&!tt(g)&&(t.class=fi(g)),je(s)&&(Do(s)&&!xe(s)&&(s=gt({},s)),t.style=el(s))}const f=tt(e)?1:Rd(e)?128:hb(e)?64:je(e)?4:Ae(e)?2:0;return P(e,t,n,r,i,f,h,!0)}function rw(e){return e?Do(e)||Cd(e)?gt({},e):e:null}function mr(e,t,n=!1,r=!1){const{props:i,ref:h,patchFlag:f,children:g,transition:s}=e,p=t?iw(i||{},t):i,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Od(p),ref:t&&t.ref?n&&h?xe(h)?h.concat(Ui(t)):[h,Ui(t)]:Ui(t):h,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mr(e.ssContent),ssFallback:e.ssFallback&&mr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&ul(o,s.clone(o)),o}function Ze(e=" ",t=0){return oe(Wo,null,e,t)}function gl(e,t){const n=oe(Hi,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(K(),me(Tn,null,e)):oe(Tn,null,e)}function Jt(e){return e==null||typeof e=="boolean"?oe(Tn):xe(e)?oe(Me,null,e.slice()):fo(e)?_n(e):oe(Wo,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mr(e)}function ml(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ml(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Cd(t)?t._ctx=Tt:i===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ae(t)?(t={default:t,_ctx:Tt},n=32):(t=String(t),r&64?(n=16,t=[Ze(t)]):n=8);e.children=t,e.shapeFlag|=n}function iw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=fi([t.class,r.class]));else if(i==="style")t.style=el([t.style,r.style]);else if(Mo(i)){const h=t[i],f=r[i];f&&h!==f&&!(xe(h)&&h.includes(f))&&(t[i]=h?[].concat(h,f):f)}else i!==""&&(t[i]=r[i])}return t}function Kt(e,t,n,r=null){tn(e,t,7,[n,r])}const ow=yd();let sw=0;function aw(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ow,h={uid:sw++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xd(r,i),emitsOptions:Sd(r,i),emit:null,emitted:null,propsDefaults:Pe,inheritAttrs:r.inheritAttrs,ctx:Pe,data:Pe,props:Pe,attrs:Pe,slots:Pe,refs:Pe,setupState:Pe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return h.ctx={_:h},h.root=t?t.root:h,h.emit=Pb.bind(null,h),e.ce&&e.ce(h),h}let ft=null;const xr=()=>ft||Tt;let po,ga;{const e=Io(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),h=>{i.length>1?i.forEach(f=>f(h)):i[0](h)}};po=t("__VUE_INSTANCE_SETTERS__",n=>ft=n),ga=t("__VUE_SSR_SETTERS__",n=>ni=n)}const pi=e=>{const t=ft;return po(e),e.scope.on(),()=>{e.scope.off(),po(t)}},Nc=()=>{ft&&ft.scope.off(),po(null)};function Nd(e){return e.vnode.shapeFlag&4}let ni=!1;function lw(e,t=!1,n=!1){t&&ga(t);const{props:r,children:i}=e.vnode,h=Nd(e);Ub(e,r,h,t),Yb(e,i,n||t);const f=h?cw(e,t):void 0;return t&&ga(!1),f}function cw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xb);const{setup:r}=n;if(r){fn();const i=e.setupContext=r.length>1?hw(e):null,h=pi(e),f=di(r,e,0,[e.props,i]),g=If(f);if(dn(),h(),(g||e.sp)&&!Gr(e)&&hd(e),g){if(f.then(Nc,Nc),t)return f.then(s=>{Dc(e,s)}).catch(s=>{Fo(s,e,0)});e.asyncDep=f}else Dc(e,f)}else Dd(e)}function Dc(e,t,n){Ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=id(t)),Dd(e)}function Dd(e,t,n){const r=e.type;e.render||(e.render=r.render||en);{const i=pi(e);fn();try{kb(e)}finally{dn(),i()}}}const uw={get(e,t){return ht(e,"get",""),e[t]}};function hw(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,uw),slots:e.slots,emit:e.emit,expose:t}}function Bo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(id(nd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zr)return Zr[n](e)},has(t,n){return n in t||n in Zr}})):e.proxy}function fw(e,t=!0){return Ae(e)?e.displayName||e.name:e.name||t&&e.__name}function dw(e){return Ae(e)&&"__vccOpts"in e}const ye=(e,t)=>ib(e,t,ni);function jo(e,t,n){try{ho(-1);const r=arguments.length;return r===2?je(t)&&!xe(t)?fo(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fo(n)&&(n=[n]),oe(e,t,n))}finally{ho(1)}}const pw="3.5.25";let ma;const Fc=typeof window<"u"&&window.trustedTypes;if(Fc)try{ma=Fc.createPolicy("vue",{createHTML:e=>e})}catch{}const Fd=ma?e=>ma.createHTML(e):e=>e,gw="http://www.w3.org/2000/svg",mw="http://www.w3.org/1998/Math/MathML",on=typeof document<"u"?document:null,Pc=on&&on.createElement("template"),vw={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 i=t==="svg"?on.createElementNS(gw,e):t==="mathml"?on.createElementNS(mw,e):n?on.createElement(e,{is:n}):on.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,h){const f=n?n.previousSibling:t.lastChild;if(i&&(i===h||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===h||!(i=i.nextSibling)););else{Pc.innerHTML=Fd(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const g=Pc.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[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yw=Symbol("_vtc");function bw(e,t,n){const r=e[yw];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zc=Symbol("_vod"),ww=Symbol("_vsh"),Sw=Symbol(""),_w=/(?:^|;)\s*display\s*:/;function $w(e,t,n){const r=e.style,i=tt(n);let h=!1;if(n&&!i){if(t)if(tt(t))for(const f of t.split(";")){const g=f.slice(0,f.indexOf(":")).trim();n[g]==null&&Vi(r,g,"")}else for(const f in t)n[f]==null&&Vi(r,f,"");for(const f in n)f==="display"&&(h=!0),Vi(r,f,n[f])}else if(i){if(t!==n){const f=r[Sw];f&&(n+=";"+f),r.cssText=n,h=_w.test(n)}}else t&&e.removeAttribute("style");zc in e&&(e[zc]=h?r.display:"",e[ww]&&(r.display="none"))}const Wc=/\s*!important$/;function Vi(e,t,n){if(xe(n))n.forEach(r=>Vi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Cw(e,t);Wc.test(n)?e.setProperty(Jn(r),n.replace(Wc,""),"important"):e[r]=n}}const Bc=["Webkit","Moz","ms"],Cs={};function Cw(e,t){const n=Cs[t];if(n)return n;let r=Ft(t);if(r!=="filter"&&r in e)return Cs[t]=r;r=hi(r);for(let i=0;i<Bc.length;i++){const h=Bc[i]+r;if(h in e)return Cs[t]=h}return t}const jc="http://www.w3.org/1999/xlink";function Hc(e,t,n,r,i,h=M0(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(jc,t.slice(6,t.length)):e.setAttributeNS(jc,t,n):n==null||h&&!Ff(n)?e.removeAttribute(t):e.setAttribute(t,h?"":Ln(n)?String(n):n)}function Uc(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fd(n):n);return}const h=e.tagName;if(t==="value"&&h!=="PROGRESS"&&!h.includes("-")){const g=h==="OPTION"?e.getAttribute("value")||"":e.value,s=n==null?e.type==="checkbox"?"on":"":String(n);(g!==s||!("_value"in e))&&(e.value=s),n==null&&e.removeAttribute(t),e._value=n;return}let f=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=Ff(n):n==null&&g==="string"?(n="",f=!0):g==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(i||t)}function ir(e,t,n,r){e.addEventListener(t,n,r)}function Aw(e,t,n,r){e.removeEventListener(t,n,r)}const Vc=Symbol("_vei");function xw(e,t,n,r,i=null){const h=e[Vc]||(e[Vc]={}),f=h[t];if(r&&f)f.value=r;else{const[g,s]=kw(t);if(r){const p=h[t]=Tw(r,i);ir(e,g,p,s)}else f&&(Aw(e,g,f,s),h[t]=void 0)}}const Gc=/(?:Once|Passive|Capture)$/;function kw(e){let t;if(Gc.test(e)){t={};let r;for(;r=e.match(Gc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jn(e.slice(2)),t]}let As=0;const Ew=Promise.resolve(),Mw=()=>As||(Ew.then(()=>As=0),As=Date.now());function Tw(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;tn(Lw(r,n.value),t,5,[r])};return n.value=e,n.attached=Mw(),n}function Lw(e,t){if(xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Zc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Rw=(e,t,n,r,i,h)=>{const f=i==="svg";t==="class"?bw(e,r,f):t==="style"?$w(e,n,r):Mo(t)?Qa(t)||xw(e,t,n,r,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Iw(e,t,r,f))?(Uc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hc(e,t,r,f,h,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!tt(r))?Uc(e,Ft(t),r,h,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hc(e,t,r,f))};function Iw(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zc(t)&&Ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zc(t)&&tt(n)?!1:t in e}const Yc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return xe(t)?n=>Bi(t,n):t};function Ow(e){e.target.composing=!0}function Kc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs=Symbol("_assign");function Xc(e,t,n){return t&&(e=e.trim()),n&&(e=qa(e)),e}const vl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[xs]=Yc(i);const h=r||i.props&&i.props.type==="number";ir(e,t?"change":"input",f=>{f.target.composing||e[xs](Xc(e.value,n,h))}),(n||h)&&ir(e,"change",()=>{e.value=Xc(e.value,n,h)}),t||(ir(e,"compositionstart",Ow),ir(e,"compositionend",Kc),ir(e,"change",Kc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:h}},f){if(e[xs]=Yc(f),e.composing)return;const g=(h||e.type==="number")&&!/^0\d/.test(e.value)?qa(e.value):e.value,s=t??"";g!==s&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===s)||(e.value=s))}},Nw=gt({patchProp:Rw},vw);let Qc;function Dw(){return Qc||(Qc=Xb(Nw))}const Fw=((...e)=>{const t=Dw().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=zw(r);if(!i)return;const h=t._component;!Ae(h)&&!h.render&&!h.template&&(h.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const f=n(i,!1,Pw(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),f},t});function Pw(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zw(e){return tt(e)?document.querySelector(e):e}function ct(e,t,n){return(t=Hw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jc(Object(n),!0).forEach(function(r){ct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ww(e,t){if(e==null)return{};var n,r,i=Bw(e,t);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);for(r=0;r<h.length;r++)n=h[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hw(e){var t=jw(e,"string");return typeof t=="symbol"?t:t+""}function go(e){"@babel/helpers - typeof";return go=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},go(e)}function ks(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ct({},e,t):{}}function Uw(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"},ct(ct(ct(ct(ct(ct(ct(ct(ct(ct(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),ct(ct(ct(ct(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}var Vw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pd={exports:{}};(function(e){(function(t){var n=function(v,y,A){if(!p(y)||l(y)||u(y)||c(y)||s(y))return y;var C,_=0,b=0;if(o(y))for(C=[],b=y.length;_<b;_++)C.push(n(v,y[_],A));else{C={};for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(C[v(k,A)]=n(v,y[k],A))}return C},r=function(v,y){y=y||{};var A=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(A)},i=function(v){return a(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,A){return A?A.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},h=function(v){var y=i(v);return y.substr(0,1).toUpperCase()+y.substr(1)},f=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]"},l=function(v){return g.call(v)=="[object Date]"},u=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},a=function(v){return v=v-0,v===v},d=function(v,y){var A=y&&"process"in y?y.process:y;return typeof A!="function"?v:function(C,_){return A(C,v,_)}},m={camelize:i,decamelize:f,pascalize:h,depascalize:f,camelizeKeys:function(v,y){return n(d(i,y),v)},decamelizeKeys:function(v,y){return n(d(f,y),v,y)},pascalizeKeys:function(v,y){return n(d(h,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(Vw)})(Pd);var Gw=Pd.exports,Zw=["class","style"];function Yw(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Gw.camelize(n.slice(0,r)),h=n.slice(r+1).trim();return t[i]=h,t},{})}function Kw(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function zd(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 zd(s)}),i=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=Kw(o);break;case"style":s.style=Yw(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var h=n.style,f=h===void 0?{}:h,g=Ww(n,Zw);return jo(e.tag,ln(ln(ln({},t),{},{class:i.class,style:ln(ln({},i.style),f)},i.attrs),g),r)}var Wd=!1;try{Wd=!0}catch{}function Xw(){if(!Wd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function qc(e){if(e&&go(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(aa.icon)return aa.icon(e);if(e===null)return null;if(go(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 Qw=ve({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}},rotateBy:{type:Boolean,default:!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},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,i=ye(function(){return qc(t.icon)}),h=ye(function(){return ks("classes",Uw(t))}),f=ye(function(){return ks("transform",typeof t.transform=="string"?aa.transform(t.transform):t.transform)}),g=ye(function(){return ks("mask",qc(t.mask))}),s=ye(function(){var o=ln(ln(ln(ln({},h.value),f.value),g.value),{},{symbol:t.symbol,maskId:t.maskId});return o.title=t.title,o.titleId=t.titleId,Jy(i.value,o)});Fe(s,function(o){if(!o)return Xw("Could not find one or more icon(s)",i.value,g.value)},{immediate:!0});var p=ye(function(){return s.value?zd(s.value.abstract[0],{},r):null});return function(){return p.value}}});function yl(e,t){return tl()?(L0(e,t),!0):!1}const Es=new WeakMap,Jw=(...e)=>{var t;const n=e[0],r=(t=xr())===null||t===void 0?void 0:t.proxy,i=r??tl();if(i==null&&!bd())throw new Error("injectLocal must be called in setup");return i&&Es.has(i)&&n in Es.get(i)?Es.get(i)[n]:Dt(...e)},Bd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qw=e=>e!=null,e1=Object.prototype.toString,t1=e=>e1.call(e)==="[object Object]",n1=()=>{};function bl(...e){if(e.length!==1)return al(...e);const t=e[0];return typeof t=="function"?qr(od(()=>({get:t,set:n1}))):Ne(t)}function r1(e,t){function n(...r){return new Promise((i,h)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(h)})}return n}const jd=e=>e();function i1(e=jd,t={}){const{initialState:n="active"}=t,r=bl(n==="active");function i(){r.value=!1}function h(){r.value=!0}const f=(...g)=>{r.value&&e(...g)};return{isActive:qr(r),pause:i,resume:h,eventFilter:f}}function eu(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Gi(e){return Array.isArray(e)?e:[e]}function o1(e){return xr()}function s1(e,t,n={}){const{eventFilter:r=jd,...i}=n;return Fe(e,r1(r,t),i)}function a1(e,t,n={}){const{eventFilter:r,initialState:i="active",...h}=n,{eventFilter:f,pause:g,resume:s,isActive:p}=i1(r,{initialState:i});return{stop:s1(e,t,{...h,eventFilter:f}),pause:g,resume:s,isActive:p}}const l1=a1;function Hd(e,t=!0,n){o1()?et(e,n):t?e():Ar(e)}function gi(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=Qe(e),h=Hn(e);function f(g){if(arguments.length)return h.value=g,h.value;{const s=pt(n);return h.value=h.value===s?pt(r):s,h.value}}return i?f:[h,f]}function c1(e,t,n){return Fe(e,t,{...n,immediate:!0})}const An=Bd?window:void 0,u1=Bd?window.document:void 0;function wl(e){var t;const n=pt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function va(...e){const t=(r,i,h,f)=>(r.addEventListener(i,h,f),()=>r.removeEventListener(i,h,f)),n=ye(()=>{const r=Gi(pt(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return c1(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(h=>wl(h)))!==null&&r!==void 0?r:[An].filter(h=>h!=null),Gi(pt(n.value?e[1]:e[0])),Gi(se(n.value?e[2]:e[1])),pt(n.value?e[3]:e[2])]},([r,i,h,f],g,s)=>{if(!r?.length||!i?.length||!h?.length)return;const p=t1(f)?{...f}:f,o=r.flatMap(l=>i.flatMap(u=>h.map(c=>t(l,u,c,p))));s(()=>{o.forEach(l=>l())})},{flush:"post"})}function h1(){const e=Hn(!1),t=xr();return t&&et(()=>{e.value=!0},t),e}function Ud(e){const t=h1();return ye(()=>(t.value,!!e()))}function f1(e,t,n={}){const{window:r=An,...i}=n;let h;const f=Ud(()=>r&&"MutationObserver"in r),g=()=>{h&&(h.disconnect(),h=void 0)},s=Fe(ye(()=>{const l=Gi(pt(e)).map(wl).filter(qw);return new Set(l)}),l=>{g(),f.value&&l.size&&(h=new MutationObserver(t),l.forEach(u=>h.observe(u,i)))},{immediate:!0,flush:"post"}),p=()=>h?.takeRecords(),o=()=>{s(),g()};return yl(o),{isSupported:f,stop:o,takeRecords:p}}const d1=Symbol("vueuse-ssr-width");function p1(){const e=bd()?Jw(d1,null):null;return typeof e=="number"?e:void 0}function g1(e,t={}){const{window:n=An,ssrWidth:r=p1()}=t,i=Ud(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),h=Hn(typeof r=="number"),f=Hn(),g=Hn(!1),s=p=>{g.value=p.matches};return hl(()=>{if(h.value){h.value=!i.value,g.value=pt(e).split(",").some(p=>{const o=p.includes("not all"),l=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),u=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let c=!!(l||u);return l&&c&&(c=r>=eu(l[1])),u&&c&&(c=r<=eu(u[1])),o?!c:c});return}i.value&&(f.value=n.matchMedia(pt(e)),g.value=f.value.matches)}),va(f,"change",s,{passive:!0}),ye(()=>g.value)}const Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mi="__vueuse_ssr_handlers__",m1=v1();function v1(){return Mi in Ei||(Ei[Mi]=Ei[Mi]||{}),Ei[Mi]}function Vd(e,t){return m1[e]||t}function y1(e){return g1("(prefers-color-scheme: dark)",e)}function b1(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const w1={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},tu="vueuse-storage";function S1(e,t,n,r={}){var i;const{flush:h="pre",deep:f=!0,listenToStorageChanges:g=!0,writeDefaults:s=!0,mergeDefaults:p=!1,shallow:o,window:l=An,eventFilter:u,onError:c=S=>{console.error(S)},initOnMounted:a}=r,d=(o?Hn:Ne)(typeof t=="function"?t():t),m=ye(()=>pt(e));if(!n)try{n=Vd("getDefaultStorage",()=>An?.localStorage)()}catch(S){c(S)}if(!n)return d;const v=pt(t),y=b1(v),A=(i=r.serializer)!==null&&i!==void 0?i:w1[y],{pause:C,resume:_}=l1(d,S=>L(S),{flush:h,deep:f,eventFilter:u});Fe(m,()=>T(),{flush:h});let b=!1;const k=S=>{a&&!b||T(S)},R=S=>{a&&!b||$(S)};l&&g&&(n instanceof Storage?va(l,"storage",k,{passive:!0}):va(l,tu,R)),a?Hd(()=>{b=!0,T()}):T();function M(S,w){if(l){const x={key:m.value,oldValue:S,newValue:w,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(tu,{detail:x}))}}function L(S){try{const w=n.getItem(m.value);if(S==null)M(w,null),n.removeItem(m.value);else{const x=A.write(S);w!==x&&(n.setItem(m.value,x),M(w,x))}}catch(w){c(w)}}function N(S){const w=S?S.newValue:n.getItem(m.value);if(w==null)return s&&v!=null&&n.setItem(m.value,A.write(v)),v;if(!S&&p){const x=A.read(w);return typeof p=="function"?p(x,v):y==="object"&&!Array.isArray(x)?{...v,...x}:x}else return typeof w!="string"?w:A.read(w)}function T(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){d.value=v;return}if(!(S&&S.key!==m.value)){C();try{const w=A.write(d.value);(S===void 0||S?.newValue!==w)&&(d.value=N(S))}catch(w){c(w)}finally{S?Ar(_):_()}}}}function $(S){T(S.detail)}return d}const _1="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function $1(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=An,storage:h,storageKey:f="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:s,emitAuto:p,disableTransition:o=!0}=e,l={auto:"",light:"light",dark:"dark",...e.modes||{}},u=y1({window:i}),c=ye(()=>u.value?"dark":"light"),a=s||(f==null?bl(r):S1(f,r,h,{window:i,listenToStorageChanges:g})),d=ye(()=>a.value==="auto"?c.value:a.value),m=Vd("updateHTMLAttrs",(C,_,b)=>{const k=typeof C=="string"?i?.document.querySelector(C):wl(C);if(!k)return;const R=new Set,M=new Set;let L=null;if(_==="class"){const T=b.split(/\s/g);Object.values(l).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{T.includes($)?R.add($):M.add($)})}else L={key:_,value:b};if(R.size===0&&M.size===0&&L===null)return;let N;o&&(N=i.document.createElement("style"),N.appendChild(document.createTextNode(_1)),i.document.head.appendChild(N));for(const T of R)k.classList.add(T);for(const T of M)k.classList.remove(T);L&&k.setAttribute(L.key,L.value),o&&(i.getComputedStyle(N).opacity,document.head.removeChild(N))});function v(C){var _;m(t,n,(_=l[C])!==null&&_!==void 0?_:C)}function y(C){e.onChanged?e.onChanged(C,v):v(C)}Fe(d,y,{flush:"post",immediate:!0}),Hd(()=>y(d.value));const A=ye({get(){return p?a.value:d.value},set(C){a.value=C}});return Object.assign(A,{store:a,system:c,state:d})}function Gd(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=$1({...e,onChanged:(h,f)=>{var g;e.onChanged?(g=e.onChanged)===null||g===void 0||g.call(e,h==="dark",f,h):f(h)},modes:{dark:t,light:n}}),i=ye(()=>r.system.value);return ye({get(){return r.value==="dark"},set(h){const f=h?"dark":"light";i.value===f?r.value="auto":r.value=f}})}function vn(e=null,t={}){var n,r;const{document:i=u1,restoreOnUnmount:h=l=>l}=t,f=(n=i?.title)!==null&&n!==void 0?n:"",g=bl((r=e??i?.title)!==null&&r!==void 0?r:null),s=!!(e&&typeof e=="function");function p(l){if(!("titleTemplate"in t))return l;const u=t.titleTemplate||"%s";return typeof u=="function"?u(l):pt(u).replace(/%s/g,l)}if(Fe(g,(l,u)=>{l!==u&&i&&(i.title=p(l??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!s){var o;f1((o=i.head)===null||o===void 0?void 0:o.querySelector("title"),()=>{i&&i.title!==g.value&&(g.value=p(i.title))},{childList:!0})}return yl(()=>{if(h){const l=h(f,g.value||"");l!=null&&i&&(i.title=l)}}),g}const C1={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},A1={class:"navbar-menu"},x1={class:"navbar-start"},k1={class:"navbar-end"},E1={class:"navbar-item"},M1=ve({__name:"NavbarItem",setup(e){const t=Gd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=gi(t);return(r,i)=>{const h=De("router-link"),f=De("font-awesome-icon");return K(),re("nav",C1,[i[8]||(i[8]=P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")])],-1)),P("div",A1,[P("div",x1,[oe(h,{class:"navbar-item",to:{name:"Alerts"}},{default:Ge(()=>[...i[1]||(i[1]=[Ze("Alerts",-1)])]),_:1}),oe(h,{class:"navbar-item",to:{name:"Artifacts"}},{default:Ge(()=>[...i[2]||(i[2]=[Ze("Artifacts",-1)])]),_:1}),oe(h,{class:"navbar-item",to:{name:"Rules"}},{default:Ge(()=>[...i[3]||(i[3]=[Ze("Rules",-1)])]),_:1}),oe(h,{class:"navbar-item",to:{name:"NewRule"}},{default:Ge(()=>[...i[4]||(i[4]=[Ze("New Rule",-1)])]),_:1}),oe(h,{class:"navbar-item",to:{name:"Config"}},{default:Ge(()=>[...i[5]||(i[5]=[Ze("Config",-1)])]),_:1}),i[6]||(i[6]=P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),i[7]||(i[7]=P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),P("div",k1,[P("div",E1,[P("span",{class:"icon",onClick:i[0]||(i[0]=g=>se(n)())},[oe(f,{icon:se(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),mi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},T1=mi(M1,[["__scopeId","data-v-a9b95eb0"]]),L1={class:"section is-medium"},R1={class:"container"},I1=ve({__name:"App",setup(e){return(t,n)=>{const r=De("router-view");return K(),re(Me,null,[oe(T1),P("section",L1,[P("div",R1,[oe(r)])])],64)}}});const or=typeof document<"u";function Zd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function O1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Zd(e.default)}const Re=Object.assign;function Ms(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ut(i)?i.map(e):e(i)}return n}const Kr=()=>{},Ut=Array.isArray;function nu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Yd=/#/g,N1=/&/g,D1=/\//g,F1=/=/g,P1=/\?/g,Kd=/\+/g,z1=/%5B/g,W1=/%5D/g,Xd=/%5E/g,B1=/%60/g,Qd=/%7B/g,j1=/%7C/g,Jd=/%7D/g,H1=/%20/g;function Sl(e){return e==null?"":encodeURI(""+e).replace(j1,"|").replace(z1,"[").replace(W1,"]")}function U1(e){return Sl(e).replace(Qd,"{").replace(Jd,"}").replace(Xd,"^")}function ya(e){return Sl(e).replace(Kd,"%2B").replace(H1,"+").replace(Yd,"%23").replace(N1,"%26").replace(B1,"`").replace(Qd,"{").replace(Jd,"}").replace(Xd,"^")}function V1(e){return ya(e).replace(F1,"%3D")}function G1(e){return Sl(e).replace(Yd,"%23").replace(P1,"%3F")}function Z1(e){return G1(e).replace(D1,"%2F")}function ri(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Y1=/\/$/,K1=e=>e.replace(Y1,"");function Ts(e,t,n="/"){let r,i={},h="",f="";const g=t.indexOf("#");let s=t.indexOf("?");return s=g>=0&&s>g?-1:s,s>=0&&(r=t.slice(0,s),h=t.slice(s,g>0?g:t.length),i=e(h.slice(1))),g>=0&&(r=r||t.slice(0,g),f=t.slice(g,t.length)),r=q1(r??t,n),{fullPath:r+h+f,path:r,query:i,hash:ri(f)}}function X1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ru(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Q1(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&vr(t.matched[r],n.matched[i])&&qd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!J1(e[n],t[n]))return!1;return!0}function J1(e,t){return Ut(e)?iu(e,t):Ut(t)?iu(t,e):e===t}function iu(e,t){return Ut(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function q1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let h=n.length-1,f,g;for(f=0;f<r.length;f++)if(g=r[f],g!==".")if(g==="..")h>1&&h--;else break;return n.slice(0,h).join("/")+"/"+r.slice(f).join("/")}const bn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ba=(function(e){return e.pop="pop",e.push="push",e})({}),Ls=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function eS(e){if(!e)if(or){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),K1(e)}const tS=/^[^#]+#/;function nS(e,t){return e.replace(tS,"#")+t}function rS(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 Ho=()=>({left:window.scrollX,top:window.scrollY});function iS(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=rS(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ou(e,t){return(history.state?history.state.position-t:-1)+e}const wa=new Map;function oS(e,t){wa.set(e,t)}function sS(e){const t=wa.get(e);return wa.delete(e),t}function aS(e){return typeof e=="string"||e&&typeof e=="object"}function ep(e){return typeof e=="string"||typeof e=="symbol"}let qe=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const tp=Symbol("");qe.MATCHER_NOT_FOUND+"",qe.NAVIGATION_GUARD_REDIRECT+"",qe.NAVIGATION_ABORTED+"",qe.NAVIGATION_CANCELLED+"",qe.NAVIGATION_DUPLICATED+"";function yr(e,t){return Re(new Error,{type:e,[tp]:!0},t)}function rn(e,t){return e instanceof Error&&tp in e&&(t==null||!!(e.type&t))}const lS=["params","query","hash"];function cS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of lS)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function uS(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(Kd," "),h=i.indexOf("="),f=ri(h<0?i:i.slice(0,h)),g=h<0?null:ri(i.slice(h+1));if(f in t){let s=t[f];Ut(s)||(s=t[f]=[s]),s.push(g)}else t[f]=g}return t}function su(e){let t="";for(let n in e){const r=e[n];if(n=V1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ut(r)?r.map(i=>i&&ya(i)):[r&&ya(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function hS(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ut(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const fS=Symbol(""),au=Symbol(""),Uo=Symbol(""),_l=Symbol(""),Sa=Symbol("");function Nr(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $n(e,t,n,r,i,h=f=>f()){const f=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((g,s)=>{const p=u=>{u===!1?s(yr(qe.NAVIGATION_ABORTED,{from:n,to:t})):u instanceof Error?s(u):aS(u)?s(yr(qe.NAVIGATION_GUARD_REDIRECT,{from:t,to:u})):(f&&r.enterCallbacks[i]===f&&typeof u=="function"&&f.push(u),g())},o=h(()=>e.call(r&&r.instances[i],t,n,p));let l=Promise.resolve(o);e.length<3&&(l=l.then(p)),l.catch(u=>s(u))})}function Rs(e,t,n,r,i=h=>h()){const h=[];for(const f of e)for(const g in f.components){let s=f.components[g];if(!(t!=="beforeRouteEnter"&&!f.instances[g]))if(Zd(s)){const p=(s.__vccOpts||s)[t];p&&h.push($n(p,n,r,f,g,i))}else{let p=s();h.push(()=>p.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${g}" at "${f.path}"`);const l=O1(o)?o.default:o;f.mods[g]=o,f.components[g]=l;const u=(l.__vccOpts||l)[t];return u&&$n(u,n,r,f,g,i)()}))}}return h}function dS(e,t){const n=[],r=[],i=[],h=Math.max(t.matched.length,e.matched.length);for(let f=0;f<h;f++){const g=t.matched[f];g&&(e.matched.find(p=>vr(p,g))?r.push(g):n.push(g));const s=e.matched[f];s&&(t.matched.find(p=>vr(p,s))||i.push(s))}return[n,r,i]}let pS=()=>location.protocol+"//"+location.host;function np(e,t){const{pathname:n,search:r,hash:i}=t,h=e.indexOf("#");if(h>-1){let f=i.includes(e.slice(h))?e.slice(h).length:1,g=i.slice(f);return g[0]!=="/"&&(g="/"+g),ru(g,"")}return ru(n,e)+r+i}function gS(e,t,n,r){let i=[],h=[],f=null;const g=({state:u})=>{const c=np(e,location),a=n.value,d=t.value;let m=0;if(u){if(n.value=c,t.value=u,f&&f===a){f=null;return}m=d?u.position-d.position:0}else r(c);i.forEach(v=>{v(n.value,a,{delta:m,type:ba.pop,direction:m?m>0?Ls.forward:Ls.back:Ls.unknown})})};function s(){f=n.value}function p(u){i.push(u);const c=()=>{const a=i.indexOf(u);a>-1&&i.splice(a,1)};return h.push(c),c}function o(){if(document.visibilityState==="hidden"){const{history:u}=window;if(!u.state)return;u.replaceState(Re({},u.state,{scroll:Ho()}),"")}}function l(){for(const u of h)u();h=[],window.removeEventListener("popstate",g),window.removeEventListener("pagehide",o),document.removeEventListener("visibilitychange",o)}return window.addEventListener("popstate",g),window.addEventListener("pagehide",o),document.addEventListener("visibilitychange",o),{pauseListeners:s,listen:p,destroy:l}}function lu(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ho():null}}function mS(e){const{history:t,location:n}=window,r={value:np(e,n)},i={value:t.state};i.value||h(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function h(s,p,o){const l=e.indexOf("#"),u=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+s:pS()+e+s;try{t[o?"replaceState":"pushState"](p,"",u),i.value=p}catch(c){console.error(c),n[o?"replace":"assign"](u)}}function f(s,p){h(s,Re({},t.state,lu(i.value.back,s,i.value.forward,!0),p,{position:i.value.position}),!0),r.value=s}function g(s,p){const o=Re({},i.value,t.state,{forward:s,scroll:Ho()});h(o.current,o,!0),h(s,Re({},lu(r.value,s,null),{position:o.position+1},p),!1),r.value=s}return{location:r,state:i,push:g,replace:f}}function vS(e){e=eS(e);const t=mS(e),n=gS(e,t.state,t.location,t.replace);function r(h,f=!0){f||n.pauseListeners(),history.go(h)}const i=Re({location:"",base:e,go:r,createHref:nS.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function yS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),vS(e)}let zn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var nt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(nt||{});const bS={type:zn.Static,value:""},wS=/[a-zA-Z0-9_]/;function SS(e){if(!e)return[[]];if(e==="/")return[[bS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${p}": ${c}`)}let n=nt.Static,r=n;const i=[];let h;function f(){h&&i.push(h),h=[]}let g=0,s,p="",o="";function l(){p&&(n===nt.Static?h.push({type:zn.Static,value:p}):n===nt.Param||n===nt.ParamRegExp||n===nt.ParamRegExpEnd?(h.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),h.push({type:zn.Param,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function u(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==nt.ParamRegExp){r=n,n=nt.EscapeNext;continue}switch(n){case nt.Static:s==="/"?(p&&l(),f()):s===":"?(l(),n=nt.Param):u();break;case nt.EscapeNext:u(),n=r;break;case nt.Param:s==="("?n=nt.ParamRegExp:wS.test(s)?u():(l(),n=nt.Static,s!=="*"&&s!=="?"&&s!=="+"&&g--);break;case nt.ParamRegExp:s===")"?o[o.length-1]=="\\"?o=o.slice(0,-1)+s:n=nt.ParamRegExpEnd:o+=s;break;case nt.ParamRegExpEnd:l(),n=nt.Static,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===nt.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),l(),f(),i}const cu="[^/]+?",_S={sensitive:!1,strict:!1,start:!0,end:!0};var bt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(bt||{});const $S=/[.+*?^${}()[\]/\\]/g;function CS(e,t){const n=Re({},_S,t),r=[];let i=n.start?"^":"";const h=[];for(const p of e){const o=p.length?[]:[bt.Root];n.strict&&!p.length&&(i+="/");for(let l=0;l<p.length;l++){const u=p[l];let c=bt.Segment+(n.sensitive?bt.BonusCaseSensitive:0);if(u.type===zn.Static)l||(i+="/"),i+=u.value.replace($S,"\\$&"),c+=bt.Static;else if(u.type===zn.Param){const{value:a,repeatable:d,optional:m,regexp:v}=u;h.push({name:a,repeatable:d,optional:m});const y=v||cu;if(y!==cu){c+=bt.BonusCustomRegExp;try{`${y}`}catch(C){throw new Error(`Invalid custom RegExp for param "${a}" (${y}): `+C.message)}}let A=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;l||(A=m&&p.length<2?`(?:/${A})`:"/"+A),m&&(A+="?"),i+=A,c+=bt.Dynamic,m&&(c+=bt.BonusOptional),d&&(c+=bt.BonusRepeatable),y===".*"&&(c+=bt.BonusWildcard)}o.push(c)}r.push(o)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=bt.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const f=new RegExp(i,n.sensitive?"":"i");function g(p){const o=p.match(f),l={};if(!o)return null;for(let u=1;u<o.length;u++){const c=o[u]||"",a=h[u-1];l[a.name]=c&&a.repeatable?c.split("/"):c}return l}function s(p){let o="",l=!1;for(const u of e){(!l||!o.endsWith("/"))&&(o+="/"),l=!1;for(const c of u)if(c.type===zn.Static)o+=c.value;else if(c.type===zn.Param){const{value:a,repeatable:d,optional:m}=c,v=a in p?p[a]:"";if(Ut(v)&&!d)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const y=Ut(v)?v.join("/"):v;if(!y)if(m)u.length<2&&(o.endsWith("/")?o=o.slice(0,-1):l=!0);else throw new Error(`Missing required param "${a}"`);o+=y}}return o||"/"}return{re:f,score:r,keys:h,parse:g,stringify:s}}function AS(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]===bt.Static+bt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===bt.Static+bt.Segment?1:-1:0}function rp(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const h=AS(r[n],i[n]);if(h)return h;n++}if(Math.abs(i.length-r.length)===1){if(uu(r))return 1;if(uu(i))return-1}return i.length-r.length}function uu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xS={strict:!1,end:!0,sensitive:!1};function kS(e,t,n){const r=CS(SS(e.path),n),i=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function ES(e,t){const n=[],r=new Map;t=nu(xS,t);function i(l){return r.get(l)}function h(l,u,c){const a=!c,d=fu(l);d.aliasOf=c&&c.record;const m=nu(t,l),v=[d];if("alias"in l){const C=typeof l.alias=="string"?[l.alias]:l.alias;for(const _ of C)v.push(fu(Re({},d,{components:c?c.record.components:d.components,path:_,aliasOf:c?c.record:d})))}let y,A;for(const C of v){const{path:_}=C;if(u&&_[0]!=="/"){const b=u.record.path,k=b[b.length-1]==="/"?"":"/";C.path=u.record.path+(_&&k+_)}if(y=kS(C,u,m),c?c.alias.push(y):(A=A||y,A!==y&&A.alias.push(y),a&&l.name&&!du(y)&&f(l.name)),ip(y)&&s(y),d.children){const b=d.children;for(let k=0;k<b.length;k++)h(b[k],y,c&&c.children[k])}c=c||y}return A?()=>{f(A)}:Kr}function f(l){if(ep(l)){const u=r.get(l);u&&(r.delete(l),n.splice(n.indexOf(u),1),u.children.forEach(f),u.alias.forEach(f))}else{const u=n.indexOf(l);u>-1&&(n.splice(u,1),l.record.name&&r.delete(l.record.name),l.children.forEach(f),l.alias.forEach(f))}}function g(){return n}function s(l){const u=LS(l,n);n.splice(u,0,l),l.record.name&&!du(l)&&r.set(l.record.name,l)}function p(l,u){let c,a={},d,m;if("name"in l&&l.name){if(c=r.get(l.name),!c)throw yr(qe.MATCHER_NOT_FOUND,{location:l});m=c.record.name,a=Re(hu(u.params,c.keys.filter(A=>!A.optional).concat(c.parent?c.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),l.params&&hu(l.params,c.keys.map(A=>A.name))),d=c.stringify(a)}else if(l.path!=null)d=l.path,c=n.find(A=>A.re.test(d)),c&&(a=c.parse(d),m=c.record.name);else{if(c=u.name?r.get(u.name):n.find(A=>A.re.test(u.path)),!c)throw yr(qe.MATCHER_NOT_FOUND,{location:l,currentLocation:u});m=c.record.name,a=Re({},u.params,l.params),d=c.stringify(a)}const v=[];let y=c;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:d,params:a,matched:v,meta:TS(v)}}e.forEach(l=>h(l));function o(){n.length=0,r.clear()}return{addRoute:h,resolve:p,removeRoute:f,clearRoutes:o,getRoutes:g,getRecordMatcher:i}}function hu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:MS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function MS(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 du(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function TS(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function LS(e,t){let n=0,r=t.length;for(;n!==r;){const h=n+r>>1;rp(e,t[h])<0?r=h:n=h+1}const i=RS(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function RS(e){let t=e;for(;t=t.parent;)if(ip(t)&&rp(e,t)===0)return t}function ip({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pu(e){const t=Dt(Uo),n=Dt(_l),r=ye(()=>{const s=se(e.to);return t.resolve(s)}),i=ye(()=>{const{matched:s}=r.value,{length:p}=s,o=s[p-1],l=n.matched;if(!o||!l.length)return-1;const u=l.findIndex(vr.bind(null,o));if(u>-1)return u;const c=gu(s[p-2]);return p>1&&gu(o)===c&&l[l.length-1].path!==c?l.findIndex(vr.bind(null,s[p-2])):u}),h=ye(()=>i.value>-1&&FS(n.params,r.value.params)),f=ye(()=>i.value>-1&&i.value===n.matched.length-1&&qd(n.params,r.value.params));function g(s={}){if(DS(s)){const p=t[se(e.replace)?"replace":"push"](se(e.to)).catch(Kr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:r,href:ye(()=>r.value.href),isActive:h,isExactActive:f,navigate:g}}function IS(e){return e.length===1?e[0]:e}const OS=ve({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"},viewTransition:Boolean},useLink:pu,setup(e,{slots:t}){const n=Cr(pu(e)),{options:r}=Dt(Uo),i=ye(()=>({[mu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[mu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const h=t.default&&IS(t.default(n));return e.custom?h:jo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},h)}}}),NS=OS;function DS(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 FS(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ut(i)||i.length!==r.length||r.some((h,f)=>h!==i[f]))return!1}return!0}function gu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const mu=(e,t,n)=>e??t??n,PS=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Dt(Sa),i=ye(()=>e.route||r.value),h=Dt(au,0),f=ye(()=>{let p=se(h);const{matched:o}=i.value;let l;for(;(l=o[p])&&!l.components;)p++;return p}),g=ye(()=>i.value.matched[f.value]);ji(au,ye(()=>f.value+1)),ji(fS,g),ji(Sa,i);const s=Ne();return Fe(()=>[s.value,g.value,e.name],([p,o,l],[u,c,a])=>{o&&(o.instances[l]=p,c&&c!==o&&p&&p===u&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),p&&o&&(!c||!vr(o,c)||!u)&&(o.enterCallbacks[l]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=i.value,o=e.name,l=g.value,u=l&&l.components[o];if(!u)return vu(n.default,{Component:u,route:p});const c=l.props[o],a=c?c===!0?p.params:typeof c=="function"?c(p):c:null,m=jo(u,Re({},a,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(l.instances[o]=null)},ref:s}));return vu(n.default,{Component:m,route:p})||m}}});function vu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zS=PS;function WS(e){const t=ES(e.routes,e),n=e.parseQuery||uS,r=e.stringifyQuery||su,i=e.history,h=Nr(),f=Nr(),g=Nr(),s=Hn(bn);let p=bn;or&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=Ms.bind(null,B=>""+B),l=Ms.bind(null,Z1),u=Ms.bind(null,ri);function c(B,Z){let X,Q;return ep(B)?(X=t.getRecordMatcher(B),Q=Z):Q=B,t.addRoute(Q,X)}function a(B){const Z=t.getRecordMatcher(B);Z&&t.removeRoute(Z)}function d(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function v(B,Z){if(Z=Re({},Z||s.value),typeof B=="string"){const Y=Ts(n,B,Z.path),q=t.resolve({path:Y.path},Z),te=i.createHref(Y.fullPath);return Re(Y,q,{params:u(q.params),hash:ri(Y.hash),redirectedFrom:void 0,href:te})}let X;if(B.path!=null)X=Re({},B,{path:Ts(n,B.path,Z.path).path});else{const Y=Re({},B.params);for(const q in Y)Y[q]==null&&delete Y[q];X=Re({},B,{params:l(Y)}),Z.params=l(Z.params)}const Q=t.resolve(X,Z),ae=B.hash||"";Q.params=o(u(Q.params));const z=X1(r,Re({},B,{hash:U1(ae),path:Q.path})),j=i.createHref(z);return Re({fullPath:z,hash:ae,query:r===su?hS(B.query):B.query||{}},Q,{redirectedFrom:void 0,href:j})}function y(B){return typeof B=="string"?Ts(n,B,s.value.path):Re({},B)}function A(B,Z){if(p!==B)return yr(qe.NAVIGATION_CANCELLED,{from:Z,to:B})}function C(B){return k(B)}function _(B){return C(Re(y(B),{replace:!0}))}function b(B,Z){const X=B.matched[B.matched.length-1];if(X&&X.redirect){const{redirect:Q}=X;let ae=typeof Q=="function"?Q(B,Z):Q;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=y(ae):{path:ae},ae.params={}),Re({query:B.query,hash:B.hash,params:ae.path!=null?{}:B.params},ae)}}function k(B,Z){const X=p=v(B),Q=s.value,ae=B.state,z=B.force,j=B.replace===!0,Y=b(X,Q);if(Y)return k(Re(y(Y),{state:typeof Y=="object"?Re({},ae,Y.state):ae,force:z,replace:j}),Z||X);const q=X;q.redirectedFrom=Z;let te;return!z&&Q1(r,Q,X)&&(te=yr(qe.NAVIGATION_DUPLICATED,{to:q,from:Q}),F(Q,Q,!0,!1)),(te?Promise.resolve(te):L(q,Q)).catch(ne=>rn(ne)?rn(ne,qe.NAVIGATION_GUARD_REDIRECT)?ne:D(ne):I(ne,q,Q)).then(ne=>{if(ne){if(rn(ne,qe.NAVIGATION_GUARD_REDIRECT))return k(Re({replace:j},y(ne.to),{state:typeof ne.to=="object"?Re({},ae,ne.to.state):ae,force:z}),Z||q)}else ne=T(q,Q,!0,j,ae);return N(q,Q,ne),ne})}function R(B,Z){const X=A(B,Z);return X?Promise.reject(X):Promise.resolve()}function M(B){const Z=U.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(B):B()}function L(B,Z){let X;const[Q,ae,z]=dS(B,Z);X=Rs(Q.reverse(),"beforeRouteLeave",B,Z);for(const Y of Q)Y.leaveGuards.forEach(q=>{X.push($n(q,B,Z))});const j=R.bind(null,B,Z);return X.push(j),V(X).then(()=>{X=[];for(const Y of h.list())X.push($n(Y,B,Z));return X.push(j),V(X)}).then(()=>{X=Rs(ae,"beforeRouteUpdate",B,Z);for(const Y of ae)Y.updateGuards.forEach(q=>{X.push($n(q,B,Z))});return X.push(j),V(X)}).then(()=>{X=[];for(const Y of z)if(Y.beforeEnter)if(Ut(Y.beforeEnter))for(const q of Y.beforeEnter)X.push($n(q,B,Z));else X.push($n(Y.beforeEnter,B,Z));return X.push(j),V(X)}).then(()=>(B.matched.forEach(Y=>Y.enterCallbacks={}),X=Rs(z,"beforeRouteEnter",B,Z,M),X.push(j),V(X))).then(()=>{X=[];for(const Y of f.list())X.push($n(Y,B,Z));return X.push(j),V(X)}).catch(Y=>rn(Y,qe.NAVIGATION_CANCELLED)?Y:Promise.reject(Y))}function N(B,Z,X){g.list().forEach(Q=>M(()=>Q(B,Z,X)))}function T(B,Z,X,Q,ae){const z=A(B,Z);if(z)return z;const j=Z===bn,Y=or?history.state:{};X&&(Q||j?i.replace(B.fullPath,Re({scroll:j&&Y&&Y.scroll},ae)):i.push(B.fullPath,ae)),s.value=B,F(B,Z,X,j),D()}let $;function S(){$||($=i.listen((B,Z,X)=>{if(!G.listening)return;const Q=v(B),ae=b(Q,G.currentRoute.value);if(ae){k(Re(ae,{replace:!0,force:!0}),Q).catch(Kr);return}p=Q;const z=s.value;or&&oS(ou(z.fullPath,X.delta),Ho()),L(Q,z).catch(j=>rn(j,qe.NAVIGATION_ABORTED|qe.NAVIGATION_CANCELLED)?j:rn(j,qe.NAVIGATION_GUARD_REDIRECT)?(k(Re(y(j.to),{force:!0}),Q).then(Y=>{rn(Y,qe.NAVIGATION_ABORTED|qe.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===ba.pop&&i.go(-1,!1)}).catch(Kr),Promise.reject()):(X.delta&&i.go(-X.delta,!1),I(j,Q,z))).then(j=>{j=j||T(Q,z,!1),j&&(X.delta&&!rn(j,qe.NAVIGATION_CANCELLED)?i.go(-X.delta,!1):X.type===ba.pop&&rn(j,qe.NAVIGATION_ABORTED|qe.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),N(Q,z,j)}).catch(Kr)}))}let w=Nr(),x=Nr(),E;function I(B,Z,X){D(B);const Q=x.list();return Q.length?Q.forEach(ae=>ae(B,Z,X)):console.error(B),Promise.reject(B)}function O(){return E&&s.value!==bn?Promise.resolve():new Promise((B,Z)=>{w.add([B,Z])})}function D(B){return E||(E=!B,S(),w.list().forEach(([Z,X])=>B?X(B):Z()),w.reset()),B}function F(B,Z,X,Q){const{scrollBehavior:ae}=e;if(!or||!ae)return Promise.resolve();const z=!X&&sS(ou(B.fullPath,0))||(Q||!X)&&history.state&&history.state.scroll||null;return Ar().then(()=>ae(B,Z,z)).then(j=>j&&iS(j)).catch(j=>I(j,B,Z))}const H=B=>i.go(B);let W;const U=new Set,G={currentRoute:s,listening:!0,addRoute:c,removeRoute:a,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:d,resolve:v,options:e,push:C,replace:_,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:h.add,beforeResolve:f.add,afterEach:g.add,onError:x.add,isReady:O,install(B){B.component("RouterLink",NS),B.component("RouterView",zS),B.config.globalProperties.$router=G,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>se(s)}),or&&!W&&s.value===bn&&(W=!0,C(i.location).catch(Q=>{}));const Z={};for(const Q in bn)Object.defineProperty(Z,Q,{get:()=>s.value[Q],enumerable:!0});B.provide(Uo,G),B.provide(_l,td(Z)),B.provide(Sa,s);const X=B.unmount;U.add(B),B.unmount=function(){U.delete(B),U.size<1&&(p=bn,$&&$(),$=null,s.value=bn,W=!1,E=!1),X()}}};function V(B){return B.reduce((Z,X)=>Z.then(()=>M(X)),Promise.resolve())}return G}function kr(){return Dt(Uo)}function BS(e){return Dt(_l)}const Is=new WeakMap;function br(e,t,n={}){const{mode:r="replace",route:i=BS(),router:h=kr(),transform:f}=n;let g=c=>c,s=c=>c;typeof f=="function"?g=f:f&&(f.get&&(g=f.get),f.set&&(s=f.set)),Is.has(h)||Is.set(h,new Map);const p=Is.get(h);let o=i.query[e];yl(()=>{o=void 0});let l;const u=od((c,a)=>(l=a,{get(){return c(),g(o!==void 0?o:pt(t))},set(d){d=s(d),o!==d&&(o=d===pt(t)?void 0:d,p.set(e,d===pt(t)?void 0:d),a(),Ar(()=>{if(p.size===0)return;const m=Object.fromEntries(p.entries());p.clear();const{params:v,query:y,hash:A}=i;h[pt(r)]({params:v,query:{...y,...m},hash:A})}))}}));return Fe(()=>i.query[e],c=>{o!==g(c)&&(o=c,l())},{flush:"sync"}),u}const cn=Symbol("Cleanup Function"),$l=Symbol("Timeout Token"),ar=Symbol("Signal Reason"),st=Symbol("Unset"),[Zi,jS]=(function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Al(t.signal.reason)]})();class Yn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[ar]=st;var r=(i,h)=>{var f=()=>{if(h&&this.signal){let g=vi(this.signal);this._trackSignalReason(g),h(g!==st?g:void 0)}h=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[cn]=null)),f=null}};this.signal.pr=new Promise(r),this.signal.pr[cn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:st;this._trackSignalReason(n),this.controller&&(Zi&&n!==st?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[cn]&&this.signal.pr[cn](),this.signal.pr=null),delete this.signal[ar],Zi||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==st&&(Zi||"reason"in this.signal||(this.signal.reason=t),this.signal[ar]===st&&(this.signal[ar]=t))}}function vi(e){return e&&e.aborted?Zi&&jS?Al(e.reason)?st:e.reason:ar in e?e[ar]:st:st}function op(e){if(e.pr)return e.pr;var t,n=new Promise((function(i,h){t=()=>{if(h&&e){let f=vi(e);h(f!==st?f:void 0)}h=null},e.addEventListener("abort",t,!1)}));return n[cn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[cn]=t=null)},n.catch(n[cn]),n}function Cl(e){e instanceof AbortController&&(e=new Yn(e));var t=e&&e instanceof Yn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:op(t)}}function _a(){var e;return{pr:new Promise((t=>e=t)),resolve:e}}function Dn(e){return typeof e=="function"}function HS(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Al(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function Vo(e,t){Al(t)||t===st?e.abort():e.abort(t)}const $a=Object.assign(US,{cancelToken:Yn,delay:sp,timeout:VS,signalRace:GS,signalAll:ZS,tokenCycle:YS});function US(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=Cl(n),i.aborted)return h;var f=h.catch((function(l){var u=vi(i);u=u!==st?u:l;try{var c=g.return();throw c.value!==void 0?c.value:u!==st?u:void 0}finally{g=s=f=p=null}})),{it:g,result:s}=KS.call(this,e,i,...r),p=Promise.race([s,f]);if(n!==i&&n[$l]){let o=function(u){Vo(n,u),Dn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch((()=>{})),n=null;return r=null,p}}function sp(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(h,f){n&&(r.catch((function(){if(f&&n&&g){let p=vi(n);clearTimeout(g),f(p!==st?p:`delay (${t}) interrupted`),h=f=g=n=null}})),r=null);var g=setTimeout((function(){h(`delayed: ${t}`),h=f=g=n=null}),t)}))}function VS(e,t="Timeout"){e=Number(e)||0;var n=new Yn;return sp(n.signal,e).then((()=>r(t)),r),Object.defineProperty(n,$l,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...i){Vo(n,i.length>0?i[0]:st),n.discard(),n=null}}function ap(e){return e.reduce((function(n,r){var i=op(r);return n[0].push(i),r.pr||n[1].push(i),n}),[[],[]])}function lp(e,t,n){e.then((function(i){Vo(t,i),t.discard(),t=null})).then((function(){for(let i of n)i[cn]&&i[cn]();n=null}))}function cp(e){return e.catch((t=>t))}function GS(e){var t=new Yn,[n,r]=ap(e);return lp(cp(Promise.race(n)),t,r),t.signal}function ZS(e){var t=new Yn,[n,r]=ap(e);return lp(Promise.all(n.map(cp)),t,r),t.signal}function YS(){var e;return function(...n){return e&&(Vo(e,n.length>0?n[0]:st),e.discard()),e=new Yn}}function KS(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:(function r(i){try{var h=n.next(i);i=null}catch(f){return Promise.reject(f)}return(function f(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(r,(function(o){return Promise.resolve(n.throw(o)).then(f)}))).catch((function(){n=null})),g=null,s})(h)})()}}Aa=$a(Aa);Object.assign(hp,{onEvent:fp,onceEvent:Aa});var Ca=new WeakSet;const Os=Symbol("unset"),up=Symbol("returned"),yu=Symbol("canceled");function hp(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=Cl(n),i.aborted){let l=vi(i);throw l=l!==st?l:"Aborted",l}var f=_a(),{it:g,ait:s}=QS(e,f.pr,o,i,...r),p=s.return;return s.return=function(u){try{return f.pr.resolved=!0,f.resolve(up),Promise.resolve(g.return(u))}finally{p.call(s),o()}},s;function o(){n&&n!==i&&n[$l]&&n.abort(),s&&(s.return=p,n=f=g=s=p=null)}}}function fp(e,t,n,r=!1){var i,h,f=!1,g=hp((function*({pwait:l}){f||s();try{for(;;){if(i.length==0){let{pr:u,resolve:c}=_a();i.push(u),h.push(c)}yield yield l(i.shift())}}finally{Dn(t.removeEventListener)?t.removeEventListener(n,p,r):Dn(t.removeListener)?t.removeListener(n,p):Dn(t.off)&&t.off(n,p),i.length=h.length=0}}))(e,t,n,r);return g.start=s,g;function s(){f||(f=!0,i=[],h=[],Dn(t.addEventListener)?t.addEventListener(n,p,r):Dn(t.addListener)?t.addListener(n,p):Dn(t.on)&&t.on(n,p))}function p(o){if(h.length>0)h.shift()(o);else{let{pr:l,resolve:u}=_a();i.push(l),u(o)}}}function*Aa(e,t,n,r=!1){try{var i=fp(e,t,n,r);return(yield i.next()).value}finally{i.return()}}function XS(e){var t=Promise.resolve(e);return Ca.add(t),t}function QS(e,t,n,r,...i){var h=e.call(this,{signal:r,pwait:XS},...i);e=i=null;var f=r.pr.catch((g=>{throw{[yu]:!0,reason:g}}));return f.catch((()=>{})),{it:h,ait:(async function*(){var s,p=Os;try{for(;!t.resolved;)if(p!==Os?(s=p,p=Os,s=h.throw(s)):s=h.next(s),HS(s.value))if(Ca.has(s.value)){Ca.delete(s.value);try{if((s=await Promise.race([t,f,s.value]))===up)return}catch(o){if(o[yu]){let l=h.return();throw l.value!==void 0?l.value:o.reason}p=o}}else s=yield s.value;else{if(s.done)return s.value;s=yield s.value}}finally{h=t=null,n()}})()}}const JS=e=>e._runningInstances.length>=e._maxConcurrency,qS=e=>{const t=e._activeInstances[0];t&&t.cancel()},e_=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Dr(e,t){return t?t_(()=>e()._instances,t):ye(()=>[])}function t_(e,t,n){return ye(()=>e().filter(r=>r[t]))}function n_(e){return ye(()=>e().length)}function bu(e){return ye(()=>{const t=e();return t[t.length-1]})}function r_(e){return ye(()=>e()[0])}const dp=e=>e;function pp(e){return Cr(e)}function i_(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function mt(e){return a_(function*(t,...n){return e(t,...n)})}function o_(e,t,n){const r=dp({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ye(()=>i.isCanceling&&i.isFinished),isActive:ye(()=>i.isRunning&&!i.isCanceling),isSuccessful:!1,isNotDropped:ye(()=>!i.isDropped),isError:ye(()=>!!i.error),status:ye(()=>{const f=i,g=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(([s])=>s);return g&&g[1]}),error:null,value:null,cancel({force:f}={force:!1}){if(f||(i.isCanceling=!0,i.isEnqueued&&(i.isFinished=!0),i.isEnqueued=!1),i.token&&i._canAbort){i.token.abort("cancel");try{i.token.discard()}catch{}i.token=void 0,i._canAbort=!1}},canceledOn(f){return f.pr.catch(()=>{i.cancel()}),i},_run(){s_(i,e,t,n)},_handled:!0,_deferredObject:i_(),_shouldThrow:!1,_canAbort:!0,then(f,g){return i._shouldThrow=!0,i._deferredObject.promise.then(f,g)},catch(f,g=!0){return i._shouldThrow=g,i._deferredObject.promise.catch(f)},finally(f){return i._shouldThrow=!0,i._deferredObject.promise.finally(f)}}),i=pp(r),{modifiers:h}=n;return h.drop?i.isDropped=!0:h.enqueue?i.isEnqueued=!0:i._run(),i}function s_(e,t,n,r){const i=new $a.cancelToken,h=$a(t,i);e.token=i,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function f(){e.isRunning=!1,e.isFinished=!0}h.call(e,i,...n).then(g=>{e.value=g,e.isSuccessful=!0,f(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),f(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function a_(e,t={cancelOnUnmount:!0}){const n=T0(),r=dp({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ye(()=>i._isRestartable||i._isDropping||i._isEnqueuing||i._isKeepingLatest),isIdle:ye(()=>!i.isRunning),isRunning:ye(()=>!!i._instances.find(h=>h.isRunning)),isError:ye(()=>!!(i.last&&i.last.isError)),_instances:[],_successfulInstances:Dr(()=>i,"isSuccessful"),_runningInstances:Dr(()=>i,"isRunning"),_enqueuedInstances:Dr(()=>i,"isEnqueued"),_notDroppedInstances:Dr(()=>i,"isNotDropped"),_activeInstances:Dr(()=>i,"isActive"),performCount:n_(()=>i._instances),last:bu(()=>i._notDroppedInstances),lastSuccessful:bu(()=>i._successfulInstances),firstEnqueued:r_(()=>i._enqueuedInstances),cancelAll({force:h}={force:!1}){i._instances.forEach(f=>{try{(h||!f.isDropped&&!f.isFinished)&&f.cancel({force:h})}catch(g){if(g!=="cancel")throw g}})},perform(...h){const f={enqueue:!1,drop:!1};i._hasConcurrency&&JS(i)&&(i._isDropping&&(f.drop=!0),i._isRestartable&&qS(i),i._isKeepingLatest&&e_(i),(i._isEnqueuing||i._isKeepingLatest)&&(f.enqueue=!0));const g=()=>l_(i),s=()=>o_(e,h,{modifiers:f,onFinish:g,scope:n,id:i._instances.length+1}),p=n.active?n.run(s):s();return i._instances=[...i._instances,p],p},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){n.stop(),this.clear()},restartable(){return i._resetModifierFlags(),i._isRestartable=!0,i},drop(){return i._resetModifierFlags(),i._isDropping=!0,i},enqueue(){return i._resetModifierFlags(),i._isEnqueuing=!0,i},keepLatest(){return i._resetModifierFlags(),i._isKeepingLatest=!0,i},_resetModifierFlags(){i._isKeepingLatest=!1,i._isRestartable=!1,i._isEnqueuing=!1,i._isDropping=!1},maxConcurrency(h){return i._maxConcurrency=h,i}}),i=pp(r);return t.cancelOnUnmount&&xr()&&pd(()=>{i._instances&&i.destroy()}),i}function l_(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function gp(e,t){return function(){return e.apply(t,arguments)}}const{toString:c_}=Object.prototype,{getPrototypeOf:xl}=Object,{iterator:Go,toStringTag:mp}=Symbol,Zo=(e=>t=>{const n=c_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vt=e=>(e=e.toLowerCase(),t=>Zo(t)===e),Yo=e=>t=>typeof t===e,{isArray:Er}=Array,wr=Yo("undefined");function yi(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vp=Vt("ArrayBuffer");function u_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vp(e.buffer),t}const h_=Yo("string"),$t=Yo("function"),yp=Yo("number"),bi=e=>e!==null&&typeof e=="object",f_=e=>e===!0||e===!1,Yi=e=>{if(Zo(e)!=="object")return!1;const t=xl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(mp in e)&&!(Go in e)},d_=e=>{if(!bi(e)||yi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},p_=Vt("Date"),g_=Vt("File"),m_=Vt("Blob"),v_=Vt("FileList"),y_=e=>bi(e)&&$t(e.pipe),b_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$t(e.append)&&((t=Zo(e))==="formdata"||t==="object"&&$t(e.toString)&&e.toString()==="[object FormData]"))},w_=Vt("URLSearchParams"),[S_,__,$_,C_]=["ReadableStream","Request","Response","Headers"].map(Vt),A_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Er(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(yi(e))return;const h=n?Object.getOwnPropertyNames(e):Object.keys(e),f=h.length;let g;for(r=0;r<f;r++)g=h[r],t.call(null,e[g],g,e)}}function bp(e,t){if(yi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wp=e=>!wr(e)&&e!==Wn;function xa(){const{caseless:e,skipUndefined:t}=wp(this)&&this||{},n={},r=(i,h)=>{const f=e&&bp(n,h)||h;Yi(n[f])&&Yi(i)?n[f]=xa(n[f],i):Yi(i)?n[f]=xa({},i):Er(i)?n[f]=i.slice():(!t||!wr(i))&&(n[f]=i)};for(let i=0,h=arguments.length;i<h;i++)arguments[i]&&wi(arguments[i],r);return n}const x_=(e,t,n,{allOwnKeys:r}={})=>(wi(t,(i,h)=>{n&&$t(i)?e[h]=gp(i,n):e[h]=i},{allOwnKeys:r}),e),k_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),E_=(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)},M_=(e,t,n,r)=>{let i,h,f;const g={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),h=i.length;h-- >0;)f=i[h],(!r||r(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&xl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},T_=(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},L_=e=>{if(!e)return null;if(Er(e))return e;let t=e.length;if(!yp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},R_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xl(Uint8Array)),I_=(e,t)=>{const r=(e&&e[Go]).call(e);let i;for(;(i=r.next())&&!i.done;){const h=i.value;t.call(e,h[0],h[1])}},O_=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},N_=Vt("HTMLFormElement"),D_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),wu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F_=Vt("RegExp"),Sp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wi(n,(i,h)=>{let f;(f=t(i,h,e))!==!1&&(r[h]=f||i)}),Object.defineProperties(e,r)},P_=e=>{Sp(e,(t,n)=>{if($t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($t(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+"'")})}})},z_=(e,t)=>{const n={},r=i=>{i.forEach(h=>{n[h]=!0})};return Er(e)?r(e):r(String(e).split(t)),n},W_=()=>{},B_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function j_(e){return!!(e&&$t(e.append)&&e[mp]==="FormData"&&e[Go])}const H_=e=>{const t=new Array(10),n=(r,i)=>{if(bi(r)){if(t.indexOf(r)>=0)return;if(yi(r))return r;if(!("toJSON"in r)){t[i]=r;const h=Er(r)?[]:{};return wi(r,(f,g)=>{const s=n(f,i+1);!wr(s)&&(h[g]=s)}),t[i]=void 0,h}}return r};return n(e,0)},U_=Vt("AsyncFunction"),V_=e=>e&&(bi(e)||$t(e))&&$t(e.then)&&$t(e.catch),_p=((e,t)=>e?setImmediate:t?((n,r)=>(Wn.addEventListener("message",({source:i,data:h})=>{i===Wn&&h===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(Wn.postMessage)),G_=typeof queueMicrotask<"u"?queueMicrotask.bind(Wn):typeof process<"u"&&process.nextTick||_p,Z_=e=>e!=null&&$t(e[Go]),J={isArray:Er,isArrayBuffer:vp,isBuffer:yi,isFormData:b_,isArrayBufferView:u_,isString:h_,isNumber:yp,isBoolean:f_,isObject:bi,isPlainObject:Yi,isEmptyObject:d_,isReadableStream:S_,isRequest:__,isResponse:$_,isHeaders:C_,isUndefined:wr,isDate:p_,isFile:g_,isBlob:m_,isRegExp:F_,isFunction:$t,isStream:y_,isURLSearchParams:w_,isTypedArray:R_,isFileList:v_,forEach:wi,merge:xa,extend:x_,trim:A_,stripBOM:k_,inherits:E_,toFlatObject:M_,kindOf:Zo,kindOfTest:Vt,endsWith:T_,toArray:L_,forEachEntry:I_,matchAll:O_,isHTMLForm:N_,hasOwnProperty:wu,hasOwnProp:wu,reduceDescriptors:Sp,freezeMethods:P_,toObjectSet:z_,toCamelCase:D_,noop:W_,toFiniteNumber:B_,findKey:bp,global:Wn,isContextDefined:wp,isSpecCompliantForm:j_,toJSONObject:H_,isAsyncFn:U_,isThenable:V_,setImmediate:_p,asap:G_,isIterable:Z_};function ke(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $p=ke.prototype,Cp={};["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=>{Cp[e]={value:e}});Object.defineProperties(ke,Cp);Object.defineProperty($p,"isAxiosError",{value:!0});ke.from=(e,t,n,r,i,h)=>{const f=Object.create($p);J.toFlatObject(e,f,function(o){return o!==Error.prototype},p=>p!=="isAxiosError");const g=e&&e.message?e.message:"Error",s=t==null&&e?e.code:t;return ke.call(f,g,s,n,r,i),e&&f.cause==null&&Object.defineProperty(f,"cause",{value:e,configurable:!0}),f.name=e&&e.name||"Error",h&&Object.assign(f,h),f};const Y_=null;function ka(e){return J.isPlainObject(e)||J.isArray(e)}function Ap(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Su(e,t,n){return e?e.concat(t).map(function(i,h){return i=Ap(i),!n&&h?"["+i+"]":i}).join(n?".":""):t}function K_(e){return J.isArray(e)&&!e.some(ka)}const X_=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!J.isUndefined(m[d])});const r=n.metaTokens,i=n.visitor||o,h=n.dots,f=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function p(a){if(a===null)return"";if(J.isDate(a))return a.toISOString();if(J.isBoolean(a))return a.toString();if(!s&&J.isBlob(a))throw new ke("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(a)||J.isTypedArray(a)?s&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,d,m){let v=a;if(a&&!m&&typeof a=="object"){if(J.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(J.isArray(a)&&K_(a)||(J.isFileList(a)||J.endsWith(d,"[]"))&&(v=J.toArray(a)))return d=Ap(d),v.forEach(function(A,C){!(J.isUndefined(A)||A===null)&&t.append(f===!0?Su([d],C,h):f===null?d:d+"[]",p(A))}),!1}return ka(a)?!0:(t.append(Su(m,d,h),p(a)),!1)}const l=[],u=Object.assign(X_,{defaultVisitor:o,convertValue:p,isVisitable:ka});function c(a,d){if(!J.isUndefined(a)){if(l.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(a),J.forEach(a,function(v,y){(!(J.isUndefined(v)||v===null)&&i.call(t,v,J.isString(y)?y.trim():y,d,u))===!0&&c(v,d?d.concat(y):[y])}),l.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return c(e),t}function _u(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&&Ko(e,this,t)}const xp=kl.prototype;xp.append=function(t,n){this._pairs.push([t,n])};xp.toString=function(t){const n=t?function(r){return t.call(this,r,_u)}:_u;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Q_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kp(e,t,n){if(!t)return e;const r=n&&n.encode||Q_;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let h;if(i?h=i(t,n):h=J.isURLSearchParams(t)?t.toString():new kl(t,n).toString(r),h){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+h}return e}class $u{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){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J_=typeof URLSearchParams<"u"?URLSearchParams:kl,q_=typeof FormData<"u"?FormData:null,e$=typeof Blob<"u"?Blob:null,t$={isBrowser:!0,classes:{URLSearchParams:J_,FormData:q_,Blob:e$},protocols:["http","https","file","blob","url","data"]},El=typeof window<"u"&&typeof document<"u",Ea=typeof navigator=="object"&&navigator||void 0,n$=El&&(!Ea||["ReactNative","NativeScript","NS"].indexOf(Ea.product)<0),r$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i$=El&&window.location.href||"http://localhost",o$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:El,hasStandardBrowserEnv:n$,hasStandardBrowserWebWorkerEnv:r$,navigator:Ea,origin:i$},Symbol.toStringTag,{value:"Module"})),dt={...o$,...t$};function s$(e,t){return Ko(e,new dt.classes.URLSearchParams,{visitor:function(n,r,i,h){return dt.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...t})}function a$(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l$(e){const t={},n=Object.keys(e);let r;const i=n.length;let h;for(r=0;r<i;r++)h=n[r],t[h]=e[h];return t}function Mp(e){function t(n,r,i,h){let f=n[h++];if(f==="__proto__")return!0;const g=Number.isFinite(+f),s=h>=n.length;return f=!f&&J.isArray(i)?i.length:f,s?(J.hasOwnProp(i,f)?i[f]=[i[f],r]:i[f]=r,!g):((!i[f]||!J.isObject(i[f]))&&(i[f]=[]),t(n,r,i[f],h)&&J.isArray(i[f])&&(i[f]=l$(i[f])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(a$(r),i,n,0)}),n}return null}function c$(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Si={transitional:Ep,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,h=J.isObject(t);if(h&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(Mp(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(h){if(r.indexOf("application/x-www-form-urlencoded")>-1)return s$(t,this.formSerializer).toString();if((g=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ko(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return h||i?(n.setContentType("application/json",!1),c$(t)):t}],transformResponse:[function(t){const n=this.transitional||Si.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||i)){const f=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?ke.from(g,ke.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:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Si.headers[e]={}});const u$=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h$=e=>{const t={};let n,r,i;return e&&e.split(`
558
+ `).forEach(function(f){i=f.indexOf(":"),n=f.substring(0,i).trim().toLowerCase(),r=f.substring(i+1).trim(),!(!n||t[n]&&u$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Cu=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function Ki(e){return e===!1||e==null?e:J.isArray(e)?e.map(Ki):String(e)}function f$(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 d$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ns(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function p$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function g$(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,h,f){return this[r].call(this,t,i,h,f)},configurable:!0})})}let Ct=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function h(g,s,p){const o=Fr(s);if(!o)throw new Error("header name must be a non-empty string");const l=J.findKey(i,o);(!l||i[l]===void 0||p===!0||p===void 0&&i[l]!==!1)&&(i[l||s]=Ki(g))}const f=(g,s)=>J.forEach(g,(p,o)=>h(p,o,s));if(J.isPlainObject(t)||t instanceof this.constructor)f(t,n);else if(J.isString(t)&&(t=t.trim())&&!d$(t))f(h$(t),n);else if(J.isObject(t)&&J.isIterable(t)){let g={},s,p;for(const o of t){if(!J.isArray(o))throw TypeError("Object iterator must return a key-value pair");g[p=o[0]]=(s=g[p])?J.isArray(s)?[...s,o[1]]:[s,o[1]]:o[1]}f(g,n)}else t!=null&&h(n,t,r);return this}get(t,n){if(t=Fr(t),t){const r=J.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return f$(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fr(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ns(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function h(f){if(f=Fr(f),f){const g=J.findKey(r,f);g&&(!n||Ns(r,r[g],g,n))&&(delete r[g],i=!0)}}return J.isArray(t)?t.forEach(h):h(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const h=n[r];(!t||Ns(this,this[h],h,t,!0))&&(delete this[h],i=!0)}return i}normalize(t){const n=this,r={};return J.forEach(this,(i,h)=>{const f=J.findKey(r,h);if(f){n[f]=Ki(i),delete n[h];return}const g=t?p$(h):String(h).trim();g!==h&&delete n[h],n[g]=Ki(i),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&J.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(`
559
+ `)}getSetCookie(){return this.get("set-cookie")||[]}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(i=>r.set(i)),r}static accessor(t){const r=(this[Cu]=this[Cu]={accessors:{}}).accessors,i=this.prototype;function h(f){const g=Fr(f);r[g]||(g$(i,f),r[g]=!0)}return J.isArray(t)?t.forEach(h):h(t),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods(Ct);function Ds(e,t){const n=this||Si,r=t||n,i=Ct.from(r.headers);let h=r.data;return J.forEach(e,function(g){h=g.call(n,h,i.normalize(),t?t.status:void 0)}),i.normalize(),h}function Tp(e){return!!(e&&e.__CANCEL__)}function Mr(e,t,n){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Mr,ke,{__CANCEL__:!0});function Lp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function m$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function v$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,h=0,f;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=r[h];f||(f=p),n[i]=s,r[i]=p;let l=h,u=0;for(;l!==i;)u+=n[l++],l=l%e;if(i=(i+1)%e,i===h&&(h=(h+1)%e),p-f<t)return;const c=o&&p-o;return c?Math.round(u*1e3/c):void 0}}function y$(e,t){let n=0,r=1e3/t,i,h;const f=(p,o=Date.now())=>{n=o,i=null,h&&(clearTimeout(h),h=null),e(...p)};return[(...p)=>{const o=Date.now(),l=o-n;l>=r?f(p,o):(i=p,h||(h=setTimeout(()=>{h=null,f(i)},r-l)))},()=>i&&f(i)]}const mo=(e,t,n=3)=>{let r=0;const i=v$(50,250);return y$(h=>{const f=h.loaded,g=h.lengthComputable?h.total:void 0,s=f-r,p=i(s),o=f<=g;r=f;const l={loaded:f,total:g,progress:g?f/g:void 0,bytes:s,rate:p||void 0,estimated:p&&g&&o?(g-f)/p:void 0,event:h,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(l)},n)},Au=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xu=e=>(...t)=>J.asap(()=>e(...t)),b$=dt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,w$=dt.hasStandardBrowserEnv?{write(e,t,n,r,i,h,f){if(typeof document>"u")return;const g=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&g.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&g.push(`path=${r}`),J.isString(i)&&g.push(`domain=${i}`),h===!0&&g.push("secure"),J.isString(f)&&g.push(`SameSite=${f}`),document.cookie=g.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function S$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rp(e,t,n){let r=!S$(t);return e&&(r||n==!1)?_$(e,t):t}const ku=e=>e instanceof Ct?{...e}:e;function Kn(e,t){t=t||{};const n={};function r(p,o,l,u){return J.isPlainObject(p)&&J.isPlainObject(o)?J.merge.call({caseless:u},p,o):J.isPlainObject(o)?J.merge({},o):J.isArray(o)?o.slice():o}function i(p,o,l,u){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p,l,u)}else return r(p,o,l,u)}function h(p,o){if(!J.isUndefined(o))return r(void 0,o)}function f(p,o){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p)}else return r(void 0,o)}function g(p,o,l){if(l in t)return r(p,o);if(l in e)return r(void 0,p)}const s={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(p,o,l)=>i(ku(p),ku(o),l,!0)};return J.forEach(Object.keys({...e,...t}),function(o){const l=s[o]||i,u=l(e[o],t[o],o);J.isUndefined(u)&&l!==g||(n[o]=u)}),n}const Ip=e=>{const t=Kn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:h,headers:f,auth:g}=t;if(t.headers=f=Ct.from(f),t.url=kp(Rp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),g&&f.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),J.isFormData(n)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const s=n.getHeaders(),p=["content-type","content-length"];Object.entries(s).forEach(([o,l])=>{p.includes(o.toLowerCase())&&f.set(o,l)})}}if(dt.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&b$(t.url))){const s=i&&h&&w$.read(h);s&&f.set(i,s)}return t},$$=typeof XMLHttpRequest<"u",C$=$$&&function(e){return new Promise(function(n,r){const i=Ip(e);let h=i.data;const f=Ct.from(i.headers).normalize();let{responseType:g,onUploadProgress:s,onDownloadProgress:p}=i,o,l,u,c,a;function d(){c&&c(),a&&a(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function v(){if(!m)return;const A=Ct.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:A,config:e,request:m};Lp(function(k){n(k),d()},function(k){r(k),d()},_),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(r(new ke("Request aborted",ke.ECONNABORTED,e,m)),m=null)},m.onerror=function(C){const _=C&&C.message?C.message:"Network Error",b=new ke(_,ke.ERR_NETWORK,e,m);b.event=C||null,r(b),m=null},m.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||Ep;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new ke(C,_.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,m)),m=null},h===void 0&&f.setContentType(null),"setRequestHeader"in m&&J.forEach(f.toJSON(),function(C,_){m.setRequestHeader(_,C)}),J.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),g&&g!=="json"&&(m.responseType=i.responseType),p&&([u,a]=mo(p,!0),m.addEventListener("progress",u)),s&&m.upload&&([l,c]=mo(s),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(o=A=>{m&&(r(!A||A.type?new Mr(null,e,m):A),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const y=m$(i.url);if(y&&dt.protocols.indexOf(y)===-1){r(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e));return}m.send(h||null)})},A$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const h=function(p){if(!i){i=!0,g();const o=p instanceof Error?p:this.reason;r.abort(o instanceof ke?o:new Mr(o instanceof Error?o.message:o))}};let f=t&&setTimeout(()=>{f=null,h(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))},t);const g=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(h):p.removeEventListener("abort",h)}),e=null)};e.forEach(p=>p.addEventListener("abort",h));const{signal:s}=r;return s.unsubscribe=()=>J.asap(g),s}},x$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},k$=async function*(e,t){for await(const n of E$(e))yield*x$(n,t)},E$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Eu=(e,t,n,r)=>{const i=k$(e,t);let h=0,f,g=s=>{f||(f=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:p,value:o}=await i.next();if(p){g(),s.close();return}let l=o.byteLength;if(n){let u=h+=l;n(u)}s.enqueue(new Uint8Array(o))}catch(p){throw g(p),p}},cancel(s){return g(s),i.return()}},{highWaterMark:2})},Mu=64*1024,{isFunction:Ti}=J,M$=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Tu,TextEncoder:Lu}=J.global,Ru=(e,...t)=>{try{return!!e(...t)}catch{return!1}},T$=e=>{e=J.merge.call({skipUndefined:!0},M$,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ti(t):typeof fetch=="function",h=Ti(n),f=Ti(r);if(!i)return!1;const g=i&&Ti(Tu),s=i&&(typeof Lu=="function"?(a=>d=>a.encode(d))(new Lu):async a=>new Uint8Array(await new n(a).arrayBuffer())),p=h&&g&&Ru(()=>{let a=!1;const d=new n(dt.origin,{body:new Tu,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!d}),o=f&&g&&Ru(()=>J.isReadableStream(new r("").body)),l={stream:o&&(a=>a.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!l[a]&&(l[a]=(d,m)=>{let v=d&&d[a];if(v)return v.call(d);throw new ke(`Response type '${a}' is not supported`,ke.ERR_NOT_SUPPORT,m)})});const u=async a=>{if(a==null)return 0;if(J.isBlob(a))return a.size;if(J.isSpecCompliantForm(a))return(await new n(dt.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(J.isArrayBufferView(a)||J.isArrayBuffer(a))return a.byteLength;if(J.isURLSearchParams(a)&&(a=a+""),J.isString(a))return(await s(a)).byteLength},c=async(a,d)=>{const m=J.toFiniteNumber(a.getContentLength());return m??u(d)};return async a=>{let{url:d,method:m,data:v,signal:y,cancelToken:A,timeout:C,onDownloadProgress:_,onUploadProgress:b,responseType:k,headers:R,withCredentials:M="same-origin",fetchOptions:L}=Ip(a),N=t||fetch;k=k?(k+"").toLowerCase():"text";let T=A$([y,A&&A.toAbortSignal()],C),$=null;const S=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let w;try{if(b&&p&&m!=="get"&&m!=="head"&&(w=await c(R,v))!==0){let F=new n(d,{method:"POST",body:v,duplex:"half"}),H;if(J.isFormData(v)&&(H=F.headers.get("content-type"))&&R.setContentType(H),F.body){const[W,U]=Au(w,mo(xu(b)));v=Eu(F.body,Mu,W,U)}}J.isString(M)||(M=M?"include":"omit");const x=h&&"credentials"in n.prototype,E={...L,signal:T,method:m.toUpperCase(),headers:R.normalize().toJSON(),body:v,duplex:"half",credentials:x?M:void 0};$=h&&new n(d,E);let I=await(h?N($,L):N(d,E));const O=o&&(k==="stream"||k==="response");if(o&&(_||O&&S)){const F={};["status","statusText","headers"].forEach(G=>{F[G]=I[G]});const H=J.toFiniteNumber(I.headers.get("content-length")),[W,U]=_&&Au(H,mo(xu(_),!0))||[];I=new r(Eu(I.body,Mu,W,()=>{U&&U(),S&&S()}),F)}k=k||"text";let D=await l[J.findKey(l,k)||"text"](I,a);return!O&&S&&S(),await new Promise((F,H)=>{Lp(F,H,{data:D,headers:Ct.from(I.headers),status:I.status,statusText:I.statusText,config:a,request:$})})}catch(x){throw S&&S(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,a,$),{cause:x.cause||x}):ke.from(x,x&&x.code,a,$)}}},L$=new Map,Op=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,h=[r,i,n];let f=h.length,g=f,s,p,o=L$;for(;g--;)s=h[g],p=o.get(s),p===void 0&&o.set(s,p=g?new Map:T$(t)),o=p;return p};Op();const Ml={http:Y_,xhr:C$,fetch:{get:Op}};J.forEach(Ml,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Iu=e=>`- ${e}`,R$=e=>J.isFunction(e)||e===null||e===!1;function I$(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,i;const h={};for(let f=0;f<n;f++){r=e[f];let g;if(i=r,!R$(r)&&(i=Ml[(g=String(r)).toLowerCase()],i===void 0))throw new ke(`Unknown adapter '${g}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;h[g||"#"+f]=i}if(!i){const f=Object.entries(h).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let g=n?f.length>1?`since :
560
+ `+f.map(Iu).join(`
561
+ `):" "+Iu(f[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return i}const Np={getAdapter:I$,adapters:Ml};function Fs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mr(null,e)}function Ou(e){return Fs(e),e.headers=Ct.from(e.headers),e.data=Ds.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Np.getAdapter(e.adapter||Si.adapter,e)(e).then(function(r){return Fs(e),r.data=Ds.call(e,e.transformResponse,r),r.headers=Ct.from(r.headers),r},function(r){return Tp(r)||(Fs(e),r&&r.response&&(r.response.data=Ds.call(e,e.transformResponse,r.response),r.response.headers=Ct.from(r.response.headers))),Promise.reject(r)})}const Dp="1.13.2",Xo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nu={};Xo.transitional=function(t,n,r){function i(h,f){return"[Axios v"+Dp+"] Transitional option '"+h+"'"+f+(r?". "+r:"")}return(h,f,g)=>{if(t===!1)throw new ke(i(f," has been removed"+(n?" in "+n:"")),ke.ERR_DEPRECATED);return n&&!Nu[f]&&(Nu[f]=!0,console.warn(i(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(h,f,g):!0}};Xo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function O$(e,t,n){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const h=r[i],f=t[h];if(f){const g=e[h],s=g===void 0||f(g,h,e);if(s!==!0)throw new ke("option "+h+" must be "+s,ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ke("Unknown option "+h,ke.ERR_BAD_OPTION)}}const Xi={assertOptions:O$,validators:Xo},Xt=Xi.validators;let Vn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $u,response:new $u}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const h=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
562
+ `+h):r.stack=h}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Kn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:h}=n;r!==void 0&&Xi.assertOptions(r,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Xi.assertOptions(i,{encode:Xt.function,serialize:Xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xi.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&J.merge(h.common,h[n.method]);h&&J.forEach(["delete","get","head","post","put","patch","common"],a=>{delete h[a]}),n.headers=Ct.concat(f,h);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,l=0,u;if(!s){const a=[Ou.bind(this),void 0];for(a.unshift(...g),a.push(...p),u=a.length,o=Promise.resolve(n);l<u;)o=o.then(a[l++],a[l++]);return o}u=g.length;let c=n;for(;l<u;){const a=g[l++],d=g[l++];try{c=a(c)}catch(m){d.call(this,m);break}}try{o=Ou.call(this,c)}catch(a){return Promise.reject(a)}for(l=0,u=p.length;l<u;)o=o.then(p[l++],p[l++]);return o}getUri(t){t=Kn(this.defaults,t);const n=Rp(t.baseURL,t.url,t.allowAbsoluteUrls);return kp(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Vn.prototype[t]=function(n,r){return this.request(Kn(r||{},{method:t,url:n,data:(r||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(r){return function(h,f,g){return this.request(Kn(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:h,data:f}))}}Vn.prototype[t]=n(),Vn.prototype[t+"Form"]=n(!0)});let N$=class Fp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(h){n=h});const r=this;this.promise.then(i=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](i);r._listeners=null}),this.promise.then=i=>{let h;const f=new Promise(g=>{r.subscribe(g),h=g}).then(i);return f.cancel=function(){r.unsubscribe(h)},f},t(function(h,f,g){r.reason||(r.reason=new Mr(h,f,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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Fp(function(i){t=i}),cancel:t}}};function D$(e){return function(n){return e.apply(null,n)}}function F$(e){return J.isObject(e)&&e.isAxiosError===!0}const Ma={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ma).forEach(([e,t])=>{Ma[t]=e});function Pp(e){const t=new Vn(e),n=gp(Vn.prototype.request,t);return J.extend(n,Vn.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Pp(Kn(e,i))},n}const He=Pp(Si);He.Axios=Vn;He.CanceledError=Mr;He.CancelToken=N$;He.isCancel=Tp;He.VERSION=Dp;He.toFormData=Ko;He.AxiosError=ke;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=D$;He.isAxiosError=F$;He.mergeConfig=Kn;He.AxiosHeaders=Ct;He.formToJSON=e=>Mp(J.isHTMLForm(e)?new FormData(e):e);He.getAdapter=Np.getAdapter;He.HttpStatusCode=Ma;He.default=He;const{Axios:jI,AxiosError:P$,CanceledError:HI,isCancel:UI,CancelToken:VI,VERSION:GI,all:ZI,Cancel:YI,isAxiosError:KI,spread:XI,toFormData:QI,AxiosHeaders:JI,HttpStatusCode:qI,formToJSON:e4,getAdapter:t4,mergeConfig:n4}=He;function ee(e,t,n){function r(g,s){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:s,constr:f,traits:new Set},enumerable:!1}),g._zod.traits.has(e))return;g._zod.traits.add(e),t(g,s);const p=f.prototype,o=Object.keys(p);for(let l=0;l<o.length;l++){const u=o[l];u in g||(g[u]=p[u].bind(g))}}const i=n?.Parent??Object;class h extends i{}Object.defineProperty(h,"name",{value:e});function f(g){var s;const p=n?.Parent?new h:this;r(p,g),(s=p._zod).deferred??(s.deferred=[]);for(const o of p._zod.deferred)o();return p}return Object.defineProperty(f,"init",{value:r}),Object.defineProperty(f,Symbol.hasInstance,{value:g=>n?.Parent&&g instanceof n.Parent?!0:g?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class dr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class zp extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Wp={};function Xn(e){return Wp}function z$(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Ta(e,t){return typeof t=="bigint"?t.toString():t}function Tl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ll(e){return e==null}function Rl(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function W$(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const s=r.match(/\d?e-(\d?)/);s?.[1]&&(i=Number.parseInt(s[1]))}const h=n>i?n:i,f=Number.parseInt(e.toFixed(h).replace(".","")),g=Number.parseInt(t.toFixed(h).replace(".",""));return f%g/10**h}const Du=Symbol("evaluating");function Be(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Du)return r===void 0&&(r=Du,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function qn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function er(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Fu(e){return JSON.stringify(e)}function B$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const j$=Tl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ii(e){if(vo(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(vo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function jp(e){return ii(e)?{...e}:Array.isArray(e)?[...e]:e}const H$=new Set(["string","number","symbol"]);function Sr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function U$(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const V$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function G$(e,t){const n=e._zod.def,r=er(e._zod.def,{get shape(){const i={};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(i[h]=n.shape[h])}return qn(this,"shape",i),i},checks:[]});return Rn(e,r)}function Z$(e,t){const n=e._zod.def,r=er(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete i[h]}return qn(this,"shape",i),i},checks:[]});return Rn(e,r)}function Y$(e,t){if(!ii(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=er(e._zod.def,{get shape(){const h={...e._zod.def.shape,...t};return qn(this,"shape",h),h},checks:[]});return Rn(e,i)}function K$(e,t){if(!ii(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return qn(this,"shape",r),r},checks:e._zod.def.checks};return Rn(e,n)}function X$(e,t){const n=er(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return qn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Rn(e,n)}function Q$(e,t,n){const r=er(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in i))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=e?new e({type:"optional",innerType:i[f]}):i[f])}else for(const f in i)h[f]=e?new e({type:"optional",innerType:i[f]}):i[f];return qn(this,"shape",h),h},checks:[]});return Rn(t,r)}function J$(e,t,n){const r=er(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in h))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=new e({type:"nonoptional",innerType:i[f]}))}else for(const f in i)h[f]=new e({type:"nonoptional",innerType:i[f]});return qn(this,"shape",h),h},checks:[]});return Rn(t,r)}function lr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Il(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Li(e){return typeof e=="string"?e:e?.message}function Qn(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Li(e.inst?._zod.def?.error?.(e))??Li(t?.error?.(e))??Li(n.customError?.(e))??Li(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function oi(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Hp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ta,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Up=ee("$ZodError",Hp),Qo=ee("$ZodError",Hp,{Parent:Error});function q$(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function eC(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const h of i.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(f=>r({issues:f}));else if(h.code==="invalid_key")r({issues:h.issues});else if(h.code==="invalid_element")r({issues:h.issues});else if(h.path.length===0)n._errors.push(t(h));else{let f=n,g=0;for(;g<h.path.length;){const s=h.path[g];g===h.path.length-1?(f[s]=f[s]||{_errors:[]},f[s]._errors.push(t(h))):f[s]=f[s]||{_errors:[]},f=f[s],g++}}};return r(e),n}const Jo=e=>(t,n,r,i)=>{const h=r?Object.assign(r,{async:!1}):{async:!1},f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise)throw new dr;if(f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Qn(s,h,Xn())));throw Bp(g,i?.callee),g}return f.value},Pu=Jo(Qo),qo=e=>async(t,n,r,i)=>{const h=r?Object.assign(r,{async:!0}):{async:!0};let f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise&&(f=await f),f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Qn(s,h,Xn())));throw Bp(g,i?.callee),g}return f.value},zu=qo(Qo),es=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},h=t._zod.run({value:n,issues:[]},i);if(h instanceof Promise)throw new dr;return h.issues.length?{success:!1,error:new(e??Up)(h.issues.map(f=>Qn(f,i,Xn())))}:{success:!0,data:h.value}},tC=es(Qo),ts=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let h=t._zod.run({value:n,issues:[]},i);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(f=>Qn(f,i,Xn())))}:{success:!0,data:h.value}},nC=ts(Qo),rC=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Jo(e)(t,n,i)},iC=e=>(t,n,r)=>Jo(e)(t,n,r),oC=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return qo(e)(t,n,i)},sC=e=>async(t,n,r)=>qo(e)(t,n,r),aC=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return es(e)(t,n,i)},lC=e=>(t,n,r)=>es(e)(t,n,r),cC=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ts(e)(t,n,i)},uC=e=>async(t,n,r)=>ts(e)(t,n,r),hC=/^[cC][^\s-]{8,}$/,fC=/^[0-9a-z]+$/,dC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,pC=/^[0-9a-vA-V]{20}$/,gC=/^[A-Za-z0-9]{27}$/,mC=/^[a-zA-Z0-9_-]{21}$/,vC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Wu=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,bC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function SC(){return new RegExp(wC,"u")}const _C=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$C=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,CC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,AC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Vp=/^[A-Za-z0-9_-]*$/,kC=/^\+(?:[0-9]){6,14}[0-9]$/,Gp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",EC=new RegExp(`^${Gp}$`);function Zp(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function MC(e){return new RegExp(`^${Zp(e)}$`)}function TC(e){const t=Zp({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Gp}T(?:${r})$`)}const LC=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},RC=/^-?\d+$/,IC=/^-?\d+(?:\.\d+)?/,OC=/^(?:true|false)$/i,NC=/^[^A-Z]*$/,DC=/^[^a-z]*$/,xt=ee("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Yp={number:"number",bigint:"bigint",object:"date"},Kp=ee("$ZodCheckLessThan",(e,t)=>{xt.init(e,t);const n=Yp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<h&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xp=ee("$ZodCheckGreaterThan",(e,t)=>{xt.init(e,t);const n=Yp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>h&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),FC=ee("$ZodCheckMultipleOf",(e,t)=>{xt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):W$(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),PC=ee("$ZodCheckNumberFormat",(e,t)=>{xt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,h]=V$[t.format];e._zod.onattach.push(f=>{const g=f._zod.bag;g.format=t.format,g.minimum=i,g.maximum=h,n&&(g.pattern=RC)}),e._zod.check=f=>{const g=f.value;if(n){if(!Number.isInteger(g)){f.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:g,inst:e});return}if(!Number.isSafeInteger(g)){g>0?f.issues.push({input:g,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):f.issues.push({input:g,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}g<i&&f.issues.push({origin:"number",input:g,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),g>h&&f.issues.push({origin:"number",input:g,code:"too_big",maximum:h,inst:e})}}),zC=ee("$ZodCheckMaxLength",(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ll(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const f=Ol(i);r.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),WC=ee("$ZodCheckMinLength",(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ll(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const f=Ol(i);r.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),BC=ee("$ZodCheckLengthEquals",(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ll(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,h=i.length;if(h===t.length)return;const f=Ol(i),g=h>t.length;r.issues.push({origin:f,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ns=ee("$ZodCheckStringFormat",(e,t)=>{var n,r;xt.init(e,t),e._zod.onattach.push(i=>{const h=i._zod.bag;h.format=t.format,t.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),jC=ee("$ZodCheckRegex",(e,t)=>{ns.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),HC=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=NC),ns.init(e,t)}),UC=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=DC),ns.init(e,t)}),VC=ee("$ZodCheckIncludes",(e,t)=>{xt.init(e,t);const n=Sr(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const h=i._zod.bag;h.patterns??(h.patterns=new Set),h.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),GC=ee("$ZodCheckStartsWith",(e,t)=>{xt.init(e,t);const n=new RegExp(`^${Sr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ZC=ee("$ZodCheckEndsWith",(e,t)=>{xt.init(e,t);const n=new RegExp(`.*${Sr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),YC=ee("$ZodCheckOverwrite",(e,t)=>{xt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class KC{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
563
+ `).filter(f=>f),i=Math.min(...r.map(f=>f.length-f.trimStart().length)),h=r.map(f=>f.slice(i)).map(f=>" ".repeat(this.indent*2)+f);for(const f of h)this.content.push(f)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(h=>` ${h}`)];return new t(...n,i.join(`
564
+ `))}}const XC={major:4,minor:1,patch:13},Ue=ee("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=XC;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const h of i._zod.onattach)h(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(f,g,s)=>{let p=lr(f),o;for(const l of g){if(l._zod.def.when){if(!l._zod.def.when(f))continue}else if(p)continue;const u=f.issues.length,c=l._zod.check(f);if(c instanceof Promise&&s?.async===!1)throw new dr;if(o||c instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await c,f.issues.length!==u&&(p||(p=lr(f,u)))});else{if(f.issues.length===u)continue;p||(p=lr(f,u))}}return o?o.then(()=>f):f},h=(f,g,s)=>{if(lr(f))return f.aborted=!0,f;const p=i(g,r,s);if(p instanceof Promise){if(s.async===!1)throw new dr;return p.then(o=>e._zod.parse(o,s))}return e._zod.parse(p,s)};e._zod.run=(f,g)=>{if(g.skipChecks)return e._zod.parse(f,g);if(g.direction==="backward"){const p=e._zod.parse({value:f.value,issues:[]},{...g,skipChecks:!0});return p instanceof Promise?p.then(o=>h(o,f,g)):h(p,f,g)}const s=e._zod.parse(f,g);if(s instanceof Promise){if(g.async===!1)throw new dr;return s.then(p=>i(p,r,g))}return i(s,r,g)}}e["~standard"]={validate:i=>{try{const h=tC(e,i);return h.success?{value:h.data}:{issues:h.error?.issues}}catch{return nC(e,i).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Nl=ee("$ZodString",(e,t)=>{Ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??LC(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ke=ee("$ZodStringFormat",(e,t)=>{ns.init(e,t),Nl.init(e,t)}),QC=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=yC),Ke.init(e,t)}),JC=ee("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Wu(r))}else t.pattern??(t.pattern=Wu());Ke.init(e,t)}),qC=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=bC),Ke.init(e,t)}),eA=ee("$ZodURL",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),tA=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=SC()),Ke.init(e,t)}),nA=ee("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=mC),Ke.init(e,t)}),rA=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hC),Ke.init(e,t)}),iA=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fC),Ke.init(e,t)}),oA=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dC),Ke.init(e,t)}),sA=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=pC),Ke.init(e,t)}),aA=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gC),Ke.init(e,t)}),lA=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=TC(t)),Ke.init(e,t)}),cA=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=EC),Ke.init(e,t)}),uA=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=MC(t)),Ke.init(e,t)}),hA=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=vC),Ke.init(e,t)}),fA=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_C),Ke.init(e,t),e._zod.bag.format="ipv4"}),dA=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=$C),Ke.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),pA=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=CC),Ke.init(e,t)}),gA=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=AC),Ke.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,h]=r;if(!h)throw new Error;const f=Number(h);if(`${f}`!==h)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Qp(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const mA=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=xC),Ke.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Qp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function vA(e){if(!Vp.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Qp(n)}const yA=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Vp),Ke.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{vA(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),bA=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=kC),Ke.init(e,t)});function wA(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const SA=ee("$ZodJWT",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{wA(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Jp=ee("$ZodNumber",(e,t)=>{Ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??IC,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const h=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...h?{received:h}:{}}),n}}),_A=ee("$ZodNumberFormat",(e,t)=>{PC.init(e,t),Jp.init(e,t)}),$A=ee("$ZodBoolean",(e,t)=>{Ue.init(e,t),e._zod.pattern=OC,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),CA=ee("$ZodAny",(e,t)=>{Ue.init(e,t),e._zod.parse=n=>n}),AA=ee("$ZodUnknown",(e,t)=>{Ue.init(e,t),e._zod.parse=n=>n}),xA=ee("$ZodNever",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Bu(e,t,n){e.issues.length&&t.issues.push(...Il(n,e.issues)),t.value[n]=e.value}const kA=ee("$ZodArray",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const h=[];for(let f=0;f<i.length;f++){const g=i[f],s=t.element._zod.run({value:g,issues:[]},r);s instanceof Promise?h.push(s.then(p=>Bu(p,n,f))):Bu(s,n,f)}return h.length?Promise.all(h).then(()=>n):n}});function yo(e,t,n,r){e.issues.length&&t.issues.push(...Il(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function qp(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=U$(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function eg(e,t,n,r,i,h){const f=[],g=i.keySet,s=i.catchall._zod,p=s.def.type;for(const o in t){if(g.has(o))continue;if(p==="never"){f.push(o);continue}const l=s.run({value:t[o],issues:[]},r);l instanceof Promise?e.push(l.then(u=>yo(u,n,o,t))):yo(l,n,o,t)}return f.length&&n.issues.push({code:"unrecognized_keys",keys:f,input:t,inst:h}),e.length?Promise.all(e).then(()=>n):n}const EA=ee("$ZodObject",(e,t)=>{if(Ue.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const g=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...g};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=Tl(()=>qp(t));Be(e._zod,"propValues",()=>{const g=t.shape,s={};for(const p in g){const o=g[p]._zod;if(o.values){s[p]??(s[p]=new Set);for(const l of o.values)s[p].add(l)}}return s});const i=vo,h=t.catchall;let f;e._zod.parse=(g,s)=>{f??(f=r.value);const p=g.value;if(!i(p))return g.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),g;g.value={};const o=[],l=f.shape;for(const u of f.keys){const a=l[u]._zod.run({value:p[u],issues:[]},s);a instanceof Promise?o.push(a.then(d=>yo(d,g,u,p))):yo(a,g,u,p)}return h?eg(o,p,g,s,r.value,e):o.length?Promise.all(o).then(()=>g):g}}),MA=ee("$ZodObjectJIT",(e,t)=>{EA.init(e,t);const n=e._zod.parse,r=Tl(()=>qp(t)),i=u=>{const c=new KC(["shape","payload","ctx"]),a=r.value,d=A=>{const C=Fu(A);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};c.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const A of a.keys)m[A]=`key_${v++}`;c.write("const newResult = {};");for(const A of a.keys){const C=m[A],_=Fu(A);c.write(`const ${C} = ${d(A)};`),c.write(`
565
+ if (${C}.issues.length) {
566
+ payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
567
+ ...iss,
568
+ path: iss.path ? [${_}, ...iss.path] : [${_}]
569
+ })));
570
+ }
571
+
572
+
573
+ if (${C}.value === undefined) {
574
+ if (${_} in input) {
575
+ newResult[${_}] = undefined;
576
+ }
577
+ } else {
578
+ newResult[${_}] = ${C}.value;
579
+ }
580
+
581
+ `)}c.write("payload.value = newResult;"),c.write("return payload;");const y=c.compile();return(A,C)=>y(u,A,C)};let h;const f=vo,g=!Wp.jitless,p=g&&j$.value,o=t.catchall;let l;e._zod.parse=(u,c)=>{l??(l=r.value);const a=u.value;return f(a)?g&&p&&c?.async===!1&&c.jitless!==!0?(h||(h=i(t.shape)),u=h(u,c),o?eg([],a,u,c,l,e):u):n(u,c):(u.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),u)}});function ju(e,t,n,r){for(const h of e)if(h.issues.length===0)return t.value=h.value,t;const i=e.filter(h=>!lr(h));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(h=>h.issues.map(f=>Qn(f,r,Xn())))}),t)}const TA=ee("$ZodUnion",(e,t)=>{Ue.init(e,t),Be(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Be(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Be(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Be(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(h=>h._zod.pattern);return new RegExp(`^(${i.map(h=>Rl(h.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,h)=>{if(n)return r(i,h);let f=!1;const g=[];for(const s of t.options){const p=s._zod.run({value:i.value,issues:[]},h);if(p instanceof Promise)g.push(p),f=!0;else{if(p.issues.length===0)return p;g.push(p)}}return f?Promise.all(g).then(s=>ju(s,i,e,h)):ju(g,i,e,h)}}),LA=ee("$ZodIntersection",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,h=t.left._zod.run({value:i,issues:[]},r),f=t.right._zod.run({value:i,issues:[]},r);return h instanceof Promise||f instanceof Promise?Promise.all([h,f]).then(([s,p])=>Hu(n,s,p)):Hu(n,h,f)}});function La(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ii(e)&&ii(t)){const n=Object.keys(t),r=Object.keys(e).filter(h=>n.indexOf(h)!==-1),i={...e,...t};for(const h of r){const f=La(e[h],t[h]);if(!f.valid)return{valid:!1,mergeErrorPath:[h,...f.mergeErrorPath]};i[h]=f.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],h=t[r],f=La(i,h);if(!f.valid)return{valid:!1,mergeErrorPath:[r,...f.mergeErrorPath]};n.push(f.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hu(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),lr(e))return e;const r=La(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const tg=ee("$ZodTuple",(e,t)=>{Ue.init(e,t);const n=t.items;e._zod.parse=(r,i)=>{const h=r.value;if(!Array.isArray(h))return r.issues.push({input:h,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const f=[],g=[...n].reverse().findIndex(o=>o._zod.optin!=="optional"),s=g===-1?0:n.length-g;if(!t.rest){const o=h.length>n.length,l=h.length<s-1;if(o||l)return r.issues.push({...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:h,inst:e,origin:"array"}),r}let p=-1;for(const o of n){if(p++,p>=h.length&&p>=s)continue;const l=o._zod.run({value:h[p],issues:[]},i);l instanceof Promise?f.push(l.then(u=>Ri(u,r,p))):Ri(l,r,p)}if(t.rest){const o=h.slice(n.length);for(const l of o){p++;const u=t.rest._zod.run({value:l,issues:[]},i);u instanceof Promise?f.push(u.then(c=>Ri(c,r,p))):Ri(u,r,p)}}return f.length?Promise.all(f).then(()=>r):r}});function Ri(e,t,n){e.issues.length&&t.issues.push(...Il(n,e.issues)),t.value[n]=e.value}const RA=ee("$ZodEnum",(e,t)=>{Ue.init(e,t);const n=z$(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>H$.has(typeof i)).map(i=>typeof i=="string"?Sr(i):i.toString()).join("|")})$`),e._zod.parse=(i,h)=>{const f=i.value;return r.has(f)||i.issues.push({code:"invalid_value",values:n,input:f,inst:e}),i}}),IA=ee("$ZodLiteral",(e,t)=>{if(Ue.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Sr(r):r?Sr(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const h=r.value;return n.has(h)||r.issues.push({code:"invalid_value",values:t.values,input:h,inst:e}),r}}),OA=ee("$ZodTransform",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new zp(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(f=>(n.value=f,n));if(i instanceof Promise)throw new dr;return n.value=i,n}});function Uu(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const NA=ee("$ZodOptional",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Be(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Rl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Uu(h,n.value)):Uu(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),DA=ee("$ZodNullable",(e,t)=>{Ue.init(e,t),Be(e._zod,"optin",()=>t.innerType._zod.optin),Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Rl(n.source)}|null)$`):void 0}),Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),FA=ee("$ZodDefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Vu(h,t)):Vu(i,t)}});function Vu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const PA=ee("$ZodPrefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),zA=ee("$ZodNonOptional",(e,t)=>{Ue.init(e,t),Be(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Gu(h,e)):Gu(i,e)}});function Gu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const WA=ee("$ZodCatch",(e,t)=>{Ue.init(e,t),Be(e._zod,"optin",()=>t.innerType._zod.optin),Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>(n.value=h.value,h.issues.length&&(n.value=t.catchValue({...n,error:{issues:h.issues.map(f=>Qn(f,r,Xn()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(h=>Qn(h,r,Xn()))},input:n.value}),n.issues=[]),n)}}),BA=ee("$ZodPipe",(e,t)=>{Ue.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const h=t.out._zod.run(n,r);return h instanceof Promise?h.then(f=>Ii(f,t.in,r)):Ii(h,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(h=>Ii(h,t.out,r)):Ii(i,t.out,r)}});function Ii(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const jA=ee("$ZodReadonly",(e,t)=>{Ue.init(e,t),Be(e._zod,"propValues",()=>t.innerType._zod.propValues),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"optin",()=>t.innerType?._zod?.optin),Be(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(Zu):Zu(i)}});function Zu(e){return e.value=Object.freeze(e.value),e}const HA=ee("$ZodFunction",(e,t)=>(Ue.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){const i=e._def.input?Pu(e._def.input,r):r,h=Reflect.apply(n,this,i);return e._def.output?Pu(e._def.output,h):h}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const i=e._def.input?await zu(e._def.input,r):r,h=await Reflect.apply(n,this,i);return e._def.output?await zu(e._def.output,h):h}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new tg({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),UA=ee("$ZodCustom",(e,t)=>{xt.init(e,t),Ue.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(h=>Yu(h,n,r,e));Yu(i,n,r,e)}});function Yu(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(oi(i))}}var Ku;class VA{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function GA(){return new VA}(Ku=globalThis).__zod_globalRegistry??(Ku.__zod_globalRegistry=GA());const Oi=globalThis.__zod_globalRegistry;function ZA(e,t){return new e({type:"string",...be(t)})}function YA(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function Xu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function KA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function XA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function QA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function JA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function qA(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function ex(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function tx(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function nx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function rx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function ix(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function ox(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function sx(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function ax(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function lx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function cx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function ux(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function hx(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function fx(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function dx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function px(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function gx(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function mx(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function vx(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function yx(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function bx(e,t){return new e({type:"number",checks:[],...be(t)})}function wx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function Sx(e,t){return new e({type:"boolean",...be(t)})}function _x(e){return new e({type:"any"})}function $x(e){return new e({type:"unknown"})}function Cx(e,t){return new e({type:"never",...be(t)})}function Qu(e,t){return new Kp({check:"less_than",...be(t),value:e,inclusive:!1})}function Ps(e,t){return new Kp({check:"less_than",...be(t),value:e,inclusive:!0})}function Ju(e,t){return new Xp({check:"greater_than",...be(t),value:e,inclusive:!1})}function zs(e,t){return new Xp({check:"greater_than",...be(t),value:e,inclusive:!0})}function qu(e,t){return new FC({check:"multiple_of",...be(t),value:e})}function ng(e,t){return new zC({check:"max_length",...be(t),maximum:e})}function bo(e,t){return new WC({check:"min_length",...be(t),minimum:e})}function rg(e,t){return new BC({check:"length_equals",...be(t),length:e})}function Ax(e,t){return new jC({check:"string_format",format:"regex",...be(t),pattern:e})}function xx(e){return new HC({check:"string_format",format:"lowercase",...be(e)})}function kx(e){return new UC({check:"string_format",format:"uppercase",...be(e)})}function Ex(e,t){return new VC({check:"string_format",format:"includes",...be(t),includes:e})}function Mx(e,t){return new GC({check:"string_format",format:"starts_with",...be(t),prefix:e})}function Tx(e,t){return new ZC({check:"string_format",format:"ends_with",...be(t),suffix:e})}function Tr(e){return new YC({check:"overwrite",tx:e})}function Lx(e){return Tr(t=>t.normalize(e))}function Rx(){return Tr(e=>e.trim())}function Ix(){return Tr(e=>e.toLowerCase())}function Ox(){return Tr(e=>e.toUpperCase())}function Nx(){return Tr(e=>B$(e))}function Dx(e,t,n){return new e({type:"array",element:t,...be(n)})}function Fx(e,t,n){return new e({type:"custom",check:"custom",fn:t,...be(n)})}function Px(e){const t=zx(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(oi(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(oi(i))}},e(n.value,n)));return t}function zx(e,t){const n=new xt({check:"custom",...be(t)});return n._zod.check=e,n}const Wx=ee("ZodISODateTime",(e,t)=>{lA.init(e,t),Je.init(e,t)});function Bx(e){return gx(Wx,e)}const jx=ee("ZodISODate",(e,t)=>{cA.init(e,t),Je.init(e,t)});function Hx(e){return mx(jx,e)}const Ux=ee("ZodISOTime",(e,t)=>{uA.init(e,t),Je.init(e,t)});function Vx(e){return vx(Ux,e)}const Gx=ee("ZodISODuration",(e,t)=>{hA.init(e,t),Je.init(e,t)});function Zx(e){return yx(Gx,e)}const Yx=(e,t)=>{Up.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>eC(e,n)},flatten:{value:n=>q$(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ta,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ta,2)}},isEmpty:{get(){return e.issues.length===0}}})},Pt=ee("ZodError",Yx,{Parent:Error}),Kx=Jo(Pt),Xx=qo(Pt),Qx=es(Pt),Jx=ts(Pt),qx=rC(Pt),e2=iC(Pt),t2=oC(Pt),n2=sC(Pt),r2=aC(Pt),i2=lC(Pt),o2=cC(Pt),s2=uC(Pt),Xe=ee("ZodType",(e,t)=>(Ue.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(er(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>Rn(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Kx(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Qx(e,n,r),e.parseAsync=async(n,r)=>Xx(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Jx(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>qx(e,n,r),e.decode=(n,r)=>e2(e,n,r),e.encodeAsync=async(n,r)=>t2(e,n,r),e.decodeAsync=async(n,r)=>n2(e,n,r),e.safeEncode=(n,r)=>r2(e,n,r),e.safeDecode=(n,r)=>i2(e,n,r),e.safeEncodeAsync=async(n,r)=>o2(e,n,r),e.safeDecodeAsync=async(n,r)=>s2(e,n,r),e.refine=(n,r)=>e.check(tk(n,r)),e.superRefine=n=>e.check(nk(n)),e.overwrite=n=>e.check(Tr(n)),e.optional=()=>nh(e),e.nullable=()=>rh(e),e.nullish=()=>nh(rh(e)),e.nonoptional=n=>Z2(e,n),e.array=()=>rt(e),e.or=n=>Dl([e,n]),e.and=n=>N2(e,n),e.transform=n=>ih(e,B2(n)),e.default=n=>U2(e,n),e.prefault=n=>G2(e,n),e.catch=n=>K2(e,n),e.pipe=n=>ih(e,n),e.readonly=()=>J2(e),e.describe=n=>{const r=e.clone();return Oi.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Oi.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Oi.get(e);const r=e.clone();return Oi.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ig=ee("_ZodString",(e,t)=>{Nl.init(e,t),Xe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Ax(...r)),e.includes=(...r)=>e.check(Ex(...r)),e.startsWith=(...r)=>e.check(Mx(...r)),e.endsWith=(...r)=>e.check(Tx(...r)),e.min=(...r)=>e.check(bo(...r)),e.max=(...r)=>e.check(ng(...r)),e.length=(...r)=>e.check(rg(...r)),e.nonempty=(...r)=>e.check(bo(1,...r)),e.lowercase=r=>e.check(xx(r)),e.uppercase=r=>e.check(kx(r)),e.trim=()=>e.check(Rx()),e.normalize=(...r)=>e.check(Lx(...r)),e.toLowerCase=()=>e.check(Ix()),e.toUpperCase=()=>e.check(Ox()),e.slugify=()=>e.check(Nx())}),a2=ee("ZodString",(e,t)=>{Nl.init(e,t),ig.init(e,t),e.email=n=>e.check(YA(l2,n)),e.url=n=>e.check(qA(c2,n)),e.jwt=n=>e.check(px(C2,n)),e.emoji=n=>e.check(ex(u2,n)),e.guid=n=>e.check(Xu(eh,n)),e.uuid=n=>e.check(KA(Ni,n)),e.uuidv4=n=>e.check(XA(Ni,n)),e.uuidv6=n=>e.check(QA(Ni,n)),e.uuidv7=n=>e.check(JA(Ni,n)),e.nanoid=n=>e.check(tx(h2,n)),e.guid=n=>e.check(Xu(eh,n)),e.cuid=n=>e.check(nx(f2,n)),e.cuid2=n=>e.check(rx(d2,n)),e.ulid=n=>e.check(ix(p2,n)),e.base64=n=>e.check(hx(S2,n)),e.base64url=n=>e.check(fx(_2,n)),e.xid=n=>e.check(ox(g2,n)),e.ksuid=n=>e.check(sx(m2,n)),e.ipv4=n=>e.check(ax(v2,n)),e.ipv6=n=>e.check(lx(y2,n)),e.cidrv4=n=>e.check(cx(b2,n)),e.cidrv6=n=>e.check(ux(w2,n)),e.e164=n=>e.check(dx($2,n)),e.datetime=n=>e.check(Bx(n)),e.date=n=>e.check(Hx(n)),e.time=n=>e.check(Vx(n)),e.duration=n=>e.check(Zx(n))});function $e(e){return ZA(a2,e)}const Je=ee("ZodStringFormat",(e,t)=>{Ke.init(e,t),ig.init(e,t)}),l2=ee("ZodEmail",(e,t)=>{qC.init(e,t),Je.init(e,t)}),eh=ee("ZodGUID",(e,t)=>{QC.init(e,t),Je.init(e,t)}),Ni=ee("ZodUUID",(e,t)=>{JC.init(e,t),Je.init(e,t)}),c2=ee("ZodURL",(e,t)=>{eA.init(e,t),Je.init(e,t)}),u2=ee("ZodEmoji",(e,t)=>{tA.init(e,t),Je.init(e,t)}),h2=ee("ZodNanoID",(e,t)=>{nA.init(e,t),Je.init(e,t)}),f2=ee("ZodCUID",(e,t)=>{rA.init(e,t),Je.init(e,t)}),d2=ee("ZodCUID2",(e,t)=>{iA.init(e,t),Je.init(e,t)}),p2=ee("ZodULID",(e,t)=>{oA.init(e,t),Je.init(e,t)}),g2=ee("ZodXID",(e,t)=>{sA.init(e,t),Je.init(e,t)}),m2=ee("ZodKSUID",(e,t)=>{aA.init(e,t),Je.init(e,t)}),v2=ee("ZodIPv4",(e,t)=>{fA.init(e,t),Je.init(e,t)}),y2=ee("ZodIPv6",(e,t)=>{dA.init(e,t),Je.init(e,t)}),b2=ee("ZodCIDRv4",(e,t)=>{pA.init(e,t),Je.init(e,t)}),w2=ee("ZodCIDRv6",(e,t)=>{gA.init(e,t),Je.init(e,t)}),S2=ee("ZodBase64",(e,t)=>{mA.init(e,t),Je.init(e,t)}),_2=ee("ZodBase64URL",(e,t)=>{yA.init(e,t),Je.init(e,t)}),$2=ee("ZodE164",(e,t)=>{bA.init(e,t),Je.init(e,t)}),C2=ee("ZodJWT",(e,t)=>{SA.init(e,t),Je.init(e,t)}),og=ee("ZodNumber",(e,t)=>{Jp.init(e,t),Xe.init(e,t),e.gt=(r,i)=>e.check(Ju(r,i)),e.gte=(r,i)=>e.check(zs(r,i)),e.min=(r,i)=>e.check(zs(r,i)),e.lt=(r,i)=>e.check(Qu(r,i)),e.lte=(r,i)=>e.check(Ps(r,i)),e.max=(r,i)=>e.check(Ps(r,i)),e.int=r=>e.check(th(r)),e.safe=r=>e.check(th(r)),e.positive=r=>e.check(Ju(0,r)),e.nonnegative=r=>e.check(zs(0,r)),e.negative=r=>e.check(Qu(0,r)),e.nonpositive=r=>e.check(Ps(0,r)),e.multipleOf=(r,i)=>e.check(qu(r,i)),e.step=(r,i)=>e.check(qu(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function At(e){return bx(og,e)}const A2=ee("ZodNumberFormat",(e,t)=>{_A.init(e,t),og.init(e,t)});function th(e){return wx(A2,e)}const x2=ee("ZodBoolean",(e,t)=>{$A.init(e,t),Xe.init(e,t)});function sg(e){return Sx(x2,e)}const k2=ee("ZodAny",(e,t)=>{CA.init(e,t),Xe.init(e,t)});function ag(){return _x(k2)}const E2=ee("ZodUnknown",(e,t)=>{AA.init(e,t),Xe.init(e,t)});function wo(){return $x(E2)}const M2=ee("ZodNever",(e,t)=>{xA.init(e,t),Xe.init(e,t)});function T2(e){return Cx(M2,e)}const L2=ee("ZodArray",(e,t)=>{kA.init(e,t),Xe.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(bo(n,r)),e.nonempty=n=>e.check(bo(1,n)),e.max=(n,r)=>e.check(ng(n,r)),e.length=(n,r)=>e.check(rg(n,r)),e.unwrap=()=>e.element});function rt(e,t){return Dx(L2,e,t)}const R2=ee("ZodObject",(e,t)=>{MA.init(e,t),Xe.init(e,t),Be(e,"shape",()=>t.shape),e.keyof=()=>P2(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:wo()}),e.loose=()=>e.clone({...e._zod.def,catchall:wo()}),e.strict=()=>e.clone({...e._zod.def,catchall:T2()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Y$(e,n),e.safeExtend=n=>K$(e,n),e.merge=n=>X$(e,n),e.pick=n=>G$(e,n),e.omit=n=>Z$(e,n),e.partial=(...n)=>Q$(lg,e,n[0]),e.required=(...n)=>J$(cg,e,n[0])});function Ve(e,t){const n={type:"object",shape:e??{},...be(t)};return new R2(n)}const I2=ee("ZodUnion",(e,t)=>{TA.init(e,t),Xe.init(e,t),e.options=t.options});function Dl(e,t){return new I2({type:"union",options:e,...be(t)})}const O2=ee("ZodIntersection",(e,t)=>{LA.init(e,t),Xe.init(e,t)});function N2(e,t){return new O2({type:"intersection",left:e,right:t})}const D2=ee("ZodTuple",(e,t)=>{tg.init(e,t),Xe.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function F2(e,t,n){const r=t instanceof Ue,i=r?n:t,h=r?t:null;return new D2({type:"tuple",items:e,rest:h,...be(i)})}const Ra=ee("ZodEnum",(e,t)=>{RA.init(e,t),Xe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const h={};for(const f of r)if(n.has(f))h[f]=t.entries[f];else throw new Error(`Key ${f} not found in enum`);return new Ra({...t,checks:[],...be(i),entries:h})},e.exclude=(r,i)=>{const h={...t.entries};for(const f of r)if(n.has(f))delete h[f];else throw new Error(`Key ${f} not found in enum`);return new Ra({...t,checks:[],...be(i),entries:h})}});function P2(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Ra({type:"enum",entries:n,...be(t)})}const z2=ee("ZodLiteral",(e,t)=>{IA.init(e,t),Xe.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Cn(e,t){return new z2({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const W2=ee("ZodTransform",(e,t)=>{OA.init(e,t),Xe.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new zp(e.constructor.name);n.addIssue=h=>{if(typeof h=="string")n.issues.push(oi(h,n.value,t));else{const f=h;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=n.value),f.inst??(f.inst=e),n.issues.push(oi(f))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(h=>(n.value=h,n)):(n.value=i,n)}});function B2(e){return new W2({type:"transform",transform:e})}const lg=ee("ZodOptional",(e,t)=>{NA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nh(e){return new lg({type:"optional",innerType:e})}const j2=ee("ZodNullable",(e,t)=>{DA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function rh(e){return new j2({type:"nullable",innerType:e})}const H2=ee("ZodDefault",(e,t)=>{FA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function U2(e,t){return new H2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():jp(t)}})}const V2=ee("ZodPrefault",(e,t)=>{PA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function G2(e,t){return new V2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():jp(t)}})}const cg=ee("ZodNonOptional",(e,t)=>{zA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Z2(e,t){return new cg({type:"nonoptional",innerType:e,...be(t)})}const Y2=ee("ZodCatch",(e,t)=>{WA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function K2(e,t){return new Y2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const X2=ee("ZodPipe",(e,t)=>{BA.init(e,t),Xe.init(e,t),e.in=t.in,e.out=t.out});function ih(e,t){return new X2({type:"pipe",in:e,out:t})}const Q2=ee("ZodReadonly",(e,t)=>{jA.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function J2(e){return new Q2({type:"readonly",innerType:e})}const q2=ee("ZodFunction",(e,t)=>{HA.init(e,t),Xe.init(e,t)});function oh(e){return new q2({type:"function",input:Array.isArray(e?.input)?F2(e?.input):e?.input??rt(wo()),output:e?.output??wo()})}const ek=ee("ZodCustom",(e,t)=>{UA.init(e,t),Xe.init(e,t)});function tk(e,t={}){return Fx(ek,e,t)}function nk(e){return Px(e)}const rs=Ve({total:At(),currentPage:At(),pageSize:At()}),rk=Ve({key:$e(),value:$e().nullish()}),ik=Ve({name:$e(),configured:sg(),items:rt(rk).nullish(),type:$e()}),ok=Ve({results:rt(ik)}),is=Ve({id:At(),name:$e()}),sk=rs.extend({results:rt(is)}),ak=Ve({resource:$e(),value:$e()}),sh=Ve({name:$e().nullish()}),lk=Ve({createdOn:$e().nullish(),updatedOn:$e().nullish(),expiresOn:$e().nullish(),registrar:sh.nullish(),contacts:rt(sh)}),ck=Ve({number:At()}),uk=Ve({country:$e(),countryCode:$e()}),hk=Ve({name:$e()}),fk=Ve({name:$e()}),dk=Ve({name:$e()}),pk=Ve({number:At()}),Fl=Ve({id:At(),data:$e(),dataType:$e(),source:$e(),query:$e().nullish(),metadata:ag().nullish(),createdAt:$e(),autonomousSystem:ck.nullish(),whoisRecord:lk.nullish(),geolocation:uk.nullish(),dnsRecords:rt(ak).nullish(),reverseDnsNames:rt(hk).nullish(),cpes:rt(fk).nullish(),ports:rt(pk).nullish(),vulnerabilities:rt(dk).nullish(),tags:rt(is)}),ug=Ve({id:At(),ruleId:$e(),createdAt:$e(),tags:rt(is),artifacts:rt(Fl)}),gk=rs.extend({results:rt(ug)});Ve({q:$e(),page:At().nullish(),limit:At().nullish()});Ve({countryCode:$e(),asn:$e().nullish(),loc:$e().nullish()});Ve({lat:At(),long:At()});Ve({name:$e(),code:$e(),lat:At(),long:At()});Dl([Cn("ip"),Cn("domain"),Cn("url"),Cn("hash"),Cn("mail")]);Ve({name:$e(),type:$e(),baseURL:$e(),favicon:oh({output:$e()}),href:oh({input:[$e()],output:$e()})});const Qi=Ve({id:$e(),title:$e(),description:$e(),yaml:$e(),createdAt:$e(),updatedAt:$e(),tags:rt(is)});Ve({yaml:$e()});Ve({yaml:$e()});Ve({analyzer:$e(),query:$e()});const mk=rs.extend({results:rt(Qi)}),vk=rs.extend({results:rt(Fl)}),hg=Ve({message:$e()});hg.extend({detail:ag().nullish()});const ah=hg.extend({queued:sg()});Dl([Cn("Alerts"),Cn("Rules"),Cn("Artifacts")]);const it=He.create(),vt={async getConfigs(){const e=await it.get("/api/configs");return ok.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await it.get("/api/alerts",{params:e});return gk.parse(t.data)},async getAlert(e){const t=await it.get(`/api/alerts/${e}`);return ug.parse(t.data)},async getTags(){const e=await it.get("/api/tags");return sk.parse(e.data)},async deleteAlert(e){await it.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await it.get(`/api/artifacts/${e}`);return Fl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await it.get("/api/artifacts",{params:e});return vk.parse(t.data)},async enrichArtifact(e){const t=await it.post(`/api/artifacts/${e}/enrich`);return ah.parse(t.data)},async deleteArtifact(e){await it.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await it.get("/api/rules",{params:e});return mk.parse(t.data)},async getRule(e){const t=await it.get(`/api/rules/${e}`);return Qi.parse(t.data)},async searchRule(e){const t=await it.post(`/api/rules/${e}/search`);return ah.parse(t.data)},async createRule(e){const t=await it.post("/api/rules/",e);return Qi.parse(t.data)},async updateRule(e){const t=await it.put("/api/rules/",e);return Qi.parse(t.data)},async deleteRule(e){await it.delete(`/api/rules/${e}`)},async deleteTag(e){await it.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await it.get(`/api/ip_addresses/${e}`)).data}};function os(){return mt(async(e,t)=>await vt.getAlerts(t))}function yk(){return mt(async(e,t)=>await vt.deleteAlert(t))}function bk(){return mt(async(e,t)=>await vt.deleteTag(t))}function wk(){return mt(async(e,t)=>await vt.getArtifact(t))}function fg(){return mt(async(e,t)=>await vt.deleteArtifact(t))}function Sk(){return mt(async(e,t)=>await vt.enrichArtifact(t))}function _k(){return mt(async()=>await vt.getConfigs())}function $k(){return mt(async(e,t)=>await vt.getIpInfo(t))}function dg(){return mt(async(e,t)=>await vt.getRules(t))}function pg(){return mt(async(e,t)=>await vt.getRule(t))}function Ck(){return mt(async(e,t)=>await vt.deleteRule(t))}function Ak(){return mt(async(e,t)=>await vt.searchRule(t))}function xk(){return mt(async(e,t)=>await vt.createRule(t))}function kk(){return mt(async(e,t)=>await vt.updateRule(t))}function Pl(){return mt(async(e,t)=>await vt.getArtifacts(t))}function Ek(){return mt(async(e,t)=>await vt.getAlert(t))}const Mk={class:"buttons is-pulled-right"},Tk=["href"],Lk={class:"icon is-small"},Rk={class:"icon is-small"},gg=ve({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/alerts/${n.alert.id}`),h=yk(),f=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await h.perform(n.alert.id),r("delete")}catch(s){He.isAxiosError(s)&&r("set-error",s)}};return(g,s)=>{const p=De("font-awesome-icon");return K(),re("span",Mk,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[s[0]||(s[0]=P("span",null,"JSON",-1)),P("span",Lk,[oe(p,{icon:"barcode"})])],8,Tk),P("button",{class:"button is-light is-small",onClick:f},[s[1]||(s[1]=P("span",null,"Delete",-1)),P("span",Rk,[oe(p,{icon:"times"})])])])}}});var si=Ik;function Ik(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const Ok={key:0,class:"control"},Nk=ve({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(!1),h=Ne(!1),f=fg(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await f.perform(n.artifact.id),i.value=!0,r("delete"))},s=()=>{h.value=!0},p=()=>{h.value=!1};return(o,l)=>{const u=De("router-link");return i.value?fe("",!0):(K(),re("div",Ok,[P("div",{class:"tags has-addons are-medium",onMouseover:s,onMouseleave:p},[oe(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ge(()=>[Ze(ge(se(si)(e.artifact.data,32)),1)]),_:1},8,["to"]),h.value?(K(),re("span",{key:0,class:"tag is-delete",onClick:g})):fe("",!0)],32)]))}}}),Dk={class:"field is-grouped is-grouped-multiline"},mg=ve({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(0),h=()=>{i.value+=1};return Fe(i,()=>{i.value>=n.artifacts.length&&r("delete")}),(f,g)=>(K(),re("div",Dk,[(K(!0),re(Me,null,It(e.artifacts,s=>(K(),me(Nk,{key:s.id,artifact:s,onDelete:h},null,8,["artifact"]))),128))]))}});var Fk={207:(e,t,n)=>{e.exports=n(452)},452:e=>{var t=(function(n){var r,i=Object.prototype,h=i.hasOwnProperty,f=typeof Symbol=="function"?Symbol:{},g=f.iterator||"@@iterator",s=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function o(E,I,O){return Object.defineProperty(E,I,{value:O,enumerable:!0,configurable:!0,writable:!0}),E[I]}try{o({},"")}catch{o=function(I,O,D){return I[O]=D}}function l(E,I,O,D){var F=I&&I.prototype instanceof y?I:y,H=Object.create(F.prototype),W=new S(D||[]);return H._invoke=(function(U,G,V){var B=c;return function(Z,X){if(B===d)throw new Error("Generator is already running");if(B===m){if(Z==="throw")throw X;return x()}for(V.method=Z,V.arg=X;;){var Q=V.delegate;if(Q){var ae=N(Q,V);if(ae){if(ae===v)continue;return ae}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(B===c)throw B=m,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);B=d;var z=u(U,G,V);if(z.type==="normal"){if(B=V.done?m:a,z.arg===v)continue;return{value:z.arg,done:V.done}}z.type==="throw"&&(B=m,V.method="throw",V.arg=z.arg)}}})(E,O,W),H}function u(E,I,O){try{return{type:"normal",arg:E.call(I,O)}}catch(D){return{type:"throw",arg:D}}}n.wrap=l;var c="suspendedStart",a="suspendedYield",d="executing",m="completed",v={};function y(){}function A(){}function C(){}var _={};o(_,g,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(w([])));k&&k!==i&&h.call(k,g)&&(_=k);var R=C.prototype=y.prototype=Object.create(_);function M(E){["next","throw","return"].forEach((function(I){o(E,I,(function(O){return this._invoke(I,O)}))}))}function L(E,I){function O(F,H,W,U){var G=u(E[F],E,H);if(G.type!=="throw"){var V=G.arg,B=V.value;return B&&typeof B=="object"&&h.call(B,"__await")?I.resolve(B.__await).then((function(Z){O("next",Z,W,U)}),(function(Z){O("throw",Z,W,U)})):I.resolve(B).then((function(Z){V.value=Z,W(V)}),(function(Z){return O("throw",Z,W,U)}))}U(G.arg)}var D;this._invoke=function(F,H){function W(){return new I((function(U,G){O(F,H,U,G)}))}return D=D?D.then(W,W):W()}}function N(E,I){var O=E.iterator[I.method];if(O===r){if(I.delegate=null,I.method==="throw"){if(E.iterator.return&&(I.method="return",I.arg=r,N(E,I),I.method==="throw"))return v;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var D=u(O,E.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,v;var F=D.arg;return F?F.done?(I[E.resultName]=F.value,I.next=E.nextLoc,I.method!=="return"&&(I.method="next",I.arg=r),I.delegate=null,v):F:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function T(E){var I={tryLoc:E[0]};1 in E&&(I.catchLoc=E[1]),2 in E&&(I.finallyLoc=E[2],I.afterLoc=E[3]),this.tryEntries.push(I)}function $(E){var I=E.completion||{};I.type="normal",delete I.arg,E.completion=I}function S(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(T,this),this.reset(!0)}function w(E){if(E){var I=E[g];if(I)return I.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var O=-1,D=function F(){for(;++O<E.length;)if(h.call(E,O))return F.value=E[O],F.done=!1,F;return F.value=r,F.done=!0,F};return D.next=D}}return{next:x}}function x(){return{value:r,done:!0}}return A.prototype=C,o(R,"constructor",C),o(C,"constructor",A),A.displayName=o(C,p,"GeneratorFunction"),n.isGeneratorFunction=function(E){var I=typeof E=="function"&&E.constructor;return!!I&&(I===A||(I.displayName||I.name)==="GeneratorFunction")},n.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,C):(E.__proto__=C,o(E,p,"GeneratorFunction")),E.prototype=Object.create(R),E},n.awrap=function(E){return{__await:E}},M(L.prototype),o(L.prototype,s,(function(){return this})),n.AsyncIterator=L,n.async=function(E,I,O,D,F){F===void 0&&(F=Promise);var H=new L(l(E,I,O,D),F);return n.isGeneratorFunction(I)?H:H.next().then((function(W){return W.done?W.value:H.next()}))},M(R),o(R,p,"Generator"),o(R,g,(function(){return this})),o(R,"toString",(function(){return"[object Generator]"})),n.keys=function(E){var I=[];for(var O in E)I.push(O);return I.reverse(),function D(){for(;I.length;){var F=I.pop();if(F in E)return D.value=F,D.done=!1,D}return D.done=!0,D}},n.values=w,S.prototype={constructor:S,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach($),!E)for(var I in this)I.charAt(0)==="t"&&h.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=r)},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var I=this;function O(G,V){return H.type="throw",H.arg=E,I.next=G,V&&(I.method="next",I.arg=r),!!V}for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D],H=F.completion;if(F.tryLoc==="root")return O("end");if(F.tryLoc<=this.prev){var W=h.call(F,"catchLoc"),U=h.call(F,"finallyLoc");if(W&&U){if(this.prev<F.catchLoc)return O(F.catchLoc,!0);if(this.prev<F.finallyLoc)return O(F.finallyLoc)}else if(W){if(this.prev<F.catchLoc)return O(F.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return O(F.finallyLoc)}}}},abrupt:function(E,I){for(var O=this.tryEntries.length-1;O>=0;--O){var D=this.tryEntries[O];if(D.tryLoc<=this.prev&&h.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var F=D;break}}F&&(E==="break"||E==="continue")&&F.tryLoc<=I&&I<=F.finallyLoc&&(F=null);var H=F?F.completion:{};return H.type=E,H.arg=I,F?(this.method="next",this.next=F.finallyLoc,v):this.complete(H)},complete:function(E,I){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&I&&(this.next=I),v},finish:function(E){for(var I=this.tryEntries.length-1;I>=0;--I){var O=this.tryEntries[I];if(O.finallyLoc===E)return this.complete(O.completion,O.afterLoc),$(O),v}},catch:function(E){for(var I=this.tryEntries.length-1;I>=0;--I){var O=this.tryEntries[I];if(O.tryLoc===E){var D=O.completion;if(D.type==="throw"){var F=D.arg;$(O)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(E,I,O){return this.delegate={iterator:w(E),resultName:I,nextLoc:O},this.method==="next"&&(this.arg=r),v}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},lh={};function zt(e){var t=lh[e];if(t!==void 0)return t.exports;var n=lh[e]={exports:{}};return Fk[e](n,n.exports,zt),n.exports}zt.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return zt.d(t,{a:t}),t},zt.d=(e,t)=>{for(var n in t)zt.o(t,n)&&!zt.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},zt.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var vg={};function Ia(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 yg(e,t){if(e){if(typeof e=="string")return Ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ia(e,t):void 0}}function So(e){return(function(t){if(Array.isArray(t))return Ia(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||yg(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
582
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zt.d(vg,{A:()=>Hk});const pe=(ch={Fragment:()=>Me,computed:()=>ye,createTextVNode:()=>Ze,createVNode:()=>oe,defineComponent:()=>ve,nextTick:()=>Ar,reactive:()=>Cr,ref:()=>Ne,watch:()=>Fe,watchEffect:()=>hl},Ws={},zt.d(Ws,ch),Ws),Pk=(0,pe.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,pe.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),zk=(0,pe.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,pe.computed)((function(){return e.isMultiple?"checkbox":"radio"})),model:(0,pe.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,pe.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,pe.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,pe.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Wk=(0,pe.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,pe.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,pe.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,pe.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var ch,Ws;function Oa(e){return Oa=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},Oa(e)}function bg(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(arguments.length>3?arguments[3]:void 0)||{},i=r.key,h=r.index,f=r.type,g=f===void 0?"content":f,s=r.showComma,p=s!==void 0&&s,o=r.length,l=o===void 0?1:o,u=bg(e);if(u==="array"){var c=uh(e.map((function(m,v,y){return Fn(m,"".concat(t,"[").concat(v,"]"),n+1,{index:v,showComma:v!==y.length-1,length:l,type:g})})));return[Fn("[",t,n,{showComma:!1,key:i,length:e.length,type:"arrayStart"})[0]].concat(c,Fn("]",t,n,{showComma:p,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var a=Object.keys(e),d=uh(a.map((function(m,v,y){return Fn(e[m],/^[a-zA-Z_]\w*$/.test(m)?"".concat(t,".").concat(m):"".concat(t,'["').concat(m,'"]'),n+1,{key:m,showComma:v!==y.length-1,length:l,type:g})})));return[Fn("{",t,n,{showComma:!1,key:i,index:h,length:a.length,type:"objectStart"})[0]].concat(d,Fn("}",t,n,{showComma:p,length:a.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:i,index:h,path:t,showComma:p,length:l,type:g}]}function uh(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=So(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,So(r)):n.push(r)}return n}function Na(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Oa(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map((function(h){return Na(h,t)}));return t.set(e,n),n}var r={};for(var i in e)r[i]=Na(e[i],t);return t.set(e,r),r}function hh(e,t,n,r,i,h,f){try{var g=e[h](f),s=g.value}catch(p){return void n(p)}g.done?t(s):Promise.resolve(s).then(r,i)}var Bk=zt(207),fh=zt.n(Bk);function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(n),!0).forEach((function(r){ai(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var wg={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const jk=(0,pe.defineComponent)({name:"TreeNode",props:ph(ph({},wg),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,pe.computed)((function(){return bg(e.node.content)})),i=(0,pe.computed)((function(){return"vjs-value vjs-value-".concat(r.value)})),h=(0,pe.computed)((function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key})),f=(0,pe.computed)((function(){return e.selectableType==="multiple"})),g=(0,pe.computed)((function(){return e.selectableType==="single"})),s=(0,pe.computed)((function(){return e.nodeSelectable(e.node)&&(f.value||g.value)})),p=(0,pe.reactive)({editing:!1}),o=function(b){var k,R,M=(R=(k=b.target)===null||k===void 0?void 0:k.value)==="null"?null:R==="undefined"?void 0:R==="true"||R!=="false"&&(R[0]+R[R.length-1]==='""'||R[0]+R[R.length-1]==="''"?R.slice(1,-1):typeof Number(R)=="number"&&!isNaN(Number(R))||R==="NaN"?Number(R):R);n("valueChange",M,e.node.path)},l=(0,pe.computed)((function(){var b,k=(b=e.node)===null||b===void 0?void 0:b.content;return k===null?k="null":k===void 0&&(k="undefined"),r.value==="string"?'"'.concat(k,'"'):k+""})),u=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:l.value}):l.value},c=function(){n("bracketsClick",!e.collapsed,e.node)},a=function(){n("iconClick",!e.collapsed,e.node)},d=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),s.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(){n("nodeMouseover",e.node)},y=function(b){if(e.editable&&!p.editing){p.editing=!0;var k=function R(M){var L;M.target!==b.target&&((L=M.target)===null||L===void 0?void 0:L.parentElement)!==b.target&&(p.editing=!1,document.removeEventListener("click",R))};document.removeEventListener("click",k),document.addEventListener("click",k)}},A=(function(){var b=(0,pe.ref)(!1),k=(function(){var R,M=(R=fh().mark((function L(N){return fh().wrap((function(T){for(;;)switch(T.prev=T.next){case 0:return T.prev=0,T.next=3,navigator.clipboard.writeText(N);case 3:b.value=!0,setTimeout((function(){b.value=!1}),300),T.next=10;break;case 7:T.prev=7,T.t0=T.catch(0),console.error("[vue-json-pretty] Copy failed: ",T.t0);case 10:case"end":return T.stop()}}),L,null,[[0,7]])})),function(){var L=this,N=arguments;return new Promise((function(T,$){var S=R.apply(L,N);function w(E){hh(S,T,$,w,x,"next",E)}function x(E){hh(S,T,$,w,x,"throw",E)}w(void 0)}))});return function(L){return M.apply(this,arguments)}})();return{copy:k}})().copy,C=function(){var b=e.node,k=b.key,R=b.path,M=e.rootPath,L=new Function("data","return data".concat(R.slice(M.length)))(e.data),N=JSON.stringify(k?ai({},k,L):L,null,2);A(N)},_=function(){var b=e.renderNodeActions;if(!b)return null;var k={copy:C};return typeof b=="function"?b({node:e.node,defaultActions:k}):(0,pe.createVNode)("span",{onClick:C,class:"vjs-tree-node-actions-item"},[(0,pe.createTextVNode)("copy")])};return function(){var b,k=e.node;return(0,pe.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,onMouseover:v,style:e.style},[e.showLineNumber&&(0,pe.createVNode)("span",{class:"vjs-node-index"},[k.id+1]),e.showSelectController&&s.value&&k.type!=="objectEnd"&&k.type!=="arrayEnd"&&(0,pe.createVNode)(zk,{isMultiple:f.value,checked:e.checked,onChange:d},null),(0,pe.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(k.level)).map((function(R,M){return(0,pe.createVNode)("div",{key:M,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},[Array.from(Array(e.indent)).map((function(){return(0,pe.createVNode)(pe.Fragment,null,[(0,pe.createTextVNode)(" ")])}))])})),e.showIcon&&(0,pe.createVNode)(Wk,{nodeType:k.type,onClick:a},null)]),k.key&&(0,pe.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:h.value||""}):h.value),(0,pe.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,pe.createVNode)("span",null,[k.type!=="content"&&k.content?(0,pe.createVNode)(Pk,{data:k.content.toString(),onClick:c},null):(0,pe.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&p.editing?(0,pe.createVNode)("input",{value:l.value,onChange:o,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):u()]),k.showComma&&(0,pe.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,pe.createVNode)("span",{class:"vjs-comment"},[(0,pe.createTextVNode)(" // "),k.length,(0,pe.createTextVNode)(" items ")])]),e.renderNodeActions&&(0,pe.createVNode)("span",{class:"vjs-tree-node-actions"},[_()])])}}});function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(r){ai(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}const Hk=(0,pe.defineComponent)({name:"Tree",props:Et(Et({},wg),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},dynamicHeight:{type:Boolean,default:!0},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,pe.ref)(),h=(0,pe.computed)((function(){return Fn(e.data,e.rootPath)})),f=function($,S){return h.value.reduce((function(w,x){var E,I=x.level>=$||x.length>=S,O=(E=e.pathCollapsible)===null||E===void 0?void 0:E.call(e,x);return x.type!=="objectStart"&&x.type!=="arrayStart"||!I&&!O?w:Et(Et({},w),{},ai({},x.path,1))}),{})},g=(0,pe.reactive)({translateY:0,visibleData:null,hiddenPaths:f(e.deep,e.collapsedNodeLength),startIndex:0,endIndex:0}),s=[],p=[],o=0,l={},u=function($){s=Array($).fill(0).map((function(){return e.itemHeight||20})),(p=new Array($+1))[0]=0;for(var S=0;S<$;S++)p[S+1]=p[S]+s[S];o=p[$]||0},c=function($){var S=s.length;$<0&&($=0),$>S&&($=S);for(var w=$;w<S;w++)p[w+1]=p[w]+s[w];o=p[S]||0},a=function($,S){for(var w=0,x=$.length-1;w<x;){var E=w+x>>>1;$[E]<S?w=E+1:x=E}return w},d=(0,pe.computed)((function(){for(var $=null,S=[],w=h.value.length,x=0;x<w;x++){var E=Et(Et({},h.value[x]),{},{id:x}),I=g.hiddenPaths[E.path];if($&&$.path===E.path){var O=$.type==="objectStart",D=Et(Et(Et({},E),$),{},{showComma:E.showComma,content:O?"{...}":"[...]",type:O?"objectCollapsed":"arrayCollapsed"});$=null,S.push(D)}else{if(I&&!$){$=E;continue}if($)continue;S.push(E)}}return S})),m=(0,pe.computed)((function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]})),v=(0,pe.computed)((function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."})),y=(0,pe.computed)((function(){return e.dynamicHeight?o||0:d.value.length*e.itemHeight})),A=function $(){var S=d.value;if(S)if(e.virtual){var w,x=((w=i.value)===null||w===void 0?void 0:w.scrollTop)||0;if(e.dynamicHeight){s.length!==S.length&&u(S.length);var E=(function(G){var V=a(p,G+1e-4);return Math.max(0,Math.min(V-1,s.length-1))})(x),I=(function(G,V){var B=a(p,G+V);return Math.max(0,Math.min(B+1,s.length))})(x,e.height),O=Math.max(0,E-5),D=Math.min(S.length,I+5);g.startIndex=O,g.endIndex=D,g.translateY=p[O]||0,g.visibleData=S.slice(O,D),(0,pe.nextTick)().then((function(){for(var G=!1,V=g.startIndex;V<g.endIndex;V++){var B=l[V];if(B){var Z=B.offsetHeight;Z&&s[V]!==Z&&(s[V]=Z,p[V+1]=p[V]+s[V],c(V+1),G=!0)}}G&&$()}))}else{var F=e.height/e.itemHeight,H=Math.floor(x/e.itemHeight),W=H<0?0:H+F>S.length?S.length-F:H;W<0&&(W=0);var U=W+F;g.translateY=W*e.itemHeight,g.startIndex=W,g.endIndex=U,g.visibleData=S.slice(W,U)}}else g.translateY=0,g.startIndex=0,g.endIndex=S.length,g.visibleData=S},C=null,_=function(){C&&cancelAnimationFrame(C),C=requestAnimationFrame((function(){A()}))},b=function($){var S,w,x=$.path,E=e.selectableType;if(E==="multiple"){var I=m.value.findIndex((function(H){return H===x})),O=So(m.value);I!==-1?O.splice(I,1):O.push(x),n("update:selectedValue",O),n("selectedChange",O,So(m.value))}else if(E==="single"&&m.value[0]!==x){var D=(S=m.value,w=1,(function(H){if(Array.isArray(H))return H})(S)||(function(H,W){var U=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(U!=null){var G,V,B=[],Z=!0,X=!1;try{for(U=U.call(H);!(Z=(G=U.next()).done)&&(B.push(G.value),!W||B.length!==W);Z=!0);}catch(Q){X=!0,V=Q}finally{try{Z||U.return==null||U.return()}finally{if(X)throw V}}return B}})(S,w)||yg(S,w)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
583
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})())[0],F=x;n("update:selectedValue",F),n("selectedChange",F,D)}},k=function($){n("nodeClick",$)},R=function($){n("nodeMouseover",$)},M=function($,S){if($)g.hiddenPaths=Et(Et({},g.hiddenPaths),{},ai({},S,1));else{var w=Et({},g.hiddenPaths);delete w[S],g.hiddenPaths=w}},L=function($,S){e.collapsedOnClickBrackets&&M($,S.path),n("bracketsClick",$,S)},N=function($,S){M($,S.path),n("iconClick",$,S)},T=function($,S){var w=Na(e.data),x=e.rootPath;new Function("data","val","data".concat(S.slice(x.length),"=val"))(w,$),n("update:data",w)};return(0,pe.watchEffect)((function(){v.value&&(function($){throw new Error("[VueJSONPretty] ".concat($))})(v.value)})),(0,pe.watchEffect)((function(){d.value&&(e.virtual&&e.dynamicHeight&&s.length!==d.value.length&&u(d.value.length),A())})),(0,pe.watch)((function(){return[e.dynamicHeight,e.itemHeight,h.value.length]}),(function(){e.virtual&&e.dynamicHeight&&(u(d.value.length),(0,pe.nextTick)(A))})),(0,pe.watch)((function(){return e.deep}),(function($){$&&(g.hiddenPaths=f($,e.collapsedNodeLength))})),(0,pe.watch)((function(){return e.collapsedNodeLength}),(function($){$&&(g.hiddenPaths=f(e.deep,$))})),function(){var $,S,w,x,E,I=($=e.renderNodeKey)!==null&&$!==void 0?$:r.renderNodeKey,O=(S=e.renderNodeValue)!==null&&S!==void 0?S:r.renderNodeValue,D=(w=(x=e.renderNodeActions)!==null&&x!==void 0?x:r.renderNodeActions)!==null&&w!==void 0&&w,F=(E=g.visibleData)===null||E===void 0?void 0:E.map((function(H,W){var U=g.startIndex+W;return(0,pe.createVNode)("div",{key:H.id,ref:function(G){return(function(V,B){B?l[V]=B:delete l[V]})(U,G||null)}},[(0,pe.createVNode)(jk,{data:e.data,rootPath:e.rootPath,indent:e.indent,node:H,collapsed:!!g.hiddenPaths[H.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:m.value.includes(H.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:I,renderNodeValue:O,renderNodeActions:D,onNodeClick:k,onNodeMouseover:R,onBracketsClick:L,onIconClick:N,onSelectedChange:b,onValueChange:T,class:e.dynamicHeight?"dynamic-height":void 0,style:e.dynamicHeight?{}:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)])}));return(0,pe.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?_:void 0,style:e.showLineNumber?Et({paddingLeft:"".concat(12*Number(h.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,pe.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,pe.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(y.value,"px")}},[(0,pe.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[F])])]):F])}}});var Sg=vg.A;const Uk={class:"notification is-danger is-light"},Vk={key:1},Gk={key:2},Zk={key:0,class:"message"},Yk={class:"message-body"},lt=ve({__name:"ErrorMessage",props:{error:{type:P$,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>{if(n.error.response)return n.error.response?.data}),h=()=>{r("dispose")};return(f,g)=>(K(),re(Me,null,[P("div",Uk,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:h})):fe("",!0),i.value?(K(),re("p",Vk,ge(i.value.message),1)):(K(),re("p",Gk,ge(e.error),1))]),i.value?.detail?(K(),re("article",Zk,[P("div",Yk,[oe(se(Sg),{data:i.value.detail},null,8,["data"])])])):fe("",!0)],64))}}),Kk={key:0,class:"control"},Xk=ve({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=Ne(!1),r=Ne(!1),i=bk(),h=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await i.perform(t.tag.id),n.value=!0)},f=()=>{r.value=!0},g=()=>{r.value=!1},s=p=>`tag:"${p}"`;return(p,o)=>{const l=De("router-link");return n.value?fe("",!0):(K(),re("div",Kk,[P("div",{class:"tags has-addons are-medium",onMouseover:f,onMouseleave:g},[oe(l,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:s(e.tag.name)}}},{default:Ge(()=>[Ze(ge(e.tag.name),1)]),_:1},8,["to"]),r.value&&e.deletable?(K(),re("a",{key:0,class:"tag is-delete",onClick:h})):fe("",!0)],32)]))}}}),Qk={class:"field is-grouped is-grouped-multiline"},_i=ve({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",Qk,[(K(!0),re(Me,null,It(e.tags,r=>(K(),me(Xk,{tag:r,key:r.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),Jk={key:0,class:"box"},qk={class:"table is-fullwidth is-completely-borderless"},eE={key:0},tE={class:"help"},nE=ve({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(!1),i=Ne(),h=p=>{i.value=p},f=()=>{i.value=void 0},g=()=>{n("delete")},s=()=>{r.value=!0};return(p,o)=>{const l=De("router-link");return r.value?fe("",!0):(K(),re("div",Jk,[i.value?(K(),me(lt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),P("p",null,[oe(gg,{alert:e.alert,onDelete:g,onSetError:h},null,8,["alert"])]),oe(l,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Ge(()=>[Ze(ge(e.alert.id),1)]),_:1},8,["to"]),P("table",qk,[P("tr",null,[o[0]||(o[0]=P("th",null,"Rule",-1)),P("td",null,[oe(l,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ge(()=>[Ze(ge(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[o[1]||(o[1]=P("th",null,"Artifacts",-1)),P("td",null,[oe(mg,{artifacts:e.alert.artifacts,onDelete:s},null,8,["artifacts"])])]),e.alert.tags.length>0?(K(),re("tr",eE,[o[2]||(o[2]=P("th",null,"Tags",-1)),P("td",null,[oe(_i,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",tE,"Created at: "+ge(e.alert.createdAt),1)]))}}}),rE={key:0,class:"message is-warning"},iE={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},oE={key:0,class:"pagination-list"},sE={key:1,class:"pagination-list"},aE={key:0},lE={key:1},cE={key:2},uE={key:3},hE={key:4},fE={key:5},zl=ve({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,r=t,i=u=>u===n.currentPage+1||u===n.currentPage-1,h=ye(()=>Math.ceil(n.total/n.pageSize)),f=ye(()=>h.value===1),g=ye(()=>n.currentPage>1),s=ye(()=>n.currentPage-1===1),p=ye(()=>n.currentPage<h.value),o=ye(()=>n.currentPage+1===h.value),l=u=>{r("update-page",u)};return(u,c)=>e.total===0?(K(),re("article",rE,[...c[6]||(c[6]=[P("div",{class:"message-body"},"There is no result to show.",-1)])])):(K(),re("nav",iE,[f.value?(K(),re("ul",oE,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:c[0]||(c[0]=a=>l(1))},"1")])])):(K(),re("ul",sE,[g.value&&!s.value?(K(),re("li",aE,[P("a",{class:"pagination-link mt-2",onClick:c[1]||(c[1]=a=>l(1))}," 1")])):fe("",!0),g.value&&!s.value&&!i(2)?(K(),re("li",lE,[...c[7]||(c[7]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),g.value?(K(),re("li",cE,[P("a",{class:"pagination-link mt-2",onClick:c[2]||(c[2]=a=>l(e.currentPage-1))},ge(e.currentPage-1),1)])):fe("",!0),P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:c[3]||(c[3]=a=>l(e.currentPage))},ge(e.currentPage),1)]),p.value?(K(),re("li",uE,[P("a",{class:"pagination-link mt-2",onClick:c[4]||(c[4]=a=>l(e.currentPage+1))},ge(e.currentPage+1),1)])):fe("",!0),p.value&&!o.value&&!i(h.value-1)?(K(),re("li",hE,[...c[8]||(c[8]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),p.value&&!o.value?(K(),re("li",fE,[P("a",{class:"pagination-link mt-2",onClick:c[5]||(c[5]=a=>l(h.value))},ge(h.value),1)])):fe("",!0)]))]))}}),dE={key:0},pE={class:"help"},gE={key:1},_g=ve({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.alerts.results.length>0);return(g,s)=>f.value?(K(),re("div",dE,[(K(!0),re(Me,null,It(e.alerts.results,p=>(K(),me(nE,{alert:p,key:p.id,onDelete:h},null,8,["alert"]))),128)),oe(zl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:i},null,8,["total","currentPage","pageSize"]),P("p",pE,"("+ge(e.alerts.total)+" results in total, "+ge(e.alerts.results.length)+" shown)",1)])):(K(),re("div",gE,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),mE=ve({name:"LoadingItem"}),vE={class:"has-text-centered"},yE={class:"fa-3x"};function bE(e,t,n,r,i,h){const f=De("font-awesome-icon");return K(),re("div",vE,[P("div",yE,[oe(f,{icon:"spinner",spin:""})])])}const yn=mi(mE,[["render",bE]]),wE={class:"block"},SE={class:"field has-addons"},_E={class:"control is-expanded"},$E={class:"control"},CE={class:"icon is-small"},AE={class:"control"},xE={class:"icon is-small"},kE={key:0,class:"content"},EE={key:0,class:"block"},ME=ve({__name:"AlertsWrapper",setup(e){const t=br("page","1"),n=br("q",""),r=Ne(!1),i=os(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=gi(r);return et(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,l)=>{const u=De("font-awesome-icon"),c=De("router-link");return K(),re(Me,null,[P("div",wE,[P("div",SE,[P("p",_E,[cl(P("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=a=>Qe(n)?n.value=a:null)},null,512),[[vl,se(n)]])]),P("p",$E,[P("a",{class:"button is-primary",onClick:g},[P("span",CE,[oe(u,{icon:"search"})]),l[2]||(l[2]=P("span",null,"Search",-1))])]),P("p",AE,[P("a",{class:"button is-info",onClick:l[1]||(l[1]=a=>se(p)())},[P("span",xE,[oe(u,{icon:"question"})]),l[3]||(l[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",kE,[l[6]||(l[6]=gl('<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)),P("ul",null,[P("li",null,[oe(c,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Ge(()=>[...l[4]||(l[4]=[Ze("rule.id:foo AND artifact.data:example.com",-1)])]),_:1})]),P("li",null,[oe(c,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Ge(()=>[...l[5]||(l[5]=[Ze("tag:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),se(i).performCount>0?(K(),re("div",EE,[se(i).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(i).isError?(K(),me(lt,{key:1,error:se(i).last?.error},null,8,["error"])):fe("",!0),se(i).last?.value?(K(),me(_g,{key:2,alerts:se(i).last.value,page:se(t),onUpdatePage:f,onRefresh:se(s)},null,8,["alerts","page","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),TE={class:"columns"},LE={class:"column is-one-third"},RE={class:"card"},IE={class:"card-content"},OE={class:"level is-mobile"},NE={class:"level-item"},DE={class:"title"},FE={class:"level-item"},PE={class:"icon"},zE={class:"column is-one-third"},WE={class:"card"},BE={class:"card-content"},jE={class:"level is-mobile"},HE={class:"level-item"},UE={class:"title"},VE={class:"level-item"},GE={class:"icon"},ZE={class:"column is-one-third"},YE={class:"card"},KE={class:"card-content"},XE={class:"level is-mobile"},QE={class:"level-item"},JE={class:"title"},qE={class:"level-item"},eM={class:"icon"},tM=ve({__name:"OverviewCards",setup(e){const t=os(),n=dg(),r=Pl();return et(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),r.perform({q:"",page:1,limit:0})}),(i,h)=>{const f=De("font-awesome-icon");return K(),re("div",TE,[P("div",LE,[P("div",RE,[P("div",IE,[P("div",OE,[P("div",NE,[P("div",null,[h[0]||(h[0]=P("h3",{class:"subtitle is-spaced"},"Rules",-1)),P("h1",DE,ge(se(n).last?.value?.total??"N/A"),1)])]),P("div",FE,[P("span",PE,[oe(f,{icon:"file",size:"2x"})])])])])])]),P("div",zE,[P("div",WE,[P("div",BE,[P("div",jE,[P("div",HE,[P("div",null,[h[1]||(h[1]=P("h3",{class:"subtitle is-spaced"},"Alerts",-1)),P("h1",UE,ge(se(t).last?.value?.total??"N/A"),1)])]),P("div",VE,[P("span",GE,[oe(f,{icon:"bell",size:"2x"})])])])])])]),P("div",ZE,[P("div",YE,[P("div",KE,[P("div",XE,[P("div",QE,[P("div",null,[h[2]||(h[2]=P("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),P("h1",JE,ge(se(r).last?.value?.total??"N/A"),1)])]),P("div",qE,[P("span",eM,[oe(f,{icon:"ticket",size:"2x"})])])])])])])])}}}),nM=ve({__name:"AlertsView",setup(e){return vn("Alerts - Mihari"),(t,n)=>(K(),re(Me,null,[oe(tM),n[0]||(n[0]=P("hr",null,null,-1)),oe(ME)],64))}}),$g=ve({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ne(1),r=ye(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),i=os(),h=async()=>{const g={q:r.value,page:n.value};return await i.perform(g)},f=g=>{n.value=g};return et(async()=>{await h()}),Fe([t,n],async()=>{await h()}),(g,s)=>(K(),re(Me,null,[se(i).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(i).isError?(K(),me(lt,{key:1,error:se(i).last?.error},null,8,["error"])):fe("",!0),se(i).last?.value?(K(),me(_g,{key:2,page:n.value.toString(),alerts:se(i).last.value,onUpdatePage:f},null,8,["page","alerts"])):fe("",!0)],64))}}),rM={class:"block"},iM={class:"is-size-2"},oM={class:"is-clearfix"},sM={class:"table is-fullwidth is-completely-borderless"},aM={key:0},lM={class:"help"},cM={class:"block"},uM=ve({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=s=>{r.value=s},h=()=>{r.value=void 0},f=()=>{n("delete")},g=f;return(s,p)=>{const o=De("router-link");return K(),re(Me,null,[r.value?(K(),me(lt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:h},null,8,["error"])):fe("",!0),P("div",rM,[P("h2",iM,ge(e.alert.id),1),P("p",oM,[oe(gg,{alert:e.alert,onDelete:f,onSetError:i},null,8,["alert"])]),P("table",sM,[P("tr",null,[p[0]||(p[0]=P("th",null,"Rule",-1)),P("td",null,[oe(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ge(()=>[Ze(ge(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[p[1]||(p[1]=P("th",null,"Artifacts",-1)),P("td",null,[oe(mg,{artifacts:e.alert.artifacts,onDelete:se(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(K(),re("tr",aM,[p[2]||(p[2]=P("th",null,"Tags",-1)),P("td",null,[oe(_i,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",lM,"Created at: "+ge(e.alert.createdAt),1)]),p[4]||(p[4]=P("hr",null,null,-1)),P("div",cM,[p[3]||(p[3]=P("h2",{class:"is-size-2 block"},"Related Alerts",-1)),oe($g,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),hM=ve({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=kr(),r=Ek(),i=()=>{n.push("/")};return et(async()=>{await r.perform(t.id)}),(h,f)=>(K(),re(Me,null,[se(r).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(r).isError?(K(),me(lt,{key:1,error:se(r).last?.error},null,8,["error"])):fe("",!0),se(r).last?.value?(K(),me(uM,{key:2,alert:se(r).last.value,onDelete:i},null,8,["alert"])):fe("",!0)],64))}}),fM=ve({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{vn(`Alert:${t.id} - Mihari`)};return et(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(hM,{id:parseInt(e.id)},null,8,["id"]))}}),dM={class:"buttons is-pulled-right"},pM=["href"],gM={class:"icon is-small"},mM={class:"icon is-small"},vM={class:"icon is-small"},yM={class:"icon is-small"},bM={key:0},wM={class:"modal is-active"},SM={class:"modal-card"},_M={class:"modal-card-head"},$M={class:"modal-card-body"},CM=ve({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/artifacts/${n.artifact.id}`),h=Ne(!1),f=fg(),g=Sk(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await f.perform(n.artifact.id),r("delete")}catch(u){He.isAxiosError(u)&&r("set-error",u)}},p=async()=>{try{const l=await g.perform(n.artifact.id);r("set-message",l)}catch(l){He.isAxiosError(l)&&r("set-error",l)}},o=gi(h);return(l,u)=>{const c=De("font-awesome-icon");return K(),re(Me,null,[P("span",dM,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[u[3]||(u[3]=P("span",null,"JSON",-1)),P("span",gM,[oe(c,{icon:"barcode"})])],8,pM),e.artifact.metadata?(K(),re("button",{key:0,class:"button is-info is-light is-small",onClick:u[0]||(u[0]=a=>se(o)())},[u[4]||(u[4]=P("span",null,"Metadata",-1)),P("span",mM,[oe(c,{icon:"info-circle"})])])):fe("",!0),P("button",{class:"button is-primary is-light is-small",onClick:p},[u[5]||(u[5]=P("span",null,"Enrich",-1)),P("span",vM,[se(g).isRunning?(K(),me(c,{key:0,icon:"spinner",spin:""})):(K(),me(c,{key:1,icon:"lightbulb"}))])]),P("button",{class:"button is-light is-small",onClick:s},[u[6]||(u[6]=P("span",null,"Delete",-1)),P("span",yM,[oe(c,{icon:"times"})])])]),e.artifact.metadata&&h.value?(K(),re("div",bM,[P("div",wM,[P("div",{class:"modal-background",onClick:u[1]||(u[1]=a=>se(o)())}),P("div",SM,[P("header",_M,[u[7]||(u[7]=P("p",{class:"modal-card-title"},"Metadata",-1)),P("button",{class:"delete","aria-label":"close",onClick:u[2]||(u[2]=a=>se(o)())})]),P("section",$M,[oe(se(Sg),{data:e.artifact.metadata},null,8,["data"])])])])])):fe("",!0)],64)}}}),Cg=mi(CM,[["__scopeId","data-v-dac610f8"]]),AM={class:"notification is-info is-light"},ss=ve({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,r=()=>{n("dispose")};return(i,h)=>(K(),re("div",AM,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:r})):fe("",!0),P("p",null,ge(e.message.message),1)]))}}),xM={class:"box"},kM={class:"block"},EM={class:"table is-fullwidth is-completely-borderless"},MM={key:0},TM={class:"help"},LM=ve({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=()=>{n("delete")},s=o=>{o.queued&&(i.value=o)},p=()=>{i.value=void 0};return(o,l)=>{const u=De("router-link");return K(),re("div",xM,[r.value?(K(),me(lt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(ss,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("div",kM,[P("p",null,[oe(Cg,{artifact:e.artifact,onDelete:g,onSetError:h,onSetMessage:s},null,8,["artifact"])]),oe(u,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ge(()=>[Ze(ge(e.artifact.id),1)]),_:1},8,["to"])]),P("table",EM,[P("tr",null,[l[0]||(l[0]=P("th",null,"Data",-1)),P("td",null,ge(e.artifact.data),1)]),P("tr",null,[l[1]||(l[1]=P("th",null,"Data Type",-1)),P("td",null,ge(e.artifact.dataType),1)]),P("tr",null,[l[2]||(l[2]=P("th",null,"Source",-1)),P("td",null,ge(e.artifact.source),1)]),P("tr",null,[l[3]||(l[3]=P("th",null,"Query",-1)),P("td",null,ge(se(si)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",MM,[l[4]||(l[4]=P("th",null,"Tags",-1)),P("td",null,[oe(_i,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):fe("",!0)]),l[5]||(l[5]=P("p",{class:"block is-clearfix"},null,-1)),P("p",TM,"Created at: "+ge(e.artifact.createdAt),1)])}}}),RM={key:0},IM={class:"help"},OM={key:1},NM=ve({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>n.artifacts.results.length>0),h=g=>{r("update-page",g)},f=()=>{r("refresh")};return(g,s)=>i.value?(K(),re("div",RM,[(K(!0),re(Me,null,It(e.artifacts.results,p=>(K(),me(LM,{artifact:p,key:p.id,onDelete:f},null,8,["artifact"]))),128)),oe(zl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:h},null,8,["total","currentPage","pageSize"]),P("p",IM," ("+ge(e.artifacts.total)+" results in total, "+ge(e.artifacts.results.length)+" shown) ",1)])):(K(),re("div",OM,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])]))}}),DM={class:"block"},FM={class:"field has-addons"},PM={class:"control is-expanded"},zM={class:"control"},WM={class:"icon is-small"},BM={class:"control"},jM={class:"icon is-small"},HM={key:0,class:"content mt-3"},UM={key:0,class:"block"},VM=ve({__name:"ArtifactsWrapper",setup(e){const t=br("page","1"),n=br("q",""),r=Ne(!1),i=Pl(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=gi(r);return et(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,l)=>{const u=De("font-awesome-icon");return K(),re(Me,null,[P("div",DM,[P("div",FM,[P("p",PM,[cl(P("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=c=>Qe(n)?n.value=c:null)},null,512),[[vl,se(n)]])]),P("p",zM,[P("a",{class:"button is-primary",onClick:g},[P("span",WM,[oe(u,{icon:"search"})]),l[2]||(l[2]=P("span",null,"Search",-1))])]),P("p",BM,[P("a",{class:"button is-info",onClick:l[1]||(l[1]=c=>se(p)())},[P("span",jM,[oe(u,{icon:"question"})]),l[3]||(l[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",HM,[...l[4]||(l[4]=[gl('<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)])])):fe("",!0)]),se(i).performCount>0?(K(),re("div",UM,[se(i).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(i).isError?(K(),me(lt,{key:1,error:se(i).last?.error},null,8,["error"])):fe("",!0),se(i).last?.value?(K(),me(NM,{key:2,artifacts:se(i).last.value,onUpdatePage:f,onRefresh:se(s)},null,8,["artifacts","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),GM=ve({__name:"ArtifactsView",setup(e){const t=()=>{vn("Artifacts - Mihari")};return et(()=>{t()}),(n,r)=>(K(),me(VM))}}),ZM={class:"tags are-medium"},YM=ve({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",ZM,[oe(i,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:Ge(()=>[Ze(ge(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),KM={class:"tags are-medium"},XM=ve({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",KM,[(K(!0),re(Me,null,It(e.cpes,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(ge(h.name),1)]),_:2},1032,["to"]))),128))])}}}),QM={class:"field is-grouped is-grouped-multiline"},JM={class:"tags has-addons are-medium"},qM={class:"tag is-dark"},eT=ve({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:r})=>`dns_record.value:"${r}" AND dns_record.resource:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",QM,[(K(!0),re(Me,null,It(e.dnsRecords,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",JM,[P("span",qM,ge(h.resource),1),oe(i,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:h.resource,value:h.value})}}},{default:Ge(()=>[Ze(ge(se(si)(h.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),tT={class:"tags are-medium"},nT=ve({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",tT,[(K(!0),re(Me,null,It(e.ports,h=>(K(),me(i,{class:"tag",key:h.number,to:{name:"Artifacts",query:{q:t(h.number)}}},{default:Ge(()=>[Ze(ge(h.number),1)]),_:2},1032,["to"]))),128))])}}}),rT={class:"tags are-medium"},iT=ve({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",rT,[(K(!0),re(Me,null,It(e.reverseDnsNames,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(ge(h.name),1)]),_:2},1032,["to"]))),128))])}}}),oT={class:"tags are-medium"},sT=ve({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",oT,[(K(!0),re(Me,null,It(e.vulnerabilities,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ge(()=>[Ze(ge(h.name),1)]),_:2},1032,["to"]))),128))])}}}),aT={class:"field is-grouped is-grouped-multiline"},lT={class:"control"},cT={class:"tags has-addons are-medium"},uT={class:"tag"},hT={class:"control"},fT={class:"tags has-addons are-medium"},dT={class:"tag"},pT={class:"control"},gT={class:"tags has-addons are-medium"},mT={class:"tag"},vT={class:"control"},yT={class:"tags has-addons are-medium"},bT={class:"tag"},wT=ve({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>(K(),re("div",aT,[P("div",lT,[P("div",cT,[n[0]||(n[0]=P("span",{class:"tag is-dark"},"Registrar",-1)),P("span",uT,ge(e.whoisRecord.registrar?.name||"N/A"),1)])]),P("div",hT,[P("div",fT,[n[1]||(n[1]=P("span",{class:"tag is-dark"},"Created on",-1)),P("span",dT,ge(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",pT,[P("div",gT,[n[2]||(n[2]=P("span",{class:"tag is-dark"},"Updated on",-1)),P("span",mT,ge(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",vT,[P("div",yT,[n[3]||(n[3]=P("span",{class:"tag is-dark"},"Expires on",-1)),P("span",bT,ge(e.whoisRecord.expiresOn||"N/A"),1)])])]))}}),ST=["href"],_T=["src"],$T=ve({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Gd();return(n,r)=>(K(),re("a",{href:e.link.href(e.data),class:fi(["tag",se(t)?"":"is-white"]),target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,_T),P("span",null,ge(e.link.name),1)],10,ST))}}),CT=mi($T,[["__scopeId","data-v-d0b695fc"]]);class Nt{baseURL;constructor(){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 AT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(t){return this.baseURL+`/submissions/#filehash:${t}`}}class xT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(t){return this.baseURL+`/hosts/${t}`}}class kT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(t){return this.baseURL+`/?q=${t}`}}class ET extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class MT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class TT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(t){return this.baseURL+`/${t}`}}class LT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class RT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(t){return this.baseURL+`/#/files/${t}`}}class Ag extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(t){return this.baseURL+`/indicator/ip/${t}`}}class IT extends Ag{type;constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/indicator/domain/${t}`}}class xg extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class OT extends xg{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class NT extends xg{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class DT extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(t){return this.baseURL+`/host/${t}`}}class Wl extends Nt{baseURL;name;type;constructor(){super(),this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class FT extends Wl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class PT extends Wl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class zT extends Wl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Da=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WT(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Bs={exports:{}};const BT={},jT=Object.freeze(Object.defineProperty({__proto__:null,default:BT},Symbol.toStringTag,{value:"Module"})),mh=WT(jT);var vh;function HT(){return vh||(vh=1,(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",h=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node&&process.type!="renderer";h?r=Da:i&&(r=self);var f=!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],l=[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],u=["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 a=function(b,k){return function(R){return new A(k,!0).update(R)[b]()}},d=function(b){var k=a("hex",b);h&&(k=m(k,b)),k.create=function(){return new A(b)},k.update=function(L){return k.create().update(L)};for(var R=0;R<u.length;++R){var M=u[R];k[M]=a(M,b)}return k},m=function(b,k){var R=mh,M=mh.Buffer,L=k?"sha224":"sha256",N;M.from&&!r.JS_SHA256_NO_BUFFER_FROM?N=M.from:N=function($){return new M($)};var T=function($){if(typeof $=="string")return R.createHash(L).update($,"utf8").digest("hex");if($==null)throw new Error(t);return $.constructor===ArrayBuffer&&($=new Uint8Array($)),Array.isArray($)||ArrayBuffer.isView($)||$.constructor===M?R.createHash(L).update(N($)).digest("hex"):b($)};return T},v=function(b,k){return function(R,M){return new C(R,k,!0).update(M)[b]()}},y=function(b){var k=v("hex",b);k.create=function(L){return new C(L,b)},k.update=function(L,N){return k.create(L).update(N)};for(var R=0;R<u.length;++R){var M=u[R];k[M]=v(M,b)}return k};function A(b,k){k?(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}A.prototype.update=function(b){if(!this.finalized){var k,R=typeof b;if(R!=="string"){if(R==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);k=!0}for(var M,L=0,N,T=b.length,$=this.blocks;L<T;){if(this.hashed&&(this.hashed=!1,$[0]=this.block,this.block=$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),k)for(N=this.start;L<T&&N<64;++L)$[N>>>2]|=b[L]<<o[N++&3];else for(N=this.start;L<T&&N<64;++L)M=b.charCodeAt(L),M<128?$[N>>>2]|=M<<o[N++&3]:M<2048?($[N>>>2]|=(192|M>>>6)<<o[N++&3],$[N>>>2]|=(128|M&63)<<o[N++&3]):M<55296||M>=57344?($[N>>>2]|=(224|M>>>12)<<o[N++&3],$[N>>>2]|=(128|M>>>6&63)<<o[N++&3],$[N>>>2]|=(128|M&63)<<o[N++&3]):(M=65536+((M&1023)<<10|b.charCodeAt(++L)&1023),$[N>>>2]|=(240|M>>>18)<<o[N++&3],$[N>>>2]|=(128|M>>>12&63)<<o[N++&3],$[N>>>2]|=(128|M>>>6&63)<<o[N++&3],$[N>>>2]|=(128|M&63)<<o[N++&3]);this.lastByteIndex=N,this.bytes+=N-this.start,N>=64?(this.block=$[16],this.start=N-64,this.hash(),this.hashed=!0):this.start=N}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,k=this.lastByteIndex;b[16]=this.block,b[k>>>2]|=p[k&3],this.block=b[16],k>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var b=this.h0,k=this.h1,R=this.h2,M=this.h3,L=this.h4,N=this.h5,T=this.h6,$=this.h7,S=this.blocks,w,x,E,I,O,D,F,H,W,U,G;for(w=16;w<64;++w)O=S[w-15],x=(O>>>7|O<<25)^(O>>>18|O<<14)^O>>>3,O=S[w-2],E=(O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10,S[w]=S[w-16]+x+S[w-7]+E<<0;for(G=k&R,w=0;w<64;w+=4)this.first?(this.is224?(H=300032,O=S[0]-1413257819,$=O-150054599<<0,M=O+24177077<<0):(H=704751109,O=S[0]-210244248,$=O-1521486534<<0,M=O+143694565<<0),this.first=!1):(x=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),E=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),H=b&k,I=H^b&R^G,F=L&N^~L&T,O=$+E+F+l[w]+S[w],D=x+I,$=M+O<<0,M=O+D<<0),x=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),E=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),W=M&b,I=W^M&k^H,F=$&L^~$&N,O=T+E+F+l[w+1]+S[w+1],D=x+I,T=R+O<<0,R=O+D<<0,x=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),E=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),U=R&M,I=U^R&b^W,F=T&$^~T&L,O=N+E+F+l[w+2]+S[w+2],D=x+I,N=k+O<<0,k=O+D<<0,x=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),E=(N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7),G=k&R,I=G^k&M^U,F=N&T^~N&$,O=L+E+F+l[w+3]+S[w+3],D=x+I,L=b+O<<0,b=O+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+k<<0,this.h2=this.h2+R<<0,this.h3=this.h3+M<<0,this.h4=this.h4+L<<0,this.h5=this.h5+N<<0,this.h6=this.h6+T<<0,this.h7=this.h7+$<<0},A.prototype.hex=function(){this.finalize();var b=this.h0,k=this.h1,R=this.h2,M=this.h3,L=this.h4,N=this.h5,T=this.h6,$=this.h7,S=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[k>>>28&15]+s[k>>>24&15]+s[k>>>20&15]+s[k>>>16&15]+s[k>>>12&15]+s[k>>>8&15]+s[k>>>4&15]+s[k&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[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[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[N>>>28&15]+s[N>>>24&15]+s[N>>>20&15]+s[N>>>16&15]+s[N>>>12&15]+s[N>>>8&15]+s[N>>>4&15]+s[N&15]+s[T>>>28&15]+s[T>>>24&15]+s[T>>>20&15]+s[T>>>16&15]+s[T>>>12&15]+s[T>>>8&15]+s[T>>>4&15]+s[T&15];return this.is224||(S+=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.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var b=this.h0,k=this.h1,R=this.h2,M=this.h3,L=this.h4,N=this.h5,T=this.h6,$=this.h7,S=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,N>>>24&255,N>>>16&255,N>>>8&255,N&255,T>>>24&255,T>>>16&255,T>>>8&255,T&255];return this.is224||S.push($>>>24&255,$>>>16&255,$>>>8&255,$&255),S},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),k=new DataView(b);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),b};function C(b,k,R){var M,L=typeof b;if(L==="string"){var N=[],T=b.length,$=0,S;for(M=0;M<T;++M)S=b.charCodeAt(M),S<128?N[$++]=S:S<2048?(N[$++]=192|S>>>6,N[$++]=128|S&63):S<55296||S>=57344?(N[$++]=224|S>>>12,N[$++]=128|S>>>6&63,N[$++]=128|S&63):(S=65536+((S&1023)<<10|b.charCodeAt(++M)&1023),N[$++]=240|S>>>18,N[$++]=128|S>>>12&63,N[$++]=128|S>>>6&63,N[$++]=128|S&63);b=N}else 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);b.length>64&&(b=new A(k,!0).update(b).array());var w=[],x=[];for(M=0;M<64;++M){var E=b[M]||0;w[M]=92^E,x[M]=54^E}A.call(this,k,R),this.update(x),this.oKeyPad=w,this.inner=!0,this.sharedMemory=R}C.prototype=new A,C.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();A.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),A.prototype.finalize.call(this)}};var _=d();_.sha256=_,_.sha224=d(!0),_.sha256.hmac=y(),_.sha224.hmac=y(!0),f?e.exports=_:(r.sha256=_.sha256,r.sha224=_.sha224)})()})(Bs)),Bs.exports}var UT=HT(),js,yh;function VT(){return yh||(yh=1,js=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),js}var Di={},bh;function GT(){if(bh)return Di;bh=1;var e=Object.prototype.hasOwnProperty,t;function n(f){try{return decodeURIComponent(f.replace(/\+/g," "))}catch{return null}}function r(f){try{return encodeURIComponent(f)}catch{return null}}function i(f){for(var g=/([^=?#&]+)=?([^&]*)/g,s={},p;p=g.exec(f);){var o=n(p[1]),l=n(p[2]);o===null||l===null||o in s||(s[o]=l)}return s}function h(f,g){g=g||"";var s=[],p,o;typeof g!="string"&&(g="?");for(o in f)if(e.call(f,o)){if(p=f[o],!p&&(p===null||p===t||isNaN(p))&&(p=""),o=r(o),p=r(p),o===null||p===null)continue;s.push(o+"="+p)}return s.length?g+s.join("&"):""}return Di.stringify=h,Di.parse=i,Di}var Hs,wh;function ZT(){if(wh)return Hs;wh=1;var e=VT(),t=GT(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,h=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function s(y){return(y||"").toString().replace(n,"")}var p=[["#","hash"],["?","query"],function(A,C){return u(C.protocol)?A.replace(/\\/g,"/"):A},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],o={hash:1,query:1};function l(y){var A;typeof window<"u"?A=window:typeof Da<"u"?A=Da:typeof self<"u"?A=self:A={};var C=A.location||{};y=y||C;var _={},b=typeof y,k;if(y.protocol==="blob:")_=new d(unescape(y.pathname),{});else if(b==="string"){_=new d(y,{});for(k in o)delete _[k]}else if(b==="object"){for(k in y)k in o||(_[k]=y[k]);_.slashes===void 0&&(_.slashes=i.test(y.href))}return _}function u(y){return y==="file:"||y==="ftp:"||y==="http:"||y==="https:"||y==="ws:"||y==="wss:"}function c(y,A){y=s(y),y=y.replace(r,""),A=A||{};var C=f.exec(y),_=C[1]?C[1].toLowerCase():"",b=!!C[2],k=!!C[3],R=0,M;return b?k?(M=C[2]+C[3]+C[4],R=C[2].length+C[3].length):(M=C[2]+C[4],R=C[2].length):k?(M=C[3]+C[4],R=C[3].length):M=C[4],_==="file:"?R>=2&&(M=M.slice(2)):u(_)?M=C[4]:_?b&&(M=M.slice(2)):R>=2&&u(A.protocol)&&(M=C[4]),{protocol:_,slashes:b||u(_),slashesCount:R,rest:M}}function a(y,A){if(y==="")return A;for(var C=(A||"/").split("/").slice(0,-1).concat(y.split("/")),_=C.length,b=C[_-1],k=!1,R=0;_--;)C[_]==="."?C.splice(_,1):C[_]===".."?(C.splice(_,1),R++):R&&(_===0&&(k=!0),C.splice(_,1),R--);return k&&C.unshift(""),(b==="."||b==="..")&&C.push(""),C.join("/")}function d(y,A,C){if(y=s(y),y=y.replace(r,""),!(this instanceof d))return new d(y,A,C);var _,b,k,R,M,L,N=p.slice(),T=typeof A,$=this,S=0;for(T!=="object"&&T!=="string"&&(C=A,A=null),C&&typeof C!="function"&&(C=t.parse),A=l(A),b=c(y||"",A),_=!b.protocol&&!b.slashes,$.slashes=b.slashes||_&&A.slashes,$.protocol=b.protocol||A.protocol||"",y=b.rest,(b.protocol==="file:"&&(b.slashesCount!==2||g.test(y))||!b.slashes&&(b.protocol||b.slashesCount<2||!u($.protocol)))&&(N[3]=[/(.*)/,"pathname"]);S<N.length;S++){if(R=N[S],typeof R=="function"){y=R(y,$);continue}k=R[0],L=R[1],k!==k?$[L]=y:typeof k=="string"?(M=k==="@"?y.lastIndexOf(k):y.indexOf(k),~M&&(typeof R[2]=="number"?($[L]=y.slice(0,M),y=y.slice(M+R[2])):($[L]=y.slice(M),y=y.slice(0,M)))):(M=k.exec(y))&&($[L]=M[1],y=y.slice(0,M.index)),$[L]=$[L]||_&&R[3]&&A[L]||"",R[4]&&($[L]=$[L].toLowerCase())}C&&($.query=C($.query)),_&&A.slashes&&$.pathname.charAt(0)!=="/"&&($.pathname!==""||A.pathname!=="")&&($.pathname=a($.pathname,A.pathname)),$.pathname.charAt(0)!=="/"&&u($.protocol)&&($.pathname="/"+$.pathname),e($.port,$.protocol)||($.host=$.hostname,$.port=""),$.username=$.password="",$.auth&&(M=$.auth.indexOf(":"),~M?($.username=$.auth.slice(0,M),$.username=encodeURIComponent(decodeURIComponent($.username)),$.password=$.auth.slice(M+1),$.password=encodeURIComponent(decodeURIComponent($.password))):$.username=encodeURIComponent(decodeURIComponent($.auth)),$.auth=$.password?$.username+":"+$.password:$.username),$.origin=$.protocol!=="file:"&&u($.protocol)&&$.host?$.protocol+"//"+$.host:"null",$.href=$.toString()}function m(y,A,C){var _=this;switch(y){case"query":typeof A=="string"&&A.length&&(A=(C||t.parse)(A)),_[y]=A;break;case"port":_[y]=A,e(A,_.protocol)?A&&(_.host=_.hostname+":"+A):(_.host=_.hostname,_[y]="");break;case"hostname":_[y]=A,_.port&&(A+=":"+_.port),_.host=A;break;case"host":_[y]=A,h.test(A)?(A=A.split(":"),_.port=A.pop(),_.hostname=A.join(":")):(_.hostname=A,_.port="");break;case"protocol":_.protocol=A.toLowerCase(),_.slashes=!C;break;case"pathname":case"hash":if(A){var b=y==="pathname"?"/":"#";_[y]=A.charAt(0)!==b?b+A:A}else _[y]=A;break;case"username":case"password":_[y]=encodeURIComponent(A);break;case"auth":var k=A.indexOf(":");~k?(_.username=A.slice(0,k),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=A.slice(k+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent(A))}for(var R=0;R<p.length;R++){var M=p[R];M[4]&&(_[M[1]]=_[M[1]].toLowerCase())}return _.auth=_.password?_.username+":"+_.password:_.username,_.origin=_.protocol!=="file:"&&u(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString(),_}function v(y){(!y||typeof y!="function")&&(y=t.stringify);var A,C=this,_=C.host,b=C.protocol;b&&b.charAt(b.length-1)!==":"&&(b+=":");var k=b+(C.protocol&&C.slashes||u(C.protocol)?"//":"");return C.username?(k+=C.username,C.password&&(k+=":"+C.password),k+="@"):C.password?(k+=":"+C.password,k+="@"):C.protocol!=="file:"&&u(C.protocol)&&!_&&C.pathname!=="/"&&(k+="@"),(_[_.length-1]===":"||h.test(C.hostname)&&!C.port)&&(_+=":"),k+=_+C.pathname,A=typeof C.query=="object"?y(C.query):C.query,A&&(k+=A.charAt(0)!=="?"?"?"+A:A),C.hash&&(k+=C.hash),k}return d.prototype={set:m,toString:v},d.extractProtocol=c,d.location=l,d.trimLeft=s,d.qs=t,Hs=d,Hs}var YT=ZT();const KT=Lr(YT);class as extends Nt{baseURL;name;type;constructor(){super(),this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class XT extends as{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class QT extends as{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class JT extends as{constructor(){super(),this.type="url"}href(t){const n=UT.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new KT(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class qT extends as{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const eL=[new AT,new xT,new kT,new MT,new ET,new TT,new LT,new RT,new IT,new Ag,new OT,new NT,new DT,new FT,new PT,new zT,new XT,new qT,new QT,new JT],tL={class:"tags are-medium"},nL=ve({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ye(()=>eL.filter(r=>r.type===t.type));return(r,i)=>(K(),re("div",tL,[(K(!0),re(Me,null,It(n.value,h=>(K(),me(CT,{data:e.data,link:h,key:h.name},null,8,["data","link"]))),128))]))}});var Ji={exports:{}},rL=Ji.exports,Sh;function iL(){return Sh||(Sh=1,(function(e,t){(function(n,r){e.exports=r()})(rL,(function(){var n=1e3,r=6e4,i=36e5,h="millisecond",f="second",g="minute",s="hour",p="day",o="week",l="month",u="quarter",c="year",a="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(S){var w=["th","st","nd","rd"],x=S%100;return"["+S+(w[(x-20)%10]||w[x]||w[0])+"]"}},A=function(S,w,x){var E=String(S);return!E||E.length>=w?S:""+Array(w+1-E.length).join(x)+S},C={s:A,z:function(S){var w=-S.utcOffset(),x=Math.abs(w),E=Math.floor(x/60),I=x%60;return(w<=0?"+":"-")+A(E,2,"0")+":"+A(I,2,"0")},m:function S(w,x){if(w.date()<x.date())return-S(x,w);var E=12*(x.year()-w.year())+(x.month()-w.month()),I=w.clone().add(E,l),O=x-I<0,D=w.clone().add(E+(O?-1:1),l);return+(-(E+(x-I)/(O?I-D:D-I))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:l,y:c,w:o,d:p,D:a,h:s,m:g,s:f,ms:h,Q:u}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},_="en",b={};b[_]=y;var k="$isDayjsObject",R=function(S){return S instanceof T||!(!S||!S[k])},M=function S(w,x,E){var I;if(!w)return _;if(typeof w=="string"){var O=w.toLowerCase();b[O]&&(I=O),x&&(b[O]=x,I=O);var D=w.split("-");if(!I&&D.length>1)return S(D[0])}else{var F=w.name;b[F]=w,I=F}return!E&&I&&(_=I),I||!E&&_},L=function(S,w){if(R(S))return S.clone();var x=typeof w=="object"?w:{};return x.date=S,x.args=arguments,new T(x)},N=C;N.l=M,N.i=R,N.w=function(S,w){return L(S,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var T=(function(){function S(x){this.$L=M(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[k]=!0}var w=S.prototype;return w.parse=function(x){this.$d=(function(E){var I=E.date,O=E.utc;if(I===null)return new Date(NaN);if(N.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var F=D[2]-1||0,H=(D[7]||"0").substring(0,3);return O?new Date(Date.UTC(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(I)})(x),this.init()},w.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},w.$utils=function(){return N},w.isValid=function(){return this.$d.toString()!==d},w.isSame=function(x,E){var I=L(x);return this.startOf(E)<=I&&I<=this.endOf(E)},w.isAfter=function(x,E){return L(x)<this.startOf(E)},w.isBefore=function(x,E){return this.endOf(E)<L(x)},w.$g=function(x,E,I){return N.u(x)?this[E]:this.set(I,x)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(x,E){var I=this,O=!!N.u(E)||E,D=N.p(x),F=function(X,Q){var ae=N.w(I.$u?Date.UTC(I.$y,Q,X):new Date(I.$y,Q,X),I);return O?ae:ae.endOf(p)},H=function(X,Q){return N.w(I.toDate()[X].apply(I.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},W=this.$W,U=this.$M,G=this.$D,V="set"+(this.$u?"UTC":"");switch(D){case c:return O?F(1,0):F(31,11);case l:return O?F(1,U):F(0,U+1);case o:var B=this.$locale().weekStart||0,Z=(W<B?W+7:W)-B;return F(O?G-Z:G+(6-Z),U);case p:case a:return H(V+"Hours",0);case s:return H(V+"Minutes",1);case g:return H(V+"Seconds",2);case f:return H(V+"Milliseconds",3);default:return this.clone()}},w.endOf=function(x){return this.startOf(x,!1)},w.$set=function(x,E){var I,O=N.p(x),D="set"+(this.$u?"UTC":""),F=(I={},I[p]=D+"Date",I[a]=D+"Date",I[l]=D+"Month",I[c]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[f]=D+"Seconds",I[h]=D+"Milliseconds",I)[O],H=O===p?this.$D+(E-this.$W):E;if(O===l||O===c){var W=this.clone().set(a,1);W.$d[F](H),W.init(),this.$d=W.set(a,Math.min(this.$D,W.daysInMonth())).$d}else F&&this.$d[F](H);return this.init(),this},w.set=function(x,E){return this.clone().$set(x,E)},w.get=function(x){return this[N.p(x)]()},w.add=function(x,E){var I,O=this;x=Number(x);var D=N.p(E),F=function(U){var G=L(O);return N.w(G.date(G.date()+Math.round(U*x)),O)};if(D===l)return this.set(l,this.$M+x);if(D===c)return this.set(c,this.$y+x);if(D===p)return F(1);if(D===o)return F(7);var H=(I={},I[g]=r,I[s]=i,I[f]=n,I)[D]||1,W=this.$d.getTime()+x*H;return N.w(W,this)},w.subtract=function(x,E){return this.add(-1*x,E)},w.format=function(x){var E=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var O=x||"YYYY-MM-DDTHH:mm:ssZ",D=N.z(this),F=this.$H,H=this.$m,W=this.$M,U=I.weekdays,G=I.months,V=I.meridiem,B=function(Q,ae,z,j){return Q&&(Q[ae]||Q(E,O))||z[ae].slice(0,j)},Z=function(Q){return N.s(F%12||12,Q,"0")},X=V||function(Q,ae,z){var j=Q<12?"AM":"PM";return z?j.toLowerCase():j};return O.replace(v,(function(Q,ae){return ae||(function(z){switch(z){case"YY":return String(E.$y).slice(-2);case"YYYY":return N.s(E.$y,4,"0");case"M":return W+1;case"MM":return N.s(W+1,2,"0");case"MMM":return B(I.monthsShort,W,G,3);case"MMMM":return B(G,W);case"D":return E.$D;case"DD":return N.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return B(I.weekdaysMin,E.$W,U,2);case"ddd":return B(I.weekdaysShort,E.$W,U,3);case"dddd":return U[E.$W];case"H":return String(F);case"HH":return N.s(F,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return X(F,H,!0);case"A":return X(F,H,!1);case"m":return String(H);case"mm":return N.s(H,2,"0");case"s":return String(E.$s);case"ss":return N.s(E.$s,2,"0");case"SSS":return N.s(E.$ms,3,"0");case"Z":return D}return null})(Q)||D.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(x,E,I){var O,D=this,F=N.p(E),H=L(x),W=(H.utcOffset()-this.utcOffset())*r,U=this-H,G=function(){return N.m(D,H)};switch(F){case c:O=G()/12;break;case l:O=G();break;case u:O=G()/3;break;case o:O=(U-W)/6048e5;break;case p:O=(U-W)/864e5;break;case s:O=U/i;break;case g:O=U/r;break;case f:O=U/n;break;default:O=U}return I?O:N.a(O)},w.daysInMonth=function(){return this.endOf(l).$D},w.$locale=function(){return b[this.$L]},w.locale=function(x,E){if(!x)return this.$L;var I=this.clone(),O=M(x,E,!0);return O&&(I.$L=O),I},w.clone=function(){return N.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},S})(),$=T.prototype;return L.prototype=$,[["$ms",h],["$s",f],["$m",g],["$H",s],["$W",p],["$M",l],["$y",c],["$D",a]].forEach((function(S){$[S[1]]=function(w){return this.$g(w,S[0],S[1])}})),L.extend=function(S,w){return S.$i||(S(w,T,L),S.$i=!0),L},L.locale=M,L.isDayjs=R,L.unix=function(S){return L(1e3*S)},L.en=b[_],L.Ls=b,L.p={},L}))})(Ji)),Ji.exports}var oL=iL();const ls=Lr(oL);var qi={exports:{}},sL=qi.exports,_h;function aL(){return _h||(_h=1,(function(e,t){(function(n,r){e.exports=r()})(sL,(function(){return function(n,r,i){n=n||{};var h=r.prototype,f={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,l,u){return h.fromToBase(p,o,l,u)}i.en.relativeTime=f,h.fromToBase=function(p,o,l,u,c){for(var a,d,m,v=l.$locale().relativeTime||f,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],A=y.length,C=0;C<A;C+=1){var _=y[C];_.d&&(a=u?i(p).diff(l,_.d,!0):l.diff(p,_.d,!0));var b=(n.rounding||Math.round)(Math.abs(a));if(m=a>0,b<=_.r||!_.r){b<=1&&C>0&&(_=y[C-1]);var k=v[_.l];c&&(b=c(""+b)),d=typeof k=="string"?k.replace("%d",b):k(b,o,_.l,m);break}}if(o)return d;var R=m?v.future:v.past;return typeof R=="function"?R(d):R.replace("%s",d)},h.to=function(p,o){return g(p,o,this,!0)},h.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?i.utc():i()};h.toNow=function(p){return this.to(s(this),p)},h.fromNow=function(p){return this.from(s(this),p)}}}))})(qi)),qi.exports}var lL=aL();const cL=Lr(lL);var eo={exports:{}},uL=eo.exports,$h;function hL(){return $h||($h=1,(function(e,t){(function(n,r){e.exports=r()})(uL,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,h,f){var g,s=function(u,c,a){a===void 0&&(a={});var d=new Date(u),m=(function(v,y){y===void 0&&(y={});var A=y.timeZoneName||"short",C=v+"|"+A,_=r[C];return _||(_=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:A}),r[C]=_),_})(c,a);return m.formatToParts(d)},p=function(u,c){for(var a=s(u,c),d=[],m=0;m<a.length;m+=1){var v=a[m],y=v.type,A=v.value,C=n[y];C>=0&&(d[C]=parseInt(A,10))}var _=d[3],b=_===24?0:_,k=d[0]+"-"+d[1]+"-"+d[2]+" "+b+":"+d[4]+":"+d[5]+":000",R=+u;return(f.utc(k).valueOf()-(R-=R%1e3))/6e4},o=h.prototype;o.tz=function(u,c){u===void 0&&(u=g);var a,d=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:u}),y=Math.round((m-new Date(v))/1e3/60),A=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number(A))a=this.utcOffset(0,c);else if(a=f(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(A,!0),c){var C=a.utcOffset();a=a.add(d-C,"minute")}return a.$x.$timezone=u,a},o.offsetName=function(u){var c=this.$x.$timezone||f.tz.guess(),a=s(this.valueOf(),c,{timeZoneName:u}).find((function(d){return d.type.toLowerCase()==="timezonename"}));return a&&a.value};var l=o.startOf;o.startOf=function(u,c){if(!this.$x||!this.$x.$timezone)return l.call(this,u,c);var a=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,u,c).tz(this.$x.$timezone,!0)},f.tz=function(u,c,a){var d=a&&c,m=a||c||g,v=p(+f(),m);if(typeof u!="string")return f(u).tz(m);var y=(function(b,k,R){var M=b-60*k*1e3,L=p(M,R);if(k===L)return[M,k];var N=p(M-=60*(L-k)*1e3,R);return L===N?[M,L]:[b-60*Math.min(L,N)*1e3,Math.max(L,N)]})(f.utc(u,d).valueOf(),v,m),A=y[0],C=y[1],_=f(A).utcOffset(C);return _.$x.$timezone=m,_},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(u){g=u}}}))})(eo)),eo.exports}var fL=hL();const dL=Lr(fL);var to={exports:{}},pL=to.exports,Ch;function gL(){return Ch||(Ch=1,(function(e,t){(function(n,r){e.exports=r()})(pL,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(h,f,g){var s=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},s.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var 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 l=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?l.call(this):this.$offset;if(typeof d=="string"&&(d=(function(_){_===void 0&&(_="");var b=_.match(r);if(!b)return null;var k=(""+b[0]).match(i)||["-",0,0],R=k[0],M=60*+k[1]+ +k[2];return M===0?0:R==="+"?M:-M})(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d;if(y===0)return this.utc(m);var A=this.clone();if(m)return A.$offset=y,A.$u=!1,A;var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(A=this.local().add(y+C,n)).$offset=y,A.$x.$localOffset=C,A};var u=s.format;s.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.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 a=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return a.call(this,d,m,v);var y=this.local(),A=g(d).local();return a.call(y,A,m,v)}}}))})(to)),to.exports}var mL=gL();const vL=Lr(mL),yL=[{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 bL(e){return yL.find(n=>n.code===e)}ls.extend(cL);ls.extend(dL);ls.extend(vL);function kg(e){const t=bL(e);if(t)return{lat:t.lat,long:t.long}}function wL(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return!n||!r?void 0:{lat:parseFloat(n),long:parseFloat(r)}}}return kg(e.countryCode)}const SL={class:"block"},_L={class:"is-size-2"},$L={class:"is-clearfix"},CL={class:"columns"},AL={key:0,class:"column is-half"},xL={key:0},kL={class:"is-size-4"},EL={class:"has-text-grey"},ML=["src"],TL={key:1},LL=["src"],RL={class:"column"},IL={class:"table is-fullwidth is-completely-borderless"},OL={key:0},NL={class:"help"},DL={class:"block"},FL={class:"block"},PL={key:0,class:"block"},zL={key:1,class:"block"},WL={key:2,class:"block"},BL={key:3,class:"block"},jL={key:4,class:"block"},HL={key:5,class:"block"},UL={key:6,class:"block"},VL=ve({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,r=t,i=Ne(),h=Ne(),f=Ne(),g=Ne(),s=m=>{f.value=m},p=()=>{f.value=void 0},o=()=>{r("delete")},l=m=>{m.queued?g.value=m:r("refresh")},u=()=>{g.value=void 0},c=ye(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),a=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},d=$k();return et(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=kg(n.artifact.geolocation.countryCode);else{const v=await d.perform(n.artifact.data);m=wL(v),h.value=v.countryCode}i.value=a(m)}}),(m,v)=>(K(),re(Me,null,[f.value?(K(),me(lt,{key:0,class:"block",error:f.value,disposable:!0,onDispose:p},null,8,["error"])):fe("",!0),g.value?(K(),me(ss,{key:1,class:"block",message:g.value,disposable:!0,onDispose:u},null,8,["message"])):fe("",!0),P("div",SL,[P("h2",_L,ge(e.artifact.id),1),P("p",$L,[oe(Cg,{artifact:e.artifact,onDelete:o,onSetError:s,onSetMessage:l},null,8,["artifact"])])]),P("div",CL,[i.value||c.value?(K(),re("div",AL,[i.value?(K(),re("div",xL,[P("h4",kL,[v[0]||(v[0]=Ze(" Geolocation ",-1)),P("span",EL,ge(h.value||e.artifact.geolocation?.countryCode),1)]),P("iframe",{class:"mb-4",src:i.value,width:"100%",height:"240px"},null,8,ML)])):fe("",!0),c.value?(K(),re("div",TL,[v[1]||(v[1]=P("h4",{class:"is-size-4"},"Live screenshot",-1)),v[2]||(v[2]=P("p",{class:"help"},"Hover to expand",-1)),P("img",{src:c.value,class:"liveshot",alt:"liveshot"},null,8,LL)])):fe("",!0)])):fe("",!0),P("div",RL,[v[9]||(v[9]=P("h4",{class:"is-size-4"},"Information",-1)),P("table",IL,[P("tr",null,[v[3]||(v[3]=P("th",null,"Data",-1)),P("td",null,ge(se(si)(e.artifact.data,64)),1)]),P("tr",null,[v[4]||(v[4]=P("th",null,"Data type",-1)),P("td",null,ge(e.artifact.dataType),1)]),P("tr",null,[v[5]||(v[5]=P("th",null,"Source",-1)),P("td",null,ge(e.artifact.source),1)]),P("tr",null,[v[6]||(v[6]=P("th",null,"Query",-1)),P("td",null,ge(se(si)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",OL,[v[8]||(v[8]=P("th",null,"Tags",-1)),P("td",null,[oe(_i,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),v[7]||(v[7]=Ze("/td>",-1))])])):fe("",!0)]),P("p",NL,"Created at: "+ge(e.artifact.createdAt),1)])]),P("div",DL,[oe(nL,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),P("div",FL,[e.artifact.autonomousSystem?(K(),re("div",PL,[v[10]||(v[10]=P("h4",{class:"is-size-4 mb-2"},"AS",-1)),oe(YM,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):fe("",!0),e.artifact.reverseDnsNames?(K(),re("div",zL,[v[11]||(v[11]=P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),oe(iT,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):fe("",!0),e.artifact.dnsRecords?(K(),re("div",WL,[v[12]||(v[12]=P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),oe(eT,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):fe("",!0),e.artifact.cpes?(K(),re("div",BL,[v[13]||(v[13]=P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),oe(XM,{cpes:e.artifact.cpes},null,8,["cpes"])])):fe("",!0),e.artifact.vulnerabilities?(K(),re("div",jL,[v[14]||(v[14]=P("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),oe(sT,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):fe("",!0),e.artifact.ports?(K(),re("div",HL,[v[15]||(v[15]=P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),oe(nT,{ports:e.artifact.ports},null,8,["ports"])])):fe("",!0),e.artifact.whoisRecord?(K(),re("div",UL,[v[16]||(v[16]=P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),oe(wT,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):fe("",!0)])],64))}}),GL=mi(VL,[["__scopeId","data-v-aadb0460"]]),ZL=ve({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=wk(),r=kr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=async()=>{r.push("/")};return et(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Me,null,[se(n).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(n).isError?(K(),me(lt,{key:1,error:se(n).last?.error},null,8,["error"])):fe("",!0),se(n).last?.value?(K(),me(GL,{key:2,artifact:se(n).last.value,onRefresh:h,onDelete:f},null,8,["artifact"])):fe("",!0)],64))}}),YL=ve({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{vn(`Artifact:${t.id} - Mihari`)};return et(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(ZL,{id:parseInt(e.id)},null,8,["id"]))}}),KL={class:"box"},XL={class:"table-container"},QL={class:"table is-fullwidth"},JL={key:0,class:"button is-success is-small ml-1"},qL={class:"icon is-small"},eR={key:1,class:"button is-warning is-small ml-1"},tR={class:"icon is-small"},nR={class:"field is-grouped is-grouped-multiline"},rR={class:"tags has-addons"},iR={class:"tag is-dark"},oR=ve({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const r=De("font-awesome-icon");return K(),re("div",KL,[P("div",XL,[P("table",QL,[n[2]||(n[2]=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured?"),P("th",null,"Items")])],-1)),P("tbody",null,[(K(!0),re(Me,null,It(e.configs.results,i=>(K(),re("tr",{key:i.name},[P("td",null,ge(i.name),1),P("td",null,ge(i.type),1),P("td",null,[i.configured?(K(),re("button",JL,[P("span",qL,[oe(r,{icon:"check"})]),n[0]||(n[0]=P("span",null,"Yes",-1))])):(K(),re("button",eR,[P("span",tR,[oe(r,{icon:"exclamation"})]),n[1]||(n[1]=P("span",null,"No",-1))]))]),P("td",null,[P("div",nR,[(K(!0),re(Me,null,It(i.items,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",rR,[P("span",iR,ge(h.key),1),P("span",{class:fi(["tag",{"is-success":h.value,"is-warning":!h.value}])},ge(h.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),sR=ve({__name:"ConfigsWrapper",setup(e){const t=_k();return et(async()=>{await t.perform()}),(n,r)=>(K(),re(Me,null,[se(t).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(t).isError?(K(),me(lt,{key:1,error:se(t).last?.error},null,8,["error"])):fe("",!0),se(t).last?.value?(K(),me(oR,{key:2,configs:se(t).last.value},null,8,["configs"])):fe("",!0)],64))}}),aR=ve({__name:"ConfigView",setup(e){return vn("Configuration - Mihari"),(t,n)=>(K(),me(sR))}});var Us={exports:{}},Ah;function lR(){return Ah||(Ah=1,(function(e,t){(function(){var n="ace",r=(function(){return this})();!r&&typeof window<"u"&&(r=window);var i=function(o,l,u){if(typeof o!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),i.modules[o]||(i.payloads[o]=u,i.modules[o]=null)};i.modules={},i.payloads={};var h=function(o,l,u){if(typeof l=="string"){var c=s(o,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var a=[],d=0,m=l.length;d<m;++d){var v=s(o,l[d]);if(v==null&&f.original)return;a.push(v)}return u&&u.apply(null,a)||!0}},f=function(o,l){var u=h("",o,l);return u==null&&f.original?f.original.apply(this,arguments):u},g=function(o,l){if(l.indexOf("!")!==-1){var u=l.split("!");return g(o,u[0])+"!"+g(o,u[1])}if(l.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&a!=l;){var a=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},s=function(o,l){l=g(o,l);var u=i.modules[l];if(!u){if(u=i.payloads[l],typeof u=="function"){var c={},a={id:l,uri:"",exports:c,packaged:!0},d=function(v,y){return h(l,v,y)},m=u(d,c,a);c=m||a.exports,i.modules[l]=c,delete i.payloads[l]}u=i.modules[l]=c||u}return u};function p(o){var l=r;r[o]||(r[o]={}),l=r[o],(!l.define||!l.define.packaged)&&(i.original=l.define,l.define=i,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(f.original=l.require,l.require=f,l.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,i){function h(f,g,s){Object.defineProperty(f,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||h(String.prototype,"endsWith",function(f,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=f.length;var p=s.indexOf(f,g);return p!==-1&&p===g}),String.prototype.repeat||h(String.prototype,"repeat",function(f){for(var g="",s=this;f>0;)f&1&&(g+=s),(f>>=1)&&(s+=s);return g}),String.prototype.includes||h(String.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(f),s=1;s<arguments.length;s++){var p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||h(Array.prototype,"find",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return o}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return p}}),Array.prototype.includes||h(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(f){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,l=o<0?Math.max(s+o,0):Math.min(o,s),u=arguments[2],c=u===void 0?s:u>>0,a=c<0?Math.max(s+c,0):Math.min(c,s);l<a;)g[l]=f,l++;return g}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,i){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,i){r.deepCopy=function h(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var s=0;s<f.length;s++)g[s]=h(f[s]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var s in f)g[s]=h(f[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){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 h=/^\s\s*/,f=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(h,"")},r.stringTrimRight=function(g){return g.replace(f,"")},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(l){return o.cancel(),s=setTimeout(p,l||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()},l=function(u){p==null&&(p=setTimeout(o,u||s))};return l.delay=function(u){p&&clearTimeout(p),p=setTimeout(o,u||s)},l.schedule=l,l.call=function(){this.cancel(),g()},l.cancel=function(){p&&clearTimeout(p),p=null},l.isPending=function(){return p},l},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,i){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 h=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),g=h.userAgent||"",s=h.appName||"";r.isWin=f=="win",r.isMac=f=="mac",r.isLinux=f=="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,i){var h=n("./useragent"),f="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,a,d){if(typeof c=="string"&&c){var m=document.createTextNode(c);return a&&a.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&a&&a.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],y=0;y<c.length;y++){var A=u(c[y],a,d);A&&v.push(A)}return v}var C=document.createElement(c[0]),_=c[1],b=1;_&&typeof _=="object"&&!Array.isArray(_)&&(b=2);for(var y=b;y<c.length;y++)u(c[y],C,d);return b==2&&Object.keys(_).forEach(function(k){var R=_[k];k==="class"?C.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||k=="value"||k[0]=="$"?C[k]=R:k==="ref"?d&&(d[R]=C):k==="style"?typeof R=="string"&&(C.style.cssText=R):R!=null&&C.setAttribute(k,R)}),a&&a.appendChild(C),C},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||f,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var a=c?c.ownerDocument:document;return a.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var a=(u.className+"").split(/\s+/g);return a.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var a=u.className.split(/\s+/g);;){var d=a.indexOf(c);if(d==-1)break;a.splice(d,1)}u.className=a.join(" ")},r.toggleCssClass=function(u,c){for(var a=u.className.split(/\s+/g),d=!0;;){var m=a.indexOf(c);if(m==-1)break;d=!1,a.splice(m,1)}return d&&a.push(c),u.className=a.join(" "),d},r.setCssClass=function(u,c,a){a?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var a=0,d;if(c=c||document,d=c.querySelectorAll("style")){for(;a<d.length;)if(d[a++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var g,s=[];r.useStrictCSP=function(u){g=u,u==!1?p():s||(s=[])};function p(){var u=s;s=null,u&&u.forEach(function(c){o(c[0],c[1])})}function o(u,c,a){if(!(typeof document>"u")){if(s){if(a)p();else if(a===!1)return s.push([u,c])}if(!g){var d=a;!a||!a.getRootNode?d=document:(d=a.getRootNode(),(!d||d==a)&&(d=document));var m=d.ownerDocument||d;if(c&&r.hasCssString(c,d))return null;c&&(u+=`
584
+ /*# sourceURL=ace/css/`+c+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(u)),c&&(v.id=c),d==m&&(d=r.getDocumentHead(m)),d.insertBefore(v,d.firstChild)}}}if(r.importCssString=o,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var a=parseFloat(u.style.left),d=+c.left;Math.abs(a-d)>1&&(u.style.left=2*a-d+"px")}if(u.style.right){var a=parseFloat(u.style.right),d=window.innerWidth-c.right;Math.abs(a-d)>1&&(u.style.right=2*a-d+"px")}if(u.style.top){var a=parseFloat(u.style.top),d=+c.top;Math.abs(a-d)>1&&(u.style.top=2*a-d+"px")}if(u.style.bottom){var a=parseFloat(u.style.bottom),d=window.innerHeight-c.bottom;Math.abs(a-d)>1&&(u.style.bottom=2*a-d+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var a=r.createElement("ace_outer"),d=a.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",a.appendChild(c);var m=u&&u.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(a);var v=c.offsetWidth;d.overflow="scroll";var y=c.offsetWidth;return v===y&&(y=a.clientWidth),m.removeChild(a),v-y},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,a){u[c]!==a&&(u[c]=a)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,a){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(a)+"px)"}:r.translate=function(u,c,a){u.style.top=Math.round(a)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("./dom");r.get=function(f,g){var s=new XMLHttpRequest;s.open("GET",f,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},r.loadScript=function(f,g){var s=h.getDocumentHead(),p=document.createElement("script");p.src=f,s.appendChild(p),p.onload=p.onreadystatechange=function(o,l){(l||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,l||g())}},r.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,i){r.inherits=function(h,f){h.super_=f,h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,f){for(var g in f)h[g]=f[g];return h},r.implement=function(h,f){r.mixin(h,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,i){var h={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(s,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],l=this._defaultHandlers[s];if(!(!o.length&&!l)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=s),p.stopPropagation||(p.stopPropagation=f),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var u=0;u<o.length&&(o[u](p,this),!p.propagationStopped);u++);if(l&&!p.defaultPrevented)return l(p,this)}},h._signal=function(s,p){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var l=0;l<o.length;l++)o[l](p,this)}},h.once=function(s,p){var o=this;if(this.on(s,function l(){o.off(s,l),p.apply(null,arguments)}),!p)return new Promise(function(l){p=l})},h.setDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var l=o[s],u=o._disabled_[s];u||(o._disabled_[s]=u=[]),u.push(l);var c=u.indexOf(p);c!=-1&&u.splice(c,1)}o[s]=p},h.removeDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o){var l=o._disabled_[s];if(o[s]==p)l&&this.setDefaultHandler(s,l.pop());else if(l){var u=l.indexOf(p);u!=-1&&l.splice(u,1)}}},h.on=h.addEventListener=function(s,p,o){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[s];return l||(l=this._eventRegistry[s]=[]),l.indexOf(p)==-1&&l[o?"unshift":"push"](p),p},h.off=h.removeListener=h.removeEventListener=function(s,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var l=o.indexOf(p);l!==-1&&o.splice(l,1)}},h.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,i){r.reportError=function(f,g){var s=new Error(f);s.data=g,typeof console=="object"&&console.error&&console.error(s),setTimeout(function(){throw s})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,i){var h={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=h}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,i){"no use strict";var h=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(a){Object.keys(a).forEach(function(d){this.setOption(d,a[d])},this)},getOptions:function(a){var d={};if(a)Array.isArray(a)||(a=Object.keys(a));else{var m=this.$options;a=Object.keys(m).filter(function(v){return!m[v].hidden})}return a.forEach(function(v){d[v]=this.getOption(v)},this),d},setOption:function(a,d){if(this["$"+a]!==d){var m=this.$options[a];if(!m)return o('misspelled option "'+a+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(a,d);m.handlesSet||(this["$"+a]=d),m&&m.set&&m.set.call(this,d)}},getOption:function(a){var d=this.$options[a];return d?d.forwardTo?this[d.forwardTo]&&this[d.forwardTo].getOption(a):d&&d.get?d.get.call(this):this["$"+a]:o('misspelled option "'+a+'"')}};function o(a){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,u,c=(function(){function a(){this.$defaultOptions={},l=s,u="dollarSigns"}return a.prototype.defineOptions=function(d,m,v){return d.$options||(this.$defaultOptions[m]=d.$options={}),Object.keys(v).forEach(function(y){var A=v[y];typeof A=="string"&&(A={forwardTo:A}),A.name||(A.name=y),d.$options[A.name]=A,"initialValue"in A&&(d["$"+A.name]=A.initialValue)}),h.implement(d,p),this},a.prototype.resetOptions=function(d){Object.keys(d.$options).forEach(function(m){var v=d.$options[m];"value"in v&&d.setOption(m,v.value)})},a.prototype.setDefaultValue=function(d,m,v){if(!d){for(d in this.$defaultOptions)if(this.$defaultOptions[d][m])break;if(!this.$defaultOptions[d][m])return!1}var y=this.$defaultOptions[d]||(this.$defaultOptions[d]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},a.prototype.setDefaultValues=function(d,m){Object.keys(m).forEach(function(v){this.setDefaultValue(d,v,m[v])},this)},a.prototype.setMessages=function(d,m){l=d,m&&m.placeholders&&(u=m.placeholders)},a.prototype.nls=function(d,m,v){l[d]||(o("No message found for the key '"+d+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+m+"'."),l[m]||o("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=l[d]||l[m]||m;return v&&(u==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(A,C){return C=="$"?"$":v[C]})),u==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(A,C){return v[C]}))),y},a})();c.prototype.warn=o,c.prototype.reportError=g,h.implement(c.prototype,f),r.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,i){i.exports=`.ace-tm .ace_gutter {
585
+ background: #f0f0f0;
586
+ color: #333;
587
+ }
588
+
589
+ .ace-tm .ace_print-margin {
590
+ width: 1px;
591
+ background: #e8e8e8;
592
+ }
593
+
594
+ .ace-tm .ace_fold {
595
+ background-color: #6B72E6;
596
+ }
597
+
598
+ .ace-tm {
599
+ background-color: #FFFFFF;
600
+ color: black;
601
+ }
602
+
603
+ .ace-tm .ace_cursor {
604
+ color: black;
605
+ }
606
+
607
+ .ace-tm .ace_invisible {
608
+ color: rgb(191, 191, 191);
609
+ }
610
+
611
+ .ace-tm .ace_storage,
612
+ .ace-tm .ace_keyword {
613
+ color: blue;
614
+ }
615
+
616
+ .ace-tm .ace_constant {
617
+ color: rgb(197, 6, 11);
618
+ }
619
+
620
+ .ace-tm .ace_constant.ace_buildin {
621
+ color: rgb(88, 72, 246);
622
+ }
623
+
624
+ .ace-tm .ace_constant.ace_language {
625
+ color: rgb(88, 92, 246);
626
+ }
627
+
628
+ .ace-tm .ace_constant.ace_library {
629
+ color: rgb(6, 150, 14);
630
+ }
631
+
632
+ .ace-tm .ace_invalid {
633
+ background-color: rgba(255, 0, 0, 0.1);
634
+ color: red;
635
+ }
636
+
637
+ .ace-tm .ace_support.ace_function {
638
+ color: rgb(60, 76, 114);
639
+ }
640
+
641
+ .ace-tm .ace_support.ace_constant {
642
+ color: rgb(6, 150, 14);
643
+ }
644
+
645
+ .ace-tm .ace_support.ace_type,
646
+ .ace-tm .ace_support.ace_class {
647
+ color: rgb(109, 121, 222);
648
+ }
649
+
650
+ .ace-tm .ace_keyword.ace_operator {
651
+ color: rgb(104, 118, 135);
652
+ }
653
+
654
+ .ace-tm .ace_string {
655
+ color: rgb(3, 106, 7);
656
+ }
657
+
658
+ .ace-tm .ace_comment {
659
+ color: rgb(76, 136, 107);
660
+ }
661
+
662
+ .ace-tm .ace_comment.ace_doc {
663
+ color: rgb(0, 102, 255);
664
+ }
665
+
666
+ .ace-tm .ace_comment.ace_doc.ace_tag {
667
+ color: rgb(128, 159, 191);
668
+ }
669
+
670
+ .ace-tm .ace_constant.ace_numeric {
671
+ color: rgb(0, 0, 205);
672
+ }
673
+
674
+ .ace-tm .ace_variable {
675
+ color: rgb(49, 132, 149);
676
+ }
677
+
678
+ .ace-tm .ace_xml-pe {
679
+ color: rgb(104, 104, 91);
680
+ }
681
+
682
+ .ace-tm .ace_entity.ace_name.ace_function {
683
+ color: #0000A2;
684
+ }
685
+
686
+
687
+ .ace-tm .ace_heading {
688
+ color: rgb(12, 7, 255);
689
+ }
690
+
691
+ .ace-tm .ace_list {
692
+ color:rgb(185, 6, 144);
693
+ }
694
+
695
+ .ace-tm .ace_meta.ace_tag {
696
+ color:rgb(0, 22, 142);
697
+ }
698
+
699
+ .ace-tm .ace_string.ace_regex {
700
+ color: rgb(255, 0, 0)
701
+ }
702
+
703
+ .ace-tm .ace_marker-layer .ace_selection {
704
+ background: rgb(181, 213, 255);
705
+ }
706
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
707
+ box-shadow: 0 0 3px 0px white;
708
+ }
709
+ .ace-tm .ace_marker-layer .ace_step {
710
+ background: rgb(252, 255, 0);
711
+ }
712
+
713
+ .ace-tm .ace_marker-layer .ace_stack {
714
+ background: rgb(164, 229, 101);
715
+ }
716
+
717
+ .ace-tm .ace_marker-layer .ace_bracket {
718
+ margin: -1px 0 0 -1px;
719
+ border: 1px solid rgb(192, 192, 192);
720
+ }
721
+
722
+ .ace-tm .ace_marker-layer .ace_active-line {
723
+ background: rgba(0, 0, 0, 0.07);
724
+ }
725
+
726
+ .ace-tm .ace_gutter-active-line {
727
+ background-color : #dcdcdc;
728
+ }
729
+
730
+ .ace-tm .ace_marker-layer .ace_selected-word {
731
+ background: rgb(250, 250, 255);
732
+ border: 1px solid rgb(200, 200, 250);
733
+ }
734
+
735
+ .ace-tm .ace_indent-guide {
736
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
737
+ }
738
+
739
+ .ace-tm .ace_indent-guide-active {
740
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
741
+ }
742
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,i){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var h=n("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,i){"no use strict";var h=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;i.exports=r=new s;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!p.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return p[c]},r.set=function(c,a){if(p.hasOwnProperty(c))p[c]=a;else if(this.setDefaultValue("",c,a)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(a)},r.all=function(){return h.copyObject(p)},r.$modes={},r.moduleUrl=function(c,a){if(p.$moduleUrls[c])return p.$moduleUrls[c];var d=c.split("/");a=a||d[d.length-2]||"";var m=a=="snippets"?"/":"-",v=d[d.length-1];if(a=="worker"&&m=="-"){var y=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");v=v.replace(y,"")}(!v||v==a)&&d.length>1&&(v=d[d.length-2]);var A=p[a+"Path"];return A==null?A=p.basePath:m=="/"&&(a=m=""),A&&A.slice(-1)!="/"&&(A+="/"),A+a+m+v+this.get("suffix")},r.setModuleUrl=function(c,a){return p.$moduleUrls[c]=a};var o=function(c,a){if(c==="ace/theme/textmate"||c==="./theme/textmate")return a(null,n("./theme/textmate"));if(l)return l(c,a);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,a){var d;if(Array.isArray(c))var m=c[0],v=c[1];else if(typeof c=="string")var v=c;var y=function(A){if(A&&!r.$loading[v])return a&&a(A);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(a),!(r.$loading[v].length>1)){var C=function(){o(v,function(_,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var k=r.$loading[v];r.$loading[v]=null,k.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return C();f.loadScript(r.moduleUrl(v,m),C),u()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(A){A.default?y(A.default):y(A)});else{try{d=this.$require(v)}catch{}y(d||r.$loaded[v])}},r.$require=function(c){if(typeof i.require=="function"){var a="require";return i[a](c)}},r.setModuleLoader=function(c,a){r.dynamicModules[c]=a};var u=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,i){n("./lib/fixoldbrowsers");var h=n("./config");h.setLoader(function(p,o){n([p],function(l){o(null,l)})});var f=(function(){return this||typeof window<"u"&&window})();i.exports=function(p){h.init=g,h.$require=n,p.require=n},g(!0);function g(p){if(!(!f||!f.document)){h.set("packaged",p||n.packaged||i.packaged||f.define&&(void 0).packaged);var o={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=c.getElementsByTagName("script"),d=0;d<a.length;d++){var m=a[d],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,A=0,C=y.length;A<C;A++){var _=y[A];_.name.indexOf("data-ace-")===0&&(o[s(_.name.replace(/^data-ace-/,""))]=_.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(l=b[1])}}l&&(o.base=o.base||l,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var k in o)typeof o[k]<"u"&&h.set(k,o[k])}}function s(p){return p.replace(/-(.)/g,function(o,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,i){var h=(function(){function f(g,s,p,o){this.start={row:g,column:s},this.end={row:p,column:o}}return f.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(g,s){return this.compare(g,s)==0},f.prototype.compareRange=function(g){var s,p=g.end,o=g.start;return s=this.compare(p.row,p.column),s==1?(s=this.compare(o.row,o.column),s==1?2:s==0?1:0):s==-1?-2:(s=this.compare(o.row,o.column),s==-1?-1:s==1?42:0)},f.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},f.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},f.prototype.intersects=function(g){var s=this.compareRange(g);return s==-1||s==0||s==1},f.prototype.isEnd=function(g,s){return this.end.row==g&&this.end.column==s},f.prototype.isStart=function(g,s){return this.start.row==g&&this.start.column==s},f.prototype.setStart=function(g,s){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=s)},f.prototype.setEnd=function(g,s){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=s)},f.prototype.inside=function(g,s){return this.compare(g,s)==0?!(this.isEnd(g,s)||this.isStart(g,s)):!1},f.prototype.insideStart=function(g,s){return this.compare(g,s)==0?!this.isEnd(g,s):!1},f.prototype.insideEnd=function(g,s){return this.compare(g,s)==0?!this.isStart(g,s):!1},f.prototype.compare=function(g,s){return!this.isMultiLine()&&g===this.start.row?s<this.start.column?-1:s>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?s>=this.start.column?0:-1:this.end.row===g?s<=this.end.column?0:1:0},f.prototype.compareStart=function(g,s){return this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.compareEnd=function(g,s){return this.end.row==g&&this.end.column==s?1:this.compare(g,s)},f.prototype.compareInside=function(g,s){return this.end.row==g&&this.end.column==s?1:this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.clipRows=function(g,s){if(this.end.row>s)var p={row:s+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>s)var o={row:s+1,column:0};else if(this.start.row<g)var o={row:g,column:0};return f.fromPoints(o||this.start,p||this.end)},f.prototype.extend=function(g,s){var p=this.compare(g,s);if(p==0)return this;if(p==-1)var o={row:g,column:s};else var l={row:g,column:s};return f.fromPoints(o||this.start,l||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(g){var s=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new f(s.row,s.column,p.row,p.column)},f.prototype.moveBy=function(g,s){this.start.row+=g,this.start.column+=s,this.end.row+=g,this.end.column+=s},f})();h.fromPoints=function(f,g){return new h(f.row,f.column,g.row,g.column)},h.comparePoints=function(f,g){return f.row-g.row||f.column-g.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,i){for(var h=n("./oop"),f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},s=0;s<10;s++)g["Digit"+s]=48+s,g["Numpad"+s]=96+s,f.PRINTABLE_KEYS[48+s]=""+s,f.FUNCTION_KEYS[96+s]="Numpad"+s;for(var s=65;s<91;s++){var p=String.fromCharCode(s+32);g["Key"+p.toUpperCase()]=s,f.PRINTABLE_KEYS[s]=p}for(var s=1;s<13;s++)g["F"+s]=111+s,f.FUNCTION_KEYS[111+s]="F"+s;var o={Shift:16,Control:17,Alt:18,Meta:224};for(var l in o)g[l]=g[l+"Left"]=g[l+"Right"]=o[l];r.$codeToKeyCode=g,f.PRINTABLE_KEYS[173]="-";for(var u in f.FUNCTION_KEYS){var c=f.FUNCTION_KEYS[u].toLowerCase();f[c]=parseInt(u,10)}for(var u in f.PRINTABLE_KEYS){var c=f.PRINTABLE_KEYS[u].toLowerCase();f[c]=parseInt(u,10)}h.mixin(f,f.MODIFIER_KEYS),h.mixin(f,f.PRINTABLE_KEYS),h.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,(function(){for(var a=["cmd","ctrl","alt","shift"],d=Math.pow(2,a.length);d--;)f.KEY_MODS[d]=a.filter(function(m){return d&f.KEY_MODS[m]}).join("-")+"-"})(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",h.mixin(r,f),r.default=r,r.keyCodeToString=function(a){var d=f[a];return typeof d!="string"&&(d=String.fromCharCode(a)),d.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=n("./keys"),f=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 l(){return p==null&&o(),p}function u(A,C,_){this.elem=A,this.type=C,this.callback=_}u.prototype.destroy=function(){a(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(A,C,_,b){A.addEventListener(C,_,l()),b&&b.$toDestroy.push(new u(A,C,_))},a=r.removeListener=function(A,C,_){A.removeEventListener(C,_,l())};r.stopEvent=function(A){return r.stopPropagation(A),r.preventDefault(A),!1},r.stopPropagation=function(A){A.stopPropagation&&A.stopPropagation()},r.preventDefault=function(A){A.preventDefault&&A.preventDefault()},r.getButton=function(A){return A.type=="dblclick"?0:A.type=="contextmenu"||f.isMac&&A.ctrlKey&&!A.altKey&&!A.shiftKey?2:A.button},r.capture=function(A,C,_){var b=A&&A.ownerDocument||document;function k(R){C&&C(R),_&&_(R),a(b,"mousemove",C),a(b,"mouseup",k),a(b,"dragstart",k)}return c(b,"mousemove",C),c(b,"mouseup",k),c(b,"dragstart",k),k},r.addMouseWheelListener=function(A,C,_){c(A,"wheel",function(b){var k=.15,R=b.deltaX||0,M=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*k,b.wheelY=M*k;break;case b.DOM_DELTA_LINE:var L=15;b.wheelX=R*L,b.wheelY=M*L;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=R*N,b.wheelY=M*N;break}C(b)},_)},r.addMultiMouseDownListener=function(A,C,_,b,k){var R=0,M,L,N,T={2:"dblclick",3:"tripleclick",4:"quadclick"};function $(S){if(r.getButton(S)!==0?R=0:S.detail>1?(R++,R>4&&(R=1)):R=1,f.isIE){var w=Math.abs(S.clientX-M)>5||Math.abs(S.clientY-L)>5;(!N||w)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},C[R-1]||600),R==1&&(M=S.clientX,L=S.clientY)}if(S._clicks=R,_[b]("mousedown",S),R>4)R=0;else if(R>1)return _[b](T[R],S)}Array.isArray(A)||(A=[A]),A.forEach(function(S){c(S,"mousedown",$,k)})};function d(A){return 0|(A.ctrlKey?1:0)|(A.altKey?2:0)|(A.shiftKey?4:0)|(A.metaKey?8:0)}r.getModifierString=function(A){return h.KEY_MODS[d(A)]};function m(A,C,_){var b=d(C);if(!_&&C.code&&(_=h.$codeToKeyCode[C.code]||_),!f.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(_===18||_===17){var k=C.location;if(_===17&&k===1)g[_]==1&&(s=C.timeStamp);else if(_===18&&b===3&&k===2){var R=C.timeStamp-s;R<50&&(g.altGr=!0)}}}if(_ in h.MODIFIER_KEYS&&(_=-1),!(!b&&_===13&&C.location===3&&(A(C,b,-_),C.defaultPrevented))){if(f.isChromeOS&&b&8){if(A(C,b,_),C.defaultPrevented)return;b&=-9}return!b&&!(_ in h.FUNCTION_KEYS)&&!(_ in h.PRINTABLE_KEYS)?!1:A(C,b,_)}}r.addCommandKeyListener=function(A,C,_){var b=null;c(A,"keydown",function(k){g[k.keyCode]=(g[k.keyCode]||0)+1;var R=m(C,k,k.keyCode);return b=k.defaultPrevented,R},_),c(A,"keypress",function(k){b&&(k.ctrlKey||k.altKey||k.shiftKey||k.metaKey)&&(r.stopEvent(k),b=null)},_),c(A,"keyup",function(k){g[k.keyCode]=null},_),g||(v(),c(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;r.nextTick=function(A,C){C=C||window;var _="zero-timeout-message-"+y++,b=function(k){k.data==_&&(r.stopPropagation(k),a(C,"message",b),A())};c(C,"message",b),C.postMessage(_,"*")}}r.$idleBlocked=!1,r.onIdle=function(A,C){return setTimeout(function _(){r.$idleBlocked?setTimeout(_,100):A()},C)},r.$idleBlockId=null,r.blockIdle=function(A){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},A||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(A){setTimeout(A,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,i){var h;i.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=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,i){var h=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),l=g.isChrome<18,u=g.isIE,c=g.isChrome>63,a=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,A=g.isMobile,C=(function(){function _(b,k){var R=this;this.host=k,this.text=s.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",b.insertBefore(this.text,b.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",A||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),h.addListener(this.text,"blur",function(M){R.ignoreFocusEvents||(k.onBlur(M),R.$isFocused=!1)},k),h.addListener(this.text,"focus",function(M){if(!R.ignoreFocusEvents){if(R.$isFocused=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}k.onFocus(M),g.isEdge?setTimeout(R.resetSelection.bind(R)):R.resetSelection()}},k),this.$focusScroll=!1,k.on("beforeEndOperation",function(){var M=k.curOp,L=M&&M.command&&M.command.name;if(L!="insertstring"){var N=L&&(M.docChanged||M.selectionChanged);R.inComposition&&N&&(R.lastValue=R.text.value="",R.onCompositionEnd()),R.resetSelection()}}),k.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=v?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&k.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,h.addCommandKeyListener(this.text,function(M,L,N){if(!R.inComposition)return k.onCommandKey(M,L,N)},k),h.addListener(this.text,"select",this.onSelect.bind(this),k),h.addListener(this.text,"input",this.onInput.bind(this),k),h.addListener(this.text,"cut",this.onCut.bind(this),k),h.addListener(this.text,"copy",this.onCopy.bind(this),k),h.addListener(this.text,"paste",this.onPaste.bind(this),k),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&h.addListener(b,"keydown",function(M){if(!(g.isMac&&!M.metaKey||!M.ctrlKey))switch(M.keyCode){case 67:R.onCopy(M);break;case 86:R.onPaste(M);break;case 88:R.onCut(M);break}},k),this.syncComposition=p.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),h.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),k),h.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),k),h.addListener(this.text,"keyup",this.onKeyup.bind(this),k),h.addListener(this.text,"keydown",this.syncComposition.bind(this),k),h.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),k),this.closeTimeout,h.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),k),h.addListener(this.text,"mousedown",function(M){M.preventDefault(),R.onContextMenuClose()},k),h.addListener(k.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),k),h.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),k),v&&this.addIosSelectionHandler(b,k,this.text)}return _.prototype.addIosSelectionHandler=function(b,k,R){var M=this,L=null,N=!1;R.addEventListener("keydown",function($){L&&clearTimeout(L),N=!0},!0),R.addEventListener("keyup",function($){L=setTimeout(function(){N=!1},100)},!0);var T=function($){if(document.activeElement===R&&!(N||M.inComposition||k.$mouseHandler.isMousePressed)&&!M.copied){var S=R.selectionStart,w=R.selectionEnd,x=null,E=0;if(S==0?x=d.up:S==1?x=d.home:w>M.lastSelectionEnd&&M.lastValue[w]==`
743
+ `?x=d.end:S<M.lastSelectionStart&&M.lastValue[S-1]==" "?(x=d.left,E=m.option):S<M.lastSelectionStart||S==M.lastSelectionStart&&M.lastSelectionEnd!=M.lastSelectionStart&&S==w?x=d.left:w>M.lastSelectionEnd&&M.lastValue.slice(0,w).split(`
744
+ `).length>2?x=d.down:w>M.lastSelectionEnd&&M.lastValue[w-1]==" "?(x=d.right,E=m.option):(w>M.lastSelectionEnd||w==M.lastSelectionEnd&&M.lastSelectionEnd!=M.lastSelectionStart&&S==w)&&(x=d.right),S!==w&&(E|=m.shift),x){var I=k.onCommandKey({},E,x);if(!I&&k.commands){x=d.keyCodeToString(x);var O=k.commands.findKeyCommand(E,x);O&&k.execCommand(O)}M.lastSelectionStart=S,M.lastSelectionEnd=w,M.resetSelection("")}}};document.addEventListener("selectionchange",T),k.on("destroy",function(){document.removeEventListener("selectionchange",T)})},_.prototype.onContextMenuClose=function(){var b=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){b.tempStyle&&(b.text.style.cssText=b.tempStyle,b.tempStyle=""),b.host.renderer.$isMousePressed=!1,b.host.renderer.$keepTextAreaAtCursor&&b.host.renderer.$moveTextAreaToCursor()},0)},_.prototype.$onContextMenu=function(b){this.host.textInput.onContextMenu(b),this.onContextMenuClose()},_.prototype.onKeyup=function(b){b.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},_.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},_.prototype.onCompositionStart=function(b){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){b.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var k=this.host.getSelectionRange();k.end.row=k.start.row,k.end.column=k.start.column,this.inComposition.markerRange=k,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},_.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var b=this.text.value;this.sendText(b),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},_.prototype.onCompositionEnd=function(b){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),b&&this.onInput())},_.prototype.onCut=function(b){this.doCopy(b,!0)},_.prototype.onCopy=function(b){this.doCopy(b,!1)},_.prototype.onPaste=function(b){var k=this.handleClipboardData(b);o.pasteCancelled()||(typeof k=="string"?(k&&this.host.onPaste(k,b),g.isIE&&setTimeout(this.resetSelection),h.preventDefault(b)):(this.text.value="",this.pasted=!0))},_.prototype.doCopy=function(b,k){var R=this,M=this.host.getCopyText();if(!M)return h.preventDefault(b);this.handleClipboardData(b,M)?(v&&(this.resetSelection(M),this.copied=M,setTimeout(function(){R.copied=!1},10)),k?this.host.onCut():this.host.onCopy(),h.preventDefault(b)):(this.copied=!0,this.text.value=M,this.text.select(),setTimeout(function(){R.copied=!1,R.resetSelection(),k?R.host.onCut():R.host.onCopy()}))},_.prototype.handleClipboardData=function(b,k,R){var M=b.clipboardData||window.clipboardData;if(!(!M||l)){var L=u||R?"Text":"text/plain";try{return k?M.setData(L,k)!==!1:M.getData(L)}catch(N){if(!R)return this.handleClipboardData(N,k,!0)}}},_.prototype.onInput=function(b){if(this.inComposition)return this.onCompositionUpdate();if(b&&b.inputType){if(b.inputType=="historyUndo")return this.host.execCommand("undo");if(b.inputType=="historyRedo")return this.host.execCommand("redo")}var k=this.text.value,R=this.sendText(k,!0);(k.length>a+100||y.test(R)||A&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},_.prototype.sendText=function(b,k){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),b&&this.host.onPaste(b),this.pasted=!1,"";for(var R=this.text.selectionStart,M=this.text.selectionEnd,L=this.lastSelectionStart,N=this.lastValue.length-this.lastSelectionEnd,T=b,$=b.length-R,S=b.length-M,w=0;L>0&&this.lastValue[w]==b[w];)w++,L--;for(T=T.slice(w),w=1;N>0&&this.lastValue.length-w>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-w]==b[b.length-w];)w++,N--;$-=w-1,S-=w-1;var x=T.length-w+1;if(x<0&&(L=-x,x=0),T=T.slice(0,x),!k&&!T&&!$&&!L&&!N&&!S)return"";this.sendingText=!0;var E=!1;return g.isAndroid&&T==". "&&(T=" ",E=!0),T&&!L&&!N&&!$&&!S||this.commandMode?this.host.onTextInput(T):this.host.onTextInput(T,{extendLeft:L,extendRight:N,restoreStart:$,restoreEnd:S}),this.sendingText=!1,this.lastValue=b,this.lastSelectionStart=R,this.lastSelectionEnd=M,this.lastRestoreEnd=S,E?`
745
+ `:T},_.prototype.onSelect=function(b){var k=this;if(!this.inComposition){var R=function(M){return M.selectionStart===0&&M.selectionEnd>=k.lastValue.length&&M.value===k.lastValue&&k.lastValue&&M.selectionEnd!==k.lastSelectionEnd};this.copied?this.copied=!1:R(this.text)?(this.host.selectAll(),this.resetSelection()):A&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},_.prototype.$resetSelectionIOS=function(b){if(!(!this.$isFocused||this.copied&&!b||this.sendingText)){b||(b="");var k=`
746
+ ab`+b+`cde fg
747
+ `;k!=this.text.value&&(this.text.value=this.lastValue=k);var R=4,M=4+(b.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=R||this.lastSelectionEnd!=M)&&this.text.setSelectionRange(R,M),this.lastSelectionStart=R,this.lastSelectionEnd=M}},_.prototype.$resetSelection=function(){var b=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var k=0,R=0,M="",L=function(O,D){for(var F=D,H=1;H<=O-b.rowStart&&H<2*b.numberOfExtraLines+1;H++)F+=b.host.session.getLine(O-H).length+1;return F};if(this.host.session){var N=this.host.selection,T=N.getRange(),$=N.cursor.row;$===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):$===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):($<this.rowStart-1||$>this.rowEnd+1)&&(this.rowStart=$>this.numberOfExtraLines?$-this.numberOfExtraLines:0,this.rowEnd=$>this.numberOfExtraLines?$+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var S=[],w=this.rowStart;w<=this.rowEnd;w++)S.push(this.host.session.getLine(w));if(M=S.join(`
748
+ `),k=L(T.start.row,T.start.column),R=L(T.end.row,T.end.column),T.start.row<this.rowStart){var x=this.host.session.getLine(this.rowStart-1);k=T.start.row<this.rowStart-1?0:k,R+=x.length+1,M=x+`
749
+ `+M}else if(T.end.row>this.rowEnd){var E=this.host.session.getLine(this.rowEnd+1);R=T.end.row>this.rowEnd+1?E.length:T.end.column,R+=M.length+1,M=M+`
750
+ `+E}else A&&$>0&&(M=`
751
+ `+M,R+=1,k+=1);M.length>a&&(k<a&&R<a?M=M.slice(0,a):(M=`
752
+ `,k==R?k=R=0:(k=0,R=1)));var I=M+`
753
+
754
+ `;I!=this.lastValue&&(this.text.value=this.lastValue=I,this.lastSelectionStart=this.lastSelectionEnd=I.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=R||this.lastSelectionStart!=k||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(k,R),this.lastSelectionStart=k,this.lastSelectionEnd=R}catch{}this.inComposition=!1}},_.prototype.setHost=function(b){this.host=b},_.prototype.setNumberOfExtraLines=function(b){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,b<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=b},_.prototype.setAriaLabel=function(){var b="";if(this.host.$textInputAriaLabel&&(b+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var k=this.host.session.selection.cursor.row;b+=f("text-input.aria-label","Cursor at row $0",[k+1])}this.text.setAttribute("aria-label",b)},_.prototype.setAriaOptions=function(b){b.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",b.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",b.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),b.role&&this.text.setAttribute("role",b.role),b.setLabel&&(this.text.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},_.prototype.focus=function(){var b=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var k=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var R=this.text.getBoundingClientRect().top!=0}catch{return}var M=[];if(R)for(var L=this.text.parentElement;L&&L.nodeType==1;)M.push(L),L.setAttribute("ace_nocontext","true"),!L.parentElement&&L.getRootNode?L=L.getRootNode().host:L=L.parentElement;this.text.focus({preventScroll:!0}),R&&M.forEach(function(N){N.removeAttribute("ace_nocontext")}),setTimeout(function(){b.text.style.position="",b.text.style.top=="0px"&&(b.text.style.top=k)},0)},_.prototype.blur=function(){this.text.blur()},_.prototype.isFocused=function(){return this.$isFocused},_.prototype.setInputHandler=function(b){this.inputHandler=b},_.prototype.getInputHandler=function(){return this.inputHandler},_.prototype.getElement=function(){return this.text},_.prototype.setCommandMode=function(b){this.commandMode=b,this.text.readOnly=!1},_.prototype.setReadOnly=function(b){this.commandMode||(this.text.readOnly=b)},_.prototype.setCopyWithEmptySelection=function(b){},_.prototype.onContextMenu=function(b){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:b}),this.moveToMouse(b,!0)},_.prototype.moveToMouse=function(b,k){var R=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(k?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var M=this.host.container.getBoundingClientRect(),L=s.computedStyle(this.host.container),N=M.top+(parseInt(L.borderTopWidth)||0),T=M.left+(parseInt(L.borderLeftWidth)||0),$=M.bottom-N-this.text.clientHeight-2,S=function(w){s.translate(R.text,w.clientX-T-2,Math.min(w.clientY-N-2,$))};S(b),b.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),g.isWin&&h.capture(this.host.container,S,this.onContextMenuClose.bind(this)))},_.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},_})();r.TextInput=C,r.$setUserAgentForTests=function(_,b){A=_,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,i){var h=n("../lib/useragent"),f=0,g=550,s=(function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(d){u[d]=this[d]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),a=u.getDocumentPosition();this.mousedownEvent=u;var d=this.editor,m=u.getButton();if(m!==0){var v=d.getSelectionRange(),y=v.isEmpty();(y||m==1)&&d.selection.moveToPosition(a),m==2&&(d.textInput.onContextMenu(u.domEvent),h.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(a,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(u):c||a.selection.moveToPosition(u),c||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,a=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(a);if(d==-1)u=this.$clickSelection.end;else if(d==1)u=this.$clickSelection.start;else{var m=o(this.$clickSelection,a,c.session);a=m.cursor,u=m.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(a),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,a=this.editor,d=a.renderer.screenToTextCoordinates(this.x,this.y),m=a.selection[u](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 A=o(this.$clickSelection,d,a.session);d=A.cursor,c=A.anchor}a.selection.setSelectionAnchor(c.row,c.column)}a.selection.selectToPosition(d),a.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>f||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),a=this.editor,d=a.session,m=d.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=a.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var d=a.getSelectionRange();d.isMultiLine()&&d.contains(c.row,c.column)?(this.$clickSelection=a.selection.getLineRange(d.start.row),this.$clickSelection.end=a.selection.getLineRange(d.end.row).end):this.$clickSelection=a.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,d=u.domEvent.timeStamp,m=d-a.t,v=m?u.wheelX/m:a.vx,y=m?u.wheelY/m:a.vy;m<g&&(v=(v+a.vx)/2,y=(y+a.vy)/2);var A=Math.abs(v/y),C=!1;if(A>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(C=!0),A<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(C=!0),C)a.allowed=d;else if(d-a.allowed<g){var _=Math.abs(v)<=1.5*Math.abs(a.vx)&&Math.abs(y)<=1.5*Math.abs(a.vy);_?(C=!0,a.allowed=d):a.allowed=0}if(a.t=d,a.vx=v,a.vy=y,C)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l})();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,r.DefaultHandlers=s;function p(l,u,c,a){return Math.sqrt(Math.pow(c-l,2)+Math.pow(a-u,2))}function o(l,u,c){if(l.start.row==l.end.row)var a=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var a=3*u.column-2*c.getLine(l.start.row).length;else var a=2*u.row-l.start.row-l.end.row;return a<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=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(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){h.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),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-l},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 l=this.getDocumentPosition();this.$inSelection=o.contains(l.row,l.column)}return this.$inSelection},s.prototype.getButton=function(){return h.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s})();r.MouseEvent=g}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,i){r.preventParentScroll=function(f){f.stopPropagation();var g=f.currentTarget,s=g.scrollHeight>g.clientHeight;s||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,i){var h=this&&this.__extends||(function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,A){y.__proto__=A}||function(y,A){for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&(y[C]=A[C])},d(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}})(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",l=(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.theme&&(this.theme.isDark&&g.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&g.removeCssClass(this.getElement(),this.theme.cssClass)),m.isDark&&g.addCssClass(this.getElement(),"ace_dark"),m.cssClass&&g.addCssClass(this.getElement(),m.cssClass),this.theme={isDark:m.isDark,cssClass: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})(),u=(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,A;this.popups.sort(function(T,$){return $.priority-T.priority});var C=[];try{for(var _=f(this.popups),b=_.next();!b.done;b=_.next()){var k=b.value,R=!0;try{for(var M=(y=void 0,f(C)),L=M.next();!L.done;L=M.next()){var N=L.value;if(this.doPopupsOverlap(N,k)){R=!1;break}}}catch(T){y={error:T}}finally{try{L&&!L.done&&(A=M.return)&&A.call(M)}finally{if(y)throw y.error}}R?C.push(k):k.hide()}}catch(T){m={error:T}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),A=v.getElement().getBoundingClientRect();return y.left<A.right&&y.right>A.left&&y.top<A.bottom&&y.bottom>A.top},d})(),c=new u;r.popupManager=c,r.Tooltip=l;var a=(function(d){h(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 A=y.getElement();return A.style.whiteSpace="pre-wrap",A.style.pointerEvents="auto",A.addEventListener("mouseout",y.onMouseOut),A.tabIndex=-1,A.addEventListener("blur",(function(){A.contains(document.activeElement)||this.hide()}).bind(y)),A.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide);var y=v.renderer.getMouseEventTarget();y&&typeof y.removeEventListener=="function"&&y.addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide);var y=v.renderer.getMouseEventTarget();y&&typeof y.removeEventListener=="function"&&y.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 A=y.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||A||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||A||(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,A=v.getDocumentPosition(),C=y.session.getLine(A.row);if(A.column==C.length){var _=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(A.row,A.column);if(b.column!=_.column||b.row!=_.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,A,C){if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=v.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.range=s.fromPoints(y.start,y.end);var b=_.textToScreenCoordinates(y.start.row,y.start.column),k=_.scroller.getBoundingClientRect();b.pageX<k.left&&(b.pageX=k.left);var R=this.getElement();R.innerHTML="",R.appendChild(A),R.style.maxHeight="",R.style.display="block",this.$setPosition(v,b,!0,y),g.$fixPositionBug(R)}},m.prototype.$setPosition=function(v,y,A,C){var _=10;A&&this.addMarker(C,v.session);var b=v.renderer,k=this.getElement(),R=k.offsetHeight,M=k.offsetWidth,L=y.pageY,N=y.pageX,T=window.innerHeight-L-b.lineHeight,$=this.$shouldPlaceAbove(R,L,T-_);k.style.maxHeight=($?L:T)-_+"px",k.style.top=$?"":L+b.lineHeight+"px",k.style.bottom=$?window.innerHeight-L+"px":"",k.style.left=Math.min(N,window.innerWidth-M-_)+"px"},m.prototype.$shouldPlaceAbove=function(v,y,A){return!(y-v<0&&y<A)},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&&this.$fromKeyboard&&v.type=="keydown"&&v.code=="Escape"||!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.$fromKeyboard=!1,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})(l);r.HoverTooltip=a}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(n,r,i){var h=this&&this.__extends||(function(){var a=function(d,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(v[A]=y[A])},a(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");a(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}})(),f=this&&this.__values||function(a){var d=typeof Symbol=="function"&&Symbol.iterator,m=d&&a[d],v=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&v>=a.length&&(a=void 0),{value:a&&a[v++],done:!a}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("./mouse_event").MouseEvent,p=n("../tooltip").HoverTooltip,o=n("../config").nls,l=n("../range").Range;function u(a){var d=a.editor,m=d.renderer.$gutterLayer;a.$tooltip=new c(d),a.$tooltip.addToEditor(d),a.$tooltip.setDataProvider(function(v,y){var A=v.getDocumentPosition().row;a.$tooltip.showTooltip(A)}),a.editor.setDefaultHandler("guttermousedown",function(v){if(!(!d.isFocused()||v.getButton()!=0)){var y=m.getRegion(v);if(y!="foldWidgets"){var A=v.getDocumentPosition().row,C=d.session.selection;if(v.getShiftKey())C.selectTo(A,0);else{if(v.domEvent.detail==2)return d.selectAll(),v.preventDefault();a.$clickSelection=d.selection.getLineRange(A)}return a.setState("selectByLines"),a.captureMouse(v),v.preventDefault()}}})}r.GutterHandler=u;var c=(function(a){h(d,a);function d(m){var v=a.call(this,m.container)||this;v.id="gt"+ ++d.$uid,v.editor=m,v.visibleTooltipRow;var y=v.getElement();return y.setAttribute("role","tooltip"),y.setAttribute("id",v.id),y.style.pointerEvents="auto",v.idleTime=50,v.onDomMouseMove=v.onDomMouseMove.bind(v),v.onDomMouseOut=v.onDomMouseOut.bind(v),v.setClassName("ace_gutter-tooltip"),v}return d.prototype.onDomMouseMove=function(m){var v=new s(m,this.editor);this.onMouseMove(v,this.editor)},d.prototype.onDomMouseOut=function(m){var v=new s(m,this.editor);this.onMouseOut(v)},d.prototype.addToEditor=function(m){var v=m.renderer.$gutter;v.addEventListener("mousemove",this.onDomMouseMove),v.addEventListener("mouseout",this.onDomMouseOut),a.prototype.addToEditor.call(this,m)},d.prototype.removeFromEditor=function(m){var v=m.renderer.$gutter;v.removeEventListener("mousemove",this.onDomMouseMove),v.removeEventListener("mouseout",this.onDomMouseOut),a.prototype.removeFromEditor.call(this,m)},d.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),a.prototype.destroy.call(this)},Object.defineProperty(d,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:o("gutter-tooltip.aria-label.security.singular","security finding"),plural:o("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:o("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:o("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),d.prototype.showTooltip=function(m){var v,y=this.editor.renderer.$gutterLayer,A=y.$annotations[m],C;A?C={displayText:Array.from(A.displayText),type:Array.from(A.type)}:C={displayText:[],type:[]};var _=y.session.getFoldLine(m);if(_&&y.$showFoldedAnnotations){for(var b={error:[],security:[],warning:[],info:[],hint:[]},k={error:1,security:2,warning:3,info:4,hint:5},R,M=m+1;M<=_.end.row;M++)if(y.$annotations[M])for(var L=0;L<y.$annotations[M].text.length;L++){var N=y.$annotations[M].type[L];b[N].push(y.$annotations[M].text[L]),(!R||k[N]<k[R])&&(R=N)}if(["error","security","warning"].includes(R)){var T="".concat(d.annotationsToSummaryString(b)," in folded code.");C.displayText.push(T),C.type.push(R+"_fold")}}if(C.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},S=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",M=0;M<C.displayText.length;M++){var w=g.createElement("span"),x=g.createElement("span");(v=x.classList).add.apply(v,["ace_".concat(C.type[M]),S]),x.setAttribute("aria-label","".concat(d.annotationLabels[C.type[M].replace("_fold","")].singular)),x.setAttribute("role","img"),x.appendChild(g.createTextNode(" ")),w.appendChild(x),w.appendChild(g.createTextNode(C.displayText[M])),w.appendChild(g.createElement("br")),$[C.type[M].replace("_fold","")].push(w)}var E=g.createElement("span");$.error.forEach(function(D){return E.appendChild(D)}),$.security.forEach(function(D){return E.appendChild(D)}),$.warning.forEach(function(D){return E.appendChild(D)}),$.info.forEach(function(D){return E.appendChild(D)}),$.hint.forEach(function(D){return E.appendChild(D)}),E.setAttribute("aria-live","polite");var I=this.$findLinkedAnnotationNode(m);I&&I.setAttribute("aria-describedby",this.id);var O=l.fromPoints({row:m,column:0},{row:m,column:0});this.showForRange(this.editor,O,E),this.visibleTooltipRow=m,this.editor._signal("showGutterTooltip",this)},d.prototype.$setPosition=function(m,v,y,A){var C=this.$findCellByRow(A.start.row);if(C){var _=C&&C.element,b=_&&_.querySelector(".ace_gutter_annotation");if(b){var k=b.getBoundingClientRect();if(k){var R={pageX:k.right,pageY:k.top};return a.prototype.$setPosition.call(this,m,R,!1,A)}}}},d.prototype.$shouldPlaceAbove=function(m,v,y){return y<m},d.prototype.$findLinkedAnnotationNode=function(m){var v=this.$findCellByRow(m);if(v){var y=v.element;if(y.childNodes.length>2)return y.childNodes[2]}},d.prototype.$findCellByRow=function(m){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(v){return v.row===m})},d.prototype.hide=function(m){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var v=this.$findLinkedAnnotationNode(this.visibleTooltipRow);v&&v.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),a.prototype.hide.call(this,m)}},d.annotationsToSummaryString=function(m){var v,y,A=[],C=["error","security","warning","info","hint"];try{for(var _=f(C),b=_.next();!b.done;b=_.next()){var k=b.value;if(m[k].length){var R=m[k].length===1?d.annotationLabels[k].singular:d.annotationLabels[k].plural;A.push("".concat(m[k].length," ").concat(R))}}}catch(M){v={error:M}}finally{try{b&&!b.done&&(y=_.return)&&y.call(_)}finally{if(v)throw v.error}}return A.join(", ")},d.prototype.isOutsideOfText=function(m){var v=m.editor,y=v.renderer.$gutter.getBoundingClientRect();return!(m.clientX>=y.left&&m.clientX<=y.right&&m.clientY>=y.top&&m.clientY<=y.bottom)},d})(p);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function l(c){var a=c.editor,d=h.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(W){c[W]=this[W]},this),a.on("mousedown",this.onMouseDown.bind(c));var v=a.container,y,A,C,_,b,k,R=0,M,L,N,T,$;this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(W)},0),W.preventDefault()}b=a.getSelectionRange();var G=W.dataTransfer;G.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(d),G.setDragImage&&G.setDragImage(d,0,0),setTimeout(function(){a.container.removeChild(d)}),G.clearData(),G.setData("Text",a.session.getTextRange()),L=!0,this.setState("drag")},this.onDragEnd=function(W){if(v.draggable=!1,L=!1,this.setState(null),!a.getReadOnly()){var U=W.dataTransfer.dropEffect;!M&&U=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(a.getReadOnly()||!F(W.dataTransfer)))return A=W.clientX,C=W.clientY,y||E(),R++,W.dataTransfer.dropEffect=M=H(W),f.preventDefault(W)},this.onDragOver=function(W){if(!(a.getReadOnly()||!F(W.dataTransfer)))return A=W.clientX,C=W.clientY,y||(E(),R++),O!==null&&(O=null),W.dataTransfer.dropEffect=M=H(W),f.preventDefault(W)},this.onDragLeave=function(W){if(R--,R<=0&&y)return I(),M=null,f.preventDefault(W)},this.onDrop=function(W){if(k){var U=W.dataTransfer;if(L)switch(M){case"move":b.contains(k.row,k.column)?b={start:k,end:k}:b=a.moveText(b,k);break;case"copy":b=a.moveText(b,k,!0);break}else{var G=U.getData("Text");b={start:k,end:a.session.insert(k,G)},a.focus(),M=null}return I(),f.preventDefault(W)}},f.addListener(v,"dragstart",this.onDragStart.bind(c),a),f.addListener(v,"dragend",this.onDragEnd.bind(c),a),f.addListener(v,"dragenter",this.onDragEnter.bind(c),a),f.addListener(v,"dragover",this.onDragOver.bind(c),a),f.addListener(v,"dragleave",this.onDragLeave.bind(c),a),f.addListener(v,"drop",this.onDrop.bind(c),a);function S(W,U){var G=Date.now(),V=!U||W.row!=U.row,B=!U||W.column!=U.column;if(!T||V||B)a.moveCursorToPosition(W),T=G,$={x:A,y:C};else{var Z=u($.x,$.y,A,C);Z>o?T=null:G-T>=p&&(a.renderer.scrollCursorIntoView(),T=null)}}function w(W,U){var G=Date.now(),V=a.renderer.layerConfig.lineHeight,B=a.renderer.layerConfig.characterWidth,Z=a.renderer.scroller.getBoundingClientRect(),X={x:{left:A-Z.left,right:Z.right-A},y:{top:C-Z.top,bottom:Z.bottom-C}},Q=Math.min(X.x.left,X.x.right),ae=Math.min(X.y.top,X.y.bottom),z={row:W.row,column:W.column};Q/B<=2&&(z.column+=X.x.left<X.x.right?-3:2),ae/V<=1&&(z.row+=X.y.top<X.y.bottom?-1:1);var j=W.row!=z.row,Y=W.column!=z.column,q=!U||W.row!=U.row;j||Y&&!q?N?G-N>=s&&a.renderer.scrollCursorIntoView(z):N=G:N=null}function x(){var W=k;k=a.renderer.screenToTextCoordinates(A,C),S(k,W),w(k,W)}function E(){b=a.selection.toOrientedRange(),y=a.session.addMarker(b,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),x(),_=setInterval(x,20),R=0,f.addListener(document,"mousemove",D)}function I(){clearInterval(_),a.session.removeMarker(y),y=null,a.selection.fromOrientedRange(b),a.isFocused()&&!L&&a.$resetCursorStyle(),b=null,k=null,R=0,N=null,T=null,f.removeListener(document,"mousemove",D)}var O=null;function D(){O==null&&(O=setTimeout(function(){O!=null&&y&&I()},20))}function F(W){var U=W.types;return!U||Array.prototype.some.call(U,function(G){return G=="text/plain"||G=="Text"})}function H(W){var U=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],V=g.isMac?W.altKey:W.ctrlKey,B="uninitialized";try{B=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return V&&U.indexOf(B)>=0?Z="copy":G.indexOf(B)>=0?Z="move":U.indexOf(B)>=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,a=c.container;a.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 a=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&a.dragDrop()}if(this.state==="dragWait"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var a=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"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var A=a.container;A.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,a,d,m){return Math.sqrt(Math.pow(d-c,2)+Math.pow(m-a,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,i){var h=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(s,p){var o="scroll",l,u,c,a,d,m,v=0,y,A=0,C=0,_=0,b,k;function R(){var S=window.navigator&&window.navigator.clipboard,w=!1,x=function(){var O=p.getCopyText(),D=p.session.getUndoManager().hasUndo();k.replaceChild(g.buildDom(w?["span",!O&&E("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],O&&E("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],O&&E("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&E("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&E("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],E("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],E("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),k.firstChild)},E=function(O){return p.commands.canExecute(O,p)},I=function(O){var D=O.target.getAttribute("action");if(D=="more"||!w)return w=!w,x();D=="paste"?S.readText().then(function(F){p.execCommand(D,F)}):D&&((D=="cut"||D=="copy")&&(S?S.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(D)),k.firstChild.style.display="none",w=!1,D!="openCommandPalette"&&p.focus()};k=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(O){o="menu",O.stopPropagation(),O.preventDefault(),p.textInput.focus()},ontouchend:function(O){O.stopPropagation(),O.preventDefault(),I(O)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function M(){if(!p.getOption("enableMobileMenu")){k&&L();return}k||R();var S=p.selection.cursor,w=p.renderer.textToScreenCoordinates(S.row,S.column),x=p.renderer.textToScreenCoordinates(0,0).pageX,E=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();k.style.top=w.pageY-I.top-3+"px",w.pageX-I.left<I.width-70?(k.style.left="",k.style.right="10px"):(k.style.right="",k.style.left=x+E-I.left+"px"),k.style.display="",k.firstChild.style.display="none",p.on("input",L)}function L(S){k&&(k.style.display="none"),p.off("input",L)}function N(){d=null,clearTimeout(d);var S=p.selection.getRange(),w=S.contains(y.row,y.column);(S.isEmpty()||!w)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",M()}function T(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var S=A>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);S&&!S.isEmpty()?p.selection.setRange(S):p.selection.selectWord(),o="wait"}f.addListener(s,"contextmenu",function(S){if(b){var w=p.textInput.getElement();w.focus()}},p),f.addListener(s,"touchstart",function(S){var w=S.touches;if(d||w.length>1){clearTimeout(d),d=null,c=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var x=p.renderer.layerConfig.lineHeight,E=p.renderer.layerConfig.lineHeight,I=S.timeStamp;a=I;var O=w[0],D=O.clientX,F=O.clientY;Math.abs(l-D)+Math.abs(u-F)>x&&(c=-1),l=S.clientX=D,u=S.clientY=F,C=_=0;var H=new h(S,p);if(y=H.getDocumentPosition(),I-c<500&&w.length==1&&!v)A++,S.preventDefault(),S.button=0,T();else{A=0;var W=p.selection.cursor,U=p.selection.isEmpty()?W:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(W,!0),V=p.renderer.$cursorLayer.getPixelPosition(U,!0),B=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,Q=function(j,Y){return j=j/E,Y=Y/x-.75,j*j+Y*Y};if(S.clientX<B.left){o="zoom";return}var ae=Q(S.clientX-B.left-G.left+X,S.clientY-B.top-G.top+Z),z=Q(S.clientX-B.left-V.left+X,S.clientY-B.top-V.top+Z);ae<3.5&&z<3.5&&(o=ae>z?"cursor":"anchor"),z<3.5?o="anchor":ae<3.5?o="cursor":o="scroll",d=setTimeout(N,450)}c=I},p),f.addListener(s,"touchend",function(S){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(p.selection.moveToPosition(y),v=0,M()):o=="scroll"?($(),L()):M(),clearTimeout(d),d=null},p),f.addListener(s,"touchmove",function(S){d&&(clearTimeout(d),d=null);var w=S.touches;if(!(w.length>1||o=="zoom")){var x=w[0],E=l-x.clientX,I=u-x.clientY;if(o=="wait")if(E*E+I*I>4)o="cursor";else return S.preventDefault();l=x.clientX,u=x.clientY,S.clientX=x.clientX,S.clientY=x.clientY;var O=S.timeStamp,D=O-a;if(a=O,o=="scroll"){var F=new h(S,p);F.speed=1,F.wheelX=E,F.wheelY=I,10*Math.abs(E)<Math.abs(I)&&(E=0),10*Math.abs(I)<Math.abs(E)&&(I=0),D!=0&&(C=E/D,_=I/D),p._emit("mousewheel",F),F.propagationStopped||(C=_=0)}else{var H=new h(S,p),W=H.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(W):o=="anchor"&&p.selection.setSelectionAnchor(W.row,W.column),p.renderer.scrollCursorIntoView(W),S.preventDefault()}}},p);function $(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(C)<.01&&(C=0),Math.abs(_)<.01&&(_=0),v<20&&(C=.9*C),v<20&&(_=.9*_);var S=p.session.getScrollTop();p.renderer.scrollBy(10*C,10*_),S==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,i){var h=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,l=n("./touch_handler").addTouchListeners,u=n("../config"),c=(function(){function a(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 _=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());_&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();h.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),h.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),h.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),h.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),l(d.container,d);var A=d.renderer.$gutter;h.addListener(A,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),h.addListener(A,"click",this.onMouseEvent.bind(this,"gutterclick"),d),h.addListener(A,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),h.addListener(A,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),h.addListener(y,"mousedown",v,d),h.addListener(A,"mousedown",v,d),f.isIE&&d.renderer.scrollBarV&&(h.addListener(d.renderer.scrollBarV.element,"mousedown",v,d),h.addListener(d.renderer.scrollBarH.element,"mousedown",v,d)),d.on("mousemove",function(C){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var _=d.renderer.screenToTextCoordinates(C.x,C.y),b=d.session.selection.getRange(),k=d.renderer;!b.isEmpty()&&b.insideStart(_.row,_.column)?k.setCursorStyle("default"):k.setCursorStyle("")}},d)}return a.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},a.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))},a.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)},a.prototype.setState=function(d){this.state=d},a.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 A=this,C=!0,_=function(L){if(L){if(f.isWebKit&&!L.which&&A.releaseMouse)return A.releaseMouse();A.x=L.clientX,A.y=L.clientY,m&&m(L),A.mouseEvent=new p(L,A.editor),A.$mouseMoved=!0}},b=function(L){v.off("beforeEndOperation",M),C=!1,v.session&&k(),A[A.state+"End"]&&A[A.state+"End"](L),A.state="",A.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),A.$onCaptureMouseMove=A.releaseMouse=null,L&&A.onMouseEvent("mouseup",L),v.endOperation()},k=function(){A[A.state]&&A[A.state](),A.$mouseMoved=!1},R=function(){C&&(k(),h.nextFrame(R))};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){b(d)});var M=function(L){A.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(A[A.state+"End"]&&A[A.state+"End"](),A.state="",A.releaseMouse())};v.on("beforeEndOperation",M),v.startOperation({command:{name:"mouse"}}),A.$onCaptureMouseMove=_,A.releaseMouse=h.capture(this.editor.container,_,b),R()},a.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&h.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},a.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},a})();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=(function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),l=s.session,u=l.getFoldAt(o.row,o.column,1);u&&(p.getAccelKey()?l.removeFold(u):l.expandFold(u),p.stop());var c=p.domEvent&&p.domEvent.target;c&&h.hasCssClass(c,"ace_inline_button")&&h.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var l=p.getDocumentPosition().row,u=s.session;u.foldWidgets&&u.foldWidgets[l]&&s.session.onFoldWidgetClick(l,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var l=p.getDocumentPosition().row,u=s.session,c=u.getParentFoldRangeData(l,!0),a=c.range||c.firstRange;if(a){l=a.start.row;var d=u.getFoldAt(l,u.getLine(l).length,1);d?u.removeFold(d):(u.addFold("...",a),s.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}p.stop()}})}return g})();r.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,i){var h=n("../lib/keys"),f=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 l=this.$handlers.indexOf(p);l!=-1&&this.$handlers.splice(l,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),l==-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(l){return l.getStatusText&&l.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,l,u){for(var c,a=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,p,o,l,u),!(!(!c||!c.command)&&(c.command=="null"?a=!0:a=d.exec(c.command,this.$editor,c.args,u),a&&u&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&f.stopEvent(u),a))););return!a&&p==-1&&(c={command:"insertstring"},a=d.exec("insertstring",this.$editor,o)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),a},s.prototype.onCommandKey=function(p,o,l){var u=h.keyCodeToString(l);return this.$callKeyboardHandlers(o,u,l,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,i){var h=0,f=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]],l=[[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]],u=0,c=1,a=0,d=1,m=2,v=3,y=4,A=5,C=6,_=7,b=8,k=9,R=10,M=11,L=12,N=13,T=14,$=15,S=16,w=17,x=18,E=[x,x,x,x,x,x,x,x,x,C,A,C,b,A,x,x,x,x,x,x,x,x,x,x,x,x,x,x,A,A,A,C,b,y,y,M,M,M,y,y,y,y,y,R,k,R,k,k,m,m,m,m,m,m,m,m,m,m,k,y,y,y,y,y,y,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,y,y,y,y,y,y,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,y,y,y,y,x,x,x,x,x,x,A,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,k,y,M,M,M,M,y,y,y,y,a,y,y,x,y,y,M,M,m,m,y,a,y,y,y,m,a,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,x,x,x,a,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,A,N,T,$,S,w,k,M,M,M,M,M,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function O(W,U,G,V){var B=h?l:o,Z=null,X=null,Q=null,ae=0,z=null,j=null,Y=-1,q=null,te=null,ne=[];if(!V)for(q=0,V=[];q<G;q++)V[q]=H(W[q]);for(f=h,g=!1,s=!1,p=!1,te=0;te<G;te++){if(Z=ae,ne[te]=X=F(W,V,ne,te),ae=B[Z][X],z=ae&240,ae&=15,U[te]=Q=B[ae][5],z>0)if(z==16){for(q=Y;q<te;q++)U[q]=1;Y=-1}else Y=-1;if(j=B[ae][6],j)Y==-1&&(Y=te);else if(Y>-1){for(q=Y;q<te;q++)U[q]=Q;Y=-1}V[te]==A&&(U[te]=0),f|=Q}if(p){for(q=0;q<G;q++)if(V[q]==C){U[q]=h;for(var ue=q-1;ue>=0&&V[ue]==b;ue--)U[ue]=h}}}function D(W,U,G){if(!(f<W)){if(W==1&&h==c&&!s){G.reverse();return}for(var V=G.length,B=0,Z,X,Q,ae;B<V;){if(U[B]>=W){for(Z=B+1;Z<V&&U[Z]>=W;)Z++;for(X=B,Q=Z-1;X<Q;X++,Q--)ae=G[X],G[X]=G[Q],G[Q]=ae;B=Z}B++}}}function F(W,U,G,V){var B=U[V],Z,X,Q,ae;switch(B){case a:case d:g=!1;case y:case v:return B;case m:return g?v:m;case _:return g=!0,d;case b:return y;case k:return V<1||V+1>=U.length||(Z=G[V-1])!=m&&Z!=v||(X=U[V+1])!=m&&X!=v?y:(g&&(X=v),X==Z?X:y);case R:return Z=V>0?G[V-1]:A,Z==m&&V+1<U.length&&U[V+1]==m?m:y;case M:if(V>0&&G[V-1]==m)return m;if(g)return y;for(ae=V+1,Q=U.length;ae<Q&&U[ae]==M;)ae++;return ae<Q&&U[ae]==m?m:y;case L:for(Q=U.length,ae=V+1;ae<Q&&U[ae]==L;)ae++;if(ae<Q){var z=W[V],j=z>=1425&&z<=2303||z==64286;if(Z=U[ae],j&&(Z==d||Z==_))return d}return V<1||(Z=U[V-1])==A?y:G[V-1];case A:return g=!1,s=!0,h;case C:return p=!0,y;case N:case T:case S:case w:case $:g=!1;case x:return y}}function H(W){var U=W.charCodeAt(0),G=U>>8;return G==0?U>191?a:E[U]:G==5?/[\u0591-\u05f4]/.test(W)?d:a:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?L:/[\u0660-\u0669\u066b-\u066c]/.test(W)?v:U==1642?M:/[\u06f0-\u06f9]/.test(W)?m:_:G==32&&U<=8287?I[U&255]:G==254&&U>=65136?_:y}r.L=a,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(W,U,G){if(W.length<2)return{};var V=W.split(""),B=new Array(V.length),Z=new Array(V.length),X=[];h=G?c:u,O(V,X,V.length,U);for(var Q=0;Q<B.length;B[Q]=Q,Q++);D(2,X,B),D(1,X,B);for(var Q=0;Q<B.length-1;Q++)U[Q]===v?X[Q]=r.AN:X[Q]===d&&(U[Q]>_&&U[Q]<N||U[Q]===y||U[Q]===x)?X[Q]=r.ON_R:Q>0&&V[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(V[Q])&&(X[Q-1]=X[Q]=r.R_H,Q++);V[V.length-1]===r.DOT&&(X[V.length-1]=r.B),V[0]==="‫"&&(X[0]=r.RLE);for(var Q=0;Q<B.length;Q++)Z[Q]=X[B[Q]];return{logicalFromVisual:B,bidiLevels:Z}},r.hasBidiCharacters=function(W,U){for(var G=!1,V=0;V<W.length;V++)U[V]=H(W.charAt(V)),!G&&(U[V]==d||U[V]==_||U[V]==v)&&(G=!0);return G},r.getVisualFromLogicalIdx=function(W,U){for(var G=0;G<U.logicalFromVisual.length;G++)if(U.logicalFromVisual[G]==W)return G;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,i){var h=n("./lib/bidiutil"),f=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=h,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,l,u){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
755
+ `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(o=this.session.$docRowCache[u])}return o},p.prototype.getSplitIndex=function(){var o=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-o>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-o-1),u===c);)c=u,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,l){o===void 0&&(o=this.getDocumentRow());var u=o===this.session.getLength()-1,c=u?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 a=this.session.$wrapData[o];a&&(l===void 0&&(l=this.getSplitIndex()),l>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=l<a.length?this.line.substring(a[l-1],a[l]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[l]),l==a.length&&(this.line+=this.showInvisibles?c:h.DOT))}else this.line+=this.showInvisibles?c:h.DOT;var d=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,A){return y===" "||d.isFullWidth(y.charCodeAt(0))?(v=y===" "?d.getScreenTabSize(A+m):2,m+=v-1,f.stringRepeat(h.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.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=[];h.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=h.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 l=this.characterWidth=o.$characterSize.width,u=o.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=l,this.charWidths[h.R]=this.charWidths[h.AN]=u,this.charWidths[h.R_H]=u*.45,this.charWidths[h.B]=this.charWidths[h.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,l){for(var u=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&o.session.getLine(c).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(c,0,1):l&&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 l=this.line.charAt(0)===this.RLE?1:0,u=o>l?this.session.getOverwrite()?o:o-1:l,c=h.getVisualFromLogicalIdx(u,this.bidiMap),a=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=l&&a[c]%2!==0&&c++;for(var m=0;m<c;m++)d+=this.charWidths[a[m]];return!this.session.getOverwrite()&&o>l&&a[c]%2===0&&(d+=this.charWidths[a[c]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(o,l){var u=this.bidiMap,c=u.bidiLevels,a,d=[],m=0,v=Math.min(o,l)-this.wrapIndent,y=Math.max(o,l)-this.wrapIndent,A=!1,C=!1,_=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,k=0;k<c.length;k++)b=u.logicalFromVisual[k],a=c[k],A=b>=v&&b<y,A&&!C?_=m:!A&&C&&d.push({left:_,width:m-_}),m+=this.charWidths[a],C=A;if(A&&k===c.length&&d.push({left:_,width:m-_}),this.isRtlDir)for(var R=0;R<d.length;R++)d[R].left+=this.rtlLineOffset;return d},p.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,a=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[a]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+m/2;){if(c+=m,a===d.length-1){m=0;break}m=this.charWidths[d[++a]]}return a>0&&d[a-1]%2!==0&&d[a]%2===0?(u<c&&a--,l=this.bidiMap.logicalFromVisual[a]):a>0&&d[a-1]%2===0&&d[a]%2!==0?l=1+(u>c?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===d.length-1&&m===0&&d[a-1]%2===0||!this.isRtlDir&&a===0&&d[a]%2!==0?l=1+this.bidiMap.logicalFromVisual[a]:(a>0&&d[a-1]%2!==0&&m!==0&&a--,l=this.bidiMap.logicalFromVisual[a]),l===0&&this.isRtlDir&&l++,l+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,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=(function(){function o(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._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(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},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 l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},o.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?s.fromPoints(u,u):this.isBackwards()?s.fromPoints(u,l):s.fromPoints(l,u)},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(l,u){var c=u?l.end:l.start,a=u?l.start:l.end;this.$setSelection(c.row,c.column,a.row,a.column)},o.prototype.$setSelection=function(l,u,c,a){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,a),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(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},o.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},o.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},o.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},o.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},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(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},o.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,a,d=this.session.getFoldLine(c);return d?(c=d.start.row,a=d.end.row):a=c,u===!0?new s(c,0,a,this.session.getLine(a).length):new s(c,0,a+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(l,u,c){var a=l.column,d=l.column+u;return c<0&&(a=l.column-u,d=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(a,d).split(" ").length-1==u},o.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.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(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),a=this.session.screenToDocumentPosition(c,0),d=this.session.getDisplayLine(l,null,a.row,a.column),m=d.match(/^\s*/);m[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(a.column+=m[0].length),this.moveCursorToPosition(a)},o.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var a=c.search(/\s+$/);a>0&&(u.column=a)}}this.moveCursorTo(u.row,u.column)},o.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),a=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(l,u,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(a)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(a)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},o.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var a=this.session.getFoldStringAt(l,u,-1);a==null&&(a=this.doc.getLine(l).substring(0,u));var d=f.stringReverse(a);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(u-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},o.prototype.$shortWordEndIndex=function(l){var u=0,c,a=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&a.test(c);)u++;if(u<1){for(d.lastIndex=0;(c=l[u])&&!d.test(c);)if(d.lastIndex=0,u++,a.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&a.test(c);)u++;if(u>2)break}}}return d.lastIndex=0,u},o.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),a=c.substring(u),d=this.session.getFoldAt(l,u,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(u==c.length){var m=this.doc.getLength();do l++,a=this.doc.getLine(l);while(l<m&&/^\s*$/.test(a));/^\s+/.test(a)||(a=""),u=0}var v=this.$shortWordEndIndex(a);this.moveCursorTo(l,u+v)},o.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var a=this.session.getLine(l).substring(0,u);if(u===0){do l--,a=this.doc.getLine(l);while(l>0&&/^\s*$/.test(a));u=a.length,/\s+$/.test(a)||(a="")}var d=f.stringReverse(a),m=this.$shortWordEndIndex(d);return this.moveCursorTo(l,u-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(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];l<0?l-=d.rowsAbove||0:l>0&&(l+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+l,c.column,a);l!==0&&u===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+u,u===0)},o.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},o.prototype.moveCursorTo=function(l,u,c){var a=this.session.getFoldAt(l,u,1);a&&(l=a.start.row,u=a.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(d.charAt(u))&&d.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(l,u,c){var a=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(a.row,a.column,c)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},o.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return s.fromPoints(u,c)}catch{return s.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},o.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},o.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var c=s.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},o.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},o})();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,h.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,i){var h=n("./lib/report_error").reportError,f=2e3,g=(function(){function s(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var l=this.states[o],u=[],c=0,a=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],v=0;v<l.length;v++){var y=l[v];if(y.defaultToken&&(a.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 A=y.regex,C=new RegExp("(?:("+A+")|(.))").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)?A=y.regex.replace(/\\([0-9]+)/g,function(_,b){return"\\"+(parseInt(b,10)+c+1)}):(C=1,A=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),a[c]=v,c+=C,u.push(A),y.onMatch||(y.onMatch=null)}}u.length||(a[0]=0,u.push("$")),m.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,d)},this),this.regExps[o]=new RegExp("("+u.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(p){f=p|0},s.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),l=this.token.apply(this,o);if(typeof l=="string")return[{type:l,value:p}];for(var u=[],c=0,a=l.length;c<a;c++)o[c]&&(u[u.length]={type:l[c],value:o[c]});return u},s.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var l=[],u=this.tokenArray,c=0,a=u.length;c<a;c++)o[c+1]&&(l[l.length]={type:u[c],value:o[c+1]});return l},s.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return o},s.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var l=0,u=!1,c={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(a,d,m,v,y,A){return u?u=y!="]":y?u=!0:v?(l==c.stack&&(c.end=A+1,c.stack=-1),l--):m&&(l++,m.length!=1&&(c.stack=l,c.start=A)),a}),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 l=o.slice(0);o=l[0],o==="#tmp"&&(l.shift(),o=l.shift())}else var l=[];var u=o||"start",c=this.states[u];c||(u="start",c=this.states[u]);var a=this.matchMappings[u],d=this.regExps[u];d.lastIndex=0;for(var m,v=[],y=0,A=0,C={type:null,value:""};m=d.exec(p);){var _=a.defaultToken,b=null,k=m[0],R=d.lastIndex;if(R-k.length>y){var M=p.substring(y,R-k.length);C.type==_?C.value+=M:(C.type&&v.push(C),C={type:_,value:M})}for(var L=0;L<m.length-2;L++)if(m[L+1]!==void 0){b=c[a[L]],b.onMatch?_=b.onMatch(k,u,l,p):_=b.token,b.next&&(typeof b.next=="string"?u=b.next:u=b.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),a=this.matchMappings[u],y=R,d=this.regExps[u],d.lastIndex=R),b.consumeLineEnd&&(y=R);break}if(k){if(typeof _=="string")(!b||b.merge!==!1)&&C.type===_?C.value+=k:(C.type&&v.push(C),C={type:_,value:k});else if(_){C.type&&v.push(C),C={type:null,value:""};for(var L=0;L<_.length;L++)v.push(_[L])}}if(y==p.length)break;if(y=R,A++>f){for(A>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"};u="start",l=[];break}}return C.type&&v.push(C),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:v,state:l.length?l:u}},s})();g.prototype.reportError=h,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){var h=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var l in p)this.$rules[l]=p[l];return}for(var l in p){for(var u=p[l],c=0;c<u.length;c++){var a=u[c];(a.next||a.onMatch)&&(typeof a.next=="string"&&a.next.indexOf(o)!==0&&(a.next=o+a.next),a.nextState&&a.nextState.indexOf(o)!==0&&(a.nextState=o+a.nextState))}this.$rules[o+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,l,u,c){var a=typeof p=="function"?new p().getRules():p;if(u)for(var d=0;d<u.length;d++)u[d]=o+u[d];else{u=[];for(var m in a)u.push(o+m)}if(this.addRules(a,o),l)for(var v=Array.prototype[c?"push":"unshift"],d=0;d<u.length;d++)v.apply(this.$rules[u[d]],h(l));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 l(u){var c=o[u];c.processed=!0;for(var a=0;a<c.length;a++){var d=c[a],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,l(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 A in d.rules)o[A]?o[A].push&&o[A].push.apply(o[A],d.rules[A]):o[A]=d.rules[A];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 _=[a,1].concat(m);d.noEscape&&(_=_.filter(function(b){return!b.next})),c.splice.apply(c,_),a--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(l,this)},this.createKeywordMapper=function(p,o,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(a){for(var d=p[a],m=d.split(u||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),l&&(y=y.toLowerCase()),c[y]=a}},this),p=null,l?function(a){return c[a.toLowerCase()]||o}:function(a){return c[a]||o}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),r.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,i){var h;h=function(){this.$behaviours={}},(function(){this.add=function(f,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=s},this.addBehaviours=function(f){for(var g in f)for(var s in f[g])this.add(g,s,f[g][s])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var s=new f().getBehaviours(g);else var s=f.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(f){if(f){for(var g={},s=0;s<f.length;s++)this.$behaviours[f[s]]&&(g[f[s]]=this.$behaviours[f[s]]);return g}else return this.$behaviours}}).call(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=(function(){function g(s,p,o){this.$session=s,this.$row=p,this.$rowTokens=s.getTokens(p);var l=s.getTokenAt(p,o);this.$tokenIndex=l?l.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 h(this.$row,p,this.$row,p+s.value.length)},g})();r.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,i){var h=n("../../lib/oop"),f=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"],l,u={},c={'"':'"',"'":"'"},a=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,u.rangeCount!=v.multiSelect.rangeCount&&(u={rangeCount:v.multiSelect.rangeCount})),u[y])return l=u[y];l=u[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,y,A,C){var _=v.end.row-v.start.row;return{text:A+y+C,selection:[0,v.start.column+1,_,v.end.column+(_?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,A,C,_,b){var k=C.getCursorPosition(),R=_.doc.getLine(k.row);if(b=="{"){a(C);var M=C.getSelectionRange(),L=_.doc.getTextRange(M),N=_.getTokenAt(k.row,k.column);if(L!==""&&L!=="{"&&C.getWrapBehavioursEnabled())return d(M,L,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var T=[/tag\-(?:open|name)/,/attribute\-name/];return T.some(function(O){return O.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[k.column-N.start-1]!=="$"?void 0:(m.recordAutoInsert(C,_,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(C,_))return/[\]\}\)]/.test(R[k.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,_,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,_,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){a(C);var $=R.substring(k.column,k.column+1);if($=="}"){var S=_.$findOpeningBracket("}",{column:k.column+1,row:k.row});if(S!==null&&m.isAutoInsertedClosing(k,R,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
756
+ `||b==`\r
757
+ `){a(C);var w="";m.isMaybeInsertedClosing(k,R)&&(w=s.stringRepeat("}",l.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var $=R.substring(k.column,k.column+1);if($==="}"){var x=_.findMatchingBracket({row:k.row,column:k.column+1},"}");if(!x)return null;var E=this.$getIndent(_.getLine(x.row))}else if(w)var E=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var I=E+_.getTabString();return{text:`
758
+ `+I+`
759
+ `+E+w,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,A,C,_,b){var k=_.doc.getTextRange(b);if(!b.isMultiLine()&&k=="{"){a(C);var R=_.doc.getLine(b.start.row),M=R.substring(b.end.column,b.end.column+1);if(M=="}")return b.end.column++,b;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,A,C,_,b){if(b=="("){a(C);var k=C.getSelectionRange(),R=_.doc.getTextRange(k);if(R!==""&&C.getWrapBehavioursEnabled())return d(k,R,"(",")");if(m.isSaneInsertion(C,_))return m.recordAutoInsert(C,_,")"),{text:"()",selection:[1,1]}}else if(b==")"){a(C);var M=C.getCursorPosition(),L=_.doc.getLine(M.row),N=L.substring(M.column,M.column+1);if(N==")"){var T=_.$findOpeningBracket(")",{column:M.column+1,row:M.row});if(T!==null&&m.isAutoInsertedClosing(M,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,A,C,_,b){var k=_.doc.getTextRange(b);if(!b.isMultiLine()&&k=="("){a(C);var R=_.doc.getLine(b.start.row),M=R.substring(b.start.column+1,b.start.column+2);if(M==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,A,C,_,b){if(b=="["){a(C);var k=C.getSelectionRange(),R=_.doc.getTextRange(k);if(R!==""&&C.getWrapBehavioursEnabled())return d(k,R,"[","]");if(m.isSaneInsertion(C,_))return m.recordAutoInsert(C,_,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){a(C);var M=C.getCursorPosition(),L=_.doc.getLine(M.row),N=L.substring(M.column,M.column+1);if(N=="]"){var T=_.$findOpeningBracket("]",{column:M.column+1,row:M.row});if(T!==null&&m.isAutoInsertedClosing(M,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,A,C,_,b){var k=_.doc.getTextRange(b);if(!b.isMultiLine()&&k=="["){a(C);var R=_.doc.getLine(b.start.row),M=R.substring(b.start.column+1,b.start.column+2);if(M=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,A,C,_,b){var k=_.$mode.$quotes||c;if(b.length==1&&k[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;a(C);var R=b,M=C.getSelectionRange(),L=_.doc.getTextRange(M);if(L!==""&&(L.length!=1||!k[L])&&C.getWrapBehavioursEnabled())return d(M,L,R,R);if(!L){var N=C.getCursorPosition(),T=_.doc.getLine(N.row),$=T.substring(N.column-1,N.column),S=T.substring(N.column,N.column+1),w=_.getTokenAt(N.row,N.column),x=_.getTokenAt(N.row,N.column+1);if($=="\\"&&w&&/escape/.test(w.type))return null;var E=w&&/string|escape/.test(w.type),I=!x||/string|escape/.test(x.type),O;if(S==R)O=E!==I,O&&/string\.end/.test(x.type)&&(O=!1);else{if(E&&!I||E&&I)return null;var D=_.$mode.tokenRe;D.lastIndex=0;var F=D.test($);D.lastIndex=0;var H=D.test(S),W=_.$mode.$pairQuotesAfter,U=W&&W[R]&&W[R].test($);if(!U&&F||H||S&&!/[\s;,.})\]\\]/.test(S))return null;var G=T[N.column-2];if($==R&&(G==R||D.test(G)))return null;O=!0}return{text:O?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,A,C,_,b){var k=_.$mode.$quotes||c,R=_.doc.getTextRange(b);if(!b.isMultiLine()&&k.hasOwnProperty(R)){a(C);var M=_.doc.getLine(b.start.row),L=M.substring(b.start.column+1,b.start.column+2);if(L==R)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,A,C,_,b){if(y==="doc-start"&&(b===`
760
+ `||b===`\r
761
+ `)&&C.selection.isEmpty()){var k=C.getCursorPosition();if(k.column===0)return;for(var R=_.doc.getLine(k.row),M=_.doc.getLine(k.row+1),L=_.getTokens(k.row),N=0,T=0;T<L.length;T++){N+=L[T].value.length;var $=L[T];if(N>=k.column){if(N===k.column){if(!/\.doc/.test($.type))return;if(/\*\//.test($.value)){var S=L[T+1];if(!S||!/\.doc/.test(S.type))return}}var w=k.column-(N-$.value.length),x=$.value.indexOf("*/"),E=$.value.indexOf("/**",x>-1?x+2:0);if(E!==-1&&w>E&&w<E+3||x!==-1&&E!==-1&&w>=x&&w<=E||!/\.doc/.test($.type))return;break}}var I=this.$getIndent(R);if(/\s*\*/.test(M))return/^\s*\*/.test(R)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(R.substring(0,k.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(v,y){var A=v.getCursorPosition(),C=new g(y,A.row,A.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(A.row)[A.column]))return!0;var _=new g(y,A.row,A.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",p))return!1}return C.stepForward(),C.getCurrentTokenRow()!==A.row||this.$matchTokenType(C.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,A){var C=v.getCursorPosition(),_=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,_,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=C.row,l.autoInsertedLineEnd=A+_.substr(C.column),l.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,A){var C=v.getCursorPosition(),_=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,_)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=C.row,l.maybeInsertedLineStart=_.substr(0,C.column)+A,l.maybeInsertedLineEnd=_.substr(C.column),l.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,A){return l.autoInsertedBrackets>0&&v.row===l.autoInsertedRow&&A===l.autoInsertedLineEnd[0]&&y.substr(v.column)===l.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return l.maybeInsertedBrackets>0&&v.row===l.maybeInsertedRow&&y.substr(v.column)===l.maybeInsertedLineEnd&&y.substr(0,v.column)==l.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},h.inherits(m,f),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,i){for(var h=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],f=0,g=[],s=0;s<h.length;s+=2)g.push(f+=h[s]),h[s+1]&&g.push(45,f+=h[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,i){var h=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),l=n("../token_iterator").TokenIterator,u=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 f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(a,d,m,v){var y=d.doc,A=!0,C=!0,_=1/0,b=d.getTabSize(),k=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(o.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var L=o.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),k=d.getUseSoftTabs();var $=function(H,W){var U=H.match(L);if(U){var G=U[1].length,V=U[0].length;!x(H,G,V)&&U[0][V-1]==" "&&V--,y.removeInLine(W,G,V)}},w=R+" ",T=function(H,W){(!A||/\S/.test(H))&&(x(H,_,_)?y.insertInLine({row:W,column:_},w):y.insertInLine({row:W,column:_},R))},S=function(H,W){return L.test(H)},x=function(H,W,U){for(var G=0;W--&&H.charAt(W)==" ";)G++;if(G%b!=0)return!1;for(var G=0;H.charAt(U++)==" ";)G++;return b>2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,M=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+o.escapeRegExp(R)+")"),N=new RegExp("(?:"+o.escapeRegExp(M)+")\\s*$"),T=function(O,D){S(O,D)||(!A||/\S/.test(O))&&(y.insertInLine({row:D,column:O.length},M),y.insertInLine({row:D,column:_},R))},$=function(O,D){var F;(F=O.match(N))&&y.removeInLine(D,O.length-F[0].length,O.length),(F=O.match(L))&&y.removeInLine(D,F[1].length,F[0].length)},S=function(O,D){if(L.test(O))return!0;for(var F=d.getTokens(D),H=0;H<F.length;H++)if(F[H].type==="comment")return!0}}function E(O){for(var D=m;D<=v;D++)O(y.getLine(D),D)}var I=1/0;E(function(O,D){var F=O.search(/\S/);F!==-1?(F<_&&(_=F),C&&!S(O,D)&&(C=!1)):I>O.length&&(I=O.length)}),_==1/0&&(_=I,A=!1,C=!1),k&&_%b!=0&&(_=Math.floor(_/b)*b),E(C?$:T)},this.toggleBlockComment=function(a,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var A=new l(d,v.row,v.column),C=A.getCurrentToken();d.selection;var _=d.selection.toOrientedRange(),b,k;if(C&&/comment/.test(C.type)){for(var R,M;C&&/comment/.test(C.type);){var L=C.value.indexOf(y.start);if(L!=-1){var N=A.getCurrentTokenRow(),T=A.getCurrentTokenColumn()+L;R=new u(N,T,N,T+y.start.length);break}C=A.stepBackward()}for(var A=new l(d,v.row,v.column),C=A.getCurrentToken();C&&/comment/.test(C.type);){var L=C.value.indexOf(y.end);if(L!=-1){var N=A.getCurrentTokenRow(),T=A.getCurrentTokenColumn()+L;M=new u(N,T,N,T+y.end.length);break}C=A.stepForward()}M&&d.remove(M),R&&(d.remove(R),b=R.start.row,k=-y.start.length)}else k=y.start.length,b=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);_.start.row==b&&(_.start.column+=k),_.end.row==b&&(_.end.column+=k),d.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(a,d,m){return this.$getIndent(d)},this.checkOutdent=function(a,d,m){return!1},this.autoOutdent=function(a,d,m){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var d in a)if(a[d]){var m=a[d],v=m.prototype.$id,y=h.$modes[v];y||(h.$modes[v]=y=new m),h.$modes[d]||(h.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var A=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(b){(function(k){var R=A[b],M=k[R];k[A[b]]=function(){return this.$delegator(R,arguments,M)}})(_)},_=this,d=0;d<A.length;d++)C(d)},this.$delegator=function(a,d,m){var v=d[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],A=this.$modes[y];if(A)return A[a].apply(A,[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 _=v.split(this.$embeds[C]);if(!_[0]&&_[1]){d[0]=_[1];var A=this.$modes[this.$embeds[C]];return A[a].apply(A,d)}}var b=m.apply(this,d);return m?b:void 0},this.transformAction=function(a,d,m,v,y){if(this.$behaviour){var A=this.$behaviour.getBehaviours();for(var C in A)if(A[C][d]){var _=A[C][d].apply(this,arguments);if(_)return _}}},this.getKeywords=function(a){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var v in d)for(var y=d[v],A=0,C=y.length;A<C;A++)if(typeof y[A].token=="string")/keyword|support|storage/.test(y[A].token)&&m.push(y[A].regex);else if(typeof y[A].token=="object"){for(var _=0,b=y[A].token.length;_<b;_++)if(/keyword|support|storage/.test(y[A].token[_])){var v=y[A].regex.match(/\(.+?\)/g)[_];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return a?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(a,d,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(A){return{name:A,value:A,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),r.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("./lib/dom"),f=(function(){function g(s){this.session=s,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(s){var 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(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},g.prototype.updateOnFold=function(s,p){var o=p.lineWidgets;if(!(!o||!s.action)){for(var l=s.data,u=l.start.row,c=l.end.row,a=s.action=="add",d=u+1;d<c;d++)o[d]&&(o[d].hidden=a);o[c]&&(a?o[u]?o[c].hidden=a:o[u]=o[c]:(o[u]==o[c]&&(o[u]=void 0),o[c].hidden=a))}},g.prototype.updateOnChange=function(s){var p=this.session.lineWidgets;if(p){var o=s.start.row,l=s.end.row-o;if(l!==0)if(s.action=="remove"){var u=p.splice(o+1,l);!p[o]&&u[u.length-1]&&(p[o]=u.pop()),u.forEach(function(a){a&&this.removeLineWidget(a)},this),this.$updateRows()}else{var c=new Array(l);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,l){if(o)for(p=!1,o.row=l;o.$oldWidget;)o.$oldWidget.row=l,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=h.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=h.createElement("div"),s.el.textContent=s.text),s.el&&(h.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&h.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 l=this.session.lineWidgets;s.row==o.end.row&&!l[o.start.row]?l[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],l=[];o;)l.push(o),o=o.$oldWidget;return l},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,l=p.layerConfig;if(!(!o||!o.length)){for(var u=1/0,c=0;c<o.length;c++){var a=o[c];if(!(!a||!a.el)&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,p.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/l.characterWidth));var d=a.h/l.lineHeight;a.coverLine&&(d-=this.session.getRowLineCount(a.row),d<0&&(d=0)),a.rowCount!=d&&(a.rowCount=d,a.row<u&&(u=a.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,p){var o=p.layerConfig,l=this.session.lineWidgets;if(l){for(var u=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,l.length);u>0&&!l[u];)u--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var a=u;a<=c;a++){var d=l[a];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:a,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=f}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,i){r.applyDelta=function(h,f,g){var s=f.start.row,p=f.start.column,o=h[s]||"";switch(f.action){case"insert":var l=f.lines;if(l.length===1)h[s]=o.substring(0,p)+f.lines[0]+o.substring(p);else{var u=[s,1].concat(f.lines);h.splice.apply(h,u),h[s]=o.substring(0,p)+h[s],h[s+f.lines.length-1]+=o.substring(p)}break;case"remove":var c=f.end.column,a=f.end.row;s===a?h[s]=o.substring(0,p)+o.substring(c):h.splice(s,a-s+1,o.substring(0,p)+h[a].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=(function(){function o(l,u,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var u=p(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},o.prototype.setPosition=function(l,u,c){var a;if(c?a={row:l,column:u}:a=this.$clipPositionToDocument(l,u),!(this.row==a.row&&this.column==a.column)){var d={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:d,value:a})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(l,u){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,u))),u<0&&(c.column=0),c},o})();g.prototype.$insertRight=!1,h.implement(g.prototype,f);function s(o,l,u){var c=u?o.column<=l.column:o.column<l.column;return o.row<l.row||o.row==l.row&&c}function p(o,l,u){var c=o.action=="insert",a=(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(l,m,u)?{row:l.row,column:l.column}:s(v,l,!u)?{row:l.row+a,column:l.column+(l.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,i){var h=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=(function(){function l(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return l.prototype.setValue=function(u){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},u||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(u,c){return new p(this,u,c)},l.prototype.$detectNewLine=function(u){var c=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
762
+ `,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
763
+ `;case"unix":return`
764
+ `;default:return this.$autoNewLine||`
765
+ `}},l.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(u){return u==`\r
766
+ `||u=="\r"||u==`
767
+ `},l.prototype.getLine=function(u){return this.$lines[u]||""},l.prototype.getLines=function(u,c){return this.$lines.slice(u,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(u){var c;if(u.start.row===u.end.row)c=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{c=this.getLines(u.start.row,u.end.row),c[0]=(c[0]||"").substring(u.start.column);var a=c.length-1;u.end.row-u.start.row==a&&(c[a]=c[a].substring(0,u.end.column))}return c},l.prototype.insertLines=function(u,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,c)},l.prototype.removeLines=function(u,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,c)},l.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},l.prototype.insert=function(u,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(u,this.$split(c))},l.prototype.insertInLine=function(u,c){var a=this.clippedPos(u.row,u.column),d=this.pos(u.row,u.column+c.length);return this.applyDelta({start:a,end:d,action:"insert",lines:[c]},!0),this.clonePos(d)},l.prototype.clippedPos=function(u,c){var a=this.getLength();u===void 0?u=a:u<0?u=0:u>=a&&(u=a-1,c=void 0);var d=this.getLine(u);return c==null&&(c=d.length),c=Math.min(Math.max(c,0),d.length),{row:u,column:c}},l.prototype.clonePos=function(u){return{row:u.row,column:u.column}},l.prototype.pos=function(u,c){return{row:u,column:c}},l.prototype.$clipPosition=function(u){var c=this.getLength();return u.row>=c?(u.row=Math.max(0,c-1),u.column=this.getLine(c-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},l.prototype.insertFullLines=function(u,c){u=Math.min(Math.max(u,0),this.getLength());var a=0;u<this.getLength()?(c=c.concat([""]),a=0):(c=[""].concat(c),u--,a=this.$lines[u].length),this.insertMergedLines({row:u,column:a},c)},l.prototype.insertMergedLines=function(u,c){var a=this.clippedPos(u.row,u.column),d={row:a.row+c.length-1,column:(c.length==1?a.column:0)+c[c.length-1].length};return this.applyDelta({start:a,end:d,action:"insert",lines:c}),this.clonePos(d)},l.prototype.remove=function(u){var c=this.clippedPos(u.start.row,u.start.column),a=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:c,end:a,action:"remove",lines:this.getLinesForRange({start:c,end:a})}),this.clonePos(c)},l.prototype.removeInLine=function(u,c,a){var d=this.clippedPos(u,c),m=this.clippedPos(u,a);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},l.prototype.removeFullLines=function(u,c){u=Math.min(Math.max(0,u),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var a=c==this.getLength()-1&&u>0,d=c<this.getLength()-1,m=a?u-1:u,v=a?this.getLine(m).length:0,y=d?c+1:c,A=d?0:this.getLine(y).length,C=new s(m,v,y,A),_=this.$lines.slice(u,c+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),_},l.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(u,c){if(u instanceof s||(u=s.fromPoints(u.start,u.end)),c.length===0&&u.isEmpty())return u.start;if(c==this.getTextRange(u))return u.end;this.remove(u);var a;return c?a=this.insert(u.start,c):a=u.start,a},l.prototype.applyDeltas=function(u){for(var c=0;c<u.length;c++)this.applyDelta(u[c])},l.prototype.revertDeltas=function(u){for(var c=u.length-1;c>=0;c--)this.revertDelta(u[c])},l.prototype.applyDelta=function(u,c){var a=u.action=="insert";(a?u.lines.length<=1&&!u.lines[0]:!s.comparePoints(u.start,u.end))||(a&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(f(this.$lines,u,c),this._signal("change",u)))},l.prototype.$safeApplyDelta=function(u){var c=this.$lines.length;(u.action=="remove"&&u.start.row<c&&u.end.row<c||u.action=="insert"&&u.start.row<=c)&&this.applyDelta(u)},l.prototype.$splitAndapplyLargeDelta=function(u,c){for(var a=u.lines,d=a.length-c+1,m=u.start.row,v=u.start.column,y=0,A=0;y<d;y=A){A+=c-1;var C=a.slice(y,A);C.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+A,v=0),action:u.action,lines:C},!0)}u.lines=a.slice(y),u.start.row=m+y,u.start.column=v,this.applyDelta(u,!0)},l.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},l.prototype.indexToPosition=function(u,c){for(var a=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=c||0,v=a.length;m<v;m++)if(u-=a[m].length+d,u<0)return{row:m,column:u+a[m].length+d};return{row:v-1,column:u+a[v-1].length+d}},l.prototype.positionToIndex=function(u,c){for(var a=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,v=Math.min(u.row,a.length),y=c||0;y<v;++y)m+=a[y].length+d;return m+u.column},l.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},l})();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",h.implement(o.prototype,g),r.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=(function(){function s(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var l=this;this.$worker=function(){if(l.running){for(var u=new Date,c=l.currentLine,a=-1,d=l.doc,m=c;l.lines[c];)c++;var v=d.getLength(),y=0;for(l.running=!1;c<v;){l.$tokenizeRow(c),a=c;do c++;while(l.lines[c]);if(y++,y%5===0&&new Date-u>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,a==-1&&(a=c),m<=a&&l.fireUpdateEvent(m,a)}}}return s.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(p,o){var l={first:p,last:o};this._signal("update",{data:l})},s.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(p){var o=p.start.row,l=p.end.row-o;if(l===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,l+1,null),this.states.splice(o,l+1,null);else{var u=Array(l+1);u.unshift(o,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},s.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},s.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),l=this.states[p-1],u=this.tokenizer.getLineTokens(o,l,p);return this.states[p]+""!=u.state+""?(this.states[p]=u.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=u.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s})();h.implement(g.prototype,f),r.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./range").Range,g=(function(){function s(p,o,l){l===void 0&&(l="text"),this.setRegexp(p),this.clazz=o,this.type=l,this.docLen=0}return s.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},s.prototype.update=function(p,o,l,u){if(this.regExp){for(var c=u.firstRow,a=u.lastRow,d={},m=l.$editor&&l.$editor.$search,v=m&&m.$isMultilineSearch(l.$editor.getLastSearchOptions()),y=c;y<=a;y++){var A=this.cache[y];if(A==null||l.getValue().length!=this.docLen){if(v){A=[];var C=m.$multiLineForward(l,this.regExp,y,a);if(C){var _=C.endRow<=a?C.endRow-1:a;_>y&&(y=_),A.push(new f(C.startRow,C.startCol,C.endRow,C.endCol))}A.length>this.MAX_RANGES&&(A=A.slice(0,this.MAX_RANGES))}else A=h.getMatchOffsets(l.getLine(y),this.regExp),A.length>this.MAX_RANGES&&(A=A.slice(0,this.MAX_RANGES)),A=A.map(function(M){return new f(y,M.offset,y,M.offset+M.length)});this.cache[y]=A.length?A:""}if(A.length!==0)for(var b=A.length;b--;){var k=A[b].toScreenRange(l),R=k.toString();d[R]||(d[R]=!0,o.drawSingleLineMarker(p,k,this.clazz,u))}}this.docLen=l.getValue().length}},s})();g.prototype.MAX_RANGES=500,r.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,i){var h=(function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(b){this.$session=b},_.prototype.add=function(b,k,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),k===!1||!this.lastDeltas){this.lastDeltas=[];var M=this.$undoStack.length;M>this.$undoDepth-1&&this.$undoStack.splice(0,M-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},_.prototype.addSelection=function(b,k){this.selections.push({value:b,rev:k||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(b,k){k==null&&(k=this.$rev+1);for(var R=this.$undoStack,M=R.length;M--;){var L=R[M][0];if(L.id<=b)break;L.id<k&&(L.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(b,k){for(var R=this.selections,M=R.length;M--;){var L=R[M];if(L.rev<b)return k&&(L=R[M+1]),L}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(b,k){k==null&&(k=this.$rev+1);for(var R=this.$undoStack,M=null,L=0,N=R.length;N--;){var T=R[N][0];if(T.id<k&&!M&&(M=N+1),T.id<=b){L=N+1;break}}return R.slice(L,M)},_.prototype.getChangedRanges=function(b,k){k==null&&(k=this.$rev+1)},_.prototype.getChangedLines=function(b,k){k==null&&(k=this.$rev+1)},_.prototype.undo=function(b,k){this.lastDeltas=null;var R=this.$undoStack;if(f(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var M=R.pop(),L=null;return M&&(L=b.undoChanges(M,k),this.$redoStack.push(M),this.$syncRev()),this.$fromUndo=!1,L}},_.prototype.redo=function(b,k){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var M=this.$redoStack.pop(),L=null;return M&&(L=b.redoChanges(M,k),this.$undoStack.push(M),this.$syncRev()),this.$fromUndo=!1,L},_.prototype.$syncRev=function(){var b=this.$undoStack,k=b[b.length-1],R=k&&k[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},_.prototype.$prettyPrint=function(b){return b?l(b):l(this.$undoStack)+`
768
+ ---
769
+ `+l(this.$redoStack)},_})();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function f(_,b){for(var k=b;k--;){var R=_[k];if(R&&!R[0].ignore){for(;k<b-1;){var M=a(_[k],_[k+1]);_[k]=M[0],_[k+1]=M[1],k++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function p(_){return{row:_.row,column:_.column}}function o(_){return{start:p(_.start),end:p(_.end),action:_.action,lines:_.lines.slice()}}function l(_){if(_=_||this,Array.isArray(_))return _.map(l).join(`
770
+ `);var b="";return _.action?(b=_.action=="insert"?"+":"-",b+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?b=_.value.map(u).join(`
771
+ `):b=u(_.value)),_.start&&(b+=u(_)),(_.id||_.rev)&&(b+=" ("+(_.id||_.rev)+")"),b}function u(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function c(_,b){var k=_.action=="insert",R=b.action=="insert";if(k&&R)if(s(b.start,_.end)>=0)m(b,_,-1);else if(s(b.start,_.start)<=0)m(_,b,1);else return null;else if(k&&!R)if(s(b.start,_.end)>=0)m(b,_,-1);else if(s(b.end,_.start)<=0)m(_,b,-1);else return null;else if(!k&&R)if(s(b.start,_.start)>=0)m(b,_,1);else if(s(b.start,_.start)<=0)m(_,b,1);else return null;else if(!k&&!R)if(s(b.start,_.start)>=0)m(b,_,1);else if(s(b.end,_.start)<=0)m(_,b,-1);else return null;return[b,_]}function a(_,b){for(var k=_.length;k--;)for(var R=0;R<b.length;R++)if(!c(_[k],b[R])){for(;k<_.length;){for(;R--;)c(b[R],_[k]);R=b.length,k++}return[_,b]}return _.selectionBefore=b.selectionBefore=_.selectionAfter=b.selectionAfter=null,[b,_]}function d(_,b){var k=_.action=="insert",R=b.action=="insert";if(k&&R)s(_.start,b.start)<0?m(b,_,1):m(_,b,1);else if(k&&!R)s(_.start,b.end)>=0?m(_,b,-1):(s(_.start,b.start)<=0||m(_,g.fromPoints(b.start,_.start),-1),m(b,_,1));else if(!k&&R)s(b.start,_.end)>=0?m(b,_,-1):(s(b.start,_.start)<=0||m(b,g.fromPoints(_.start,b.start),-1),m(_,b,1));else if(!k&&!R)if(s(b.start,_.end)>=0)m(b,_,-1);else if(s(b.end,_.start)<=0)m(_,b,-1);else{var M,L;return s(_.start,b.start)<0&&(M=_,_=y(_,b.start)),s(_.end,b.end)>0&&(L=y(_,b.end)),v(b.end,_.start,_.end,-1),L&&!M&&(_.lines=L.lines,_.start=L.start,_.end=L.end,L=_),[b,M,L].filter(Boolean)}return[b,_]}function m(_,b,k){v(_.start,b.start,b.end,k),v(_.end,b.start,b.end,k)}function v(_,b,k,R){_.row==(R==1?b:k).row&&(_.column+=R*(k.column-b.column)),_.row+=R*(k.row-b.row)}function y(_,b){var k=_.lines,R=_.end;_.end=p(b);var M=_.end.row-_.start.row,L=k.splice(M,k.length),N=M?b.column:b.column-_.start.column;k.push(L[0].substring(0,N)),L[0]=L[0].substr(N);var T={start:p(b),end:R,lines:L,action:_.action};return T}function A(_,b){b=o(b);for(var k=_.length;k--;){for(var R=_[k],M=0;M<R.length;M++){var L=R[M],N=d(L,b);b=N[0],N.length!=2&&(N[2]?(R.splice(M+1,1,N[1],N[2]),M++):N[1]||(R.splice(M,1),M--))}R.length||_.splice(k,1)}return _}function C(_,b){for(var k=0;k<b.length;k++)for(var R=b[k],M=0;M<R.length;M++)A(_,R[M])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,i){var h=n("../range").Range,f=(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 h(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(l){l.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 l=0,u=this.folds,c,a,d,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<u.length;v++){if(c=u[v],a=c.range.compareStart(p,o),a==-1){s(null,p,o,l,m);return}if(d=s(null,c.start.row,c.start.column,l,m),d=!d&&s(c.placeholder,c.start.row,c.start.column,l),d||a===0)return;m=!c.sameRow,l=c.end.column}s(null,p,o,l,m)},g.prototype.getNextFoldTo=function(s,p){for(var o,l,u=0;u<this.folds.length;u++){if(o=this.folds[u],l=o.range.compareEnd(s,p),l==-1)return{fold:o,kind:"after"};if(l===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,p,o){var l=this.getNextFoldTo(s,p),u,c;if(l){if(u=l.fold,l.kind=="inside"&&u.start.column!=p&&u.start.row!=s)window.console&&window.console.log(s,p,u);else if(u.start.row==s){c=this.folds;var a=c.indexOf(u);for(a===0&&(this.start.column+=o),a;a<c.length;a++){if(u=c[a],u.start.column+=o,!u.sameRow)return;u.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 l=o.fold,u=this.folds,c=this.foldData,a=u.indexOf(l),d=u[a-1];this.end.row=d.end.row,this.end.column=d.end.column,u=u.splice(a,u.length-a);var m=new g(c,u);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 l=this.foldData;l.splice(l.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(`
772
+ `)},g.prototype.idxToPosition=function(s){for(var p=0,o=0;o<this.folds.length;o++){var l=this.folds[o];if(s-=l.start.column-p,s<0)return{row:l.start.row,column:l.start.column+s};if(s-=l.placeholder.length,s<0)return l.start;p=l.end.column}return{row:this.end.row,column:this.end.column+s}},g})();r.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=h.comparePoints,g=(function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(p,o,l){for(var u=this.ranges,c=l||0;c<u.length;c++){var a=u[c],d=f(p,a.end);if(!(d>0)){var m=f(p,a.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(),l=this.pointIndex(p.start,o);l<0&&(l=-l-1);var u=this.pointIndex(p.end,o,l);return u<0?u=-u-1:u++,this.ranges.splice(l,u-l,p)},s.prototype.addList=function(p){for(var o=[],l=p.length;l--;)o.push.apply(o,this.add(p[l]));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 f(d.start,m.start)});for(var l=o[0],u,c=1;c<o.length;c++){u=l,l=o[c];var a=f(u.end,l.start);a<0||a==0&&!u.isEmpty()&&!l.isEmpty()||(f(u.end,l.end)<0&&(u.end.row=l.end.row,u.end.column=l.end.column),o.splice(c,1),p.push(l),l=u,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 l=this.ranges;if(l[0].start.row>o||l[l.length-1].start.row<p)return[];var u=this.pointIndex({row:p,column:0});u<0&&(u=-u-1);var c=this.pointIndex({row:o,column:0},u);c<0&&(c=-c-1);for(var a=[],d=u;d<c;d++)a.push(l[d]);return a},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,l=p.end,u=o.row,c=l.row,a=this.ranges,d=0,m=a.length;d<m;d++){var v=a[d];if(v.end.row>=u)break}if(p.action=="insert")for(var y=c-u,A=-o.column+l.column;d<m;d++){var v=a[d];if(v.start.row>u)break;if(v.start.row==u&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=A,v.start.row+=y)),v.end.row==u&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&A>0&&d<m-1&&v.end.column>v.start.column&&v.end.column==a[d+1].start.column&&(v.end.column-=A),v.end.column+=A,v.end.row+=y}}else for(var y=u-c,A=o.column-l.column;d<m;d++){var v=a[d];if(v.start.row>c)break;v.end.row<c&&(u<v.end.row||u==v.end.row&&o.column<v.end.column)?(v.end.row=u,v.end.column=o.column):v.end.row==c?v.end.column<=l.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=A,v.end.row+=y):v.end.row>c&&(v.end.row+=y),v.start.row<c&&(u<v.start.row||u==v.start.row&&o.column<v.start.column)?(v.start.row=u,v.start.column=o.column):v.start.row==c?v.start.column<=l.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=A,v.start.row+=y):v.start.row>c&&(v.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var v=a[d];v.start.row+=y,v.end.row+=y}},s})();g.prototype.comparePoints=f,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,i){var h=this&&this.__extends||(function(){var u=function(c,a){return u=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])},u(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");u(c,a);function d(){this.constructor=c}c.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}})(),f=n("../range_list").RangeList,g=(function(u){h(c,u);function c(a,d){var m=u.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=a,m.start=a.start,m.end=a.end,m.sameRow=a.start.row==a.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(a){this.foldLine=a,this.subFolds.forEach(function(d){d.setFoldLine(a)})},c.prototype.clone=function(){var a=this.range.clone(),d=new c(a,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},c.prototype.addSubFold=function(a){if(!this.range.isEqual(a)){p(a,this.start);for(var A=a.start.row,C=a.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare(A,C),m==1);d++);var v=this.subFolds[d],y=0;if(m==0){if(v.range.containsRange(a))return v.addSubFold(a);y=1}for(var A=a.range.end.row,C=a.range.end.column,_=d,m=-1;_<this.subFolds.length&&(m=this.subFolds[_].range.compare(A,C),m==1);_++);m==0&&_++;for(var b=this.subFolds.splice(d,_-d,a),k=m==0?b.length-1:b.length,R=y;R<k;R++)a.addSubFold(b[R]);return a.setFoldLine(this.foldLine),a}},c.prototype.restoreRange=function(a){return l(a,this.start)},c})(f);function s(u,c){u.row-=c.row,u.row==0&&(u.column-=c.column)}function p(u,c){s(u.start,c),s(u.end,c)}function o(u,c){u.row==0&&(u.column+=c.column),u.row+=c.row}function l(u,c){o(u.start,c),o(u.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,i){var h=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(l,u,c){var a=this.getFoldLine(l);if(!a)return null;for(var d=a.folds,m=0;m<d.length;m++){var v=d[m].range;if(v.contains(l,u)){if(c==1&&v.isEnd(l,u)&&!v.isEmpty())continue;if(c==-1&&v.isStart(l,u)&&!v.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(l){var u=l.start,c=l.end,a=this.$foldData,d=[];u.column+=1,c.column-=1;for(var m=0;m<a.length;m++){var v=a[m].range.compareRange(l);if(v!=2){if(v==-2)break;for(var y=a[m].folds,A=0;A<y.length;A++){var C=y[A];if(v=C.range.compareRange(l),v==-2)break;if(v==2)continue;if(v==42)break;d.push(C)}}}return u.column-=1,c.column+=1,d},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var u=[];l.forEach(function(c){u=u.concat(this.getFoldsInRange(c))},this)}else var u=this.getFoldsInRange(l);return u},this.getAllFolds=function(){for(var l=[],u=this.$foldData,c=0;c<u.length;c++)for(var a=0;a<u[c].folds.length;a++)l.push(u[c].folds[a]);return l},this.getFoldStringAt=function(l,u,c,a){if(a=a||this.getFoldLine(l),!a)return null;for(var d={end:{column:0}},m,v,y=0;y<a.folds.length;y++){v=a.folds[y];var A=v.range.compareEnd(l,u);if(A==-1){m=this.getLine(v.start.row).substring(d.end.column,v.start.column);break}else if(A===0)return null;d=v}return m||(m=this.getLine(v.start.row).substring(d.end.column)),c==-1?m.substring(0,u-d.end.column):c==1?m.substring(u-d.end.column):m},this.getFoldLine=function(l,u){var c=this.$foldData,a=0;for(u&&(a=c.indexOf(u)),a==-1&&(a=0),a;a<c.length;a++){var d=c[a];if(d.start.row<=l&&d.end.row>=l)return d;if(d.end.row>l)return null}return null},this.getNextFoldLine=function(l,u){var c=this.$foldData,a=0;for(u&&(a=c.indexOf(u)),a==-1&&(a=0),a;a<c.length;a++){var d=c[a];if(d.end.row>=l)return d}return null},this.getFoldedRowCount=function(l,u){for(var c=this.$foldData,a=u-l+1,d=0;d<c.length;d++){var m=c[d],v=m.end.row,y=m.start.row;if(v>=u){y<u&&(y>=l?a-=u-y:a=0);break}else v>=l&&(y>=l?a-=v-y:a-=v-l+1)}return a},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(u,c){return u.start.row-c.start.row}),l},this.addFold=function(l,u){var c=this.$foldData,a=!1,d;l instanceof g?d=l:(d=new g(u,l),d.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,v=d.start.column,y=d.end.row,A=d.end.column,C=this.getFoldAt(m,v,1),_=this.getFoldAt(y,A,-1);if(C&&_==C)return C.addSubFold(d);C&&!C.range.isStart(m,v)&&this.removeFold(C),_&&!_.range.isEnd(y,A)&&this.removeFold(_);var b=this.getFoldsInRange(d.range);b.length>0&&(this.removeFolds(b),d.collapseChildren||b.forEach(function(L){d.addSubFold(L)}));for(var k=0;k<c.length;k++){var R=c[k];if(y==R.start.row){R.addFold(d),a=!0;break}else if(m==R.end.row){if(R.addFold(d),a=!0,!d.sameRow){var M=c[k+1];if(M&&M.start.row==y){R.merge(M);break}}break}else if(y<=R.start.row)break}return a||(R=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(l){l.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(l){var u=l.foldLine,c=u.start.row,a=u.end.row,d=this.$foldData,m=u.folds;if(m.length==1)d.splice(d.indexOf(u),1);else if(u.range.isEnd(l.end.row,l.end.column))m.pop(),u.end.row=m[m.length-1].end.row,u.end.column=m[m.length-1].end.column;else if(u.range.isStart(l.start.row,l.start.column))m.shift(),u.start.row=m[0].start.row,u.start.column=m[0].start.column;else if(l.sameRow)m.splice(m.indexOf(l),1);else{var v=u.split(l.start.row,l.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,a):this.$updateRowLengthCache(c,a)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var u=[],c=0;c<l.length;c++)u.push(l[c]);u.forEach(function(a){this.removeFold(a)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(u){l.restoreRange(u),this.addFold(u)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(l,u){var c,a;if(l==null)c=new h(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof l=="number")c=new h(l,0,l,this.getLine(l).length);else if("row"in l)c=h.fromPoints(l,l);else{if(Array.isArray(l))return a=[],l.forEach(function(m){a=a.concat(this.unfold(m))},this),a;c=l}a=this.getFoldsInRangeList(c);for(var d=a;a.length==1&&h.comparePoints(a[0].start,c.start)<0&&h.comparePoints(a[0].end,c.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(c);if(u!=!1?this.removeFolds(a):this.expandFolds(a),d.length)return d},this.isRowFolded=function(l,u){return!!this.getFoldLine(l,u)},this.getRowFoldEnd=function(l,u){var c=this.getFoldLine(l,u);return c?c.end.row:l},this.getRowFoldStart=function(l,u){var c=this.getFoldLine(l,u);return c?c.start.row:l},this.getFoldDisplayLine=function(l,u,c,a,d){a==null&&(a=l.start.row),d==null&&(d=0),u==null&&(u=l.end.row),c==null&&(c=this.getLine(u).length);var m=this.doc,v="";return l.walk(function(y,A,C,_){if(!(A<a)){if(A==a){if(C<d)return;_=Math.max(d,_)}y!=null?v+=y:v+=m.getLine(A).substring(_,C)}},u,c),v},this.getDisplayLine=function(l,u,c,a){var d=this.getFoldLine(l);if(d)return this.getFoldDisplayLine(d,l,u,c,a);var m;return m=this.doc.getLine(l),m.substring(a||0,u||m.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(u){var c=u.folds.map(function(a){return a.clone()});return new f(l,c)}),l},this.toggleFold=function(l){var u=this.selection,c=u.getRange(),a,d;if(c.isEmpty()){var m=c.start;if(a=this.getFoldAt(m.row,m.column),a){this.expandFold(a);return}else if(l){var v=this.getFoldLine(m.row);v&&this.expandFolds(v.folds);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 y=this.getFoldsInRange(c);if(l&&y.length){this.expandFolds(y);return}else y.length==1&&(a=y[0])}if(a||(a=this.getFoldAt(c.start.row,c.start.column)),a&&a.range.toString()==c.toString()){this.expandFold(a);return}var A="...";if(!c.isMultiLine()){if(A=this.getTextRange(c),A.length<4)return;A=A.trim().substring(0,2)+".."}this.addFold(A,c)},this.getCommentFoldRange=function(l,u,c){var a=new s(this,l,u),d=a.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 h;if(c!=1){do d=a.stepBackward();while(d&&v.test(d.type));d=a.stepForward()}y.start.row=a.getCurrentTokenRow(),y.start.column=a.getCurrentTokenColumn()+d.value.length,a=new s(this,l,u);var A=this.getState(a.$row);if(c!=-1){var C=-1;do if(d=a.stepForward(),C==-1){var _=this.getState(a.$row);A.toString()!==_.toString()&&(C=a.$row)}else if(a.$row>C)break;while(d&&v.test(d.type));d=a.stepBackward()}else d=a.getCurrentToken();return y.end.row=a.getCurrentTokenRow(),y.end.column=a.getCurrentTokenColumn(),y.start.row==y.end.row&&y.start.column>y.end.column?void 0:y}},this.foldAll=function(l,u,c,a){c==null&&(c=1e5);var d=this.foldWidgets;if(d){u=u||this.getLength(),l=l||0;for(var m=l;m<u;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(a&&!a(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=u&&v.start.row>=l&&(m=v.end.row,v.collapseChildren=c,this.addFold("...",v))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(u){for(var c=l.getTokens(u),a=0;a<c.length;a++){var d=c[a];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(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,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(l,u){var c=this.foldWidgets;if(!c||u&&c[l])return{};for(var a=l-1,d;a>=0;){var m=c[a];if(m==null&&(m=c[a]=this.getFoldWidget(a)),m=="start"){var v=this.getFoldWidgetRange(a);if(d||(d=v),v&&v.end.row>=l)break}a--}return{range:a!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(l,u){u instanceof p&&(u=u.domEvent);var c={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},a=this.$toggleFoldWidget(l,c);if(!a){var d=u.target||u.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,u){if(this.getFoldWidget){var c=this.getFoldWidget(l),a=this.getLine(l),d=c==="end"?-1:1,m=this.getFoldAt(l,d===-1?0:a.length,d);if(m)return u.children||u.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(l,!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(u.siblings){var y=this.getParentFoldRangeData(l);if(y.range)var A=y.range.start.row+1,C=y.range.end.row;this.foldAll(A,C,u.all?1e4:0)}else u.children?(C=v?v.end.row:this.getLength(),this.foldAll(l+1,C,u.all?1e4:0)):v&&(u.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(l){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var c=this.$toggleFoldWidget(u,{});if(!c){var a=this.getParentFoldRangeData(u,!0);if(c=a.range||a.firstRange,c){u=c.start.row;var d=this.getFoldAt(u,this.getLine(u).length,1);d?this.removeFold(d):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var u=l.start.row,c=l.end.row-u;if(c===0)this.foldWidgets[u]=null;else if(l.action=="remove")this.foldWidgets.splice(u,c+1,null);else{var a=Array(c+1);a.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(l){var u=l.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.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,i){var h=n("../token_iterator").TokenIterator,f=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 l=o.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s):null},this.getBracketRange=function(s){var p=this.getLine(s.row),o=!0,l,u=p.charAt(s.column-1),c=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(c||(u=p.charAt(s.column),s={row:s.row,column:s.column+1},c=u&&u.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var a=this.$findClosingBracket(c[1],s);if(!a)return null;l=f.fromPoints(s,a),o||(l.end.column++,l.start.column--),l.cursor=l.end}else{var a=this.$findOpeningBracket(c[2],s);if(!a)return null;l=f.fromPoints(a,s),o||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(s,p){var o=this.getLine(s.row),l=/([\(\[\{])|([\)\]\}])/,u=!p&&o.charAt(s.column-1),c=u&&u.match(l);if(c||(u=(p===void 0||p)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=u&&u.match(l)),!c)return null;var a=new f(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[a];var m=new f(d.row,d.column,d.row,d.column+1);return[a,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,p,o){var l=this.$brackets[s],u=1,c=new h(this,p.row,p.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.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=a.value;;){for(;d>=0;){var v=m.charAt(d);if(v==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else v==s&&(u+=1);d-=1}do a=c.stepBackward();while(a&&!o.test(a.type));if(a==null)break;m=a.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,p,o){var l=this.$brackets[s],u=1,c=new h(this,p.row,p.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.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=a.value,v=m.length;d<v;){var y=m.charAt(d);if(y==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else y==s&&(u+=1);d+=1}do a=c.stepForward();while(a&&!o.test(a.type));if(a==null)break;d=0}return null}},this.getMatchingTags=function(s){var p=new h(this,s.row,s.column),o=this.$findTagName(p);if(o){var l=p.stepBackward();return l.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(s){var p=s.getCurrentToken(),o=!1,l=!1;if(p&&p.type.indexOf("tag-name")===-1)do l?p=s.stepBackward():p=s.stepForward(),p&&(p.value==="/>"?l=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(s,p){var o,l=p.value,u=p.value,c=0,a=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=s.stepForward();var d=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length),m=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p=s.stepForward(),p){if(p.value===">"&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(l=p.value,u===l){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);p=s.stepForward();var A=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),p&&p.value===">")var C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(u===l&&p.value==="/>"&&(c--,c<0))var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),A=y,C=A,v=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}}while(p&&c>=0);if(a&&v&&y&&C&&d&&A)return{openTag:new f(a.start.row,a.start.column,v.end.row,v.end.column),closeTag:new f(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:d,closeTagName:A}},this.$findOpeningTag=function(s,p){var o=s.getCurrentToken(),l=p.value,u=0,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),d=a+2,m=new f(c,a,c,d);s.stepForward();var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),!(!p||p.value!==">")){var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(p=o,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),d=a+p.value.length,o=s.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(l===p.value)if(o.value==="<"){if(u++,u>0){var A=new f(c,a,c,d),C=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do p=s.stepForward();while(p&&p.value!==">");var _=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&u--}else if(p.value==="/>"){for(var b=0,k=o;k;){if(k.type.indexOf("tag-name")!==-1&&k.value===l){u--;break}else if(k.value==="<")break;k=s.stepBackward(),b++}for(var R=0;R<b;R++)s.stepForward()}}while(o&&u<=0);if(C&&_&&m&&y&&A&&v)return{openTag:new f(C.start.row,C.start.column,_.end.row,_.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:A,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/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,l=n("./mode/text").Mode,u=n("./range").Range,c=n("./line_widgets").LineWidgets,a=n("./document").Document,d=n("./background_tokenizer").BackgroundTokenizer,m=n("./search_highlight").SearchHighlight,v=n("./undomanager").UndoManager,y=(function(){function T($,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++T.$uid,this.$foldData.toString=function(){return this.join(`
773
+ `)},this.$gutterCustomWidgets={},this.bgTokenizer=new d(new l().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 $!="object"||!$.getLine)&&($=new a($)),this.setDocument($),this.selection=new o(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(S),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return T.prototype.$initOperationListeners=function(){var $=this;this.curOp=null,this.on("change",function(){$.curOp||($.startOperation(),$.curOp.selectionBefore=$.$lastSel),$.curOp.docChanged=!0},!0),this.on("changeSelection",function(){$.curOp||($.startOperation(),$.curOp.selectionBefore=$.$lastSel),$.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},T.prototype.startOperation=function($){if(this.curOp){if(!$||this.curOp.command)return;this.prevOp=this.curOp}$||($={}),this.$operationResetTimer.schedule(),this.curOp={command:$.command||{},args:$.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",$)},T.prototype.endOperation=function($){if(this.curOp){if($&&$.returnValue===!1){this.curOp=null,this._signal("endOperation",$);return}if($==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var S=this.selection.toJSON();this.curOp.selectionAfter=S,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(S),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",$)}},T.prototype.setDocument=function($){this.doc&&this.doc.off("change",this.$onChange),this.doc=$,$.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},T.prototype.getDocument=function(){return this.doc},Object.defineProperty(T.prototype,"widgetManager",{get:function(){var $=new c(this);return this.widgetManager=$,this.$editor&&$.attach(this.$editor),$},set:function($){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:$})},enumerable:!1,configurable:!0}),T.prototype.$resetRowCache=function($){if(!$){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,$)+1;S>w&&(this.$docRowCache.splice(w,S),this.$screenRowCache.splice(w,S))},T.prototype.$getRowCacheIndex=function($,S){for(var w=0,x=$.length-1;w<=x;){var E=w+x>>1,I=$[E];if(S>I)w=E+1;else if(S<I)x=E-1;else return E}return w-1},T.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},T.prototype.onChangeFold=function($){var S=$.data;this.$resetRowCache(S.start.row)},T.prototype.onChange=function($){this.$modified=!0,this.$bidiHandler.onChange($),this.$resetRowCache($.start.row);var S=this.$updateInternalDataOnChange($);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add($,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange($),this._signal("change",$)},T.prototype.onSelectionChange=function(){this._signal("changeSelection")},T.prototype.setValue=function($){this.doc.setValue($),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},T.fromJSON=function($){typeof $=="string"&&($=JSON.parse($));var S=new v;S.$undoStack=$.history.undo,S.$redoStack=$.history.redo,S.mark=$.history.mark,S.$rev=$.history.rev;var w=new T($.value);return $.folds.forEach(function(x){w.addFold("...",u.fromPoints(x.start,x.end))}),w.setAnnotations($.annotations),w.setBreakpoints($.breakpoints),w.setMode($.mode),w.setScrollLeft($.scrollLeft),w.setScrollTop($.scrollTop),w.setUndoManager(S),w.selection.fromJSON($.selection),w},T.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function($){return $.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},T.prototype.toString=function(){return this.doc.getValue()},T.prototype.getSelection=function(){return this.selection},T.prototype.getState=function($){return this.bgTokenizer.getState($)},T.prototype.getTokens=function($){return this.bgTokenizer.getTokens($)},T.prototype.getTokenAt=function($,S){var w=this.bgTokenizer.getTokens($),x,E=0;if(S==null){var I=w.length-1;E=this.getLine($).length}else for(var I=0;I<w.length&&(E+=w[I].value.length,!(E>=S));I++);return x=w[I],x?(x.index=I,x.start=E-x.value.length,x):null},T.prototype.setUndoManager=function($){if(this.$undoManager=$,this.$informUndoManager&&this.$informUndoManager.cancel(),$){var S=this;$.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},T.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},T.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},T.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},T.prototype.setUseSoftTabs=function($){this.setOption("useSoftTabs",$)},T.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},T.prototype.setTabSize=function($){this.setOption("tabSize",$)},T.prototype.getTabSize=function(){return this.$tabSize},T.prototype.isTabStop=function($){return this.$useSoftTabs&&$.column%this.$tabSize===0},T.prototype.setNavigateWithinSoftTabs=function($){this.setOption("navigateWithinSoftTabs",$)},T.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},T.prototype.setOverwrite=function($){this.setOption("overwrite",$)},T.prototype.getOverwrite=function(){return this.$overwrite},T.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},T.prototype.addGutterDecoration=function($,S){this.$decorations[$]||(this.$decorations[$]=""),this.$decorations[$]+=" "+S,this._signal("changeBreakpoint",{})},T.prototype.removeGutterCustomWidget=function($){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget($)},T.prototype.addGutterCustomWidget=function($,S){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget($,S)},T.prototype.removeGutterDecoration=function($,S){this.$decorations[$]=(this.$decorations[$]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},T.prototype.getBreakpoints=function(){return this.$breakpoints},T.prototype.setBreakpoints=function($){this.$breakpoints=[];for(var S=0;S<$.length;S++)this.$breakpoints[$[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},T.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},T.prototype.setBreakpoint=function($,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[$]=S:delete this.$breakpoints[$],this._signal("changeBreakpoint",{})},T.prototype.clearBreakpoint=function($){delete this.$breakpoints[$],this._signal("changeBreakpoint",{})},T.prototype.addMarker=function($,S,w,x){var E=this.$markerId++,I={range:$,type:w||"line",renderer:typeof w=="function"?w:null,clazz:S,inFront:!!x,id:E};return x?(this.$frontMarkers[E]=I,this._signal("changeFrontMarker")):(this.$backMarkers[E]=I,this._signal("changeBackMarker")),E},T.prototype.addDynamicMarker=function($,S){if($.update){var w=this.$markerId++;return $.id=w,$.inFront=!!S,S?(this.$frontMarkers[w]=$,this._signal("changeFrontMarker")):(this.$backMarkers[w]=$,this._signal("changeBackMarker")),$}},T.prototype.removeMarker=function($){var S=this.$frontMarkers[$]||this.$backMarkers[$];if(S){var w=S.inFront?this.$frontMarkers:this.$backMarkers;delete w[$],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},T.prototype.getMarkers=function($){return $?this.$frontMarkers:this.$backMarkers},T.prototype.highlight=function($){if(!this.$searchHighlight){var S=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp($)},T.prototype.highlightLines=function($,S,w,x){typeof S!="number"&&(w=S,S=$),w||(w="ace_step");var E=new u($,0,S,1/0);return E.id=this.addMarker(E,w,"fullLine",x),E},T.prototype.setAnnotations=function($){this.$annotations=$,this._signal("changeAnnotation",{})},T.prototype.getAnnotations=function(){return this.$annotations||[]},T.prototype.clearAnnotations=function(){this.setAnnotations([])},T.prototype.$detectNewLine=function($){var S=$.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
774
+ `},T.prototype.getWordRange=function($,S){var w=this.getLine($),x=!1;if(S>0&&(x=!!w.charAt(S-1).match(this.tokenRe)),x||(x=!!w.charAt(S).match(this.tokenRe)),x)var E=this.tokenRe;else if(/^\s+$/.test(w.slice(S-1,S+1)))var E=/\s/;else var E=this.nonTokenRe;var I=S;if(I>0){do I--;while(I>=0&&w.charAt(I).match(E));I++}for(var O=S;O<w.length&&w.charAt(O).match(E);)O++;return new u($,I,$,O)},T.prototype.getAWordRange=function($,S){for(var w=this.getWordRange($,S),x=this.getLine(w.end.row);x.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},T.prototype.setNewLineMode=function($){this.doc.setNewLineMode($)},T.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},T.prototype.setUseWorker=function($){this.setOption("useWorker",$)},T.prototype.getUseWorker=function(){return this.$useWorker},T.prototype.onReloadTokenizer=function($){var S=$.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",$)},T.prototype.setMode=function($,S){if($&&typeof $=="object"){if($.getTokenizer)return this.$onChangeMode($);var w=$,x=w.path}else x=$||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[x]&&!w){this.$onChangeMode(this.$modes[x]),S&&S();return}this.$modeId=x,s.loadModule(["mode",x],(function(E){if(!this.destroyed){if(this.$modeId!==x)return S&&S();this.$modes[x]&&!w?this.$onChangeMode(this.$modes[x]):E&&E.Mode&&(E=new E.Mode(w),w||(this.$modes[x]=E,E.$id=x),this.$onChangeMode(E)),S&&S()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},T.prototype.$onChangeMode=function($,S){if(S||(this.$modeId=$.$id),this.$mode!==$){var w=this.$mode;this.$mode=$,this.$stopWorker(),this.$useWorker&&this.$startWorker();var x=$.getTokenizer();if(x.on!==void 0){var E=this.onReloadTokenizer.bind(this);x.on("update",E)}this.bgTokenizer.setTokenizer(x),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=$.tokenRe,this.nonTokenRe=$.nonTokenRe,S||($.attachToSession&&$.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding($.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:$}))}},T.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},T.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch($){s.warn("Could not load worker",$),this.$worker=null}},T.prototype.getMode=function(){return this.$mode},T.prototype.setScrollTop=function($){this.$scrollTop===$||isNaN($)||(this.$scrollTop=$,this._signal("changeScrollTop",$))},T.prototype.getScrollTop=function(){return this.$scrollTop},T.prototype.setScrollLeft=function($){this.$scrollLeft===$||isNaN($)||(this.$scrollLeft=$,this._signal("changeScrollLeft",$))},T.prototype.getScrollLeft=function(){return this.$scrollLeft},T.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},T.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var $=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>$&&($=S.screenWidth)}),this.lineWidgetWidth=$},T.prototype.$computeWidth=function($){if(this.$modified||$){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),w=this.$rowLengthCache,x=0,E=0,I=this.$foldData[E],O=I?I.start.row:1/0,D=S.length,F=0;F<D;F++){if(F>O){if(F=I.end.row+1,F>=D)break;I=this.$foldData[E++],O=I?I.start.row:1/0}w[F]==null&&(w[F]=this.$getStringScreenWidth(S[F])[0]),w[F]>x&&(x=w[F])}this.screenWidth=x}},T.prototype.getLine=function($){return this.doc.getLine($)},T.prototype.getLines=function($,S){return this.doc.getLines($,S)},T.prototype.getLength=function(){return this.doc.getLength()},T.prototype.getTextRange=function($){return this.doc.getTextRange($||this.selection.getRange())},T.prototype.insert=function($,S){return this.doc.insert($,S)},T.prototype.remove=function($){return this.doc.remove($)},T.prototype.removeFullLines=function($,S){return this.doc.removeFullLines($,S)},T.prototype.undoChanges=function($,S){if($.length){this.$fromUndo=!0;for(var w=$.length-1;w!=-1;w--){var x=$[w];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!S&&this.$undoSelect&&($.selectionBefore?this.selection.fromJSON($.selectionBefore):this.selection.setRange(this.$getUndoSelection($,!0))),this.$fromUndo=!1}},T.prototype.redoChanges=function($,S){if($.length){this.$fromUndo=!0;for(var w=0;w<$.length;w++){var x=$[w];(x.action=="insert"||x.action=="remove")&&this.doc.$safeApplyDelta(x)}!S&&this.$undoSelect&&($.selectionAfter?this.selection.fromJSON($.selectionAfter):this.selection.setRange(this.$getUndoSelection($,!1))),this.$fromUndo=!1}},T.prototype.setUndoSelect=function($){this.$undoSelect=$},T.prototype.$getUndoSelection=function($,S){function w(D){return S?D.action!=="insert":D.action==="insert"}for(var x,E,I=0;I<$.length;I++){var O=$[I];if(O.start){if(!x){w(O)?x=u.fromPoints(O.start,O.end):x=u.fromPoints(O.start,O.start);continue}w(O)?(E=O.start,x.compare(E.row,E.column)==-1&&x.setStart(E),E=O.end,x.compare(E.row,E.column)==1&&x.setEnd(E)):(E=O.start,x.compare(E.row,E.column)==-1&&(x=u.fromPoints(O.start,O.start)))}}return x},T.prototype.replace=function($,S){return this.doc.replace($,S)},T.prototype.moveText=function($,S,w){var x=this.getTextRange($),E=this.getFoldsInRange($),I=u.fromPoints(S,S);if(!w){this.remove($);var O=$.start.row-$.end.row,D=O?-$.end.column:$.start.column-$.end.column;D&&(I.start.row==$.end.row&&I.start.column>$.end.column&&(I.start.column+=D),I.end.row==$.end.row&&I.end.column>$.end.column&&(I.end.column+=D)),O&&I.start.row>=$.end.row&&(I.start.row+=O,I.end.row+=O)}if(I.end=this.insert(I.start,x),E.length){var F=$.start,H=I.start,O=H.row-F.row,D=H.column-F.column;this.addFolds(E.map(function(G){return G=G.clone(),G.start.row==F.row&&(G.start.column+=D),G.end.row==F.row&&(G.end.column+=D),G.start.row+=O,G.end.row+=O,G}))}return I},T.prototype.indentRows=function($,S,w){w=w.replace(/\t/g,this.getTabString());for(var x=$;x<=S;x++)this.doc.insertInLine({row:x,column:0},w)},T.prototype.outdentRows=function($){for(var S=$.collapseRows(),w=new u(0,0,0,0),x=this.getTabSize(),E=S.start.row;E<=S.end.row;++E){var I=this.getLine(E);w.start.row=E,w.end.row=E;for(var O=0;O<x&&I.charAt(O)==" ";++O);O<x&&I.charAt(O)==" "?(w.start.column=O,w.end.column=O+1):(w.start.column=0,w.end.column=O),this.remove(w)}},T.prototype.$moveLines=function($,S,w){if($=this.getRowFoldStart($),S=this.getRowFoldEnd(S),w<0){var x=this.getRowFoldStart($+w);if(x<0)return 0;var E=x-$}else if(w>0){var x=this.getRowFoldEnd(S+w);if(x>this.doc.getLength()-1)return 0;var E=x-S}else{$=this.$clipRowToDocument($),S=this.$clipRowToDocument(S);var E=S-$+1}var I=new u($,0,S,Number.MAX_VALUE),O=this.getFoldsInRange(I).map(function(F){return F=F.clone(),F.start.row+=E,F.end.row+=E,F}),D=w==0?this.doc.getLines($,S):this.doc.removeFullLines($,S);return this.doc.insertFullLines($+E,D),O.length&&this.addFolds(O),E},T.prototype.moveLinesUp=function($,S){return this.$moveLines($,S,-1)},T.prototype.moveLinesDown=function($,S){return this.$moveLines($,S,1)},T.prototype.duplicateLines=function($,S){return this.$moveLines($,S,0)},T.prototype.$clipRowToDocument=function($){return Math.max(0,Math.min($,this.doc.getLength()-1))},T.prototype.$clipColumnToRow=function($,S){return S<0?0:Math.min(this.doc.getLine($).length,S)},T.prototype.$clipPositionToDocument=function($,S){if(S=Math.max(0,S),$<0)$=0,S=0;else{var w=this.doc.getLength();$>=w?($=w-1,S=this.doc.getLine(w-1).length):S=Math.min(this.doc.getLine($).length,S)}return{row:$,column:S}},T.prototype.$clipRangeToDocument=function($){$.start.row<0?($.start.row=0,$.start.column=0):$.start.column=this.$clipColumnToRow($.start.row,$.start.column);var S=this.doc.getLength()-1;return $.end.row>S?($.end.row=S,$.end.column=this.doc.getLine(S).length):$.end.column=this.$clipColumnToRow($.end.row,$.end.column),$},T.prototype.setUseWrapMode=function($){if($!=this.$useWrapMode){if(this.$useWrapMode=$,this.$modified=!0,this.$resetRowCache(0),$){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},T.prototype.getUseWrapMode=function(){return this.$useWrapMode},T.prototype.setWrapLimitRange=function($,S){(this.$wrapLimitRange.min!==$||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:$,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},T.prototype.adjustWrapLimit=function($,S){var w=this.$wrapLimitRange;w.max<0&&(w={min:S,max:S});var x=this.$constrainWrapLimit($,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},T.prototype.$constrainWrapLimit=function($,S,w){return S&&($=Math.max(S,$)),w&&($=Math.min(w,$)),$},T.prototype.getWrapLimit=function(){return this.$wrapLimit},T.prototype.setWrapLimit=function($){this.setWrapLimitRange($,$)},T.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},T.prototype.$updateInternalDataOnChange=function($){var S=this.$useWrapMode,w=$.action,x=$.start,E=$.end,I=x.row,O=E.row,D=O-I,F=null;if(this.$updating=!0,D!=0)if(w==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(I,D);var H=this.$foldData;F=this.getFoldsInRange($),this.removeFolds(F);var W=this.getFoldLine(E.row),U=0;if(W){W.addRemoveChars(E.row,E.column,x.column-E.column),W.shiftRow(-D);var G=this.getFoldLine(I);G&&G!==W&&(G.merge(W),W=G),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=E.row&&W.shiftRow(-D)}O=I}else{var V=Array(D);V.unshift(I,0);var B=S?this.$wrapData:this.$rowLengthCache;B.splice.apply(B,V);var H=this.$foldData,W=this.getFoldLine(I),U=0;if(W){var Z=W.range.compareInside(x.row,x.column);Z==0?(W=W.split(x.row,x.column),W&&(W.shiftRow(D),W.addRemoveChars(O,0,E.column-x.column))):Z==-1&&(W.addRemoveChars(I,0,E.column-x.column),W.shiftRow(D)),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=I&&W.shiftRow(D)}}else{D=Math.abs($.start.column-$.end.column),w==="remove"&&(F=this.getFoldsInRange($),this.removeFolds(F),D=-D);var W=this.getFoldLine(I);W&&W.addRemoveChars(I,x.column,D)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(I,O):this.$updateRowLengthCache(I,O),F},T.prototype.$updateRowLengthCache=function($,S){this.$rowLengthCache[$]=null,this.$rowLengthCache[S]=null},T.prototype.$updateWrapData=function($,S){var w=this.doc.getAllLines(),x=this.getTabSize(),E=this.$wrapData,I=this.$wrapLimit,O,D,F=$;for(S=Math.min(S,w.length-1);F<=S;)D=this.getFoldLine(F,D),D?(O=[],D.walk((function(H,W,U,G){var V;if(H!=null){V=this.$getDisplayTokens(H,O.length),V[0]=_;for(var B=1;B<V.length;B++)V[B]=b}else V=this.$getDisplayTokens(w[W].substring(G,U),O.length);O=O.concat(V)}).bind(this),D.end.row,w[D.end.row].length+1),E[D.start.row]=this.$computeWrapSplits(O,I,x),F=D.end.row+1):(O=this.$getDisplayTokens(w[F]),E[F]=this.$computeWrapSplits(O,I,x),F++)},T.prototype.$computeWrapSplits=function($,S,w){if($.length==0)return[];var x=[],E=$.length,I=0,O=0,D=this.$wrapAsCode,F=this.$indentedSoftWrap,H=S<=Math.max(2*w,8)||F===!1?0:Math.floor(S/2);function W(){var Z=0;if(H===0)return Z;if(F)for(var X=0;X<$.length;X++){var Q=$[X];if(Q==R)Z+=1;else if(Q==M)Z+=w;else{if(Q==L)continue;break}}return D&&F!==!1&&(Z+=w),Math.min(Z,H)}function U(Z){for(var X=Z-I,Q=I;Q<Z;Q++){var ae=$[Q];(ae===12||ae===2)&&(X-=1)}x.length||(G=W(),x.indent=G),O+=X,x.push(O),I=Z}for(var G=0;E-I>S-G;){var V=I+S-G;if($[V-1]>=R&&$[V]>=R){U(V);continue}if($[V]==_||$[V]==b){for(V;V!=I-1&&$[V]!=_;V--);if(V>I){U(V);continue}for(V=I+S,V;V<$.length&&$[V]==b;V++);if(V==$.length)break;U(V);continue}for(var B=Math.max(V-(S-(S>>2)),I-1);V>B&&$[V]<_;)V--;if(D){for(;V>B&&$[V]<_;)V--;for(;V>B&&$[V]==k;)V--}else for(;V>B&&$[V]<R;)V--;if(V>B){U(++V);continue}V=I+S,$[V]==C&&V--,U(V-G)}return x},T.prototype.$getDisplayTokens=function($,S){var w=[],x;S=S||0;for(var E=0;E<$.length;E++){var I=$.charCodeAt(E);if(I==9){x=this.getScreenTabSize(w.length+S),w.push(M);for(var O=1;O<x;O++)w.push(L)}else I==32?w.push(R):I>39&&I<48||I>57&&I<64?w.push(k):I>=4352&&N(I)?w.push(A,C):w.push(A)}return w},T.prototype.$getStringScreenWidth=function($,S,w){if(S==0)return[0,0];S==null&&(S=1/0),w=w||0;var x,E;for(E=0;E<$.length&&(x=$.charCodeAt(E),x==9?w+=this.getScreenTabSize(w):x>=4352&&N(x)?w+=2:w+=1,!(w>S));E++);return[w,E]},T.prototype.getRowLength=function($){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[$]&&this.lineWidgets[$].rowCount||0),!this.$useWrapMode||!this.$wrapData[$]?S:this.$wrapData[$].length+S},T.prototype.getRowLineCount=function($){return!this.$useWrapMode||!this.$wrapData[$]?1:this.$wrapData[$].length+1},T.prototype.getRowWrapIndent=function($){if(this.$useWrapMode){var S=this.screenToDocumentPosition($,Number.MAX_VALUE),w=this.$wrapData[S.row];return w.length&&w[0]<S.column?w.indent:0}else return 0},T.prototype.getScreenLastRowColumn=function($){var S=this.screenToDocumentPosition($,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},T.prototype.getDocumentLastRowColumn=function($,S){var w=this.documentToScreenRow($,S);return this.getScreenLastRowColumn(w)},T.prototype.getDocumentLastRowColumnPosition=function($,S){var w=this.documentToScreenRow($,S);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},T.prototype.getRowSplitData=function($){if(this.$useWrapMode)return this.$wrapData[$]},T.prototype.getScreenTabSize=function($){return this.$tabSize-($%this.$tabSize|0)},T.prototype.screenToDocumentRow=function($,S){return this.screenToDocumentPosition($,S).row},T.prototype.screenToDocumentColumn=function($,S){return this.screenToDocumentPosition($,S).column},T.prototype.screenToDocumentPosition=function($,S,w){if($<0)return{row:0,column:0};var x,E=0,I=0,O,D=0,F=0,H=this.$screenRowCache,W=this.$getRowCacheIndex(H,$),U=H.length;if(U&&W>=0)var D=H[W],E=this.$docRowCache[W],G=$>H[U-1];else var G=!U;for(var V=this.getLength()-1,B=this.getNextFoldLine(E),Z=B?B.start.row:1/0;D<=$&&(F=this.getRowLength(E),!(D+F>$||E>=V));)D+=F,E++,E>Z&&(E=B.end.row+1,B=this.getNextFoldLine(E,B),Z=B?B.start.row:1/0),G&&(this.$docRowCache.push(E),this.$screenRowCache.push(D));if(B&&B.start.row<=E)x=this.getFoldDisplayLine(B),E=B.start.row;else{if(D+F<=$||E>V)return{row:V,column:this.getLine(V).length};x=this.getLine(E),B=null}var X=0,Q=Math.floor($-D);if(this.$useWrapMode){var ae=this.$wrapData[E];ae&&(O=ae[Q],Q>0&&ae.length&&(X=ae.indent,I=ae[Q-1]||ae[ae.length-1],x=x.substring(I)))}return w!==void 0&&this.$bidiHandler.isBidiRow(D+Q,E,Q)&&(S=this.$bidiHandler.offsetToCol(w)),I+=this.$getStringScreenWidth(x,S-X)[1],this.$useWrapMode&&I>=O&&(I=O-1),B?B.idxToPosition(I):{row:E,column:I}},T.prototype.documentToScreenPosition=function($,S){if(typeof S>"u")var w=this.$clipPositionToDocument($.row,$.column);else w=this.$clipPositionToDocument($,S);$=w.row,S=w.column;var x=0,E=null,I=null;I=this.getFoldAt($,S,1),I&&($=I.start.row,S=I.start.column);var O,D=0,F=this.$docRowCache,H=this.$getRowCacheIndex(F,$),W=F.length;if(W&&H>=0)var D=F[H],x=this.$screenRowCache[H],U=$>F[W-1];else var U=!W;for(var G=this.getNextFoldLine(D),V=G?G.start.row:1/0;D<$;){if(D>=V){if(O=G.end.row+1,O>$)break;G=this.getNextFoldLine(O,G),V=G?G.start.row:1/0}else O=D+1;x+=this.getRowLength(D),D=O,U&&(this.$docRowCache.push(D),this.$screenRowCache.push(x))}var B="";G&&D>=V?(B=this.getFoldDisplayLine(G,$,S),E=G.start.row):(B=this.getLine($).substring(0,S),E=$);var Z=0;if(this.$useWrapMode){var X=this.$wrapData[E];if(X){for(var Q=0;B.length>=X[Q];)x++,Q++;B=B.substring(X[Q-1]||0,B.length),Z=Q>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[D]&&this.lineWidgets[D].rowsAbove&&(x+=this.lineWidgets[D].rowsAbove),{row:x,column:Z+this.$getStringScreenWidth(B)[0]}},T.prototype.documentToScreenColumn=function($,S){return this.documentToScreenPosition($,S).column},T.prototype.documentToScreenRow=function($,S){return this.documentToScreenPosition($,S).row},T.prototype.getScreenLength=function(){var $=0,S=null;if(this.$useWrapMode)for(var E=this.$wrapData.length,I=0,x=0,S=this.$foldData[x++],O=S?S.start.row:1/0;I<E;){var D=this.$wrapData[I];$+=D?D.length+1:1,I++,I>O&&(I=S.end.row+1,S=this.$foldData[x++],O=S?S.start.row:1/0)}else{$=this.getLength();for(var w=this.$foldData,x=0;x<w.length;x++)S=w[x],$-=S.end.row-S.start.row}return this.lineWidgets&&($+=this.$getWidgetScreenLength()),$},T.prototype.$setFontMetrics=function($){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,w,x){if(w===0)return[0,0];w||(w=1/0),x=x||0;var E,I;for(I=0;I<S.length&&(E=S.charAt(I),E===" "?x+=this.getScreenTabSize(x):x+=$.getCharacterWidth(E),!(x>w));I++);return[x,I]})},T.prototype.getPrecedingCharacter=function(){var $=this.selection.getCursor();if($.column===0)return $.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine($.row);return S[$.column-1]},T.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},T})();y.$uid=0,y.prototype.$modes=s.$modes,y.prototype.getValue=y.prototype.toString,y.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},y.prototype.$overwrite=!1,y.prototype.$mode=null,y.prototype.$modeId=null,y.prototype.$scrollTop=0,y.prototype.$scrollLeft=0,y.prototype.$wrapLimit=80,y.prototype.$useWrapMode=!1,y.prototype.$wrapLimitRange={min:null,max:null},y.prototype.lineWidgets=null,y.prototype.isFullWidth=N,h.implement(y.prototype,p);var A=1,C=2,_=3,b=4,k=9,R=10,M=11,L=12;function N(T){return T<4352?!1:T>=4352&&T<=4447||T>=4515&&T<=4519||T>=4602&&T<=4607||T>=9001&&T<=9002||T>=11904&&T<=11929||T>=11931&&T<=12019||T>=12032&&T<=12245||T>=12272&&T<=12283||T>=12288&&T<=12350||T>=12353&&T<=12438||T>=12441&&T<=12543||T>=12549&&T<=12589||T>=12593&&T<=12686||T>=12688&&T<=12730||T>=12736&&T<=12771||T>=12784&&T<=12830||T>=12832&&T<=12871||T>=12880&&T<=13054||T>=13056&&T<=19903||T>=19968&&T<=42124||T>=42128&&T<=42182||T>=43360&&T<=43388||T>=44032&&T<=55203||T>=55216&&T<=55238||T>=55243&&T<=55291||T>=63744&&T<=64255||T>=65040&&T<=65049||T>=65072&&T<=65106||T>=65108&&T<=65126||T>=65128&&T<=65131||T>=65281&&T<=65376||T>=65504&&T<=65510}n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),s.defineOptions(y.prototype,"session",{wrap:{set:function(T){if(!T||T=="off"?T=!1:T=="free"?T=!0:T=="printMargin"?T=-1:typeof T=="string"&&(T=parseInt(T,10)||!1),this.$wrap!=T)if(this.$wrap=T,!T)this.setUseWrapMode(!1);else{var $=typeof T=="number"?T:null;this.setWrapLimitRange($,$),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(T){T=T=="auto"?this.$mode.type!="text":T!="text",T!=this.$wrapAsCode&&(this.$wrapAsCode=T,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(T){this.$useWorker=T,this.$stopWorker(),T&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(T){T=parseInt(T),T>0&&this.$tabSize!==T&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=T,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(T){this.setFoldStyle(T)},handlesSet:!0},overwrite:{set:function(T){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(T){this.doc.setNewLineMode(T)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(T){this.setMode(T)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,s=(function(){function u(){this.$options={}}return u.prototype.set=function(c){return f.mixin(this.$options,c),this},u.prototype.getOptions=function(){return h.copyObject(this.$options)},u.prototype.setOptions=function(c){this.$options=c},u.prototype.find=function(c){var a=this.$options,d=this.$matchIterator(c,a);if(!d)return!1;var m=null;return d.forEach(function(v,y,A,C){return m=new g(v,y,A,C),y==C&&a.start&&a.start.start&&a.skipCurrent!=!1&&m.isEqual(a.start)?(m=null,!1):!0}),m},u.prototype.findAll=function(c){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var d=a.range,m=d?c.getLines(d.start.row,d.end.row):c.doc.getAllLines(),v=[],y=a.re;if(a.$isMultiLine){var A=y.length,C=m.length-A,_;e:for(var b=y.offset||0;b<=C;b++){for(var k=0;k<A;k++)if(m[b+k].search(y[k])==-1)continue e;var R=m[b],M=m[b+A-1],L=R.length-R.match(y[0])[0].length,N=M.match(y[A-1])[0].length;_&&_.end.row===b&&_.end.column>L||(v.push(_=new g(b,L,b+A-1,N)),A>2&&(b=b+A-2))}}else for(var T,$=0;$<m.length;$++)if(this.$isMultilineSearch(a)){var S=m.length-1;if(T=this.$multiLineForward(c,y,$,S),T){var w=T.endRow<=S?T.endRow-1:S;w>$&&($=w),v.push(new g(T.startRow,T.startCol,T.endRow,T.endCol))}}else{T=h.getMatchOffsets(m[$],y);for(var k=0;k<T.length;k++){var x=T[k];v.push(new g($,x.offset,$,x.offset+x.length))}}if(d){for(var E=d.start.column,I=d.end.column,$=0,k=v.length-1;$<k&&v[$].start.column<E&&v[$].start.row==0;)$++;for(var O=d.end.row-d.start.row;$<k&&v[k].end.column>I&&v[k].end.row==O;)k--;for(v=v.slice($,k+1),$=0,k=v.length;$<k;$++)v[$].start.row+=d.start.row,v[$].end.row+=d.start.row}return v},u.prototype.parseReplaceString=function(c){for(var a={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},d="",m=0,v=c.length;m<v;m++){var y=c.charCodeAt(m);if(y===a.Backslash){if(m++,m>=v){d+="\\";break}var A=c.charCodeAt(m);switch(A){case a.Backslash:d+="\\";break;case a.n:d+=`
775
+ `;break;case a.t:d+=" ";break}continue}if(y===a.DollarSign){if(m++,m>=v){d+="$";break}var C=c.charCodeAt(m);if(C===a.DollarSign){d+="$$";continue}if(C===a.Digit0||C===a.Ampersand){d+="$&";continue}if(a.Digit1<=C&&C<=a.Digit9){d+="$"+c[m];continue}}d+=c[m]}return d||c},u.prototype.replace=function(c,a){var d=this.$options,m=this.$assembleRegExp(d);if(d.$isMultiLine)return a;if(m){var v=this.$isMultilineSearch(d);v&&(c=c.replace(/\r\n|\r|\n/g,`
776
+ `));var y=m.exec(c);if(!y||!v&&y[0].length!=c.length)return null;if(a=d.regExp?this.parseReplaceString(a):a.replace(/\$/g,"$$$$"),a=c.replace(m,a),d.preserveCase){a=a.split("");for(var A=Math.min(c.length,c.length);A--;){var C=c[A];C&&C.toLowerCase()!=C?a[A]=a[A].toUpperCase():a[A]=a[A].toLowerCase()}a=a.join("")}return a}},u.prototype.$assembleRegExp=function(c,a){if(c.needle instanceof RegExp)return c.re=c.needle;var d=c.needle;if(!c.needle)return c.re=!1;c.regExp||(d=h.escapeRegExp(d));var m=c.caseSensitive?"gm":"gmi";try{new RegExp(d,"u"),c.$supportsUnicodeFlag=!0,m+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(d=p(d,c)),c.$isMultiLine=!a&&/[\n\r]/.test(d),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(d,m);try{var v=new RegExp(d,m)}catch{v=!1}return c.re=v},u.prototype.$assembleMultilineRegExp=function(c,a){for(var d=c.replace(/\r\n|\r|\n/g,`$
777
+ ^`).split(`
778
+ `),m=[],v=0;v<d.length;v++)try{m.push(new RegExp(d[v],a))}catch{return!1}return m},u.prototype.$isMultilineSearch=function(c){return c.re&&/\\r\\n|\\r|\\n/.test(c.re.source)&&c.regExp&&!c.$isMultiLine},u.prototype.$multiLineForward=function(c,a,d,m){for(var v,y=l(c,d),A=d;A<=m;){for(var C=0;C<y&&!(A>m);C++){var _=c.getLine(A++);v=v==null?_:v+`
779
+ `+_}var b=a.exec(v);if(a.lastIndex=0,b){var k=v.slice(0,b.index).split(`
780
+ `),R=b[0].split(`
781
+ `),M=d+k.length-1,L=k[k.length-1].length,N=M+R.length-1,T=R.length==1?L+R[0].length:R[R.length-1].length;return{startRow:M,startCol:L,endRow:N,endCol:T}}}return null},u.prototype.$multiLineBackward=function(c,a,d,m,v){for(var y,A=l(c,m),C=c.getLine(m).length-d,_=m;_>=v;){for(var b=0;b<A&&_>=v;b++){var k=c.getLine(_--);y=y==null?k:k+`
782
+ `+y}var R=o(y,a,C);if(R){var M=y.slice(0,R.index).split(`
783
+ `),L=R[0].split(`
784
+ `),N=_+M.length,T=M[M.length-1].length,$=N+L.length-1,S=L.length==1?T+L[0].length:L[L.length-1].length;return{startRow:N,startCol:T,endRow:$,endCol:S}}}return null},u.prototype.$matchIterator=function(c,a){var d=this.$assembleRegExp(a);if(!d)return!1;var m=this.$isMultilineSearch(a),v=this.$multiLineForward,y=this.$multiLineBackward,A=a.backwards==!0,C=a.skipCurrent!=!1,_=d.unicode,b=a.range,k=a.start;k||(k=b?b[A?"end":"start"]:c.selection.getRange()),k.start&&(k=k[C!=A?"end":"start"]);var R=b?b.start.row:0,M=b?b.end.row:c.getLength()-1;if(A)var L=function($){var S=k.row;if(!T(S,k.column,$)){for(S--;S>=R;S--)if(T(S,Number.MAX_VALUE,$))return;if(a.wrap!=!1){for(S=M,R=k.row;S>=R;S--)if(T(S,Number.MAX_VALUE,$))return}}};else var L=function(S){var w=k.row;if(!T(w,k.column,S)){for(w=w+1;w<=M;w++)if(T(w,0,S))return;if(a.wrap!=!1){for(w=R,M=k.row;w<=M;w++)if(T(w,0,S))return}}};if(a.$isMultiLine)var N=d.length,T=function($,S,w){var x=A?$-N+1:$;if(!(x<0||x+N>c.getLength())){var E=c.getLine(x),I=E.search(d[0]);if(!(!A&&I<S||I===-1)){for(var O=1;O<N;O++)if(E=c.getLine(x+O),E.search(d[O])==-1)return;var D=E.match(d[N-1])[0].length;if(!(A&&D>S)&&w(x,I,x+N-1,D))return!0}}};else if(A)var T=function(S,w,x){if(m){var E=y(c,d,w,S,R);if(!E)return!1;if(x(E.startRow,E.startCol,E.endRow,E.endCol))return!0}else{var I=c.getLine(S),O=[],D,F=0;for(d.lastIndex=0;D=d.exec(I);){var H=D[0].length;if(F=D.index,!H){if(F>=I.length)break;d.lastIndex=F+=h.skipEmptyMatch(I,F,_)}if(D.index+H>w)break;O.push(D.index,H)}for(var W=O.length-1;W>=0;W-=2){var U=O[W-1],H=O[W];if(x(S,U,S,U+H))return!0}}};else var T=function(S,w,x){if(d.lastIndex=w,m){var E=v(c,d,S,M);if(E){var I=E.endRow<=M?E.endRow-1:M;I>S&&(S=I)}if(!E)return!1;if(x(E.startRow,E.startCol,E.endRow,E.endCol))return!0}else for(var O=c.getLine(S),D,F;F=d.exec(O);){var H=F[0].length;if(D=F.index,x(S,D,S,D+H))return!0;if(!H&&(d.lastIndex=D+=h.skipEmptyMatch(O,D,_),D>=O.length))return!1}};return{forEach:L}},u})();function p(u,c){var a=h.supportsLookbehind();function d(A,C){C===void 0&&(C=!0);var _=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return _.test(A)||c.regExp?a&&c.$supportsUnicodeFlag?C?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var m=Array.from(u),v=m[0],y=m[m.length-1];return d(v)+u+d(y,!1)}function o(u,c,a){for(var d=null,m=0;m<=u.length;){c.lastIndex=m;var v=c.exec(u);if(!v)break;var y=v.index+v[0].length;if(y>u.length-a)break;(!d||y>d.index+d[0].length)&&(d=v),m=v.index+1}return d}function l(u,c){var a=5e3,d={row:c,column:0},m=u.doc.positionToIndex(d),v=m+a,y=u.doc.indexToPosition(v),A=y.row;return A+1}r.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=this&&this.__extends||(function(){var u=function(c,a){return u=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])},u(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");u(c,a);function d(){this.constructor=c}c.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}})(),f=n("../lib/keys"),g=n("../lib/useragent"),s=f.KEY_MODS,p=(function(){function u(c,a){this.$init(c,a,!1)}return u.prototype.$init=function(c,a,d){this.platform=a||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=d},u.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},u.prototype.removeCommand=function(c,a){var d=c&&(typeof c=="string"?c:c.name);c=this.commands[d],a||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 A=y.indexOf(c);A!=-1&&(y.splice(A,1),y.length==1&&(m[v]=y[0]))}}},u.prototype.bindKey=function(c,a,d){if(typeof c=="object"&&c&&(d==null&&(d=c.position),c=c[this.platform]),!!c){if(typeof a=="function")return this.addCommand({exec:a,bindKey:c,name:a.name||c});c.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(_){var b=this.parseKeys(_),k=s[b.hashId]+b.key;v+=(v?" ":"")+k,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var A=this.parseKeys(m),C=s[A.hashId]+A.key;this._addCommandToBinding(v+C,a,d)},this)}},u.prototype._addCommandToBinding=function(c,a,d){var m=this.commandKeyBinding,v;if(!a)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=a;else{Array.isArray(m[c])?(v=m[c].indexOf(a))!=-1&&m[c].splice(v,1):m[c]=[m[c]],typeof d!="number"&&(d=o(a));var y=m[c];for(v=0;v<y.length;v++){var A=y[v],C=o(A);if(C>d)break}y.splice(v,0,a)}},u.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(a){var d=c[a];if(d){if(typeof d=="string")return this.bindKey(d,a);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=a),this.addCommand(d))}},this)},u.prototype.removeCommands=function(c){Object.keys(c).forEach(function(a){this.removeCommand(c[a])},this)},u.prototype.bindKeys=function(c){Object.keys(c).forEach(function(a){this.bindKey(a,c[a])},this)},u.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},u.prototype.parseKeys=function(c){var a=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),d=a.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,y=a.length;y--;){var A=f.KEY_MODS[a[y]];if(A==null)return typeof console<"u"&&console.error("invalid modifier "+a[y]+" in "+c),!1;v|=A}return{key:d,hashId:v}},u.prototype.findKeyCommand=function(c,a){var d=s[c]+a;return this.commandKeyBinding[d]},u.prototype.handleKeyboard=function(c,a,d,m){if(!(m<0)){var v=s[a]+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&&((!a||a==4)&&d.length==1?c.$keyChain=c.$keyChain.slice(0,-v.length-1):(a==-1||m>0)&&(c.$keyChain="")),{command:y})}},u.prototype.getStatusText=function(c,a){return a.$keyChain||""},u})();function o(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var l=(function(u){h(c,u);function c(a,d){var m=u.call(this,a,d)||this;return m.$singleCommand=!0,m}return c})(p);l.call=function(u,c,a){p.prototype.$init.call(u,c,a,!0)},p.call=function(u,c,a){p.prototype.$init.call(u,c,a,!1)},r.HashHandler=l,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,i){var h=this&&this.__extends||(function(){var o=function(l,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d])},o(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(l,u);function c(){this.constructor=l}l.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}})(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,p=(function(o){h(l,o);function l(u,c){var a=o.call(this,c,u)||this;return a.byName=a.commands,a.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)}),a}return l.prototype.exec=function(u,c,a){if(Array.isArray(u)){for(var d=u.length;d--;)if(this.exec(u[d],c,a))return!0;return!1}typeof u=="string"&&(u=this.commands[u]);var m={editor:c,command:u,args:a};return this.canExecute(u,c)?(m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1):(this._signal("commandUnavailable",m),!1)},l.prototype.canExecute=function(u,c){return typeof u=="string"&&(u=this.commands[u]),!(!u||c&&c.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(c))},l.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._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)},l.prototype.replay=function(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,u):this.exec(c[0],u,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(u){return u.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l})(g);f.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,i){var h=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function s(o,l){return{win:o,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){f.loadModule("ace/ext/settings_menu",function(l){l.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(l){l.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,l){typeof l=="number"&&!isNaN(l)&&o.gotoLine(l),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(o){f.loadModule("ace/ext/searchbox",function(l){l.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,l){o.navigateUp(l.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,l){o.navigateDown(l.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,l){o.navigateLeft(l.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,l){o.navigateRight(l.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 l=o.$copyWithEmptySelection&&o.selection.isEmpty(),u=l?o.selection.getLineRange():o.selection.getRange();o._emit("cut",u),u.isEmpty()||o.session.remove(u),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,l){o.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(o){f.loadModule("ace/ext/searchbox",function(l){l.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 l=o.selection.getRange();l.start.column=0,o.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var l=o.selection.getRange();l.end.column=Number.MAX_VALUE,o.session.remove(l)},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,l){o.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,l){o.insert(h.stringRepeat(l.text||"",l.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()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var l=o.selection.getRange();l.start.column=l.end.column=0,l.end.row++,o.selection.setRange(l,!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 l=o.selection.isBackwards(),u=l?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=l?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),a=o.session.doc.getLine(u.row).length,d=o.session.doc.getTextRange(o.selection.getRange()),m=d.replace(/\n\s*/," ").length,v=o.session.doc.getLine(u.row),y=u.row+1;y<=c.row+1;y++){var A=h.stringTrimLeft(h.stringTrimRight(o.session.doc.getLine(y)));A.length!==0&&(A=" "+A),v+=A}c.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(u.row,0,c.row+2,0),v),m>0?(o.selection.moveCursorTo(u.row,u.column),o.selection.selectTo(u.row,u.column+m)):(a=o.session.doc.getLine(u.row).length>a?a+1:a,o.selection.moveCursorTo(u.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var l=o.session.doc.getLength()-1,u=o.session.doc.getLine(l).length,c=o.selection.rangeList.ranges,a=[];c.length<1&&(c=[o.selection.getRange()]);for(var d=0;d<c.length;d++)d==c.length-1&&(c[d].end.row===l&&c[d].end.column===u||a.push(new g(c[d].end.row,c[d].end.column,l,u))),d===0?c[d].start.row===0&&c[d].start.column===0||a.push(new g(0,0,c[d].start.row,c[d].start.column)):a.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<a.length;d++)o.selection.addRange(a[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(`
785
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var l=o.getCursorPosition();o.selection.moveTo(l.row-1,Number.MAX_VALUE),o.insert(`
786
+ `),l.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/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(n,r,i){var h=n("../lib/keys"),f=(function(){function s(p){this.editor=p,this.gutterLayer=p.renderer.$gutterLayer,this.element=p.renderer.$gutter,this.lines=p.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return s.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))},s.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))},s.prototype.$onGutterKeyDown=function(p){if(this.annotationTooltip.isOpen){p.preventDefault(),p.keyCode===h.escape&&this.annotationTooltip.hide();return}if(p.target===this.element){if(p.keyCode!=h.enter)return;p.preventDefault();var o=this.editor.getCursorPosition().row;this.editor.isRowVisible(o)||this.editor.scrollToLine(o,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldLaneWidget(l),c=this.$findNearestAnnotation(l);if(!(u===null&&c===null)){var a=this.$findClosestNumber(u,c,l);if(a===u)if(this.activeLane="fold",this.activeRowIndex=u,this.$isCustomWidgetVisible(u)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(p),setTimeout((function(){this.editor._signal("gutterkeydown",new g(p,this))}).bind(this),10)},s.prototype.$handleGutterKeyboardInteraction=function(p){if(p.keyCode===h.tab){p.preventDefault();return}if(p.keyCode===h.escape){p.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(p.keyCode===h.up){switch(p.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(p.keyCode===h.down){switch(p.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(p.keyCode===h.left){p.preventDefault(),this.$switchLane("annotation");return}if(p.keyCode===h.right){p.preventDefault(),this.$switchLane("fold");return}if(p.keyCode===h.enter||p.keyCode===h.space){switch(p.preventDefault(),this.activeLane){case"fold":var o=this.$rowIndexToRow(this.activeRowIndex),l=this.editor.session.$gutterCustomWidgets[o];if(l)l.callbacks&&l.callbacks.onClick&&l.callbacks.onClick(p,o);else if(this.gutterLayer.session.foldWidgets[o]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),p),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==o&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(o),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0;break}return}},s.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},s.prototype.$isFoldWidgetVisible=function(p){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(p)),l=this.$getFoldWidget(p).style.display!=="none";return o&&l},s.prototype.$isCustomWidgetVisible=function(p){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(p)),l=!!this.$getCustomWidget(p);return o&&l},s.prototype.$isAnnotationVisible=function(p){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(p)),l=this.$getAnnotation(p).style.display!=="none";return o&&l},s.prototype.$getFoldWidget=function(p){var o=this.lines.get(p),l=o.element;return l.childNodes[1]},s.prototype.$getCustomWidget=function(p){var o=this.lines.get(p),l=o.element;return l.childNodes[3]},s.prototype.$getAnnotation=function(p){var o=this.lines.get(p),l=o.element;return l.childNodes[2]},s.prototype.$findNearestFoldLaneWidget=function(p){if(this.$isCustomWidgetVisible(p)||this.$isFoldWidgetVisible(p))return p;for(var o=0;p-o>0||p+o<this.lines.getLength()-1;){if(o++,p-o>=0&&this.$isCustomWidgetVisible(p-o))return p-o;if(p+o<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(p+o))return p+o;if(p-o>=0&&this.$isFoldWidgetVisible(p-o))return p-o;if(p+o<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(p+o))return p+o}return null},s.prototype.$findNearestAnnotation=function(p){if(this.$isAnnotationVisible(p))return p;for(var o=0;p-o>0||p+o<this.lines.getLength()-1;){if(o++,p-o>=0&&this.$isAnnotationVisible(p-o))return p-o;if(p+o<=this.lines.getLength()-1&&this.$isAnnotationVisible(p+o))return p+o}return null},s.prototype.$focusFoldWidget=function(p){if(p!=null){var o=this.$getFoldWidget(p);o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus()}},s.prototype.$focusCustomWidget=function(p){if(p!=null){var o=this.$getCustomWidget(p);o&&(o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus())}},s.prototype.$focusAnnotation=function(p){if(p!=null){var o=this.$getAnnotation(p);o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus()}},s.prototype.$blurFoldWidget=function(p){var o=this.$getFoldWidget(p);o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur()},s.prototype.$blurCustomWidget=function(p){var o=this.$getCustomWidget(p);o&&(o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur())},s.prototype.$blurAnnotation=function(p){var o=this.$getAnnotation(p);o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur()},s.prototype.$moveFoldWidgetUp=function(){for(var p=this.activeRowIndex;p>0;)if(p--,this.$isFoldWidgetVisible(p)||this.$isCustomWidgetVisible(p)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=p,this.$isFoldWidgetVisible(p)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},s.prototype.$moveFoldWidgetDown=function(){for(var p=this.activeRowIndex;p<this.lines.getLength()-1;)if(p++,this.$isFoldWidgetVisible(p)||this.$isCustomWidgetVisible(p)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=p,this.$isFoldWidgetVisible(p)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},s.prototype.$moveAnnotationUp=function(){for(var p=this.activeRowIndex;p>0;)if(p--,this.$isAnnotationVisible(p)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=p,this.$focusAnnotation(this.activeRowIndex);return}},s.prototype.$moveAnnotationDown=function(){for(var p=this.activeRowIndex;p<this.lines.getLength()-1;)if(p++,this.$isAnnotationVisible(p)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=p,this.$focusAnnotation(this.activeRowIndex);return}},s.prototype.$findClosestNumber=function(p,o,l){return p===null?o:o===null||Math.abs(l-p)<=Math.abs(l-o)?p:o},s.prototype.$switchLane=function(p){switch(p){case"annotation":if(this.activeLane==="annotation")break;var o=this.$findNearestAnnotation(this.activeRowIndex);if(o==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var l=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(l===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$isCustomWidgetVisible(l)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},s.prototype.$rowIndexToRow=function(p){var o=this.lines.get(p);return o?o.row:null},s.prototype.$rowToRowIndex=function(p){for(var o=0;o<this.lines.getLength();o++){var l=this.lines.get(o);if(l.row==p)return o}return null},s})();r.GutterKeyboardHandler=f;var g=(function(){function s(p,o){this.gutterKeyboardHandler=o,this.domEvent=p}return s.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},s.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},s.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},s.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},s})();r.GutterKeyboardEvent=g}),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/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(n,r,i){var h=this&&this.__values||function(S){var w=typeof Symbol=="function"&&Symbol.iterator,x=w&&S[w],E=0;if(x)return x.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&E>=S.length&&(S=void 0),{value:S&&S[E++],done:!S}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,l=n("./mouse/mouse_handler").MouseHandler,u=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,A=n("./commands/default_commands").commands,C=n("./config"),_=n("./token_iterator").TokenIterator,b=n("./keyboard/gutter_handler").GutterKeyboardHandler,k=n("./config").nls,R=n("./clipboard"),M=n("./lib/keys"),L=n("./lib/event"),N=n("./tooltip").HoverTooltip,T=(function(){function S(w,x,E){this.id="editor"+ ++S.$uid,this.session,this.$toDestroy=[];var I=w.getContainerElement();this.container=I,this.renderer=w,this.commands=new y(p.isMac?"mac":"win",A),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(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(O,D){D._$emitInputEvent.schedule(31)}),this.setSession(x||E&&E.session||new a("")),C.resetOptions(this),E&&this.setOptions(E),C._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(w){this.session.startOperation(w)},S.prototype.endOperation=function(w){this.session.endOperation(w)},S.prototype.onStartOperation=function(w){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,w||(this.previousCommand=null)},S.prototype.onEndOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var x=this.curOp.command,E=x&&x.scrollIntoView;if(E){switch(E){case"center-animate":E="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var I=this.selection.getRange(),O=this.renderer.layerConfig;(I.start.row>=O.lastRow||I.end.row<=O.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}E=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var x=this.prevOp,E=this.$mergeableCommands,I=x.command&&w.command.name==x.command.name;if(w.command.name=="insertstring"){var O=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),I=I&&this.mergeNextCommand&&(!/\s/.test(O)||/\s/.test(x.args)),this.mergeNextCommand=!0}else I=I&&E.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(I=!1),I?this.session.mergeUndoDeltas=!0:E.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(w,x){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var E=this;C.loadModule(["keybinding",w],function(I){E.$keybindingId==w&&E.keyBinding.setKeyboardHandler(I&&I.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),x&&x()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.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),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var E=this.session.getSelection();E.off("changeCursor",this.$onCursorChange),E.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.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),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}),x&&(x.$editor=null),w&&w._signal("changeEditor",{editor:this}),w&&(w.$editor=this),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(w,x){return this.session.doc.setValue(w),x?x==1?this.navigateFileEnd():x==-1&&this.navigateFileStart():this.selectAll(),w},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(w){this.renderer.onResize(w)},S.prototype.setTheme=function(w,x){this.renderer.setTheme(w,x)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(w,x){this.renderer.setStyle(w,x)},S.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(w){this.setOption("fontSize",w)},S.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(G){x.removeMarker(G)}),x.$bracketHighlight=null);var E=w.getCursorPosition(),I=w.getKeyboardHandler(),O=I&&I.$getDirectionForHighlight&&I.$getDirectionForHighlight(w),D=x.getMatchingBracketRanges(E,O);if(!D){var F=new _(x,E.row,E.column),H=F.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var W=x.getMatchingTags(E);W&&(D=[W.openTagName.isEmpty()?W.openTag:W.openTagName,W.closeTagName.isEmpty()?W.closeTag:W.closeTagName])}}if(!D&&x.$mode.getMatching&&(D=x.$mode.getMatching(w.session)),!D){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(D)?D.length==1&&(U="ace_error_bracket"):D=[D],D.length==2&&(m.comparePoints(D[0].end,D[1].start)==0?D=[m.fromPoints(D[0].start,D[1].end)]:m.comparePoints(D[0].start,D[1].end)==0&&(D=[m.fromPoints(D[1].start,D[0].end)])),x.$bracketHighlight={ranges:D,markerIds:D.map(function(G){return x.addMarker(G,U,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},S.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(w){var x=this.session.$useWrapMode,E=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,E,x),this._signal("change",w),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(w){var x=w.data;this.renderer.updateLines(x.first,x.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.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 E=new m(x.row,x.column,x.row,1/0);E.id=w.addMarker(E,"ace_active-line","screenLine"),w.$highlightLineMarker=E}else x&&(w.$highlightLineMarker.start.row=x.row,w.$highlightLineMarker.end.row=x.row,w.$highlightLineMarker.start.column=x.column,w._signal("changeBackMarker"))},S.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 E=this.selection.getRange(),I=this.getSelectionStyle();x.$selectionMarker=x.addMarker(E,"ace_selection",I)}var O=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(O),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var E=x.start.column,I=x.end.column,O=w.getLine(x.start.row),D=O.substring(E,I);if(!(D.length>5e3||!/[\w\d]/.test(D))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:D}),H=O.substring(E-1,I+1);if(F.test(H))return F}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var w=this.getSelectedText(),x=this.session.doc.getNewLineCharacter(),E=!1;if(!w&&this.$copyWithEmptySelection){E=!0;for(var I=this.selection.getAllRanges(),O=0;O<I.length;O++){var D=I[O];O&&I[O-1].start.row==D.start.row||(w+=this.session.getLine(D.start.row)+x)}}var F={text:w};return this._signal("copy",F),R.lineMode=E?F.text:!1,F.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(w,x){var E={text:w,event:x};this.commands.exec("paste",this,E)},S.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var x=w.text,E=x===R.lineMode,I=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)E?I.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(E)this.selection.rangeList.ranges.forEach(function(U){I.insert({row:U.start.row,column:0},x)});else{var O=x.split(/\r\n|\r|\n/),D=this.selection.rangeList.ranges,F=O.length==2&&(!O[0]||!O[1]);if(O.length!=D.length||F)return this.commands.exec("insertstring",this,x);for(var H=D.length;H--;){var W=D[H];W.isEmpty()||I.remove(W),I.insert(W.start,O[H])}}},S.prototype.execCommand=function(w,x){return this.commands.exec(w,this,x)},S.prototype.insert=function(w,x){var E=this.session,I=E.getMode(),O=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){var D=I.transformAction(E.getState(O.row),"insertion",this,E,w);D&&(w!==D.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=D.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
787
+ `)==-1){var F=m.fromPoints(O,O);F.end.column+=w.length,this.session.remove(F)}}else{var F=this.getSelectionRange();O=this.session.remove(F),this.clearSelection()}if(w==`
788
+ `||w==`\r
789
+ `){var G=E.getLine(O.row);if(O.column>G.search(/\S|$/)){var H=G.substr(O.column).search(/\S|$/);E.doc.removeInLine(O.row,O.column,O.column+H)}}this.clearSelection();var W=O.column,U=E.getState(O.row),G=E.getLine(O.row),V=I.checkOutdent(U,G,w);if(E.insert(O,w),D&&D.selection&&(D.selection.length==2?this.selection.setSelectionRange(new m(O.row,W+D.selection[0],O.row,W+D.selection[1])):this.selection.setSelectionRange(new m(O.row+D.selection[0],D.selection[1],O.row+D.selection[2],D.selection[3]))),this.$enableAutoIndent){if(E.getDocument().isNewLine(w)){var B=I.getNextLineIndent(U,G.slice(0,O.column),E.getTabString());E.insert({row:O.row+1,column:0},B)}V&&I.autoOutdent(U,E,O.row)}},S.prototype.autoIndent=function(){for(var w=this.session,x=w.getMode(),E=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),I="",O="",D="",F=w.getTabString(),H=0;H<E.length;H++)for(var W=E[H].start.row,U=E[H].end.row,G=W;G<=U;G++){G>0&&(I=w.getState(G-1),O=w.getLine(G-1),D=x.getNextLineIndent(I,O,F));var V=w.getLine(G),B=x.$getIndent(V);if(D!==B){if(B.length>0){var Z=new m(G,0,G,B.length);w.remove(Z)}D.length>0&&w.insert({row:G,column:0},D)}x.autoOutdent(I,w,G)}},S.prototype.onTextInput=function(w,x){if(!x)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var E=this.applyComposition.bind(this,w,x);this.selection.rangeCount?this.forEachSelection(E):E(),this.endOperation()},S.prototype.applyComposition=function(w,x){if(x.extendLeft||x.extendRight){var E=this.selection.getRange();E.start.column-=x.extendLeft,E.end.column+=x.extendRight,E.start.column<0&&(E.start.row--,E.start.column+=this.session.getLine(E.start.row).length+1),this.selection.setRange(E),!w&&!E.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),x.restoreStart||x.restoreEnd){var E=this.selection.getRange();E.start.column-=x.restoreStart,E.end.column-=x.restoreEnd,this.selection.setRange(E)}},S.prototype.onCommandKey=function(w,x,E){return this.keyBinding.onCommandKey(w,x,E)},S.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var x=this.getSelectionRange();if(this.getBehavioursEnabled()){var E=this.session,I=E.getState(x.start.row),O=E.getMode().transformAction(I,"deletion",this,E,x);if(x.end.column===0){var D=E.getTextRange(x);if(D[D.length-1]==`
790
+ `){var F=E.getLine(x.end.row);/^\s+$/.test(F)&&(x.end.column=F.length)}}O&&(x=O)}this.session.remove(x),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.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()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
791
+ `),this.moveCursorToPosition(w)},S.prototype.setGhostText=function(w,x){this.renderer.setGhostText(w,x)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),x=w.column;if(x!==0){var E=this.session.getLine(w.row),I,O;x<E.length?(I=E.charAt(x)+E.charAt(x-1),O=new m(w.row,x-1,w.row,x+1)):(I=E.charAt(x-1)+E.charAt(x-2),O=new m(w.row,x-2,w.row,x)),this.session.replace(O,I),this.session.selection.moveToPosition(O.end)}}},S.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),E=this.session.getTextRange(x);this.session.replace(x,E.toLowerCase()),this.selection.setSelectionRange(w)},S.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),E=this.session.getTextRange(x);this.session.replace(x,E.toUpperCase()),this.selection.setSelectionRange(w)},S.prototype.indent=function(){var w=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var E=this.$getSelectedRows();w.indentRows(E.first,E.last," ");return}else if(x.start.column<x.end.column){var I=w.getTextRange(x);if(!/^\s+$/.test(I)){var E=this.$getSelectedRows();w.indentRows(E.first,E.last," ");return}}var O=w.getLine(x.start.row),D=x.start,F=w.getTabSize(),H=w.documentToScreenColumn(D.row,D.column);if(this.session.getUseSoftTabs())var W=F-H%F,U=s.stringRepeat(" ",W);else{for(var W=H%F;O[x.start.column-1]==" "&&W;)x.start.column--,W--;this.selection.setSelectionRange(x),U=" "}return this.insert(U)},S.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},S.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},S.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),x=this.session,E=[],I=w.first;I<=w.last;I++)E.push(x.getLine(I));E.sort(function(F,H){return F.toLowerCase()<H.toLowerCase()?-1:F.toLowerCase()>H.toLowerCase()?1:0});for(var O=new m(0,0,0,0),I=w.first;I<=w.last;I++){var D=x.getLine(I);O.start.row=I,O.end.row=I,O.end.column=D.length,x.replace(O,E[I-w.first])}},S.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)},S.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),x=this.session.getState(w.row),E=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,E,w)},S.prototype.getNumberAt=function(w,x){var E=/[\-]?[0-9]+(?:\.[0-9]+)?/g;E.lastIndex=0;for(var I=this.session.getLine(w);E.lastIndex<x;){var O=E.exec(I);if(O.index<=x&&O.index+O[0].length>=x){var D={value:O[0],start:O.index,end:O.index+O[0].length};return D}}return null},S.prototype.modifyNumber=function(w){var x=this.selection.getCursor().row,E=this.selection.getCursor().column,I=new m(x,E-1,x,E),O=this.session.getTextRange(I);if(!isNaN(parseFloat(O))&&isFinite(O)){var D=this.getNumberAt(x,E);if(D){var F=D.value.indexOf(".")>=0?D.start+D.value.indexOf(".")+1:D.end,H=D.start+D.value.length-F,W=parseFloat(D.value);W*=Math.pow(10,H),F!==D.end&&E<F?w*=Math.pow(10,D.end-E-1):w*=Math.pow(10,D.end-E),W+=w,W/=Math.pow(10,H);var U=W.toFixed(H),G=new m(x,D.start,x,D.end);this.session.replace(G,U),this.moveCursorTo(x,Math.max(D.start+1,E+U.length-D.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var w=this.selection.getCursor().row,x=this.selection.getCursor().column;this.selection.selectWord();var E=this.getSelectedText(),I=this.selection.getWordRange().start.column,O=E.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),D=x-I-1;D<0&&(D=0);var F=0,H=0,W=this;E.match(/[A-Za-z0-9_]+/)&&O.forEach(function(z,j){H=F+z.length,D>=F&&D<=H&&(E=z,W.selection.clearSelection(),W.moveCursorTo(w,F+I),W.selection.selectTo(w,H+I)),F=H});for(var U=this.$toggleWordPairs,G,V=0;V<U.length;V++)for(var B=U[V],Z=0;Z<=1;Z++){var X=+!Z,Q=E.match(new RegExp("^\\s?_?("+s.escapeRegExp(B[Z])+")\\s?$","i"));if(Q){var ae=E.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Q[1])+")($|\\s)","g"));ae&&(G=E.replace(new RegExp(s.escapeRegExp(B[Z]),"i"),function(z){var j=B[X];return z.toUpperCase()==z?j=j.toUpperCase():z.charAt(0).toUpperCase()==z.charAt(0)&&(j=j.substr(0,0)+B[X].charAt(0).toUpperCase()+j.substr(1)),j}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(w,x){var E,I,O=this.session.getLine(w),D=O.split(/((?:https?|ftp):\/\/[\S]+)/),F=x;F<0&&(F=0);var H=0,W=0,U;try{for(var G=h(D),V=G.next();!V.done;V=G.next()){var B=V.value;if(W=H+B.length,F>=H&&F<=W&&B.match(/((?:https?|ftp):\/\/[\S]+)/)){U=B.replace(/[\s:.,'";}\]]+$/,"");break}H=W}}catch(Z){E={error:Z}}finally{try{V&&!V.done&&(I=G.return)&&I.call(G)}finally{if(E)throw E.error}}return U},S.prototype.openLink=function(){var w=this.selection.getCursor(),x=this.findLinkAt(w.row,w.column);return x&&window.open(x,"_blank"),x!=null},S.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var w=this.selection,x=this.session,E=w.getRange(),I=w.isBackwards();if(E.isEmpty()){var O=E.start.row;x.duplicateLines(O,O)}else{var D=I?E.start:E.end,F=x.insert(D,x.getTextRange(E));E.start=D,E.end=F,w.setSelectionRange(E,I)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(w,x,E){return this.session.moveText(w,x,E)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(w,x){var E,I,O=this.selection;if(!O.inMultiSelectMode||this.inVirtualSelectionMode){var D=O.toOrientedRange();E=this.$getSelectedRows(D),I=this.session.$moveLines(E.first,E.last,x?0:w),x&&w==-1&&(I=0),D.moveBy(I,0),O.fromOrientedRange(D)}else{var F=O.rangeList.ranges;O.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,W=0,U=F.length,G=0;G<U;G++){var V=G;F[G].moveBy(H,0),E=this.$getSelectedRows(F[G]);for(var B=E.first,Z=E.last;++G<U;){W&&F[G].moveBy(W,0);var X=this.$getSelectedRows(F[G]);if(x&&X.first!=Z)break;if(!x&&X.first>Z+1)break;Z=X.last}for(G--,H=this.session.$moveLines(B,Z,x?0:w),x&&w==-1&&(V=G+1);V<=G;)F[V].moveBy(H,0),V++;x||(H=0),W+=H}O.fromOrientedRange(O.ranges[0]),O.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},S.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},S.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(w,x){var E=this.renderer,I=this.renderer.layerConfig,O=w*Math.floor(I.height/I.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(O,0)}):x===!1&&(this.selection.moveCursorBy(O,0),this.selection.clearSelection());var D=E.scrollTop;E.scrollBy(0,O*I.lineHeight),x!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(D)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},S.prototype.scrollToLine=function(w,x,E,I){this.renderer.scrollToLine(w,x,E,I)},S.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)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(w,x){this.selection.moveCursorTo(w,x)},S.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},S.prototype.jumpToMatching=function(w,x){var E=this.getCursorPosition(),I=new _(this.session,E.row,E.column),O=I.getCurrentToken(),D=0;O&&O.type.indexOf("tag-name")!==-1&&(O=I.stepBackward());var F=O||I.stepForward();if(F){var H,W=!1,U={},G=E.column-F.start,V,B={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;G<F.value.length&&!W;G++)if(B[F.value[G]])switch(V=B[F.value[G]]+"."+F.type.replace("rparen","lparen"),isNaN(U[V])&&(U[V]=0),F.value[G]){case"(":case"[":case"{":U[V]++;break;case")":case"]":case"}":U[V]--,U[V]===-1&&(H="bracket",W=!0);break}}else F.type.indexOf("tag-name")!==-1&&(isNaN(U[F.value])&&(U[F.value]=0),O.value==="<"&&D>1?U[F.value]++:O.value==="</"&&U[F.value]--,U[F.value]===-1&&(H="tag",W=!0));W||(O=F,D++,F=I.stepForward(),G=0)}while(F&&!W);if(H){var Z,X;if(H==="bracket")Z=this.session.getBracketRange(E),Z||(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1,I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1),X=Z.start,(x||X.row===E.row&&Math.abs(X.column-E.column)<2)&&(Z=this.session.getBracketRange(X)));else if(H==="tag"){if(!F||F.type.indexOf("tag-name")===-1)return;if(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2,I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2),Z.compare(E.row,E.column)===0){var Q=this.session.getMatchingTags(E);Q&&(Q.openTag.contains(E.row,E.column)?(Z=Q.closeTag,X=Z.start):(Z=Q.openTag,Q.closeTag.start.row===E.row&&Q.closeTag.start.column===E.column?X=Z.end:X=Z.start))}X=X||Z.start}X=Z&&Z.cursor||X,X&&(w?Z&&x?this.selection.setRange(Z):Z&&Z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},S.prototype.gotoLine=function(w,x,E){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,E)},S.prototype.navigateTo=function(w,x){this.selection.moveTo(w,x)},S.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)},S.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)},S.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()},S.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()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(w,x){x&&this.$search.set(x);var E=this.$search.find(this.session),I=0;return E&&(this.$tryReplace(E,w)&&(I=1),this.selection.setSelectionRange(E),this.renderer.scrollSelectionIntoView(E.start,E.end)),I},S.prototype.replaceAll=function(w,x){x&&this.$search.set(x);var E=this.$search.findAll(this.session),I=0;if(!E.length)return I;var O=this.getSelectionRange();this.selection.moveTo(0,0);for(var D=E.length-1;D>=0;--D)this.$tryReplace(E[D],w)&&I++;return this.selection.setSelectionRange(O),I},S.prototype.$tryReplace=function(w,x){var E=this.session.getTextRange(w);return x=this.$search.replace(E,x),x!==null?(w.end=this.session.replace(w,x),w):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(w,x,E){x||(x={}),typeof w=="string"||w instanceof RegExp?x.needle=w:typeof w=="object"&&f.mixin(x,w);var I=this.selection.getRange();x.needle==null&&(w=this.session.getTextRange(I)||this.$search.$options.needle,w||(I=this.session.getWordRange(I.start.row,I.start.column),w=this.session.getTextRange(I)),this.$search.set({needle:w})),this.$search.set(x),x.start||this.$search.set({start:I});var O=this.$search.find(this.session);if(x.preventScroll)return O;if(O)return this.revealRange(O,E),O;x.backwards?I.start=I.end:I.end=I.start,this.selection.setRange(I)},S.prototype.findNext=function(w,x){this.find({skipCurrent:!0,backwards:!1},w,x)},S.prototype.findPrevious=function(w,x){this.find(w,{skipCurrent:!0,backwards:!0},x)},S.prototype.revealRange=function(w,x){this.session.unfold(w),this.selection.setSelectionRange(w);var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),x!==!1&&this.renderer.animateScrolling(E)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(w){if(w){var x,E=this,I=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var O=this.$scrollAnchor;O.style.cssText="position:absolute",this.container.insertBefore(O,this.container.firstChild);var D=this.on("changeSelection",function(){I=!0}),F=this.renderer.on("beforeRender",function(){I&&(x=E.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(I&&x&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var W=E.renderer,U=W.$cursorLayer.$pixelPos,G=W.layerConfig,V=U.top-G.offset;U.top>=0&&V+x.top<0?I=!0:U.top<G.height&&U.top+x.top+G.lineHeight>window.innerHeight?I=!1:I=null,I!=null&&(O.style.top=V+"px",O.style.left=U.left+"px",O.style.height=G.lineHeight+"px",O.scrollIntoView(I)),I=x=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",D),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",F))}}},S.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)))},S.prototype.prompt=function(w,x,E){var I=this;C.loadModule("ace/ext/prompt",function(O){O.prompt(I,w,x,E)})},S})();T.$uid=0,T.prototype.curOp=null,T.prototype.prevOp={},T.prototype.$mergeableCommands=["backspace","del","insertstring"],T.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],f.implement(T.prototype,v),C.defineOptions(T.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){var w=this;if(this.textInput.setReadOnly(S),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(E){var I=!1;if(E&&E.type=="keydown"){if(E&&E.key&&!E.ctrlKey&&!E.metaKey&&(E.key==" "&&E.preventDefault(),I=E.key.length==1),!I)return}else E&&E.type!=="exec"&&(I=!0);if(I){w.hoverTooltip||(w.hoverTooltip=new N);var O=g.createElement("div");O.textContent=k("editor.tooltip.disable-editing","Editing is disabled"),w.hoverTooltip.isOpen||w.hoverTooltip.showForRange(w,w.getSelectionRange(),O)}else w.hoverTooltip&&w.hoverTooltip.isOpen&&w.hoverTooltip.hide()});var x=this.textInput.getElement();S?(L.addListener(x,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(L.removeListener(x,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))}},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){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(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?$.attach(this):$.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?$.attach(this):$.detach(this)}},placeholder:{set:function(S){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(S){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(I){I.blur(),I.renderer.scroller.focus()},readOnly:!0},x=function(I){if(I.target==this.renderer.scroller&&I.keyCode===M.enter){I.preventDefault();var O=this.getCursorPosition().row;this.isRowVisible(O)||this.scrollToLine(O,!0,!0),this.focus()}},E;S?(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",k("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",k("editor.scroller.aria-label","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",k("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",k("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),E||(E=new b(this)),E.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",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),E&&E.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var $={getText:function(S,w){return(Math.abs(S.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(S,w,x){return Math.max(w.toString().length,(x.lastRow+1).toString().length,2)*x.characterWidth},update:function(S,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=(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){h.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 l=p.firstRowScreen*p.lineHeight,u=Math.floor(l/this.canvasHeight),c=o.documentToScreenRow(s,0)*p.lineHeight;return c-u*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=h.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=h.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,l){var u=this.cellCache.pop();if(!u){var c=h.createElement("div");l&&l(c),this.element.appendChild(c),u={element:c,text:"",row:s}}return u.row=s,u},g})();r.Lines=f}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,l=(function(){function c(a){this.$showCursorMarker=null,this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",a.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(a){this.session&&this.session.off("change",this.$updateAnnotations),this.session=a,a&&a.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(a,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(a,d)},c.prototype.removeGutterDecoration=function(a,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(a,d)},c.prototype.setAnnotations=function(a){this.$annotations=[];for(var d=0;d<a.length;d++){var m=a[d],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var A=m.text,C=m.text,_=m.type;A=A?g.escapeHTML(A):m.html||"",C=C||m.html||"",y.text.indexOf(A)===-1&&(y.text.push(A),y.type.push(_),y.displayText.push(C));var b=m.className;b?y.className=b:_==="error"?y.className=" ace_error":_==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":_==="info"&&!y.className?y.className=" ace_info":_==="hint"&&!y.className&&(y.className=" ace_hint")}},c.prototype.$updateAnnotations=function(a){if(this.$annotations.length){var d=a.start.row,m=a.end.row-d;if(m!==0)if(a.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(a){this.config=a;var d=this.session,m=a.firstRow,v=Math.min(a.lastRow+a.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=a,this.$lines.moveContainer(a),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),A=y?y.start.row:1/0,C=null,_=-1,b=m;;){if(b>A&&(b=y.end.row+1,y=d.getNextFoldLine(b,y),A=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}C=this.$lines.get(++_),C?C.row=b:(C=this.$lines.createCell(b,a,this.session,u),this.$lines.push(C)),this.$renderCell(C,a,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(a),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},c.prototype.$updateGutterWidth=function(a){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 A=m?m.getWidth(d,y,a):y.toString().length*a.characterWidth,C=this.$padding||this.$computePadding();A+=C.left+C.right,A!==this.gutterWidth&&!isNaN(A)&&(this.gutterWidth=A,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",A))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},c.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){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.$updateCursorMarker=function(){if(this.session){var a=this.session;this.$highlightElement||(this.$highlightElement=h.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var d=a.selection.cursor,m=this.config,v=this.$lines,y=m.firstRowScreen*m.lineHeight,A=Math.floor(y/v.canvasHeight),C=a.documentToScreenRow(d)*m.lineHeight,_=C-A*v.canvasHeight;h.setStyle(this.$highlightElement.style,"height",m.lineHeight+"px"),h.setStyle(this.$highlightElement.style,"top",_+"px")}},c.prototype.scrollLines=function(a){var d=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(d,a))return this.update(a);this.$lines.moveContainer(a);var m=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<a.firstRow)return this.update(a);if(m<d.firstRow)return this.update(a);if(d.firstRow<a.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,a.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();a.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(a,a.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(a,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$renderLines=function(a,d,m){for(var v=[],y=d,A=this.session.getNextFoldLine(y),C=A?A.start.row:1/0;y>C&&(y=A.end.row+1,A=this.session.getNextFoldLine(y,A),C=A?A.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,a,this.session,u);this.$renderCell(_,a,A,y),v.push(_),y++}return v},c.prototype.$renderCell=function(a,d,m,v){var y=a.element,A=this.session,C=y.childNodes[0],_=y.childNodes[1],b=y.childNodes[2],k=y.childNodes[3],R=b.firstChild,M=A.$firstLineNumber,L=A.$breakpoints,N=A.$decorations,T=A.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&A.foldWidgets,S=m?m.start.row:Number.MAX_VALUE,w=d.lineHeight+"px",x=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",E=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=(T?T.getText(A,v):v+M).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=S&&this.$cursorRow<=m.end.row)&&(x+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),L[v]&&(x+=L[v]),N[v]&&(x+=N[v]),this.$annotations[v]&&v!==S&&(x+=this.$annotations[v].className),$){var O=$[v];O==null&&(O=$[v]=A.getFoldWidget(v))}if(O){var D="ace_fold-widget ace_"+O,F=O=="start"&&v==S&&v<m.end.row;if(F){D+=" ace_closed";for(var H="",W=!1,U=v+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){W=!0,H=" ace_error_fold";break}this.$annotations[U].className===" ace_security"?(W=!0,H=" ace_security_fold"):this.$annotations[U].className===" ace_warning"&&H!==" ace_security_fold"&&(W=!0,H=" ace_warning_fold")}x+=H}else D+=" ace_open";_.className!=D&&(_.className=D),h.setStyle(_.style,"height",w),h.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var G=A.getFoldWidgetRange(v);G?_.setAttribute("aria-label",o("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[G.start.row+1,G.end.row+1])):m?_.setAttribute("aria-label",o("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):_.setAttribute("aria-label",o("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),F?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",o("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",o("gutter.code-folding.open.title","Fold code")))}else _&&(h.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));var V=this.session.$gutterCustomWidgets[v];if(V?this.$addCustomWidget(v,V,a):k&&this.$removeCustomWidget(v,a),W&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",R.className=E,R.className+=H,h.setStyle(R.style,"height",w),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",w);var B;switch(H){case" ace_error_fold":B=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security_fold":B=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning_fold":B=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break}b.setAttribute("aria-label",B),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",R.className=E,this.$useSvgGutterIcons?R.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),h.setStyle(R.style,"height",w),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",w);var B;switch(this.$annotations[v].className){case" ace_error":B=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security":B=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning":B=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break;case" ace_info":B=o("gutter.annotation.aria-label.info","Info, read annotations row $0",[I]);break;case" ace_hint":B=o("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[I]);break}b.setAttribute("aria-label",B),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else h.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return I!==C.data&&(C.data=I),y.className!=x&&(y.className=x),h.setStyle(a.element.style,"height",this.$lines.computeLineHeight(v,d,A)+"px"),h.setStyle(a.element.style,"top",this.$lines.computeLineTop(v,d,A)+"px"),a.text=I,b.style.display==="none"&&_.style.display==="none"&&!V?a.element.setAttribute("aria-hidden",!0):a.element.setAttribute("aria-hidden",!1),a},c.prototype.setHighlightGutterLine=function(a){this.$highlightGutterLine=a,!a&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},c.prototype.setShowLineNumbers=function(a){this.$renderer=!a&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(a){a?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=a,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$hideFoldWidget=function(a,d){var m=d||this.$getGutterCell(a);if(m&&m.element){var v=m.element.childNodes[1];v&&h.setStyle(v.style,"display","none")}},c.prototype.$showFoldWidget=function(a,d){var m=d||this.$getGutterCell(a);if(m&&m.element){var v=m.element.childNodes[1];v&&this.session.foldWidgets&&this.session.foldWidgets[m.row]&&h.setStyle(v.style,"display","inline-block")}},c.prototype.$getGutterCell=function(a){var d=this.$lines.cells,m=0,v=d.length-1;if(!(a<d[0].row||a>d[v].row)){for(;m<=v;){var y=Math.floor((m+v)/2),A=d[y];if(A.row>a)v=y-1;else if(A.row<a)m=y+1;else return A}return A}},c.prototype.$addCustomWidget=function(a,d,m){var v=d.className,y=d.label,A=d.title,C=d.callbacks;this.session.$gutterCustomWidgets[a]={className:v,label:y,title:A,callbacks:C},this.$hideFoldWidget(a,m);var _=m||this.$getGutterCell(a);if(_&&_.element){var b=_.element.querySelector(".ace_custom-widget");b&&b.remove(),b=h.createElement("span"),b.className="ace_custom-widget ".concat(v),b.setAttribute("tabindex","-1"),b.setAttribute("role","button"),b.setAttribute("aria-label",y),b.setAttribute("title",A),h.setStyle(b.style,"display","inline-block"),h.setStyle(b.style,"height","inherit"),C&&C.onClick&&b.addEventListener("click",function(k){C.onClick(k,a),k.stopPropagation()}),_.element.appendChild(b)}},c.prototype.$removeCustomWidget=function(a,d){delete this.session.$gutterCustomWidgets[a],this.$showFoldWidget(a,d);var m=d||this.$getGutterCell(a);if(m&&m.element){var v=m.element.querySelector(".ace_custom-widget");v&&m.element.removeChild(v)}},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var a=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(a.borderLeftWidth)||0)+(parseInt(a.paddingLeft)||0)+1,this.$padding.right=(parseInt(a.borderRightWidth)||0)+(parseInt(a.paddingRight)||0),this.$padding},c.prototype.getRegion=function(a){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(a.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&a.x>m.right-d.right)return"foldWidgets"},c})();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer=void 0,l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,f.implement(l.prototype,s);function u(c){var a=document.createTextNode("");c.appendChild(a);var d=h.createElement("span");c.appendChild(d);var m=h.createElement("span");c.appendChild(m);var v=h.createElement("span");return m.appendChild(v),c}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,i){var h=n("../range").Range,f=n("../lib/dom"),g=(function(){function p(o){this.element=f.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,l){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=l,u.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var l;for(var u in this.markers){var c=this.markers[u];if(!c.range){c.update(l,this,this.session,o);continue}var a=c.range.clipRows(o.firstRow,o.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),c.renderer){var d=this.$getTop(a.start.row,o),m=this.$padding+a.start.column*o.characterWidth;c.renderer(l,a,m,d,o)}else c.type=="fullLine"?this.drawFullLineMarker(l,a,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(l,a,c.clazz,o):a.isMultiLine()?c.type=="text"?this.drawTextMarker(l,a,c.clazz,o):this.drawMultiLineMarker(l,a,c.clazz,o):this.drawSingleLineMarker(l,a,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,l){return(o-l.firstRowScreen)*l.lineHeight},p.prototype.drawTextMarker=function(o,l,u,c,a){for(var d=this.session,m=l.start.row,v=l.end.row,y=m,A=0,C=0,_=d.getScreenLastRowColumn(y),b=new h(y,l.start.column,y,C);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?l.start.column:d.getRowWrapIndent(y),b.end.column=_,A=C,C=_,_=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:l.end.column,this.drawSingleLineMarker(o,b,u+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&l.start.column,A<C,C>_,y==v),c,y==v?0:1,a)},p.prototype.drawMultiLineMarker=function(o,l,u,c,a){var d=this.$padding,m=c.lineHeight,v=this.$getTop(l.start.row,c),y=d+l.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var A=l.clone();A.end.row=A.start.row,A.end.column=this.session.getLine(A.start.row).length,this.drawBidiSingleLineMarker(o,A,u+" ace_br1 ace_start",c,null,a)}else this.elt(u+" ace_br1 ace_start","height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+y+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var A=l.clone();A.start.row=A.end.row,A.start.column=0,this.drawBidiSingleLineMarker(o,A,u+" ace_br12",c,null,a)}else{v=this.$getTop(l.end.row,c);var C=l.end.column*c.characterWidth;this.elt(u+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+d+"px;"+(a||""))}if(m=(l.end.row-l.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(l.start.row+1,c);var _=(l.start.column?1:0)|(l.end.column?0:8);this.elt(u+(_?" ace_br"+_:""),"height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+d+"px;"+(a||""))}},p.prototype.drawSingleLineMarker=function(o,l,u,c,a,d){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(o,l,u,c,a,d);var m=c.lineHeight,v=(l.end.column+(a||0)-l.start.column)*c.characterWidth,y=this.$getTop(l.start.row,c),A=this.$padding+l.start.column*c.characterWidth;this.elt(u,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+A+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(o,l,u,c,a,d){var m=c.lineHeight,v=this.$getTop(l.start.row,c),y=this.$padding,A=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);A.forEach(function(C){this.elt(u,"height:"+m+"px;width:"+(C.width+(a||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(o,l,u,c,a){var d=this.$getTop(l.start.row,c),m=c.lineHeight;l.start.row!=l.end.row&&(m+=this.$getTop(l.end.row,c)-d),this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(a||""))},p.prototype.drawScreenLineMarker=function(o,l,u,c,a){var d=this.$getTop(l.start.row,c),m=c.lineHeight;this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(a||""))},p})();g.prototype.$padding=0;function s(p,o,l,u){return(p?1:0)|(o?2:0)|(l?4:0)|(u?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,i){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(f){return h.has(f)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,l=n("./text_util").isTextToken,u=(function(){function c(a){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var a=this.session.doc,d=a.getNewLineCharacter()==`
792
+ `&&a.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(a){this.$padding=a,this.element.style.margin="0 "+a+"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(a){this.$fontMetrics=a,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(a){this.session=a,a&&this.$computeTabString()},c.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},c.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var d=this.$tabStrings=[0],m=1;m<a+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",A=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),_=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+A,v.textContent=C,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+_,v.textContent=b,this.$tabStrings[" "]=v}},c.prototype.updateLines=function(a,d,m){if(this.config.lastRow!=a.lastRow||this.config.firstRow!=a.firstRow)return this.update(a);this.config=a;for(var v=Math.max(d,a.firstRow),y=Math.min(m,a.lastRow),A=this.element.childNodes,C=0,b=a.firstRow;b<v;b++){var k=this.session.getFoldLine(b);if(k)if(k.containsRow(v)){v=k.start.row;break}else b=k.end.row;C++}for(var _=!1,b=v,k=this.session.getNextFoldLine(b),R=k?k.start.row:1/0;b>R&&(b=k.end.row+1,k=this.session.getNextFoldLine(b,k),R=k?k.start.row:1/0),!(b>y);){var M=A[C++];if(M){this.dom.removeChildren(M),this.$renderLine(M,b,b==R?k:!1),_&&(M.style.top=this.$lines.computeLineTop(b,a,this.session)+"px");var L=a.lineHeight*this.session.getRowLength(b)+"px";M.style.height!=L&&(_=!0,M.style.height=L)}b++}if(_)for(;C<this.$lines.cells.length;){var N=this.$lines.cells[C++];N.element.style.top=this.$lines.computeLineTop(N.row,a,this.session)+"px"}},c.prototype.scrollLines=function(a){var d=this.config;if(this.config=a,this.$lines.pageChanged(d,a))return this.update(a);this.$lines.moveContainer(a);var m=a.lastRow,v=d?d.lastRow:-1;if(!d||v<a.firstRow)return this.update(a);if(m<d.firstRow)return this.update(a);if(!d||d.lastRow<a.firstRow)return this.update(a);if(a.lastRow<d.firstRow)return this.update(a);if(d.firstRow<a.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,a.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>a.lastRow)for(var y=this.session.getFoldedRowCount(a.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();a.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(a,a.firstRow,d.firstRow-1)),a.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(a,d.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(a,d,m){for(var v=[],y=d,A=this.session.getNextFoldLine(y),C=A?A.start.row:1/0;y>C&&(y=A.end.row+1,A=this.session.getNextFoldLine(y,A),C=A?A.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,a,this.session),b=_.element;this.dom.removeChildren(b),f.setStyle(b.style,"height",this.$lines.computeLineHeight(y,a,this.session)+"px"),f.setStyle(b.style,"top",this.$lines.computeLineTop(y,a,this.session)+"px"),this.$renderLine(b,y,y==C?A:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(_),y++}return v},c.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var d=a.firstRow,m=a.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(a,d,m))},c.prototype.$renderToken=function(a,d,m,v){for(var y=this,A=/(\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\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\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),_,b=0;_=A.exec(v);){var k=_[1],R=_[2],M=_[3],L=_[4],N=_[5];if(!(!y.showSpaces&&R)){var T=b!=_.index?v.slice(b,_.index):"";if(b=_.index+_[0].length,T&&C.appendChild(this.dom.createTextNode(T,this.element)),k){var $=y.session.getScreenTabSize(d+_.index),S=y.$tabStrings[$].cloneNode(!0);S.charCount=1,C.appendChild(S),d+=$-1}else if(R)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,R.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(R,this.element));else if(M){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,M.length),C.appendChild(w)}else if(L){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:L,C.appendChild(w)}else if(N){d+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=N,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),l(m.type))a.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("inline-fold.closed.title","Unfold code"))),w.className=x,w.appendChild(C),a.appendChild(w)}return d+v.length},c.prototype.renderIndentGuide=function(a,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,A=0;A<y;A++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}else if(d[0]==" "){for(var A=0;A<v;A++)a.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 a=this.session.doc.$lines;if(a){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 A=this.session.$bracketHighlight.ranges,C=0;C<A.length;C++)if(d.row!==A[C].start.row){this.$highlightIndentGuideMarker.end=A[C].start.row+1,d.row>A[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[d.row]!==""&&d.column===a[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=d.row+1;C<a.length;C++){var _=a[C],b=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=C,b<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var a=this.element.querySelectorAll(".ace_indent-guide-active"),d=0;d<a.length;d++)a[d].classList.remove("ace_indent-guide-active")},c.prototype.$setIndentGuideActive=function(a,d){var m=this.session.doc.getLine(a.row);if(m!==""){var v=a.element;if(a.element.classList&&a.element.classList.contains("ace_line_group"))if(a.element.childNodes.length>0)v=a.element.childNodes[0];else return;var y=v.childNodes;if(y){var A=y[d-1];A&&A.classList&&A.classList.contains("ace_indent-guide")&&A.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var a=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<a.length;m++){var v=a[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=a.length-1;m>=0;m--){var v=a[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(a){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},c.prototype.$renderWrappedLine=function(a,d,m){var v=0,y=0,A=m[0],C=0,_=this.$createLineElement();a.appendChild(_);for(var b=0;b<d.length;b++){var k=d[b],R=k.value;if(b==0&&this.displayIndentGuides){if(v=R.length,R=this.renderIndentGuide(_,R,A),!R)continue;v-=R.length}if(v+R.length<A)C=this.$renderToken(_,C,k,R),v+=R.length;else{for(;v+R.length>=A;){C=this.$renderToken(_,C,k,R.substring(0,A-v)),R=R.substring(A-v),v=A,_=this.$createLineElement(),a.appendChild(_);var M=this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element);M.charCount=0,_.appendChild(M),y++,C=0,A=m[y]||Number.MAX_VALUE}R.length!=0&&(v+=R.length,C=this.$renderToken(_,C,k,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,C,null,"",!0)},c.prototype.$renderSimpleLine=function(a,d){for(var m=0,v=0;v<d.length;v++){var y=d[v],A=y.value;if(!(v==0&&this.displayIndentGuides&&(A=this.renderIndentGuide(a,A),!A))){if(m+A.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,y,A);m=this.$renderToken(a,m,y,A)}}},c.prototype.$renderOverflowMessage=function(a,d,m,v,y){m&&this.$renderToken(a,d,m,v.slice(0,this.MAX_LINE_LENGTH-d));var A=this.dom.createElement("span");A.className="ace_inline_button ace_keyword ace_toggle_wrap",A.textContent=y?"<hide>":"<click to see more...>",a.appendChild(A)},c.prototype.$renderLine=function(a,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=a;if(v.length){var A=this.session.getRowSplitData(d);if(A&&A.length){this.$renderWrappedLine(a,v,A);var y=a.lastChild}else{var y=a;this.$useLineGroups()&&(y=this.$createLineElement(),a.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),a.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(a,d){var m=this.session,v=[];function y(C,_,b){for(var k=0,R=0;R+C[k].value.length<_;)if(R+=C[k].value.length,k++,k==C.length)return;if(R!=_){var M=C[k].value.substring(_-R);M.length>b-_&&(M=M.substring(0,b-_)),v.push({type:C[k].type,value:M}),R=_+M.length,k+=1}for(;R<b&&k<C.length;){var M=C[k].value;M.length+R>b?v.push({type:C[k].type,value:M.substring(0,b-R)}):v.push(C[k]),R+=M.length,k+=1}}var A=m.getTokens(a);return d.walk(function(C,_,b,k,R){C!=null?v.push({type:"fold",value:C}):(R&&(A=m.getTokens(_)),A.length&&y(A,k,b))},d.end.row,this.session.getLine(d.end.row).length),v},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c})();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,h.implement(u.prototype,p),r.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=(function(){function g(s){this.element=h.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(),h.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--;)h.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&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.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,h.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=h.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,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,h.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,h.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&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.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),l=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),u=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:u}},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,l=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,u=p.length;o<u;o++){var c=this.getPixelPosition(p[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var a=this.cursors[l++]||this.addCursor(),d=a.style;this.drawCursor?this.drawCursor(a,c,s,p[o],this.session):this.isCursorInView(c,s)?(h.setStyle(d,"display","block"),h.translate(a,c.left,c.top),h.setStyle(d,"width",Math.round(s.characterWidth)+"px"),h.setStyle(d,"height",s.lineHeight+"px")):h.setStyle(d,"display","none")}}for(;this.cursors.length>l;)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?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g})();f.prototype.$padding=0,f.prototype.drawCursor=null,r.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||(function(){var a=function(d,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(v[A]=y[A])},a(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");a(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}})(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,l=(function(){function a(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 a.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},a})();f.implement(l.prototype,p);var u=(function(a){h(d,a);function d(m,v){var y=a.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})(l);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var c=(function(a){h(d,a);function d(m,v){var y=a.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})(l);r.ScrollBar=u,r.ScrollBarV=u,r.ScrollBarH=c,r.VScrollBar=u,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,i){var h=this&&this.__extends||(function(){var c=function(a,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(a,d)};return function(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(a,d);function m(){this.constructor=a}a.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}})(),f=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{
793
+ position: absolute;
794
+ background: rgba(128, 128, 128, 0.6);
795
+ -moz-box-sizing: border-box;
796
+ box-sizing: border-box;
797
+ border: 1px solid #bbb;
798
+ border-radius: 2px;
799
+ z-index: 8;
800
+ }
801
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
802
+ position: absolute;
803
+ z-index: 6;
804
+ background: none;
805
+ overflow: hidden!important;
806
+ }
807
+ .ace_editor>.ace_sb-v {
808
+ z-index: 6;
809
+ right: 0;
810
+ top: 0;
811
+ width: 12px;
812
+ }
813
+ .ace_editor>.ace_sb-v div {
814
+ z-index: 8;
815
+ right: 0;
816
+ width: 100%;
817
+ }
818
+ .ace_editor>.ace_sb-h {
819
+ bottom: 0;
820
+ left: 0;
821
+ height: 12px;
822
+ }
823
+ .ace_editor>.ace_sb-h div {
824
+ bottom: 0;
825
+ height: 100%;
826
+ }
827
+ .ace_editor>.ace_sb_grabbed {
828
+ z-index: 8;
829
+ background: #000;
830
+ }`,"ace_scrollbar.css",!1);var o=(function(){function c(a,d){this.element=g.createElement("div"),this.element.className="ace_sb"+d,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},c})();f.implement(o.prototype,p);var l=(function(c){h(a,c);function a(d,m){var v=c.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return a.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,A=function(L){y=L.clientY},C=function(){clearInterval(R)},_=m.clientY,b=this.thumbTop,k=function(){if(y!==void 0){var L=v.scrollTopFromThumbTop(b+y-_);L!==v.scrollTop&&v._emit("scroll",{data:L})}};s.capture(this.inner,A,C);var R=setInterval(k,20);return s.preventDefault(m)}var M=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(M)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(d){var m=d*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(d,m){this.pageHeight===d&&!m||(this.pageHeight=d,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},a.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},a})(o);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=(function(c){h(a,c);function a(d,m){var v=c.call(this,d,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return a.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,A=function(L){y=L.clientX},C=function(){clearInterval(R)},_=m.clientX,b=this.thumbLeft,k=function(){if(y!==void 0){var L=v.scrollLeftFromThumbLeft(b+y-_);L!==v.scrollLeft&&v._emit("scroll",{data:L})}};s.capture(this.inner,A,C);var R=setInterval(k,20);return s.preventDefault(m)}var M=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(M)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.scrollLeftFromThumbLeft=function(d){var m=d*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},a.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},a.prototype.setScrollWidth=function(d,m){this.pageWidth===d&&!m||(this.pageWidth=d,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},a.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},a})(o);u.prototype.setInnerWidth=u.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=u,r.VScrollBar=l,r.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,i){var h=n("./lib/event"),f=(function(){function g(s,p){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(l){o.pending=!1;var u=o.changes;if(u&&(h.blockIdle(100),o.changes=0,o.onRender(u)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(h.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var p=this.changes;return this.changes=0,p},g})();r.RenderLoop=f}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,l=512,u=typeof ResizeObserver=="function",c=200,a=(function(){function d(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",l),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},d.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){m.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/l};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,l);var v=this.$main.getBoundingClientRect();return v.width/l},d.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=f.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},d.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function A(D,F,H){var W=D[1]*F[0]-D[0]*F[1];return[(-F[1]*H[0]+F[0]*H[1])/W,(+D[1]*H[0]-D[0]*H[1])/W]}function C(D,F){return[D[0]-F[0],D[1]-F[1]]}function _(D,F){return[D[0]+F[0],D[1]+F[1]]}function b(D,F){return[D*F[0],D*F[1]]}this.els||this.$initTransformMeasureNodes();function k(D){var F=D.getBoundingClientRect();return[F.left,F.top]}var R=k(this.els[0]),M=k(this.els[1]),L=k(this.els[2]),N=k(this.els[3]),T=A(C(N,M),C(N,L),C(_(M,L),_(N,R))),$=b(1+T[0],C(M,R)),S=b(1+T[1],C(L,R));if(v){var w=v,x=T[0]*w[0]/c+T[1]*w[1]/c+1,E=_(b(w[0],$),b(w[1],S));return _(b(1/x/c,E),R)}var I=C(m,R),O=A(C($,b(T[0],I)),C(S,b(T[1],I)),I);return b(c,O)},d})();a.prototype.$characterSize={width:0,height:0},h.implement(a.prototype,o),r.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,i){i.exports=`
831
+ .ace_br1 {border-top-left-radius : 3px;}
832
+ .ace_br2 {border-top-right-radius : 3px;}
833
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
834
+ .ace_br4 {border-bottom-right-radius: 3px;}
835
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
836
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
837
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
838
+ .ace_br8 {border-bottom-left-radius : 3px;}
839
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
840
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
841
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
842
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
843
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
844
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
845
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
846
+
847
+
848
+ .ace_editor {
849
+ position: relative;
850
+ overflow: hidden;
851
+ padding: 0;
852
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
853
+ direction: ltr;
854
+ text-align: left;
855
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
856
+ forced-color-adjust: none;
857
+ }
858
+
859
+ .ace_scroller {
860
+ position: absolute;
861
+ overflow: hidden;
862
+ top: 0;
863
+ bottom: 0;
864
+ background-color: inherit;
865
+ -ms-user-select: none;
866
+ -moz-user-select: none;
867
+ -webkit-user-select: none;
868
+ user-select: none;
869
+ cursor: text;
870
+ }
871
+
872
+ .ace_content {
873
+ position: absolute;
874
+ box-sizing: border-box;
875
+ min-width: 100%;
876
+ contain: style size layout;
877
+ font-variant-ligatures: no-common-ligatures;
878
+ }
879
+ .ace_invisible {
880
+ font-variant-ligatures: none;
881
+ }
882
+
883
+ .ace_keyboard-focus:focus {
884
+ box-shadow: inset 0 0 0 2px #5E9ED6;
885
+ outline: none;
886
+ }
887
+
888
+ .ace_dragging .ace_scroller:before{
889
+ position: absolute;
890
+ top: 0;
891
+ left: 0;
892
+ right: 0;
893
+ bottom: 0;
894
+ content: '';
895
+ background: rgba(250, 250, 250, 0.01);
896
+ z-index: 1000;
897
+ }
898
+ .ace_dragging.ace_dark .ace_scroller:before{
899
+ background: rgba(0, 0, 0, 0.01);
900
+ }
901
+
902
+ .ace_gutter {
903
+ position: absolute;
904
+ overflow : hidden;
905
+ width: auto;
906
+ top: 0;
907
+ bottom: 0;
908
+ left: 0;
909
+ cursor: default;
910
+ z-index: 4;
911
+ -ms-user-select: none;
912
+ -moz-user-select: none;
913
+ -webkit-user-select: none;
914
+ user-select: none;
915
+ contain: style size layout;
916
+ }
917
+
918
+ .ace_gutter-active-line {
919
+ position: absolute;
920
+ left: 0;
921
+ right: 0;
922
+ }
923
+
924
+ .ace_scroller.ace_scroll-left:after {
925
+ content: "";
926
+ position: absolute;
927
+ top: 0;
928
+ right: 0;
929
+ bottom: 0;
930
+ left: 0;
931
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
932
+ pointer-events: none;
933
+ }
934
+
935
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
936
+ position: absolute;
937
+ top: 0;
938
+ left: 0;
939
+ right: 0;
940
+ padding-left: 19px;
941
+ padding-right: 6px;
942
+ background-repeat: no-repeat;
943
+ }
944
+
945
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
946
+ margin-left: -14px;
947
+ float: left;
948
+ }
949
+
950
+ .ace_gutter-cell .ace_gutter_annotation {
951
+ margin-left: -19px;
952
+ float: left;
953
+ }
954
+
955
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
956
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
957
+ background-repeat: no-repeat;
958
+ background-position: 2px center;
959
+ }
960
+
961
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
962
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
963
+ background-repeat: no-repeat;
964
+ background-position: 2px center;
965
+ }
966
+
967
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
968
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
969
+ background-repeat: no-repeat;
970
+ background-position: 2px center;
971
+ }
972
+
973
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
974
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
975
+ }
976
+
977
+ .ace_icon_svg.ace_error {
978
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
979
+ background-color: crimson;
980
+ }
981
+ .ace_icon_svg.ace_security {
982
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
983
+ background-color: crimson;
984
+ }
985
+ .ace_icon_svg.ace_warning {
986
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
987
+ background-color: darkorange;
988
+ }
989
+ .ace_icon_svg.ace_info {
990
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
991
+ background-color: royalblue;
992
+ }
993
+ .ace_icon_svg.ace_hint {
994
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
995
+ background-color: silver;
996
+ }
997
+
998
+ .ace_icon_svg.ace_error_fold {
999
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1000
+ background-color: crimson;
1001
+ }
1002
+ .ace_icon_svg.ace_security_fold {
1003
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1004
+ background-color: crimson;
1005
+ }
1006
+ .ace_icon_svg.ace_warning_fold {
1007
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1008
+ background-color: darkorange;
1009
+ }
1010
+
1011
+ .ace_scrollbar {
1012
+ contain: strict;
1013
+ position: absolute;
1014
+ right: 0;
1015
+ bottom: 0;
1016
+ z-index: 6;
1017
+ }
1018
+
1019
+ .ace_scrollbar-inner {
1020
+ position: absolute;
1021
+ cursor: text;
1022
+ left: 0;
1023
+ top: 0;
1024
+ }
1025
+
1026
+ .ace_scrollbar-v{
1027
+ overflow-x: hidden;
1028
+ overflow-y: scroll;
1029
+ top: 0;
1030
+ }
1031
+
1032
+ .ace_scrollbar-h {
1033
+ overflow-x: scroll;
1034
+ overflow-y: hidden;
1035
+ left: 0;
1036
+ }
1037
+
1038
+ .ace_print-margin {
1039
+ position: absolute;
1040
+ height: 100%;
1041
+ }
1042
+
1043
+ .ace_text-input {
1044
+ position: absolute;
1045
+ z-index: 0;
1046
+ width: 0.5em;
1047
+ height: 1em;
1048
+ opacity: 0;
1049
+ background: transparent;
1050
+ -moz-appearance: none;
1051
+ appearance: none;
1052
+ border: none;
1053
+ resize: none;
1054
+ outline: none;
1055
+ overflow: hidden;
1056
+ font: inherit;
1057
+ padding: 0 1px;
1058
+ margin: 0 -1px;
1059
+ contain: strict;
1060
+ -ms-user-select: text;
1061
+ -moz-user-select: text;
1062
+ -webkit-user-select: text;
1063
+ user-select: text;
1064
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1065
+ white-space: pre!important;
1066
+ }
1067
+ .ace_text-input.ace_composition {
1068
+ background: transparent;
1069
+ color: inherit;
1070
+ z-index: 1000;
1071
+ opacity: 1;
1072
+ }
1073
+ .ace_composition_placeholder { color: transparent }
1074
+ .ace_composition_marker {
1075
+ border-bottom: 1px solid;
1076
+ position: absolute;
1077
+ border-radius: 0;
1078
+ margin-top: 1px;
1079
+ }
1080
+
1081
+ [ace_nocontext=true] {
1082
+ transform: none!important;
1083
+ filter: none!important;
1084
+ clip-path: none!important;
1085
+ mask : none!important;
1086
+ contain: none!important;
1087
+ perspective: none!important;
1088
+ mix-blend-mode: initial!important;
1089
+ z-index: auto;
1090
+ }
1091
+
1092
+ .ace_layer {
1093
+ z-index: 1;
1094
+ position: absolute;
1095
+ overflow: hidden;
1096
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1097
+ word-wrap: normal;
1098
+ white-space: pre;
1099
+ height: 100%;
1100
+ width: 100%;
1101
+ box-sizing: border-box;
1102
+ /* setting pointer-events: auto; on node under the mouse, which changes
1103
+ during scroll, will break mouse wheel scrolling in Safari */
1104
+ pointer-events: none;
1105
+ }
1106
+
1107
+ .ace_gutter-layer {
1108
+ position: relative;
1109
+ width: auto;
1110
+ text-align: right;
1111
+ pointer-events: auto;
1112
+ height: 1000000px;
1113
+ contain: style size layout;
1114
+ }
1115
+
1116
+ .ace_text-layer {
1117
+ font: inherit !important;
1118
+ position: absolute;
1119
+ height: 1000000px;
1120
+ width: 1000000px;
1121
+ contain: style size layout;
1122
+ }
1123
+
1124
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1125
+ contain: style size layout;
1126
+ position: absolute;
1127
+ top: 0;
1128
+ left: 0;
1129
+ right: 0;
1130
+ }
1131
+
1132
+ .ace_hidpi .ace_text-layer,
1133
+ .ace_hidpi .ace_gutter-layer,
1134
+ .ace_hidpi .ace_content,
1135
+ .ace_hidpi .ace_gutter {
1136
+ contain: strict;
1137
+ }
1138
+ .ace_hidpi .ace_text-layer > .ace_line,
1139
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1140
+ contain: strict;
1141
+ }
1142
+
1143
+ .ace_cjk {
1144
+ display: inline-block;
1145
+ text-align: center;
1146
+ }
1147
+
1148
+ .ace_cursor-layer {
1149
+ z-index: 4;
1150
+ }
1151
+
1152
+ .ace_cursor {
1153
+ z-index: 4;
1154
+ position: absolute;
1155
+ box-sizing: border-box;
1156
+ border-left: 2px solid;
1157
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1158
+ transform: translatez(0);
1159
+ }
1160
+
1161
+ .ace_multiselect .ace_cursor {
1162
+ border-left-width: 1px;
1163
+ }
1164
+
1165
+ .ace_slim-cursors .ace_cursor {
1166
+ border-left-width: 1px;
1167
+ }
1168
+
1169
+ .ace_overwrite-cursors .ace_cursor {
1170
+ border-left-width: 0;
1171
+ border-bottom: 1px solid;
1172
+ }
1173
+
1174
+ .ace_hidden-cursors .ace_cursor {
1175
+ opacity: 0.2;
1176
+ }
1177
+
1178
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1179
+ opacity: 0;
1180
+ }
1181
+
1182
+ .ace_smooth-blinking .ace_cursor {
1183
+ transition: opacity 0.18s;
1184
+ }
1185
+
1186
+ .ace_animate-blinking .ace_cursor {
1187
+ animation-duration: 1000ms;
1188
+ animation-timing-function: step-end;
1189
+ animation-name: blink-ace-animate;
1190
+ animation-iteration-count: infinite;
1191
+ }
1192
+
1193
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1194
+ animation-duration: 1000ms;
1195
+ animation-timing-function: ease-in-out;
1196
+ animation-name: blink-ace-animate-smooth;
1197
+ }
1198
+
1199
+ @keyframes blink-ace-animate {
1200
+ from, to { opacity: 1; }
1201
+ 60% { opacity: 0; }
1202
+ }
1203
+
1204
+ @keyframes blink-ace-animate-smooth {
1205
+ from, to { opacity: 1; }
1206
+ 45% { opacity: 1; }
1207
+ 60% { opacity: 0; }
1208
+ 85% { opacity: 0; }
1209
+ }
1210
+
1211
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1212
+ position: absolute;
1213
+ z-index: 3;
1214
+ }
1215
+
1216
+ .ace_marker-layer .ace_selection {
1217
+ position: absolute;
1218
+ z-index: 5;
1219
+ }
1220
+
1221
+ .ace_marker-layer .ace_bracket {
1222
+ position: absolute;
1223
+ z-index: 6;
1224
+ }
1225
+
1226
+ .ace_marker-layer .ace_error_bracket {
1227
+ position: absolute;
1228
+ border-bottom: 1px solid #DE5555;
1229
+ border-radius: 0;
1230
+ }
1231
+
1232
+ .ace_marker-layer .ace_active-line {
1233
+ position: absolute;
1234
+ z-index: 2;
1235
+ }
1236
+
1237
+ .ace_marker-layer .ace_selected-word {
1238
+ position: absolute;
1239
+ z-index: 4;
1240
+ box-sizing: border-box;
1241
+ }
1242
+
1243
+ .ace_line .ace_fold {
1244
+ box-sizing: border-box;
1245
+
1246
+ display: inline-block;
1247
+ height: 11px;
1248
+ margin-top: -2px;
1249
+ vertical-align: middle;
1250
+
1251
+ background-image:
1252
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1253
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1254
+ background-repeat: no-repeat, repeat-x;
1255
+ background-position: center center, top left;
1256
+ color: transparent;
1257
+
1258
+ border: 1px solid black;
1259
+ border-radius: 2px;
1260
+
1261
+ cursor: pointer;
1262
+ pointer-events: auto;
1263
+ }
1264
+
1265
+ .ace_dark .ace_fold {
1266
+ }
1267
+
1268
+ .ace_fold:hover{
1269
+ background-image:
1270
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1271
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1272
+ }
1273
+
1274
+ .ace_tooltip {
1275
+ background-color: #f5f5f5;
1276
+ border: 1px solid gray;
1277
+ border-radius: 1px;
1278
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1279
+ color: black;
1280
+ padding: 3px 4px;
1281
+ position: fixed;
1282
+ z-index: 999999;
1283
+ box-sizing: border-box;
1284
+ cursor: default;
1285
+ white-space: pre-wrap;
1286
+ word-wrap: break-word;
1287
+ line-height: normal;
1288
+ font-style: normal;
1289
+ font-weight: normal;
1290
+ letter-spacing: normal;
1291
+ pointer-events: none;
1292
+ overflow: auto;
1293
+ max-width: min(33em, 66vw);
1294
+ overscroll-behavior: contain;
1295
+ }
1296
+ .ace_tooltip pre {
1297
+ white-space: pre-wrap;
1298
+ }
1299
+
1300
+ .ace_tooltip.ace_dark {
1301
+ background-color: #636363;
1302
+ color: #fff;
1303
+ }
1304
+
1305
+ .ace_tooltip:focus {
1306
+ outline: 1px solid #5E9ED6;
1307
+ }
1308
+
1309
+ .ace_icon {
1310
+ display: inline-block;
1311
+ width: 18px;
1312
+ vertical-align: top;
1313
+ }
1314
+
1315
+ .ace_icon_svg {
1316
+ display: inline-block;
1317
+ width: 12px;
1318
+ vertical-align: top;
1319
+ -webkit-mask-repeat: no-repeat;
1320
+ -webkit-mask-size: 12px;
1321
+ -webkit-mask-position: center;
1322
+ }
1323
+
1324
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1325
+ padding-right: 13px;
1326
+ }
1327
+
1328
+ .ace_fold-widget, .ace_custom-widget {
1329
+ box-sizing: border-box;
1330
+
1331
+ margin: 0 -12px 0 1px;
1332
+ display: none;
1333
+ width: 11px;
1334
+ vertical-align: top;
1335
+
1336
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1337
+ background-repeat: no-repeat;
1338
+ background-position: center;
1339
+
1340
+ border-radius: 3px;
1341
+
1342
+ border: 1px solid transparent;
1343
+ cursor: pointer;
1344
+ pointer-events: auto;
1345
+ }
1346
+
1347
+ .ace_custom-widget {
1348
+ background: none;
1349
+ }
1350
+
1351
+ .ace_folding-enabled .ace_fold-widget {
1352
+ display: inline-block;
1353
+ }
1354
+
1355
+ .ace_fold-widget.ace_end {
1356
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1357
+ }
1358
+
1359
+ .ace_fold-widget.ace_closed {
1360
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1361
+ }
1362
+
1363
+ .ace_fold-widget:hover {
1364
+ border: 1px solid rgba(0, 0, 0, 0.3);
1365
+ background-color: rgba(255, 255, 255, 0.2);
1366
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1367
+ }
1368
+
1369
+ .ace_fold-widget:active {
1370
+ border: 1px solid rgba(0, 0, 0, 0.4);
1371
+ background-color: rgba(0, 0, 0, 0.05);
1372
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1373
+ }
1374
+ /**
1375
+ * Dark version for fold widgets
1376
+ */
1377
+ .ace_dark .ace_fold-widget {
1378
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1379
+ }
1380
+ .ace_dark .ace_fold-widget.ace_end {
1381
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1382
+ }
1383
+ .ace_dark .ace_fold-widget.ace_closed {
1384
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1385
+ }
1386
+ .ace_dark .ace_fold-widget:hover {
1387
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1388
+ background-color: rgba(255, 255, 255, 0.1);
1389
+ }
1390
+ .ace_dark .ace_fold-widget:active {
1391
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1392
+ }
1393
+
1394
+ .ace_inline_button {
1395
+ border: 1px solid lightgray;
1396
+ display: inline-block;
1397
+ margin: -1px 8px;
1398
+ padding: 0 5px;
1399
+ pointer-events: auto;
1400
+ cursor: pointer;
1401
+ }
1402
+ .ace_inline_button:hover {
1403
+ border-color: gray;
1404
+ background: rgba(200,200,200,0.2);
1405
+ display: inline-block;
1406
+ pointer-events: auto;
1407
+ }
1408
+
1409
+ .ace_fold-widget.ace_invalid {
1410
+ background-color: #FFB4B4;
1411
+ border-color: #DE5555;
1412
+ }
1413
+
1414
+ .ace_fade-fold-widgets .ace_fold-widget {
1415
+ transition: opacity 0.4s ease 0.05s;
1416
+ opacity: 0;
1417
+ }
1418
+
1419
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1420
+ transition: opacity 0.05s ease 0.05s;
1421
+ opacity:1;
1422
+ }
1423
+
1424
+ .ace_underline {
1425
+ text-decoration: underline;
1426
+ }
1427
+
1428
+ .ace_bold {
1429
+ font-weight: bold;
1430
+ }
1431
+
1432
+ .ace_nobold .ace_bold {
1433
+ font-weight: normal;
1434
+ }
1435
+
1436
+ .ace_italic {
1437
+ font-style: italic;
1438
+ }
1439
+
1440
+
1441
+ .ace_error-marker {
1442
+ background-color: rgba(255, 0, 0,0.2);
1443
+ position: absolute;
1444
+ z-index: 9;
1445
+ }
1446
+
1447
+ .ace_highlight-marker {
1448
+ background-color: rgba(255, 255, 0,0.2);
1449
+ position: absolute;
1450
+ z-index: 8;
1451
+ }
1452
+
1453
+ .ace_mobile-menu {
1454
+ position: absolute;
1455
+ line-height: 1.5;
1456
+ border-radius: 4px;
1457
+ -ms-user-select: none;
1458
+ -moz-user-select: none;
1459
+ -webkit-user-select: none;
1460
+ user-select: none;
1461
+ background: white;
1462
+ box-shadow: 1px 3px 2px grey;
1463
+ border: 1px solid #dcdcdc;
1464
+ color: black;
1465
+ }
1466
+ .ace_dark > .ace_mobile-menu {
1467
+ background: #333;
1468
+ color: #ccc;
1469
+ box-shadow: 1px 3px 2px grey;
1470
+ border: 1px solid #444;
1471
+
1472
+ }
1473
+ .ace_mobile-button {
1474
+ padding: 2px;
1475
+ cursor: pointer;
1476
+ overflow: hidden;
1477
+ }
1478
+ .ace_mobile-button:hover {
1479
+ background-color: #eee;
1480
+ opacity:1;
1481
+ }
1482
+ .ace_mobile-button:active {
1483
+ background-color: #ddd;
1484
+ }
1485
+
1486
+ .ace_placeholder {
1487
+ position: relative;
1488
+ font-family: arial;
1489
+ transform: scale(0.9);
1490
+ transform-origin: left;
1491
+ white-space: pre;
1492
+ opacity: 0.7;
1493
+ margin: 0 10px;
1494
+ z-index: 1;
1495
+ }
1496
+
1497
+ .ace_ghost_text {
1498
+ opacity: 0.5;
1499
+ font-style: italic;
1500
+ }
1501
+
1502
+ .ace_ghost_text_container > div {
1503
+ white-space: pre;
1504
+ }
1505
+
1506
+ .ghost_text_line_wrapped::after {
1507
+ content: "↩";
1508
+ position: absolute;
1509
+ }
1510
+
1511
+ .ace_lineWidgetContainer.ace_ghost_text {
1512
+ margin: 0px 4px
1513
+ }
1514
+
1515
+ .ace_screenreader-only {
1516
+ position:absolute;
1517
+ left:-10000px;
1518
+ top:auto;
1519
+ width:1px;
1520
+ height:1px;
1521
+ overflow:hidden;
1522
+ }
1523
+
1524
+ .ace_hidden_token {
1525
+ display: none;
1526
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=(function(){function p(o,l){this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,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)"},this.setScrollBarV(o)}return p.prototype.$createCanvas=function(){this.canvas=h.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},p.prototype.setScrollBarV=function(o){this.$createCanvas(),this.scrollbarV=o,o.element.appendChild(this.canvas),this.setDimensions()},p.prototype.$updateDecorators=function(o){if(typeof this.canvas.getContext!="function")return;var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(o);var u=this.canvas.getContext("2d");function c($,S){return $.priority<S.priority?-1:$.priority>S.priority?1:0}var a=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),a){var d={info:1,warning:2,error:3};a.forEach(function($){$.priority=d[$.type]||null}),a=a.sort(c);for(var m=0;m<a.length;m++){var v=a[m].row,y=this.getVerticalOffsetForRow(v),A=y+this.lineHeight,C=Math.round(this.heightRatio*y),_=Math.round(this.heightRatio*A),b=Math.round((C+_)/2),k=_-b;k<this.halfMinDecorationHeight&&(k=this.halfMinDecorationHeight),b-k<0&&(b=k),b+k>this.canvasHeight&&(b=this.canvasHeight-k);var R=b-k,M=b+k,L=M-R;u.fillStyle=l[a[m].type]||null,u.fillRect(0,R,Math.round(this.oneZoneWidth-1),L)}}var N=this.renderer.session.selection.getCursor();if(N){var T=Math.round(this.getVerticalOffsetForRow(N.row)*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,T,this.canvasWidth,2)}},p.prototype.getVerticalOffsetForRow=function(o){o=o|0;var l=this.renderer.session.documentToScreenRow(o,0)*this.lineHeight;return l},p.prototype.setDimensions=function(o){o=o||this.renderer.layerConfig,this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},p.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},p.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},p})();f.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","ace/layer/text_util"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,l=n("./layer/text").Text,u=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,A=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),_=n("./layer/decorators").Decorator,b=n("./lib/useragent"),k=n("./layer/text_util").isTextToken;f.importCssString(C,"ace_editor.css",!1);var R=(function(){function M(L,N){var T=this;this.container=L||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var $=this.$textLayer=new l(this.content);this.canvas=$.element,this.$markerFront=new o(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(S){T.$scrollAnimation||T.session.setScrollTop(S.data-T.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){T.$scrollAnimation||T.session.setScrollLeft(S.data-T.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(S){T.updateCharacterSize(),T.onResize(!0,T.gutterWidth,T.$size.width,T.$size.height),T._signal("changeCharacterSize",S)}),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 M.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},M.prototype.setSession=function(L){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=L,L&&this.scrollMargin.top&&L.getScrollTop()<=0&&L.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(L),this.$markerBack.setSession(L),this.$markerFront.setSession(L),this.$gutterLayer.setSession(L),this.$textLayer.setSession(L),L&&(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))},M.prototype.updateLines=function(L,N,T){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>L&&(this.$changedLines.firstRow=L),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:L,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(T)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},M.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},M.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},M.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},M.prototype.updateFull=function(L){L?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},M.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},M.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},M.prototype.onResize=function(L,N,T,$){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=L?1:0;var S=this.container;$||($=S.clientHeight||S.scrollHeight),!$&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",$=S.clientHeight||S.scrollHeight),T||(T=S.clientWidth||S.scrollWidth);var w=this.$updateCachedSize(L,N,T,$);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!T&&!$)return this.resizing=0;L&&(this.$gutterLayer.$padding=null),L?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)}},M.prototype.$updateCachedSize=function(L,N,T,$){$-=this.$extraHeight||0;var S=0,w=this.$size,x={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if($&&(L||w.height!=$)&&(w.height=$,S|=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",S=S|this.CHANGE_SCROLL),T&&(L||w.width!=T)){S|=this.CHANGE_SIZE,w.width=T,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,f.setStyle(this.scrollBarH.element.style,"left",N+"px"),f.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),w.scrollerWidth=Math.max(0,T-N-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var E=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",E),f.setStyle(this.scroller.style,"right",E),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||L)&&(S|=this.CHANGE_FULL)}return w.$dirty=!T||!$,S&&this._signal("resize",x),S},M.prototype.onGutterResize=function(L){var N=this.$showGutter?L:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,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()},M.prototype.adjustWrapLimit=function(){var L=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(L/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},M.prototype.setAnimatedScroll=function(L){this.setOption("animatedScroll",L)},M.prototype.getAnimatedScroll=function(){return this.$animatedScroll},M.prototype.setShowInvisibles=function(L){this.setOption("showInvisibles",L),this.session.$bidiHandler.setShowInvisibles(L)},M.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},M.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},M.prototype.setDisplayIndentGuides=function(L){this.setOption("displayIndentGuides",L)},M.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},M.prototype.setHighlightIndentGuides=function(L){this.setOption("highlightIndentGuides",L)},M.prototype.setShowPrintMargin=function(L){this.setOption("showPrintMargin",L)},M.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},M.prototype.setPrintMarginColumn=function(L){this.setOption("printMarginColumn",L)},M.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},M.prototype.getShowGutter=function(){return this.getOption("showGutter")},M.prototype.setShowGutter=function(L){return this.setOption("showGutter",L)},M.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},M.prototype.setFadeFoldWidgets=function(L){this.setOption("fadeFoldWidgets",L)},M.prototype.setHighlightGutterLine=function(L){this.setOption("highlightGutterLine",L)},M.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},M.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var L=f.createElement("div");L.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",L.appendChild(this.$printMarginEl),this.content.insertBefore(L,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},M.prototype.getContainerElement=function(){return this.container},M.prototype.getMouseEventTarget=function(){return this.scroller},M.prototype.getTextAreaContainer=function(){return this.container},M.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var L=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){f.translate(this.textarea,-100,0);return}var T=this.$cursorLayer.$pixelPos;if(T){N&&N.markerRange&&(T=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var $=this.layerConfig,S=T.top,w=T.left;S-=$.offset;var x=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if(S<0||S>$.height-x){f.translate(this.textarea,0,0);return}var E=1,I=this.$size.height-x;if(!N)S+=this.lineHeight;else if(N.useTextareaForIME){var O=this.textarea.value;E=this.characterWidth*this.session.$getStringScreenWidth(O)[0]}else S+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-E&&(w=this.$size.scrollerWidth-E),w+=this.gutterWidth+this.margin.left,f.setStyle(L,"height",x+"px"),f.setStyle(L,"width",E+"px"),f.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-E),Math.min(S,I))}}},M.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},M.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},M.prototype.getLastFullyVisibleRow=function(){var L=this.layerConfig,N=L.lastRow,T=this.session.documentToScreenRow(N,0)*L.lineHeight;return T-this.session.getScrollTop()>L.height-L.lineHeight?N-1:N},M.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},M.prototype.setPadding=function(L){this.$padding=L,this.$textLayer.setPadding(L),this.$cursorLayer.setPadding(L),this.$markerFront.setPadding(L),this.$markerBack.setPadding(L),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},M.prototype.setScrollMargin=function(L,N,T,$){var S=this.scrollMargin;S.top=L|0,S.bottom=N|0,S.right=$|0,S.left=T|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},M.prototype.setMargin=function(L,N,T,$){var S=this.margin;S.top=L|0,S.bottom=N|0,S.right=$|0,S.left=T|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},M.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},M.prototype.setHScrollBarAlwaysVisible=function(L){this.setOption("hScrollBarAlwaysVisible",L)},M.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},M.prototype.setVScrollBarAlwaysVisible=function(L){this.setOption("vScrollBarAlwaysVisible",L)},M.prototype.$updateScrollBarV=function(){var L=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(L-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>L-N&&(L=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(L+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},M.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},M.prototype.freeze=function(){this.$frozen=!0},M.prototype.unfreeze=function(){this.$frozen=!1},M.prototype.$renderChanges=function(L,N){if(this.$changes&&(L|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!L&&!N){this.$changes|=L;return}if(this.$size.$dirty)return this.$changes|=L,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",L),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var T=this.layerConfig;if(L&this.CHANGE_FULL||L&this.CHANGE_SIZE||L&this.CHANGE_TEXT||L&this.CHANGE_LINES||L&this.CHANGE_SCROLL||L&this.CHANGE_H_SCROLL){if(L|=this.$computeLayerConfig()|this.$loop.clear(),T.firstRow!=this.layerConfig.firstRow&&T.firstRowScreen==this.layerConfig.firstRowScreen){var $=this.scrollTop+(T.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;$>0&&(this.scrollTop=$,L=L|this.CHANGE_SCROLL,L|=this.$computeLayerConfig()|this.$loop.clear())}T=this.layerConfig,this.$updateScrollBarV(),L&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-T.offset);var S=T.width+2*this.$padding+"px",w=T.minHeight+"px";f.setStyle(this.content.style,"width",S),f.setStyle(this.content.style,"height",w)}if(L&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-T.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),L&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(T),this.$showGutter&&this.$gutterLayer.update(T),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T),this.$markerBack.update(T),this.$markerFront.update(T),this.$cursorLayer.update(T),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}if(L&this.CHANGE_SCROLL){this.$changedLines=null,L&this.CHANGE_TEXT||L&this.CHANGE_LINES?this.$textLayer.update(T):this.$textLayer.scrollLines(T),this.$showGutter&&(L&this.CHANGE_GUTTER||L&this.CHANGE_LINES?this.$gutterLayer.update(T):this.$gutterLayer.scrollLines(T)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T),this.$markerBack.update(T),this.$markerFront.update(T),this.$cursorLayer.update(T),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}L&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(T),this.$showGutter&&this.$gutterLayer.update(T),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T)):L&this.CHANGE_LINES?((this.$updateLines()||L&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(T),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T)):L&this.CHANGE_TEXT||L&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(T),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T)):L&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(T),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(T)),L&this.CHANGE_CURSOR&&(this.$cursorLayer.update(T),this.$moveTextAreaToCursor()),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(T),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(T),this._signal("afterRender",L)},M.prototype.$autosize=function(){var L=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,T=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,L))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(T+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&T>this.$maxPixelHeight&&(T=this.$maxPixelHeight);var $=T<=2*this.lineHeight,S=!$&&L>N;if(T!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var w=this.container.clientWidth;this.container.style.height=T+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,T),this.desiredHeight=T,this._signal("autosize")}},M.prototype.$computeLayerConfig=function(){var L=this.session,N=this.$size,T=N.height<=2*this.lineHeight,$=this.session.getScreenLength(),S=$*this.lineHeight,w=this.$getLongestLine(),x=!T&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-w-2*this.$padding<0),E=this.$horizScroll!==x;E&&(this.$horizScroll=x,this.scrollBarH.setVisible(x));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),T=N.height<=2*this.lineHeight);var O=N.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=D;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,S-N.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,w+2*this.$padding-N.scrollerWidth+F.right)));var H=!T&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-S+D<0||this.scrollTop>F.top),W=I!==H;W&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var U=this.scrollTop%this.lineHeight,G=Math.ceil(O/this.lineHeight)-1,V=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),B=V+G,Z,X,Q=this.lineHeight;V=L.screenToDocumentRow(V,0);var ae=L.getFoldLine(V);ae&&(V=ae.start.row),Z=L.documentToScreenRow(V,0),X=L.getRowLength(V)*Q,B=Math.min(L.screenToDocumentRow(B,0),L.getLength()-1),O=N.scrollerHeight+L.getRowLength(B)*Q+X,U=this.scrollTop-Z*Q,U<0&&Z>0&&(Z=Math.max(0,Z+Math.floor(U/Q)),U=this.scrollTop-Z*Q);var z=0;return(this.layerConfig.width!=w||E)&&(z=this.CHANGE_H_SCROLL),(E||W)&&(z|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),W&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:V,firstRowScreen:Z,lastRow:B,lineHeight:Q,characterWidth:this.characterWidth,minHeight:O,maxHeight:S,offset:U,gutterOffset:Q?Math.max(0,Math.ceil((U+N.height-N.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),z},M.prototype.$updateLines=function(){if(this.$changedLines){var L=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var T=this.layerConfig;if(!(L>T.lastRow+1)&&!(N<T.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(T),this.$textLayer.update(T);return}return this.$textLayer.updateLines(T,L,N),!0}}},M.prototype.$getLongestLine=function(){var L=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(L+=1),this.$textLayer&&L>this.$textLayer.MAX_LINE_LENGTH&&(L=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(L*this.characterWidth))},M.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},M.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},M.prototype.addGutterDecoration=function(L,N){this.$gutterLayer.addGutterDecoration(L,N)},M.prototype.removeGutterDecoration=function(L,N){this.$gutterLayer.removeGutterDecoration(L,N)},M.prototype.updateBreakpoints=function(L){this._rows=L,this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.setAnnotations=function(L){this.$gutterLayer.setAnnotations(L),this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},M.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},M.prototype.showCursor=function(){this.$cursorLayer.showCursor()},M.prototype.scrollSelectionIntoView=function(L,N,T){this.scrollCursorIntoView(L,T),this.scrollCursorIntoView(N,T)},M.prototype.scrollCursorIntoView=function(L,N,T){if(this.$size.scrollerHeight!==0){var $=this.$cursorLayer.getPixelPosition(L),S=$.left,w=$.top,x=T&&T.top||0,E=T&&T.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+x>w?(N&&I+x>w+this.lineHeight&&(w-=N*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):I+this.$size.scrollerHeight-E<w+this.lineHeight&&(N&&I+this.$size.scrollerHeight-E<w-this.lineHeight&&(w+=N*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+E-this.$size.scrollerHeight));var O=this.scrollLeft,D=2*this.layerConfig.characterWidth;S-D<O?(S-=D,S<this.$padding+D&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=D,O+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):O<=this.$padding&&S-O<this.characterWidth&&this.session.setScrollLeft(0))}},M.prototype.getScrollTop=function(){return this.session.getScrollTop()},M.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},M.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},M.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},M.prototype.scrollToRow=function(L){this.session.setScrollTop(L*this.lineHeight)},M.prototype.alignCursor=function(L,N){typeof L=="number"&&(L={row:L,column:0});var T=this.$cursorLayer.getPixelPosition(L),$=this.$size.scrollerHeight-this.lineHeight,S=T.top-$*(N||0);return this.session.setScrollTop(S),S},M.prototype.$calcSteps=function(L,N){var T=0,$=this.STEPS,S=[],w=function(x,E,I){return I*(Math.pow(x-1,3)+1)+E};for(T=0;T<$;++T)S.push(w(T/this.STEPS,L,N-L));return S},M.prototype.scrollToLine=function(L,N,T,$){var S=this.$cursorLayer.getPixelPosition({row:L,column:0}),w=S.top;N&&(w-=this.$size.scrollerHeight/2);var x=this.scrollTop;this.session.setScrollTop(w),T!==!1&&this.animateScrolling(x,$)},M.prototype.animateScrolling=function(L,N){var T=this.scrollTop;if(!this.$animatedScroll)return;var $=this;if(L==T)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(L=S[0],L==T))return}var w=$.$calcSteps(L,T);this.$scrollAnimation={from:L,to:T,steps:w},clearInterval(this.$timer),$.session.setScrollTop(w.shift()),$.session.$scrollTop=T;function x(){$.$timer=clearInterval($.$timer),$.$scrollAnimation=null,$.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if($.$stopAnimation){x();return}if(!$.session)return clearInterval($.$timer);w.length?($.session.setScrollTop(w.shift()),$.session.$scrollTop=T):T!=null?($.session.$scrollTop=-1,$.session.setScrollTop(T),T=null):x()},10)},M.prototype.scrollToY=function(L){this.scrollTop!==L&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=L)},M.prototype.scrollToX=function(L){this.scrollLeft!==L&&(this.scrollLeft=L),this.$loop.schedule(this.CHANGE_H_SCROLL)},M.prototype.scrollTo=function(L,N){this.session.setScrollTop(N),this.session.setScrollLeft(L)},M.prototype.scrollBy=function(L,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),L&&this.session.setScrollLeft(this.session.getScrollLeft()+L)},M.prototype.isScrollableBy=function(L,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||L<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||L>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},M.prototype.pixelToScreenCoordinates=function(L,N){var T;if(this.$hasCssTransforms){T={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([L,N]);L=$[1]-this.gutterWidth-this.margin.left,N=$[0]}else T=this.scroller.getBoundingClientRect();var S=L+this.scrollLeft-T.left-this.$padding,w=S/this.characterWidth,x=Math.floor((N+this.scrollTop-T.top)/this.lineHeight),E=this.$blockCursor?Math.floor(w):Math.round(w);return{row:x,column:E,side:w-E>0?1:-1,offsetX:S}},M.prototype.screenToTextCoordinates=function(L,N){var T;if(this.$hasCssTransforms){T={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([L,N]);L=$[1]-this.gutterWidth-this.margin.left,N=$[0]}else T=this.scroller.getBoundingClientRect();var S=L+this.scrollLeft-T.left-this.$padding,w=S/this.characterWidth,x=this.$blockCursor?Math.floor(w):Math.round(w),E=Math.floor((N+this.scrollTop-T.top)/this.lineHeight);return this.session.screenToDocumentPosition(E,Math.max(x,0),S)},M.prototype.textToScreenCoordinates=function(L,N){var T=this.scroller.getBoundingClientRect(),$=this.session.documentToScreenPosition(L,N),S=this.$padding+(this.session.$bidiHandler.isBidiRow($.row,L)?this.session.$bidiHandler.getPosLeft($.column):Math.round($.column*this.characterWidth)),w=$.row*this.lineHeight;return{pageX:T.left+S-this.scrollLeft,pageY:T.top+w-this.scrollTop}},M.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},M.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},M.prototype.showComposition=function(L){this.$composition=L,L.cssText||(L.cssText=this.textarea.style.cssText),L.useTextareaForIME==null&&(L.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):L.markerId=this.session.addMarker(L.markerRange,"ace_composition_marker","text")},M.prototype.setCompositionText=function(L){var N=this.session.selection.cursor;this.addToken(L,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},M.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var L=this.session.selection.cursor;this.removeExtraToken(L.row,L.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},M.prototype.setGhostText=function(L,N){var T=this.session.selection.cursor,$=N||{row:T.row,column:T.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(L,$);this.addToken(S[0].text,"ghost_text",$.row,$.column),this.$ghostText={text:L,position:{row:$.row,column:$.column}};var w=f.createElement("div");if(S.length>1){var x=this.hideTokensAfterPosition($.row,$.column),E;S.slice(1).forEach(function(W){var U=f.createElement("div"),G=f.createElement("span");G.className="ace_ghost_text",W.wrapped&&(U.className="ghost_text_line_wrapped"),W.text.length===0&&(W.text=" "),G.appendChild(f.createTextNode(W.text)),U.appendChild(G),w.appendChild(U),E=U}),x.forEach(function(W){var U=f.createElement("span");k(W.type)||(U.className="ace_"+W.type.replace(/\./g," ace_")),U.appendChild(f.createTextNode(W.value)),E.appendChild(U)}),this.$ghostTextWidget={el:w,row:$.row,column:$.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition($,!0),O=this.container,D=O.getBoundingClientRect().height,F=S.length*this.lineHeight,H=F<D-I.top;if(H)return;F<D?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow($.row)}},M.prototype.$calculateWrappedTextChunks=function(L,N){var T=this.$size.scrollerWidth-this.$padding*2,$=Math.floor(T/this.characterWidth)-2;$=$<=0?60:$;for(var S=L.split(/\r?\n/),w=[],x=0;x<S.length;x++){var E=this.session.$getDisplayTokens(S[x],N.column),I=this.session.$computeWrapSplits(E,$,this.session.$tabSize);if(I.length>0){var O=0;I.push(S[x].length);for(var D=0;D<I.length;D++){var F=S[x].slice(O,I[D]);w.push({text:F,wrapped:!0}),O=I[D]}}else w.push({text:S[x],wrapped:!1})}return w},M.prototype.removeGhostText=function(){if(this.$ghostText){var L=this.$ghostText.position;this.removeExtraToken(L.row,L.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},M.prototype.addToken=function(L,N,T,$){var S=this.session;S.bgTokenizer.lines[T]=null;var w={type:N,value:L},x=S.getTokens(T);if($==null||!x.length)x.push(w);else for(var E=0,I=0;I<x.length;I++){var O=x[I];if(E+=O.value.length,$<=E){var D=O.value.length-(E-$),F=O.value.slice(0,D),H=O.value.slice(D);x.splice(I,1,{type:O.type,value:F},w,{type:O.type,value:H});break}}this.updateLines(T,T)},M.prototype.hideTokensAfterPosition=function(L,N){for(var T=this.session.getTokens(L),$=0,S=!1,w=[],x=0;x<T.length;x++){var E=T[x];if($+=E.value.length,E.type!=="ghost_text"){if(S){w.push({type:E.type,value:E.value}),E.type="hidden_token";continue}$===N&&(S=!0)}}return this.updateLines(L,L),w},M.prototype.removeExtraToken=function(L,N){this.session.bgTokenizer.lines[L]=null,this.updateLines(L,L)},M.prototype.setTheme=function(L,N){var T=this;if(this.$themeId=L,T._dispatchEvent("themeChange",{theme:L}),!L||typeof L=="string"){var $=L||this.$options.theme.initialValue;s.loadModule(["theme",$],S)}else S(L);function S(w){if(T.$themeId!=L)return N&&N();if(!w||!w.cssClass)throw new Error("couldn't load module "+L+" or it didn't call define");w.$id&&(T.$themeId=w.$id),f.importCssString(w.cssText,w.cssClass,T.container),T.theme&&f.removeCssClass(T.container,T.theme.cssClass);var x="padding"in w?w.padding:"padding"in(T.theme||{})?4:T.$padding;if(T.$padding&&x!=T.$padding&&T.setPadding(x),T.$gutterLayer){var E=w.$showGutterCursorMarker;E&&!T.$gutterLayer.$showCursorMarker?T.$gutterLayer.$showCursorMarker="theme":!E&&T.$gutterLayer.$showCursorMarker=="theme"&&(T.$gutterLayer.$showCursorMarker=null)}T.$theme=w.cssClass,T.theme=w,f.addCssClass(T.container,w.cssClass),f.setCssClass(T.container,"ace_dark",w.isDark),T.$size&&(T.$size.width=0,T.$updateSizeAsync()),T._dispatchEvent("themeLoaded",{theme:w}),N&&N(),b.isSafari&&T.scroller&&(T.scroller.style.background="red",T.scroller.style.background="")}},M.prototype.getTheme=function(){return this.$themeId},M.prototype.setStyle=function(L,N){f.setCssClass(this.container,L,N!==!1)},M.prototype.unsetStyle=function(L){f.removeCssClass(this.container,L)},M.prototype.setCursorStyle=function(L){f.setStyle(this.scroller.style,"cursor",L)},M.prototype.setMouseCursor=function(L){f.setStyle(this.scroller.style,"cursor",L)},M.prototype.attachToShadowRoot=function(){f.importCssString(C,"ace_editor.css",this.container)},M.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},M.prototype.$updateCustomScrollbar=function(L){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),L===!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(T){N.$scrollAnimation||N.session.setScrollTop(T.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(T){N.$scrollAnimation||N.session.setScrollLeft(T.data-N.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(T){N.$scrollAnimation||N.session.setScrollTop(T.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(T){N.$scrollAnimation||N.session.setScrollLeft(T.data-N.scrollMargin.left)}))},M.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var L=this;this.$resizeTimer=g.delayedCall(function(){L.destroyed||L.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var T=N[0].contentRect.width,$=N[0].contentRect.height;Math.abs(L.$size.width-T)>1||Math.abs(L.$size.height-$)>1?L.$resizeTimer.delay():L.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},M})();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,h.implement(R.prototype,A),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(M){!M&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):M&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(M){this.$textLayer.setShowInvisibles(M)&&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(M){typeof M=="number"&&(this.$printMarginColumn=M),this.$showPrintMargin=!!M,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(M){this.$gutter.style.display=M?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(M){this.$gutterLayer.$useSvgGutterIcons=M},initialValue:!1},showFoldedAnnotations:{set:function(M){this.$gutterLayer.$showFoldedAnnotations=M},initialValue:!1},fadeFoldWidgets:{set:function(M){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",M)},initialValue:!1},showFoldWidgets:{set:function(M){this.$gutterLayer.setShowFoldWidgets(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(M){this.$textLayer.setDisplayIndentGuides(M)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(M){this.$textLayer.setHighlightIndentGuides(M)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(M){this.$gutterLayer.setHighlightGutterLine(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(M){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(M){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(M){typeof M=="number"&&(M=M+"px"),this.container.style.fontSize=M,this.updateFontSize()},initialValue:12},fontFamily:{set:function(M){this.container.style.fontFamily=M,this.updateFontSize()}},maxLines:{set:function(M){this.updateFull()}},minLines:{set:function(M){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(M){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(M){M=+M||0,this.$scrollPastEnd!=M&&(this.$scrollPastEnd=M,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(M){this.$gutterLayer.$fixedWidth=!!M,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(M){this.$updateCustomScrollbar(M)},initialValue:!1},theme:{set:function(M){this.setTheme(M)},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,i){var h=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function p(c){var a="importScripts('"+f.qualifyURL(c)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(a),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var a=p(c),d=window.URL||window.webkitURL,m=d.createObjectURL(a);return new Worker(m)}return new Worker(c)}var l=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(){h.implement(this,g),this.$createWorkerFromOldConfig=function(c,a,d,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(a,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var A={};c.forEach(function(C){A[C]=y(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:A,module:a,classname:d}),this.$worker},this.onMessage=function(c){var a=c.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var d=this.callbacks[a.id];d&&(d(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return f.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,a){this.$worker.postMessage({command:c,args:a})},this.call=function(c,a,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,a.push(m)}this.send(c,a)},this.emit=function(c,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:a.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(l.prototype);var u=function(c,a,d){var m=null,v=!1,y=Object.create(g),A=[],C=new l({messageBuffer:A,terminate:function(){},postMessage:function(b){A.push(b),m&&(v?setTimeout(_):_())}});C.setEmitSync=function(b){v=b};var _=function(){var b=A.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,k){this.postMessage({type:"call",id:k,data:b})},y.emit=function(b,k){this.postMessage({type:"event",name:b,data:k})},s.loadModule(["worker",a],function(b){for(m=new b[d](y);A.length;)_()}),C};r.UIWorkerClient=u,r.WorkerClient=l,r.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,i){var h=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=(function(){function p(o,l,u,c,a,d){var m=this;this.length=l,this.session=o,this.doc=o.getDocument(),this.mainClass=a,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=u;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,l=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=u.addMarker(new h(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var d=l.createAnchor(a.row,a.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),u.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,l=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=o.addMarker(new h(u.row,u.column,u.row,u.column+l.length),l.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 l=o;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var u=o.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,a=l.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=u),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+a};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+a};this.doc.remove(new h(v.row,v.column,v.row,v.column-u))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var l=this.others.length;l--;)this.others[l].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,l=this.session,u=function(a,d){l.removeMarker(a.markerId),a.markerId=l.addMarker(new h(a.row,a.column,a.row,a.column+o.length),d,null,!1)};u(this.pos,this.mainClass);for(var c=this.others.length;c--;)u(this.others[c],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.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(),l=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,u=0;u<l;u++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p})();g.implement(s.prototype,f),r.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function s(p){var o=p.domEvent,l=o.altKey,u=o.shiftKey,c=o.ctrlKey,a=p.getAccelKey(),d=p.getButton();if(c&&f.isMac&&(d=o.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!c&&!l&&!a){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,A=p.getDocumentPosition(),C=v.getCursor(),_=p.inSelection()||v.isEmpty()&&g(A,C),b=p.x,k=p.y,R=function(F){b=F.clientX,k=F.clientY},M=m.session,L=m.renderer.pixelToScreenCoordinates(b,k),N=L,T;if(m.$mouseHandler.$enableJumpToDef)c&&l||a&&l?T=u?"block":"add":l&&m.$blockSelectEnabled&&(T="block");else if(a&&!l){if(T="add",!y&&u)return}else l&&m.$blockSelectEnabled&&(T="block");if(T&&f.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),T=="add"){if(!y&&_)return;if(!y){var $=v.toOrientedRange();m.addSelectionMarker($)}var S=v.rangeList.rangeAtPoint(A);m.inVirtualSelectionMode=!0,u&&(S=null,$=v.ranges[0]||$,m.removeSelectionMarker($)),m.once("mouseup",function(){var F=v.toOrientedRange();S&&F.isEmpty()&&g(S.cursor,F.cursor)?v.substractPoint(F.cursor):(u?v.substractPoint($.cursor):$&&(m.removeSelectionMarker($),v.addRange($)),v.addRange(F)),m.inVirtualSelectionMode=!1})}else if(T=="block"){p.stop(),m.inVirtualSelectionMode=!0;var w,x=[],E=function(){var F=m.renderer.pixelToScreenCoordinates(b,k),H=M.screenToDocumentPosition(F.row,F.column,F.offsetX);g(N,F)&&g(H,v.lead)||(N=F,m.selection.moveToPosition(H),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(x),x=v.rectangularRangeBlock(N,L),m.$mouseHandler.$clickSelection&&x.length==1&&x[0].isEmpty()&&(x[0]=m.$mouseHandler.$clickSelection.clone()),x.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!a?v.toSingleRange():!y&&a&&(w=v.toOrientedRange(),m.addSelectionMarker(w)),u?L=M.documentToScreenPosition(v.lead):v.moveToPosition(A),N={row:-1,column:-1};var I=function(F){E(),clearInterval(D),m.removeSelectionMarkers(x),x.length||(x=[v.toOrientedRange()]),w&&(m.removeSelectionMarker(w),v.toSingleRange(w));for(var H=0;H<x.length;H++)v.addRange(x[H]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},O=E;h.capture(m.container,R,I);var D=setInterval(function(){O()},20);return p.preventDefault()}}}r.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,i){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(f){f.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(f){f.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(f){f.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var h=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(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,i){var h=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),l=n("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=n("./search").Search,c=new u;function a(C,_,b){return c.$options.wrap=!0,c.$options.needle=_,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,_){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(),_||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}C.cursor||(C.cursor=C.end);var k=this.rangeList.add(C);return this.$onAddRange(C),k.length&&this.$onRemoveRange(k),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var _=this.rangeList.substractPoint(C);if(_)return this.$onRemoveRange(_),_[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 _=this.rangeList.ranges.pop();C.push(_),this.rangeCount=0}for(var b=C.length;b--;){var k=this.ranges.indexOf(C[b]);this.ranges.splice(k,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)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,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()],_=[],b=0;b<C.length;b++){var k=C[b],R=k.start.row,M=k.end.row;if(R===M)_.push(k.clone());else{for(_.push(new f(R,k.start.column,R,this.session.getLine(R).length));++R<M;)_.push(this.getLineRange(R,!0));_.push(new f(M,0,M,k.end.column))}b==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var b=_.length;b--;)this.addRange(_[b])},this.joinSelections=function(){var C=this.rangeList.ranges,_=C[C.length-1],b=f.fromPoints(C[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,_=C[C.length-1],b=f.fromPoints(C[0].start,_.end);this.toSingleRange(),this.setSelectionRange(b,_.cursor==_.start)}else{var k=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),M=this.rectangularRangeBlock(k,R);M.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,_,b){var k=[],R=C.column<_.column;if(R)var M=C.column,L=_.column,N=C.offsetX,T=_.offsetX;else var M=_.column,L=C.column,N=_.offsetX,T=C.offsetX;var $=C.row<_.row;if($)var S=C.row,w=_.row;else var S=_.row,w=C.row;M<0&&(M=0),S<0&&(S=0),S==w&&(b=!0);for(var x,E=S;E<=w;E++){var I=f.fromPoints(this.session.screenToDocumentPosition(E,M,N),this.session.screenToDocumentPosition(E,L,T));if(I.isEmpty()){if(x&&v(I.end,x))break;x=I.end}I.cursor=R?I.start:I.end,k.push(I)}if($&&k.reverse(),!b){for(var O=k.length-1;k[O].isEmpty()&&O>0;)O--;if(O>0)for(var D=0;k[D].isEmpty();)D++;for(var F=O;F>=D;F--)k[F].isEmpty()&&k.splice(F,1)}return k}}).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 _=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",_),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 _=this.session.$selectionMarkers.indexOf(C);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var _=this.session.$selectionMarkers,b=C.length;b--;){var k=C[b];if(k.marker){this.session.removeMarker(k.marker);var R=_.indexOf(k);R!=-1&&_.splice(R,1)}}this.session.selectionMarkerCount=_.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(l.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(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var _=C.command,b=C.editor;if(b.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?k=b.forEachSelection(_,C.args):_.multiSelectAction=="forEachLine"?k=b.forEachSelection(_,C.args,!0):_.multiSelectAction=="single"?(b.exitMultiSelectMode(),k=_.exec(b,C.args||{})):k=_.multiSelectAction(b,C.args||{});else{var k=_.exec(b,C.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return k}},this.forEachSelection=function(C,_,b){if(!this.inVirtualSelectionMode){var k=b&&b.keepOrder,R=b==!0||b&&b.$byLines,M=this.session,L=this.selection,N=L.rangeList,T=(k?L:N).ranges,$;if(!T.length)return C.exec?C.exec(this,_||{}):C(this,_||{});var S=L._eventRegistry;L._eventRegistry={};var w=new g(M);this.inVirtualSelectionMode=!0;for(var x=T.length;x--;){if(R)for(;x>0&&T[x].start.row==T[x-1].end.row;)x--;w.fromOrientedRange(T[x]),w.index=x,this.selection=M.selection=w;var E=C.exec?C.exec(this,_||{}):C(this,_||{});!$&&E!==void 0&&($=E),w.toOrientedRange(T[x])}w.detach(),this.selection=M.selection=L,this.inVirtualSelectionMode=!1,L._eventRegistry=S,L.mergeOverlappingRanges(),L.ranges[0]&&L.fromOrientedRange(L.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 _=this.multiSelect.rangeList.ranges,b=[],k=0;k<_.length;k++)b.push(this.session.getTextRange(_[k]));var R=this.session.getDocument().getNewLineCharacter();C=b.join(R),C.length==(b.length-1)*R.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var k=_==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;k.row!=_.row||this.session.$clipPositionToDocument(k.row,k.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,_,b){if(_=_||{},_.needle=C||_.needle,_.needle==null){var k=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(k)}this.$search.set(_);var R=this.$search.findAll(this.session);if(!R.length)return 0;var M=this.multiSelect;b||M.toSingleRange(R[0]);for(var L=R.length;L--;)M.addRange(R[L],!0);return k&&M.rangeList.rangeAtPoint(k.start)&&M.addRange(k,!0),R.length},this.selectMoreLines=function(C,_){var b=this.selection.toOrientedRange(),k=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var M=this.session.screenToDocumentPosition(R.row+C,R.column);if(b.isEmpty())var N=M;else var L=this.session.documentToScreenPosition(k?b.end:b.start),N=this.session.screenToDocumentPosition(L.row+C,L.column);if(k){var T=f.fromPoints(M,N);T.cursor=T.start}else{var T=f.fromPoints(N,M);T.cursor=T.end}if(T.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(_)var $=b.cursor;this.selection.addRange(T),$&&this.selection.substractPoint($)},this.transposeSelections=function(C){for(var _=this.session,b=_.multiSelect,k=b.ranges,R=k.length;R--;){var M=k[R];if(M.isEmpty()){var L=_.getWordRange(M.start.row,M.start.column);M.start.row=L.start.row,M.start.column=L.start.column,M.end.row=L.end.row,M.end.column=L.end.column}}b.mergeOverlappingRanges();for(var N=[],R=k.length;R--;){var M=k[R];N.unshift(_.getTextRange(M))}C<0?N.unshift(N.pop()):N.push(N.shift());for(var R=k.length;R--;){var M=k[R],T=M.clone();_.replace(M,N[R]),M.start.row=T.start.row,M.start.column=T.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(C,_,b){var k=this.session,R=k.multiSelect,M=R.toOrientedRange();if(!(M.isEmpty()&&(M=k.getWordRange(M.start.row,M.start.column),M.cursor=C==-1?M.start:M.end,this.multiSelect.addRange(M),b))){var L=k.getTextRange(M),N=a(k,L,C);N&&(N.cursor=C==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(M.cursor)}},this.alignCursors=function(){var C=this.session,_=C.multiSelect,b=_.ranges,k=-1,R=b.filter(function(O){if(O.cursor.row==k)return!0;k=O.cursor.row});if(!b.length||R.length==b.length-1){var M=this.selection.getRange(),L=M.start.row,N=M.end.row,T=L==N;if(T){var $=this.session.getLength(),S;do S=this.session.getLine(N);while(/[=:]/.test(S)&&++N<$);do S=this.session.getLine(L);while(/[=:]/.test(S)&&--L>0);L<0&&(L=0),N>=$&&(N=$-1)}var w=this.session.removeFullLines(L,N);w=this.$reAlignText(w,T),this.session.insert({row:L,column:0},w.join(`
1527
+ `)+`
1528
+ `),T||(M.start.column=0,M.end.column=w[w.length-1].length),this.selection.setRange(M)}else{R.forEach(function(O){_.substractPoint(O.cursor)});var x=0,E=1/0,I=b.map(function(O){var D=O.cursor,F=C.getLine(D.row),H=F.substr(D.column).search(/\S/g);return H==-1&&(H=0),D.column>x&&(x=D.column),H<E&&(E=H),H});b.forEach(function(O,D){var F=O.cursor,H=x-F.column,W=I[D]-E;H>W?C.insert(F,o.stringRepeat(" ",H-W)):C.remove(new f(F.row,F.column,F.row,F.column-H+W)),O.start.column=O.end.column=x,O.start.row=O.end.row=F.row,O.cursor=O.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,_){var b=!0,k=!0,R,M,L;return C.map(function(w){var x=w.match(/(\s*)(.*?)(\s*)([=:].*)/);return x?R==null?(R=x[1].length,M=x[2].length,L=x[3].length,x):(R+M+L!=x[1].length+x[2].length+x[3].length&&(k=!1),R!=x[1].length&&(b=!1),R>x[1].length&&(R=x[1].length),M<x[2].length&&(M=x[2].length),L>x[3].length&&(L=x[3].length),x):[w]}).map(_?T:b?k?$:T:S);function N(w){return o.stringRepeat(" ",w)}function T(w){return w[2]?N(R)+w[2]+N(M-w[2].length+L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}function $(w){return w[2]?N(R+M-w[2].length)+w[2]+N(L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}function S(w){return w[2]?N(R)+w[2]+N(L)+w[4].replace(/^([=:])\s+/,"$1 "):w[0]}}}).call(m.prototype);function v(C,_){return C.row==_.row&&C.column==_.column}r.onSessionChange=function(C){var _=C.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=C.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",s),C.commands.addCommands(l.defaultCommands),A(C))}function A(C){if(!C.textInput)return;var _=C.textInput.getElement(),b=!1;p.addListener(_,"keydown",function(R){var M=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);C.$blockSelectEnabled&&M?b||(C.renderer.setMouseCursor("crosshair"),b=!0):b&&k()},C),p.addListener(_,"keyup",k,C),p.addListener(_,"blur",k,C);function k(R){b&&(C.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){y(this),C?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,i){var h=n("../../range").Range,f=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,p){return null},this.indentationBlock=function(g,s,p){var o=/\S/,l=g.getLine(s),u=l.search(o);if(u!=-1){for(var c=p||l.length,a=g.getLength(),d=s,m=s;++s<a;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=u){var y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>d){var A=g.getLine(m).length;return new h(d,c,m,A)}}},this.openingBracketBlock=function(g,s,p,o,l){var u={row:p,column:o+1},c=g.$findClosingBracket(s,u,l);if(c){var a=g.foldWidgets[c.row];return a==null&&(a=g.getFoldWidget(c.row)),a=="start"&&c.row>u.row&&(c.row--,c.column=g.getLine(c.row).length),h.fromPoints(u,c)}},this.closingBracketBlock=function(g,s,p,o,l){var u={row:p,column:o},c=g.$findOpeningBracket(s,u);if(c)return c.column++,u.column--,h.fromPoints(c,u)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,r,i){var h=n("../lib/dom"),f=n("../range").Range,g=n("../config").nls;function s(o,l,u){for(var c=0,a=o.length-1;c<=a;){var d=c+a>>1,m=u(l,o[d]);if(m>0)c=d+1;else if(m<0)a=d-1;else return d}return-(c+1)}function p(o,l,u){var c=o.getAnnotations().sort(f.comparePoints);if(c.length){var a=s(c,{row:l,column:-1},f.comparePoints);a<0&&(a=-a-1),a>=c.length?a=u>0?0:c.length-1:a===0&&u<0&&(a=c.length-1);var d=c[a];if(!(!d||!u)){if(d.row===l){do d=c[a+=u];while(d&&d.row===l);if(!d)return c.slice()}var m=[];l=d.row;do m[u<0?"unshift":"push"](d),d=c[a+=u];while(d&&d.row==l);return m.length&&m}}}r.showErrorMarker=function(o,l){var u=o.session,c=o.getCursorPosition(),a=c.row,d=u.widgetManager.getWidgetsAtRow(a).filter(function(R){return R.type=="errorMarker"})[0];d?d.destroy():a-=l;var m=p(u,a,l),v;if(m){var y=m[0];c.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,c.row=y.row,v=o.renderer.$gutterLayer.$annotations[c.row]}else{if(d)return;v={displayText:[g("error-marker.good-state","Looks good!")],className:"ace_ok"}}o.session.unfold(c.row),o.selection.moveToPosition(c);var A={row:c.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},C=A.el.appendChild(h.createElement("div")),_=A.el.appendChild(h.createElement("div"));_.className="error_widget_arrow "+v.className;var b=o.renderer.$cursorLayer.getPixelPosition(c).left;_.style.left=b+o.renderer.gutterWidth-5+"px",A.el.className="error_widget_wrapper",C.className="error_widget "+v.className,v.displayText.forEach(function(R,M){C.appendChild(h.createTextNode(R)),M<v.displayText.length-1&&C.appendChild(h.createElement("br"))}),C.appendChild(h.createElement("div"));var k=function(R,M,L){if(M===0&&(L==="esc"||L==="return"))return A.destroy(),{command:"null"}};A.destroy=function(){o.$mouseHandler.isMousePressed||(o.keyBinding.removeKeyboardHandler(k),u.widgetManager.removeLineWidget(A),o.off("changeSelection",A.destroy),o.off("changeSession",A.destroy),o.off("mouseup",A.destroy),o.off("change",A.destroy))},o.keyBinding.addKeyboardHandler(k),o.on("changeSelection",A.destroy),o.on("changeSession",A.destroy),o.on("mouseup",A.destroy),o.on("change",A.destroy),o.session.widgetManager.addLineWidget(A),A.el.onmousedown=o.focus.bind(o),o.renderer.scrollCursorIntoView(null,.5,{bottom:A.el.offsetHeight})},h.importCssString(`
1529
+ .error_widget_wrapper {
1530
+ background: inherit;
1531
+ color: inherit;
1532
+ border:none
1533
+ }
1534
+ .error_widget {
1535
+ border-top: solid 2px;
1536
+ border-bottom: solid 2px;
1537
+ margin: 5px 0;
1538
+ padding: 10px 40px;
1539
+ white-space: pre-wrap;
1540
+ }
1541
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1542
+ border-color: #ff5a5a
1543
+ }
1544
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1545
+ border-color: #F1D817
1546
+ }
1547
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1548
+ border-color: #5a5a5a
1549
+ }
1550
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1551
+ border-color: #5aaa5a
1552
+ }
1553
+ .error_widget_arrow {
1554
+ position: absolute;
1555
+ border: solid 5px;
1556
+ border-top-color: transparent!important;
1557
+ border-right-color: transparent!important;
1558
+ border-left-color: transparent!important;
1559
+ top: -5px;
1560
+ }
1561
+ `,"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,i){n("./loader_build")(r);var h=n("./lib/dom"),f=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(u,c){if(typeof u=="string"){var a=u;if(u=document.getElementById(a),!u)throw new Error("ace.edit can't find div #"+a)}if(u&&u.env&&u.env.editor instanceof g)return u.env.editor;var d="";if(u&&/input|textarea/i.test(u.tagName)){var m=u;d=m.value,u=h.createElement("pre"),m.parentNode.replaceChild(u,m)}else u&&(d=u.textContent,u.innerHTML="");var v=r.createEditSession(d),y=new g(new o(u),v,c),A={document:v,editor:y,onResize:y.resize.bind(y,null)};return m&&(A.textarea=m),y.on("destroy",function(){A.editor.container.env=null}),y.container.env=y.env=A,y},r.createEditSession=function(u,c){var a=new s(u,c);return a.setUndoManager(new p),a},r.Range=f,r.Editor=g,r.EditSession=s,r.UndoManager=p,r.VirtualRenderer=o;var l=r.config.version;r.version=l}),(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 i in n)n.hasOwnProperty(i)&&(r.ace[i]=n[i]);r.ace.default=r.ace,e&&(e.exports=r.ace)})})()})(Us)),Us.exports}var cR=lR();const Bl=Lr(cR),uR="/assets/mode-yaml-ELgwiJiP.js",hR="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Bl.config.setModuleUrl("ace/mode/yaml",uR);Bl.config.setModuleUrl("ace/theme/monokai",hR);var Eg=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,h){return i[0]===n?(r=h,!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),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,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 i=0,h=this.__entries__;i<h.length;i++){var f=h[i];n.call(r,f[1],f[0])}},t})()})(),Fa=typeof window<"u"&&typeof document<"u"&&window.document===document,_o=(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")()})(),fR=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),dR=2;function pR(e,t){var n=!1,r=!1,i=0;function h(){n&&(n=!1,e()),r&&g()}function f(){fR(h)}function g(){var s=Date.now();if(n){if(s-i<dR)return;r=!0}else n=!0,r=!1,setTimeout(f,t);i=s}return g}var gR=20,mR=["top","right","bottom","left","width","height","size","weight"],vR=typeof MutationObserver<"u",yR=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=pR(this.refresh.bind(this),gR)}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(){!Fa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vR?(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(){!Fa||!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,i=mR.some(function(h){return!!~r.indexOf(h)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Mg=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),_r=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_o}),Tg=cs(0,0,0,0);function $o(e){return parseFloat(e)||0}function xh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var h=e["border-"+i+"-width"];return r+$o(h)},0)}function bR(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var h=i[r],f=e["padding-"+h];n[h]=$o(f)}return n}function wR(e){var t=e.getBBox();return cs(0,0,t.width,t.height)}function SR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Tg;var r=_r(e).getComputedStyle(e),i=bR(r),h=i.left+i.right,f=i.top+i.bottom,g=$o(r.width),s=$o(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+h)!==t&&(g-=xh(r,"left","right")+h),Math.round(s+f)!==n&&(s-=xh(r,"top","bottom")+f)),!$R(e)){var p=Math.round(g+h)-t,o=Math.round(s+f)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return cs(i.left,i.top,g,s)}var _R=(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 $R(e){return e===_r(e).document.documentElement}function CR(e){return Fa?_R(e)?wR(e):SR(e):Tg}function AR(e){var t=e.x,n=e.y,r=e.width,i=e.height,h=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(h.prototype);return Mg(f,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),f}function cs(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xR=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=CR(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})(),kR=(function(){function e(t,n){var r=AR(n);Mg(this,{target:t,contentRect:r})}return e})(),ER=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Eg,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 xR(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 kR(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})(),Lg=typeof WeakMap<"u"?new WeakMap:new Eg,Rg=(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=yR.getInstance(),r=new ER(t,n,this);Lg.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Rg.prototype[e]=function(){var t;return(t=Lg.get(this))[e].apply(t,arguments)}});var MR=(function(){return typeof _o.ResizeObserver<"u"?_o.ResizeObserver:Rg})();const kh=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Ig=ve({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",...kh],render(){return jo("div")},mounted(){const e=this._editor=nd(Bl.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)}),kh.forEach(t=>{const n="on"+hi(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new MR(()=>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)}}}),TR={class:"block"},Og=ve({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,r=t,i=al(n,"yaml");return hl(()=>{r("update-yaml",i.value)}),(h,f)=>(K(),re("div",TR,[oe(se(Ig),{class:"vue-ace-editor",value:i.value,"onUpdate:value":f[0]||(f[0]=g=>i.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),LR={class:"block"},RR={class:"is-size-2 block"},IR={class:"field is-grouped is-grouped-centered"},OR={class:"control"},NR={class:"icon is-small"},DR={key:0,class:"block"},FR=ve({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=kr(),r=al(t.rule.yaml),i=kk(),h=g=>{r.value=g},f=async()=>{const g=await i.perform({yaml:r.value});n.push({name:"Rule",params:{id:g.id}})};return(g,s)=>{const p=De("font-awesome-icon");return K(),re(Me,null,[P("div",LR,[P("h2",RR,"Edit rule: "+ge(e.rule.id),1),oe(Og,{yaml:r.value,"onUpdate:yaml":s[0]||(s[0]=o=>r.value=o),onUpdateYaml:h},null,8,["yaml"]),P("div",IR,[P("p",OR,[P("a",{class:"button is-primary",onClick:f},[P("span",NR,[oe(p,{icon:"edit"})]),s[1]||(s[1]=P("span",null,"Edit",-1))])])])]),se(i).last?.error?(K(),re("div",DR,[s[2]||(s[2]=P("hr",null,null,-1)),oe(lt,{error:se(i).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),PR=ve({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=pg(),r=async()=>{await n.perform(t.id)};return et(async()=>{await r()}),Fe(t,async()=>{await r()}),(i,h)=>(K(),re(Me,null,[se(n).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(n).isError?(K(),me(lt,{key:1,error:se(n).last?.error},null,8,["error"])):fe("",!0),se(n).last?.value?(K(),me(FR,{key:2,rule:se(n).last.value},null,8,["rule"])):fe("",!0)],64))}}),zR=ve({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{vn(`Edit rule:${t.id} - Mihari`)};return et(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(PR,{id:e.id},null,8,["id"]))}});function WR(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 i=r.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var l,u;return(u=(l=o.match(/[\t ]/g))===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0})):g},[]);if(i.length){var h=new RegExp(`
1562
+ [ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(g){return g.replace(h,`
1563
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var f=r[0];return t.forEach(function(g,s){var p=f.match(/(?:^|\n)( *)$/),o=p?p[1]:"",l=g;typeof g=="string"&&g.includes(`
1564
+ `)&&(l=String(g).split(`
1565
+ `).map(function(u,c){return c===0?u:""+o+u}).join(`
1566
+ `)),f+=l+r[s+1]}),f}var Fi,BR=new Uint8Array(16);function jR(){if(!Fi&&(Fi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Fi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fi(BR)}const HR=/^(?:[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 UR(e){return typeof e=="string"&&HR.test(e)}var ot=[];for(var Vs=0;Vs<256;++Vs)ot.push((Vs+256).toString(16).substr(1));function VR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase();if(!UR(n))throw TypeError("Stringified UUID is invalid");return n}function GR(e,t,n){e=e||{};var r=e.random||(e.rng||jR)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,VR(r)}function ZR(){const e=GR(),t=ls();return WR`---
1567
+ id: ${e}
1568
+ title: Title goes here
1569
+ description: Description goes here
1570
+ created_on: ${t.format("YYYY-MM-DD")}
1571
+ queries: []`}const YR={class:"block"},KR={class:"field is-grouped is-grouped-centered"},XR={class:"control"},QR={class:"icon is-small"},JR={key:0,class:"block"},qR=ve({__name:"NewRule",setup(e){const t=kr(),n=Ne(ZR()),r=xk(),i=f=>{n.value=f},h=async()=>{const f=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:f.id}})};return(f,g)=>{const s=De("font-awesome-icon");return K(),re(Me,null,[P("div",YR,[g[2]||(g[2]=P("h2",{class:"is-size-2 block"},"New rule",-1)),oe(Og,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=p=>n.value=p),onUpdateYaml:i},null,8,["yaml"]),P("div",KR,[P("p",XR,[P("a",{class:"button is-primary",onClick:h},[P("span",QR,[oe(s,{icon:"plus"})]),g[1]||(g[1]=P("span",null,"Create",-1))])])])]),se(r).last?.error?(K(),re("div",JR,[g[3]||(g[3]=P("hr",null,null,-1)),oe(lt,{error:se(r).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),eI=ve({__name:"NewRule",setup(e){const t=()=>{vn("New rule - Mihari")};return et(()=>{t()}),(n,r)=>(K(),me(qR))}}),tI={class:"buttons is-pulled-right"},nI=["href"],rI={class:"icon is-small"},iI={class:"icon is-small"},oI={class:"icon is-small"},sI={class:"icon is-small"},Ng=ve({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/rules/${n.rule.id}`),h=ye(()=>`rule.id:"${n.rule.id}"`),f=Ck(),g=Ak(),s=os(),p=Pl(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await f.perform(n.rule.id),r("delete")}catch(c){He.isAxiosError(c)&&r("set-error",c)}},l=async()=>{try{const u=await g.perform(n.rule.id);r("set-message",u)}catch(u){He.isAxiosError(u)&&r("set-error",u)}};return et(()=>{s.perform({q:h.value,page:1,limit:0}),p.perform({q:h.value,page:1,limit:0})}),(u,c)=>{const a=De("router-link"),d=De("font-awesome-icon");return K(),re("span",tI,[oe(a,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:h.value}}},{default:Ge(()=>[c[0]||(c[0]=P("span",null,"Alerts:",-1)),P("span",null,ge(se(s).last?.value?.total),1)]),_:1},8,["to"]),oe(a,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:h.value}}},{default:Ge(()=>[c[1]||(c[1]=P("span",null,"Artifacts:",-1)),P("span",null,ge(se(p).last?.value?.total),1)]),_:1},8,["to"]),P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[c[2]||(c[2]=P("span",null,"JSON",-1)),P("span",rI,[oe(d,{icon:"barcode"})])],8,nI),P("button",{class:"button is-primary is-light is-small",onClick:l},[c[3]||(c[3]=P("span",null,"Search",-1)),P("span",iI,[se(g).isRunning?(K(),me(d,{key:0,icon:"spinner",spin:""})):(K(),me(d,{key:1,icon:"magnifying-glass"}))])]),oe(a,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Ge(()=>[c[4]||(c[4]=P("span",null,"Edit",-1)),P("span",oI,[oe(d,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:o},[c[5]||(c[5]=P("span",null,"Delete",-1)),P("span",sI,[oe(d,{icon:"times"})])])])}}}),aI={class:"box"},lI={class:"block"},cI={class:"table is-fullwidth is-completely-borderless"},uI={key:0},hI={class:"help"},fI=ve({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=o=>{i.value=o},s=()=>{i.value=void 0},p=()=>{n("delete")};return(o,l)=>{const u=De("router-link");return K(),re("div",aI,[r.value?(K(),me(lt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(ss,{key:1,class:"block",message:i.value,disposable:!0,onDispose:s},null,8,["message"])):fe("",!0),P("div",lI,[P("p",null,[oe(Ng,{rule:e.rule,onSetError:h,onDelete:p,onSetMessage:g},null,8,["rule"])]),oe(u,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Ge(()=>[Ze(ge(e.rule.id),1)]),_:1},8,["to"])]),P("table",cI,[P("tr",null,[l[0]||(l[0]=P("th",null,"Title",-1)),P("td",null,ge(e.rule.title),1)]),P("tr",null,[l[1]||(l[1]=P("th",null,"Description",-1)),P("td",null,ge(e.rule.description),1)]),e.rule.tags.length>0?(K(),re("tr",uI,[l[2]||(l[2]=P("th",null,"Tags",-1)),P("td",null,[oe(_i,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):fe("",!0)]),l[3]||(l[3]=P("p",{class:"block is-clearfix"},null,-1)),P("p",hI,"Created at: "+ge(e.rule.createdAt),1)])}}}),dI={key:0,class:"block"},pI={class:"help"},gI={key:1,class:"block"},mI=ve({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.rules.results.length>0);return(g,s)=>f.value?(K(),re("div",dI,[(K(!0),re(Me,null,It(e.rules.results,p=>(K(),me(fI,{rule:p,key:p.id,onRefresh:h,onDelete:h},null,8,["rule"]))),128)),oe(zl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:i},null,8,["currentPage","total","pageSize"]),P("p",pI,"("+ge(e.rules.total)+" results in total, "+ge(e.rules.results.length)+" shown)",1)])):(K(),re("div",gI,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),vI={class:"block"},yI={class:"field has-addons"},bI={class:"control is-expanded"},wI={class:"control"},SI={class:"icon is-small"},_I={class:"control"},$I={class:"icon is-small"},CI={key:0,class:"content mt-3"},AI={key:0,class:"block"},xI=ve({__name:"RulesWrapper",setup(e){const t=br("page","1"),n=br("q",""),r=Ne(!1),i=dg(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=gi(r);return et(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,l)=>{const u=De("font-awesome-icon"),c=De("router-link");return K(),re(Me,null,[P("div",vI,[P("div",yI,[P("p",bI,[cl(P("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=a=>Qe(n)?n.value=a:null)},null,512),[[vl,se(n)]])]),P("p",wI,[P("a",{class:"button is-primary",onClick:g},[P("span",SI,[oe(u,{icon:"search"})]),l[2]||(l[2]=P("span",null,"Search",-1))])]),P("p",_I,[P("a",{class:"button is-info",onClick:l[1]||(l[1]=a=>se(p)())},[P("span",$I,[oe(u,{icon:"question"})]),l[3]||(l[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",CI,[l[5]||(l[5]=gl('<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)),P("ul",null,[P("li",null,[oe(c,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Ge(()=>[...l[4]||(l[4]=[Ze("title:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),se(i).performCount>0?(K(),re("div",AI,[se(i).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(i).isError?(K(),me(lt,{key:1,error:se(i).last?.error},null,8,["error"])):fe("",!0),se(i).last?.value?(K(),me(mI,{key:2,rules:se(i).last.value,onUpdatePage:f,onRefresh:se(s)},null,8,["rules","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),kI=ve({__name:"RulesView",setup(e){return vn("Rules - Mihari"),(t,n)=>(K(),me(xI))}}),EI={class:"block"},MI=ve({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",EI,[oe(se(Ig),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),TI={class:"block"},LI={class:"is-size-2 block"},RI={class:"block is-clearfix"},II={class:"block"},OI=ve({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=()=>{n("delete")},f=o=>{r.value=o},g=()=>{r.value=void 0},s=o=>{o.queued?i.value=o:n("refresh")},p=()=>{i.value=void 0};return(o,l)=>(K(),re(Me,null,[P("div",TI,[P("h2",LI,ge(e.rule.id),1),r.value?(K(),me(lt,{key:0,class:"mt-3 mb-3",error:r.value,disposable:!0,onDispose:g},null,8,["error"])):fe("",!0),i.value?(K(),me(ss,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("p",RI,[oe(Ng,{rule:e.rule,onSetMessage:s,onDelete:h,onSetError:f},null,8,["rule"])]),oe(MI,{yaml:e.rule.yaml},null,8,["yaml"])]),l[1]||(l[1]=P("hr",null,null,-1)),P("div",II,[l[0]||(l[0]=P("h2",{class:"is-size-2 block"},"Alerts",-1)),oe($g,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),NI=ve({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=pg(),r=kr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=()=>{r.push("/")};return et(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Me,null,[se(n).isRunning?(K(),me(yn,{key:0})):fe("",!0),se(n).isError?(K(),me(lt,{key:1,error:se(n).last?.error},null,8,["error"])):fe("",!0),se(n).last?.value?(K(),me(OI,{key:2,rule:se(n).last.value,onRefresh:h,onDelete:f},null,8,["rule"])):fe("",!0)],64))}}),DI=ve({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{vn(`Rule:${t.id} - Mihari`)};return et(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(NI,{id:e.id},null,8,["id"]))}}),FI=[{path:"/",name:"Alerts",component:nM},{path:"/alerts/:id",name:"Alert",component:fM,props:!0},{path:"/config",name:"Config",component:aR},{path:"/artifacts/",name:"Artifacts",component:GM},{path:"/artifacts/:id",name:"Artifact",component:YL,props:!0},{path:"/rules",name:"Rules",component:kI},{path:"/rules/new",name:"NewRule",component:eI},{path:"/rules/:id",name:"Rule",component:DI,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:zR,props:!0}],PI=WS({history:yS(),routes:FI});Qy.add(f0,h0,l0,i0,t0,b0,s0,v0,n0,c0,p0,qy,Tf,a0,e0,u0,m0,g0,o0);const Dg=Fw(I1);Dg.component("font-awesome-icon",Qw);Dg.use(PI).mount("#app");